Bradleycorn
08/16/2024, 3:29 PMecho $JAVA_HOME
to the run script, it's empty.
That also kind of makes sense, since Xcode runs those scripts in a non-interactive shell.
But then that begs the question ... how to set the JAVA_HOME environment variable in a way that the script can find it?
The obvious answer is to just set it at the top of the script itself in Xcode. That certainly works, but it would require that every developer working on the project has the same java in the same location on their machine. Likewise, setting the jdk path in the kmp's gradle.properties would have the same problem.
Has anyone else run into this, and perhaps found a decent way to do it?kpgalligan
08/16/2024, 3:57 PMkpgalligan
08/16/2024, 3:58 PMkpgalligan
08/16/2024, 3:59 PMJAVA_HOME
can be tough and Xcode gets its env vars in a funky way (in my experience).kpgalligan
08/16/2024, 4:01 PMopen [whatever folder/file].xcproject
• Continue with what I was doing
After that, Xcode seems to get what it needs.Bradleycorn
08/16/2024, 4:19 PM