Anyone know the differences between the presets? i...
# ios
g
Anyone know the differences between the presets? iosX64 vs arm64 etc?
and which ios preset is the safest to target?
g
iosX64 is for simulator, iosArm64 is for real device
g
thanks for the fast reply!
are you able to do unit test in a arm64 preset?
g
I believe you cannot run unit tests for iOS
only instrumentation, run them on device or simulator
at least it how I understand unit tests
g
well yeah. I was just wondering if the iosX64 is strictly for simulators and you should use arm64 when releasing the app?
👌 1
s
Take a look at any Kotlin iOS sample/template/tutorial. For example: https://kotlinlang.org/docs/tutorials/native/mpp-ios-android.html
g
Also, how would we go about releasing artifacts for a library? Should we create artifacts for both arm64 and x64?
s
As a library for what? Swift?
g
to be used in a multiplatform project
s
Then your are supposed to have both targets enabled in your project.
g
does it already bundle the ios targets in the generated KLIB artifact?
s
Gradle plugin can publish a multiplatform library containing multiple klibs/jars/whatever
g
yes but it creates separate artifacts for arm64 and x64
s
Gradle
kotlin-multiplatform
plugin publishes all these artifacts within the single library.