Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiplatform app Compilation error #2003

Closed
DmitriSerhienko opened this issue Sep 25, 2024 · 7 comments
Closed

Multiplatform app Compilation error #2003

DmitriSerhienko opened this issue Sep 25, 2024 · 7 comments

Comments

@DmitriSerhienko
Copy link

Hi i use for KMP project Koin and in version koin = "4.0.0" have a problem with compilation on ios, but on koin = "4.0.0-RC1" all works fine.

agp = "8.3.0"
ksp = "2.0.20-1.0.25"
kotlin = "2.0.20"
koin = "4.0.0"

and this 3 libraries:
koin-core = { module = "io.insert-koin:koin-core", version.ref = "koin" }
koin-compose = { module = "io.insert-koin:koin-compose", version.ref = "koin"}
koin-composeVM = { module = "io.insert-koin:koin-compose-viewmodel", version.ref = "koin" }

Compilation error:

Task :composeApp:kspKotlinIosSimulatorArm64 FAILED
error: KLIB resolver: Could not find "com.benasher44:uuid" in [/Users/customer/AndroidStudioProjects/globinomultiplatform, /Users/customer/.konan/klib, /Users/customer/.konan/kotlin-native-prebuilt-macos-aarch64-2.0.20/klib/common, /Users/customer/.konan/kotlin-native-prebuilt-macos-aarch64-2.0.20/klib/platform/ios_simulator_arm64]

@ykws
Copy link

ykws commented Sep 27, 2024

@DmitriSerhienko Thank you for your report.

The difference between version 4.0.0 and 4.0.0-RC1 can be seen in the following comparison:

https://github.com/InsertKoinIO/koin/compare/4.0.0-RC1…4.0.0

One of the major changes in version 4.0.0, which I’d like to draw your attention to, is a commit that introduces Kotlin’s standard library UUID:

Screenshot 2024-09-27 at 9 42 57

926a7b6

Please check your application if you’re using com.benasher44:uuid.
It’s important to note that even if your project depends on another library that uses it, it can still be affected. For example, Kable relies on it.

When using Kotlin 2.0.20 along with Kotlin’s uuid library, including all relevant dependencies, everything should work fine.

@DmitriSerhienko
Copy link
Author

@ykws i don`t use anything by tag "Uuid" or "benasher44" in my project, but i detected this dependency in my genereted fraemwork on ios

@Tweener
Copy link

Tweener commented Sep 27, 2024

Hey @DmitriSerhienko, I'm facing the same problem you had, with Kotlin 2.0.20.
How did you detect this dependency in your generated iOS framework? And how did you solve it?
Thanks!

@DmitriSerhienko
Copy link
Author

@Tweener I have problem in library mirzemehdi - KMPNotifier. After cleaning gradle, studio I check scope for "Uuid" and find this dependencies in genereted for ios package in and it was generated for KMPNotifier library.

@Tweener
Copy link

Tweener commented Sep 30, 2024

Thank you @DmitriSerhienko !
I just opened an issue on mirzemehdi/KMPNotifier in case you'd be interested.

@mirzemehdi
Copy link

@DmitriSerhienko @Tweener For now temporary solution would be to add uuid library into your gradle file

implementation("com.benasher44:uuid:0.8.4")

Meanwhile, I'll bump koin version and release new version of KMPNotifier

@Tweener
Copy link

Tweener commented Sep 30, 2024

Thanks a lot @mirzemehdi !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants