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

Marko Novakovic

03/21/2022, 6:04 PM
can anyone help me with this?
Copy code
> Task :shared:linkDebugFrameworkIosSimulatorArm64 FAILED
e: Module "io.ktor:ktor-network (io.ktor:ktor-network-iossimulatorarm64)" has a reference to symbol kotlinx.coroutines/SingleThreadDispatcher|null[0]. Neither the module itself nor its dependencies contain such declaration.

This could happen if the required dependency is missing in the project. Or if there is a dependency of "io.ktor:ktor-network (io.ktor:ktor-network-iossimulatorarm64)" that has a different version in the project than the version that "io.ktor:ktor-network (io.ktor:ktor-network-iossimulatorarm64): 1.6.8" was initially compiled with. Please check that the project configuration is correct and has consistent versions of all required dependencies.
I just added dependencies for ktor as per instructions for ktor kmm
h

hfhbd

03/21/2022, 6:09 PM
Do you use kotlin coroutines 1.6.0?
m

Marko Novakovic

03/21/2022, 6:17 PM
yes
and kotlin 1.6.10
ktor 1.6.8
h

hfhbd

03/21/2022, 6:21 PM
You have to use
1.5.2-native-mt
, see also: https://youtrack.jetbrains.com/issue/KTOR-3562
or maybe
1.6.0-native-mt
m

Marko Novakovic

03/21/2022, 6:49 PM
thank you very much. I was struggling with this for way too long 😄
actually it’s still not working
it worked at first but now I have error again
wtf
n

nevardreik

03/22/2022, 6:55 AM
Are you building for Apple Silicon? support has only been added to ktor 2.0 beta 1, but there is issues with ktor-network module I believe which can only be addressed once Kotlin 1.6.20 is released.
22 Views