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

Fix compose-ios build error #140

Merged
merged 1 commit into from
Jun 14, 2022
Merged

Fix compose-ios build error #140

merged 1 commit into from
Jun 14, 2022

Conversation

TaehoonLeee
Copy link
Contributor

Add below code at gradle.properties

kotlin.native.cacheKind=none

Resolve #137

@joreilly
Copy link
Owner

Do you know why this is needed? I'm running here without it and seems ok. Also concerned this might affect build time for general Kotlin/Native builds. I see https://kotlinlang.org/docs/native-improving-compilation-time.html mentions for example

"There are properties that disable the Gradle daemon and compiler caches – kotlin.native.disableCompilerDaemon=true and kotlin.native.cacheKind=none. If you had issues with these features before and added these lines to your gradle.properties or Gradle arguments, remove them and check whether the build completes successfully. It is possible that these properties were added previously to work around issues that have already been fixed."

@TaehoonLeee
Copy link
Contributor Author

TaehoonLeee commented Jun 14, 2022

I have two kinds of MacBooks, Apple Silicon MacBooks(m1) worked without that code, but Intel MacBooks didn't.

The following errors continued to occur before adding that code.

e: Module "org.jetbrains.compose.runtime:runtime-saveable (org.jetbrains.compose.runtime:runtime-saveable-uikitx64)" has a reference to symbol androidx.compose.runtime/remember|-2215966373931868872[0]. Neither the module itself nor its dependencies contain such declaration.

However, when I added kotlin.native.cacheKind=none, there was no error and it worked normally.

@joreilly joreilly merged commit 07b3263 into joreilly:main Jun 14, 2022
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

Successfully merging this pull request may close these issues.

Usage of compose-ios
2 participants