https://kotlinlang.org logo
Title
v

vishal G

05/10/2022, 7:27 AM
Kotlin coroutines latest version 1.6. 1 not compatible with iOS in kmm
j

John O'Reilly

05/10/2022, 8:14 AM
@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

vishal G

05/10/2022, 8:28 AM
1.5.0-nativemt is working
But if I change to 1.6.1 getting build issues
just tried in xcode > Task 😒hared:compileKotlinIosX64 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 '😒hared:compileKotlinIosX64'. > Compilation finished with errors
j

John O'Reilly

05/10/2022, 8:30 AM
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

vishal G

05/10/2022, 8:30 AM
1.6
j

John O'Reilly

05/10/2022, 8:31 AM
stack trace above referring to
1.5.31
for some reason
f

fvink

09/22/2022, 3:44 PM
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