I'm having issues with building my KMM project i x...
# compose-ios
m
I'm having issues with building my KMM project i xcode. I imported the project in xcode and followed the instructions here: https://kotlinlang.org/docs/multiplatform-mobile-integrate-in-existing-app.html#connect-the-framework-to-your-ios-project However the build is complaining about not finding java:
Copy code
The operation couldn't be completed. Unable to locate a Java Runtime.
Please visit <http://www.java.com> for information on installing Java
At first I thought I had solved it by changing the build script to;
Copy code
cd "$SRCROOT/.."
export $JAVA_HOME=/Users/magnus/.sdkman/candidates/java/current
./gradlew :shared:embedAndSignAppleFrameworkForXcode
However that just kicked the problem down the line. Has anyone else encountered this and have any advice?
👍 1
The error is encountered here:
Copy code
"$REPO_ROOT/../gradlew" -p "$REPO_ROOT" $KOTLIN_PROJECT_PATH:syncFramework                     -Pkotlin.native.cocoapods.platform=$PLATFORM_NAME                     -Pkotlin.native.cocoapods.archs="$ARCHS"                     -Pkotlin.native.cocoapods.configuration="$CONFIGURATION"