https://kotlinlang.org logo
s

Sam

08/25/2021, 6:45 PM
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

atyrin

08/25/2021, 7:48 PM
Hi, yes, you are right. Kotlinx.serialization library hasn’t supported yet the Apple Silicon related targets.
🙏 3
h

hfhbd

08/28/2021, 8:50 AM
Created https://github.com/Kotlin/kotlinx.serialization/issues/1647 Does TeamCity support this target at all?
p

Paul Davies

09/01/2021, 6:11 PM
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

hfhbd

09/01/2021, 7:02 PM
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

Paul Davies

09/02/2021, 1:38 PM
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

russhwolf

09/02/2021, 8:12 PM
It's in 1.5.2 which released today
🤞 1
🤩 1
h

hfhbd

09/02/2021, 9:17 PM
@Martin Rajniak Here is a ticket 😄 https://github.com/Kotlin/kotlinx.coroutines/issues/2908
🙏 1
9 Views