Thread
#multiplatform
    s

    Sam

    1 year ago
    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?
    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'
    atyrin

    atyrin

    1 year ago
    Hi, yes, you are right. Kotlinx.serialization library hasn’t supported yet the Apple Silicon related targets.
    hfhbd

    hfhbd

    1 year ago
    Created https://github.com/Kotlin/kotlinx.serialization/issues/1647 Does TeamCity support this target at all?
    Paul Davies

    Paul Davies

    1 year ago
    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?
    hfhbd

    hfhbd

    1 year ago
    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.
    Paul Davies

    Paul Davies

    1 year ago
    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 😃
    Martin Rajniak

    Martin Rajniak

    1 year ago
    Do you know when Coroutines will support Apple Silicon related targets? ( Or at least is there a ticket for this already that I could follow? )
    russhwolf

    russhwolf

    1 year ago
    It's in 1.5.2 which released today
    hfhbd

    hfhbd

    1 year ago