can anyone help me with this? ```> Task :shared...
# multiplatform
m
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
Do you use kotlin coroutines 1.6.0?
m
yes
and kotlin 1.6.10
ktor 1.6.8
h
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
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
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.