-
Notifications
You must be signed in to change notification settings - Fork 62
Description
Hi,
This may help some folks bcz I'd struggle to solve a couple of problems while compiling/running the project in iOS. Please check:
-
Verify JDK version and update gradle home (in gradle.properties) java path as:
org.gradle.java.home=/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home
and set cacheKind as:
kotlin.native.cacheKind.iosX64=none -
Verify Gradle distribution URL, for me:
distributionUrl=https://services.gradle.org/distributions/gradle-7.2-bin.zip -
Verify you are at least using kotlin_version (project build.gradle):
ext.kotlin_version = "1.5.31" -
Update shared project build.gradle to add iosSimulatorArm64 as(inside kotlin {..} block):
iosSimulatorArm64("ios") {
binaries {
framework {
baseName = "shared"
}
}
}
Please update Thread if more changes are required in the future.