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

tylerwilson

03/21/2024, 11:42 PM
Trying to use the new KMP lifecycle 2.8.0-alpha03 in common code, and I get this error when building iOS app:
Copy code
Showing Recent Messages
No matching variant of org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3 was found. The consumer was configured to find a library for use during 'kotlin-api', preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native', attribute 'org.jetbrains.kotlin.native.target' with value 'ios_simulator_arm64' but:
Any hints on how to resolve this? I put the implementation in my commonMain sourceSet. Thanks!
b

Ben Abramovitch

03/22/2024, 1:14 AM
Hey, just FYI I was asking about a different problem in the compose-ios channel because I couldn't access a LifecycleOwner so I couldn't make iOS work. Turns out, it's not implemented yet, so it won't work. So even if you resolve this, you probably won't be able to do what you were wanting to do. https://kotlinlang.slack.com/archives/C0346LWVBJ4/p1711057437325129
t

tylerwilson

03/22/2024, 1:15 AM
Thank you for the input. Guess they ought to be more precise when they say KMP… :-)
b

Ben Abramovitch

03/22/2024, 1:16 AM
Well, it is an alpha, so I can forgive it not being fully implemented heh
they are working on it though!
👍 1
7 Views