https://kotlinlang.org logo
v

Vivek Modi

03/07/2022, 10:02 PM
Hey everyone what is the d/w
iosX64(),iosArm64() and iosSimulatorArm64()
in kmm gradle file. Can someone explain ?
Copy code
val xcf = XCFramework()
listOf(
    iosX64(),
    iosArm64(),
    iosSimulatorArm64()
).forEach {
    it.binaries.framework {
        baseName = "kotlinmultiplatformsharedmodule"
        xcf.add(this)
    }
}
h

hfhbd

03/07/2022, 10:27 PM
This are the different iOS targets: • iOSX64: iOS simulator on macOS with Intel x64 • iOSArm64: real iPhone • iOSSimulatorArm64: iOS simulator on macOS with Apple Silicon M1
v

Vivek Modi

03/07/2022, 10:35 PM
thanks @hfhbd ✌️
l

Landry Norris

03/07/2022, 11:36 PM
I've seen iosArm64 work on a simulator on M1, but I don't know if there's any possible issues with that. Helps when a library you need doesn't have an iosSimulatorArm64 target.
4 Views