Trying to use the new KMP lifecycle <2.8.0-alpha03...
# multiplatform
t
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
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
Thank you for the input. Guess they ought to be more precise when they say KMP… :-)
b
Well, it is an alpha, so I can forgive it not being fully implemented heh
they are working on it though!
đź‘Ť 1