https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
v

Vince

10/05/2023, 3:12 AM
I'm trying to set up my first KMM project and following the guide but I can't get the iOS config to run I'm running in to
Copy code
The following build commands failed:
	PhaseScriptExecution Run\ Script /build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/Script-7555FFB5242A651A00829871.sh (in target 'iosApp' from project 'iosApp')
(1 failure)
Stack seems to suggest it was a JVM issue but I updated to Java 21 in the studio settings and that's not working either. What simple thing did I overlook?
m

marzelwidmer

10/05/2023, 4:35 AM
clean build I think you did already?
v

Vince

10/05/2023, 3:47 PM
jvmToolchain(17)
doesn't exist in my project, should I add it? Also this is in the build.gradle.kts
Copy code
android {
        compilations.all {
            kotlinOptions {
                jvmTarget = "1.8"
            }
        }
    }
I was able to update the Gradle JDK to jbr-17
That gets me to
Copy code
The /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1.
output:
ld: unknown options: -ios_simulator_version_min -sdk_version
2 Views