I’m trying to build with the new iosSimulatorArm64...
# multiplatform
s
I’m trying to build with the new iosSimulatorArm64 target and encountering resolution errors. Does that mean it can’t be done until dependencies are published for that platform or am I doing something wrong?
Copy code
No matching variant of org.jetbrains.kotlinx:kotlinx-serialization-core:1.2.2 was found. The consumer was configured to find a usage of 'kotlin-api' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native', attribute 'org.jetbrains.kotlin.native.target' with value 'ios_simulator_arm64'
👀 1
a
Hi, yes, you are right. Kotlinx.serialization library hasn’t supported yet the Apple Silicon related targets.
🙏 3
h
Created https://github.com/Kotlin/kotlinx.serialization/issues/1647 Does TeamCity support this target at all?
p
So to use
iosSimulatorArm64
we have to wait for all our dependencies to update? Is there a way we can work around this locally? Or is it a simple config change I could potentially contribute to each OSS dependency?
h
So to use iosSimulatorArm64 we have to wait for all our dependencies to update?
Unfortunately, yes In the end, it is often only a one line change, you have only to add the target. Other code changes should not be required, as it is only child of
iOSMain
. But you need a compatible CI.
p
Thanks! Would you happen to know of an example where the change has been made - it might be helpful to point project maintainers in the right direction 😃
r
It's in 1.5.2 which released today
🤞 1
🤩 1
h
@Martin Rajniak Here is a ticket 😄 https://github.com/Kotlin/kotlinx.coroutines/issues/2908
🙏 1