You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
XCode relies on a program called /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:
I had to, manually, open 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
The text was updated successfully, but these errors were encountered: