Kotlin coroutines latest version 1.6. 1 not compat...
# multiplatform
v
Kotlin coroutines latest version 1.6. 1 not compatible with iOS in kmm
j
@vishal G you'll probably need to expand on that to have much chance of getting answer. One thing though I'd say is that if you are using "normal" 1.6. version of kotlnx coroutines then you'll likely need to enable new memory model....otherwise you'll probably need to use
native-mt
version
👍 1
v
1.5.0-nativemt is working
But if I change to 1.6.1 getting build issues
just tried in xcode > Task sharedcompileKotlinIosX64 FAILED w: skipping /Users/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-core-iosx64/1.6.1/709d4126040d45401827a80c7bba9e2843bbec5b/kotlinx-coroutines-core.klib. Incompatible abi version. The current default is '1.5.0', found '1.6.0'. The library produced by 1.6.0 compiler e: Could not find /kotlinx-coroutines-core-iosx64/1.6.1/709d4126040d45401827a80c7bba9e2843bbec5b/kotlinx-coroutines-core.klib" in [/.konan/kotlin-native-prebuilt-macos-aarch64-1.5.31/klib/common, /Userskonan/kotlin-native-prebuilt-macos-aarch64-1.5.31/klib/platform/ios_x64] FAILURE: Build failed with an exception. * What went wrong: Execution failed for task 'sharedcompileKotlinIosX64'. > Compilation finished with errors
j
what version of Kotlin are you using?
you'll need to use 1.6.x if using that version of kotlinx coroutines I believe
v
1.6
j
stack trace above referring to
1.5.31
for some reason
f
i see this thread is 4 months old, but did you solve this issue @vishal G? I’m seeing almost the same thing with
Incompatible abi version. The current default is '1.5.0'
and the
1.5.30
reference, but i have Kotlin v1.7.10 defined. Nowhere do I use
1.5.30