https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
c

Charles Prado

05/30/2021, 2:35 PM
Hello everyone I started receiving this error message while trying to compile the iOS app:
Copy code
> 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?
l

Lena Stepanova

06/11/2021, 11:33 AM
Hi Charles, have you found a solution? We have the same problem. What versions of coroutines, ktor, kotlin and serialization do you use?
c

Charles Prado

06/11/2021, 4:49 PM
Hey Lena. We fixed it by using this set of configurations:
Copy code
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.
l

Lena Stepanova

06/13/2021, 10:06 AM
Thank you! Your set works great 🙂 We also had to upgrade sqlDelight version to 1.5.0
c

Charles Prado

06/13/2021, 10:08 AM
Glad to hear that 😉
3 Views