Closed allansts closed 3 days ago
Same issue here. Might this has something to do, with the switch to kotlin UUID? https://github.com/InsertKoinIO/koin/compare/4.0.0-RC1...4.0.0-RC2#:~:text=import%20kotlin.uuid.ExperimentalUuidApi
I'm facing the same issue.
You need Kotlin 2.0.20
, as we are now using KMP UUid feature
Facing same issue. KMP iOS not building after upgrading koin from 4.0.0-RC1 to 4.0.0-RC2. Kotlin version: 2.0.20 Ksp: 2.0.20-1.0.24
Showing The following message in xcode.
Showing All Messages
Task :composeApp:kspKotlinIosSimulatorArm64 FAILED e: KLIB resolver: Could not find "com.benasher44:uuid" in [/Users/elelan/StudioProjects//-app, /Users/elelan/.konan/klib, /Users/elelan/.konan/kotlin-native-prebuilt-macos-aarch64-2.0.20/klib/common, /Users/elelan/.konan/kotlin-native-prebuilt-macos-aarch64-2.0.20/klib/platform/ios_simulator_arm64]
can you reproduce it easily?
can you reproduce it easily?
@arnaudgiuliani Yep, you can set up the Koin with KMP and use it on iOS. 100% reproducible at least when I tried it with Kotlin 2.0.0
I tried it with Kotlin 2.0.20 and it worked correctly. It seems that it was indeed as you mentioned that the Kotlin UUID was not working with 2.0.0.
@allansts what Kotlin version do you have?
@allansts what Kotlin version do you have?
Kotlin 2.0.0, I will check it with Kotlin 2.0.20
Edited: I retest using Kotlin 2.0.20 and it is working fine so far. Thank you @arnaudgiuliani
Still reproducible for me. Android is working find. When building iOS only getting the error related to kotlin uuid. Could not find "com.benasher44:uuid"
Kotlin 2.0.20
KSP 2.0.20-1.0.25
Koin 4.0.0-RC2
Still reproducible for me. Android is working find. When building iOS only getting the error related to kotlin uuid.
Could not find "com.benasher44:uuid"
Kotlin 2.0.20 KSP 2.0.20-1.0.25 Koin 4.0.0-RC2
Weird 🤔 I can ping JB team about that. I will try to reproduce it 👍
I removed unused ref to com.benasher44:uuid
. Now we are using Kotlin.uuid:
fun KoinPlatformTools.generateId() : String = Uuid.random().toString()
Look if you have a static reference to that kind of UUID object from previous com.benasher44:uuid
- commit 23fcf1cbd4a025929f8b75ebad5d5c705bf0a9ba
I could run this on iOS and generate UUID. No problem.
Reopen if you see anything regarding this topic, in next releases 👍
Describe the bug When updating Koin from 4.0.0-RC1 to 4.0.0-RC2 when initialising the Koin in iOS this error happens:
To Reproduce Steps to reproduce the behavior:
Expected behavior Initialise normally as the previous version
Koin module and version: koin = "4.0.0-RC2"
Snippet or Sample project to help reproduce Just follow the Koin KMP website sample: https://insert-koin.io/docs/reference/koin-mp/kmp