Thread
#multiplatform
    Charles Prado

    Charles Prado

    1 year ago
    Hello everyone I started receiving this error message while trying to compile the iOS app:
    > Task :shared:linkDebugFrameworkIos
    e: Compilation failed: Deserializer for declaration public kotlinx.coroutines/cancel|-8901161077954086727[0] is not found
    Someone here has any idea how can I resolve this coroutines reference?
    Lena Stepanova

    Lena Stepanova

    1 year ago
    Hi Charles, have you found a solution? We have the same problem. What versions of coroutines, ktor, kotlin and serialization do you use?
    Charles Prado

    Charles Prado

    1 year ago
    Hey Lena. We fixed it by using this set of configurations:
    const val kotlin = "1.5.10"
    const val kotlinGradlePlugin = "1.5.10"
    const val ktor = "1.6.0"
    const val kotlinxSerialization = "1.2.1"
    const val kotlinxCoroutines = "1.5.0-native-mt"
    hope it can help you.
    I think it can even work if you use another set of versions. The thing to keep in mind is that you need the Multithreaded Coroutines ("-native-mt") version instead of the regular one.
    Lena Stepanova

    Lena Stepanova

    1 year ago
    Thank you! Your set works great 🙂 We also had to upgrade sqlDelight version to 1.5.0
    Charles Prado

    Charles Prado

    1 year ago
    Glad to hear that 😉