Hello everyone I started receiving this error mes...
# multiplatform
c
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
Hi Charles, have you found a solution? We have the same problem. What versions of coroutines, ktor, kotlin and serialization do you use?
c
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
Thank you! Your set works great 🙂 We also had to upgrade sqlDelight version to 1.5.0
c
Glad to hear that 😉