:question: When we bumped to Kotlin 1.5.30, I chan...
# multiplatform
p
When we bumped to Kotlin 1.5.30, I changed our iPhone build targets from the “older”
Copy code
val iosTarget: (String, KotlinNativeTarget.() -> Unit) -> KotlinNativeTarget =
        if (System.getenv("SDK_NAME")?.startsWith("iphoneos") == true)
            ::iosArm64
        else
            ::iosX64
    iosTarget("ios") {}
to the newer shortcut (which we need to use on our Apple M1 machines)
Copy code
ios()
Since I’ve done this, I’m getting red import errors in Android Studio (Arctic Fox | 2020.3.1 Patch 3, KMM Plugin ) when trying to import iOS platform frameworks. Have I missed something in configuration? 1.5.31 has the same issue fwiw
1
r
Make sure you also add these to gradle.properties
Copy code
kotlin.mpp.enableGranularSourceSetsMetadata=true
kotlin.native.enableDependencyPropagation=false
p
Amazing, thanks so much for answering so fast!!
i
Apple M1 have to set by manual