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

iOS Doesn't build with kotlin 2.1.0 and voyager 1.1.0-beta03 or lower #515

Open
zeeshanali-k opened this issue Dec 2, 2024 · 3 comments

Comments

@zeeshanali-k
Copy link

zeeshanali-k commented Dec 2, 2024

When I set my KMP project's Kotlin version to 2.1.0 and then run the iOS build I get following error, although if I set the kotlin version to lower than that like 2.0.21, everything works fine.
Also setting cacheKind=none doesn't work.
So please support Kotlin 2.1.0 ASAP, as the lower versions of kotlin don't support the latest xcode, so I am currently using xcode 15 and often switching between 16 and 15. Just because of this voyager error.

error: Failed to build cache for /{root}/.gradle/caches/modules-2/files-2.1/cafe.adriel.voyager/voyager-koin-iossimulatorarm64/1.1.0-beta03/5b6d910be8bdced3277bf6e86300f0790ddc4209/voyager-koin.
As a workaround, please try to disable compiler caches (kotlin.native.cacheKind=none)

@dzmpr
Copy link

dzmpr commented Dec 2, 2024

I updated kotlin to 2.1.0 in #514

@griffinsorrentino
Copy link
Contributor

When I set my KMP project's Kotlin version to 2.1.0 and then run the iOS build I get following error, although if I set the kotlin version to lower than that like 2.0.21, everything works fine. Also setting cacheKind=none doesn't work. So please support Kotlin 2.1.0 ASAP, as the lower versions of kotlin don't support the latest xcode, so I am currently using xcode 15 and often switching between 16 and 15. Just because of this voyager error.

error: Failed to build cache for /{root}/.gradle/caches/modules-2/files-2.1/cafe.adriel.voyager/voyager-koin-iossimulatorarm64/1.1.0-beta03/5b6d910be8bdced3277bf6e86300f0790ddc4209/voyager-koin. As a workaround, please try to disable compiler caches (kotlin.native.cacheKind=none)

@zeeshanali-k Removing the voyager koin dependency and recreating the koinScreenModel(...) function will fix your issue

I updated kotlin to 2.1.0 in #514

@dzmpr Your branch does not fix the issue

@dzmpr
Copy link

dzmpr commented Dec 13, 2024

Your branch does not fix the issue

I'm not intended to fix this problem. @zeeshanali-k requested to update kotlin in project and I just highlighted that this was done in my PR.

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

3 participants