Skip to content

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