jean
09/21/2021, 9:06 AMkotlin.IllegalStateException: There is no event loop. Use runBlocking { ... } to start one.
Osman Saral
09/21/2021, 9:08 AMDispatchers.Default
?okarm
09/21/2021, 9:31 AM-native-mt
dependency on native targets.
val iosMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core") {
version {
strictly("${Libs.KotlinX.Coroutines.version}-native-mt")
}
}
}
}
jean
09/21/2021, 9:34 AMDispatchers.Default
and someone answering to not use Main since it’s not available for native, unless using native-mt. I’ll revert to the main dispatcher + native-mt and give it a go, thanks 🙂okarm
09/21/2021, 9:34 AMrunTest
function launches on Main
https://github.com/touchlab/KaMPKit/blob/main/shared/src/iosTest/kotlin/co/touchlab/kampkit/BaseTest.ktjean
09/21/2021, 9:35 AMokarm
09/21/2021, 9:38 AMleandro
09/22/2021, 12:49 PMjean
10/20/2021, 7:25 AMCould not resolve all files for configuration ':iosCompileKlibraries'.
> Could not resolve org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2.
There is no event loop. Use runBlocking { ... } to start one.
error