Kotlin / kmm-integration-sample

Apache License 2.0
93 stars 48 forks source link

No more issues in KMM Login Sample #10

Open prdp89 opened 2 years ago

prdp89 commented 2 years ago

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:

  1. 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

  2. Verify Gradle distribution URL, for me: distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip

  3. Verify you are at least using kotlin_version (project build.gradle): ext.kotlin_version = "1.5.31"

  4. 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.