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

[BUG] iOS Compile failed #348

Closed
briandr97 opened this issue Jul 12, 2024 · 4 comments
Closed

[BUG] iOS Compile failed #348

briandr97 opened this issue Jul 12, 2024 · 4 comments

Comments

@briandr97
Copy link

Describe the bug
I really want to use PreCompose for navigation.
On android it works well but when I compile on xcode, compile is failed.
In my main project, I get several compile errors.
KLIB resolver: Could not find "molecule:molecule-runtime" in [/Users/brian/AndroidStudioProjects/Fitapat/composeApp, /Users/brian/.konan/klib, /Users/brian/.konan/kotlin-native-prebuilt-macos-aarch64-2.0.0/klib/common, /Users/brian/.konan/kotlin-native-prebuilt-macos-aarch64-2.0.0/klib/platform/ios_simulator_arm64]

Process 'command '/Library/Java/JavaVirtualMachines/{java version}/Contents/Home/bin/java'' finished with non-zero exit value 1

I changed my java version three times (11, 17, 22) But all failed.
I can't find the reason (maybe I guess it is because of other dependencies).

So I make new Project to find what dependency is wrong.
But iOS compile error occurred like this image.
image

To Reproduce
Please help me 🙏🙏
I've been suffering from this problem for several days.

@Tlaster
Copy link
Owner

Tlaster commented Jul 15, 2024

If you're using precompose-molecule, make sure you've setup molecule dependency correctly https://github.com/cashapp/molecule

@briandr97
Copy link
Author

@Tlaster
I only add api("moe.tlaster:precompose:1.6.1") not molecule, and I just got following errors 😭
image

And these are my commonMain dependencies
image
image

@Tlaster
Copy link
Owner

Tlaster commented Jul 16, 2024

Might be the same error with #342

@briandr97
Copy link
Author

Thank you for your answer!! error is fixed!!

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

2 participants