Open ultraon opened 3 years ago
Hey @ultraon! From what I can see from the error log, JAVA 1.8 is used for building KMM module from Xcode. Please try add
JAVA_HOME = /usr/local/Cellar/openjdk@11/11.0.10/libexec/openjdk.jdk/Contents/Home
to the Run Script Xcode build Phase (before calling embedAndSignAppleFrameworkForXcode
Gradle task). If this helps, then JAVA_HOME is not configured properly for the shell used in XCode
Hello, @ultraon. I just had the same problem.
The problem in my case was the following:
/usr/libexec/java_home
to obtain the JAVA_PATH, but as I installed my java jdk via a third party sdkmanager (sdkman), java_home
could not find the path properly. This wiki explains why it happens.The solution:
XCode > Preferences > Locations > Custom Paths
and add a custom path with name JAVA_HOME
pointing to my current JAVA_HOME directory.
Hello, thanks for sample. From AndroidStudio I can build both iOS App and Android App. But from XCode I have the following issue:
Java 11 is used by default,
JAVA_HOME = /usr/local/Cellar/openjdk@11/11.0.10/libexec/openjdk.jdk/Contents/Home