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

Error building a sample app for iOS - Module runtime-saveable has a reference to symbol androidx.compose.runtime/remember|-2215966373931868872[0] #2046

Closed
arkivanov opened this issue May 1, 2022 · 10 comments
Assignees

Comments

@arkivanov
Copy link
Contributor

I'm trying to add support of Compose for iOS to the Decompose Counter sample. The app runs just fine using the task iosDeployIPhone12ProDebug. However ./gradlew build fails with the following error.

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.

Kotlin: 1.6.21
Gradle: 7.3.3
Compose: 1.2.0-alpha01-dev675

Details
> Task :sample:counter:app-darwin-compose:linkDebugExecutableUikitX64
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.

This could happen if the required dependency is missing in the project. Or if there is a dependency of "org.jetbrains.compose.runtime:runtime-saveable (org.jetbrains.compose.runtime:runtime-saveable-uikitx64)" that has a different version in the project than the version that "org.jetbrains.compose.runtime:runtime-saveable (org.jetbrains.compose.runtime:runtime-saveable-uikitx64): 1.2.0-alpha01-dev675" was initially compiled with. Please check that the project configuration is correct and has consistent versions of all required dependencies.

The list of "org.jetbrains.compose.runtime:runtime-saveable (org.jetbrains.compose.runtime:runtime-saveable-uikitx64): 1.2.0-alpha01-dev675" dependencies that may lead to conflicts:
1. "stdlib: 1.6.20" (was initially compiled with "stdlib: 1.6.0")
2. "org.jetbrains.kotlin.native.platform.CoreFoundation: 1.6.20" (was initially compiled with "org.jetbrains.kotlin.native.platform.CoreFoundation: 1.6.0")
3. "org.jetbrains.kotlin.native.platform.darwin: 1.6.20" (was initially compiled with "org.jetbrains.kotlin.native.platform.darwin: 1.6.0")
4. "org.jetbrains.kotlin.native.platform.posix: 1.6.20" (was initially compiled with "org.jetbrains.kotlin.native.platform.posix: 1.6.0")
5. "org.jetbrains.kotlinx:atomicfu (org.jetbrains.kotlinx:atomicfu-iosx64): 0.17.2" (was initially compiled with "org.jetbrains.kotlinx:atomicfu (org.jetbrains.kotlinx:atomicfu-iosx64): 0.17.0")
6. "org.jetbrains.kotlinx:kotlinx-coroutines-core (org.jetbrains.kotlinx:kotlinx-coroutines-core-iosx64): 1.6.0" (was initially compiled with "org.jetbrains.kotlinx:kotlinx-coroutines-core (org.jetbrains.kotlinx:kotlinx-coroutines-core-iosx64)")

Project dependencies:
+--- org.jetbrains.compose.foundation:foundation (org.jetbrains.compose.foundation:foundation-uikitx64): 1.2.0-alpha01-dev675
|    +--- org.jetbrains.compose.animation:animation (org.jetbrains.compose.animation:animation-uikitx64): 1.2.0-alpha01-dev675
|    |    +--- org.jetbrains.compose.animation:animation-core (org.jetbrains.compose.animation:animation-core-uikitx64): 1.2.0-alpha01-dev675
|    |    |    +--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.0-alpha01-dev675
|    |    |    |    +--- stdlib: 1.6.21 -> 1.6.20
|    |    |    |    +--- org.jetbrains.kotlin.native.platform.CoreFoundation: 1.6.21 -> 1.6.20
|    |    |    |    |    +--- stdlib: 1.6.20
|    |    |    |    |    +--- org.jetbrains.kotlin.native.platform.darwin: 1.6.20
|    |    |    |    |    |    +--- stdlib: 1.6.20
|    |    |    |    |    |    \--- org.jetbrains.kotlin.native.platform.posix: 1.6.20
|    |    |    |    |    |         \--- stdlib: 1.6.20
|    |    |    |    |    \--- org.jetbrains.kotlin.native.platform.posix: 1.6.20 (*)
|    |    |    |    +--- org.jetbrains.kotlin.native.platform.darwin: 1.6.21 -> 1.6.20 (*)
|    |    |    |    +--- org.jetbrains.kotlin.native.platform.posix: 1.6.21 -> 1.6.20 (*)
|    |    |    |    +--- org.jetbrains.kotlinx:atomicfu (org.jetbrains.kotlinx:atomicfu-iosx64): 0.17.2
|    |    |    |    |    +--- stdlib: 1.6.20
|    |    |    |    |    +--- org.jetbrains.kotlin.native.platform.posix: 1.6.20 (*)
|    |    |    |    |    \--- org.jetbrains.kotlinx:atomicfu-cinterop-interop: 0.17.2
|    |    |    |    |         +--- stdlib: 1.6.20
|    |    |    |    |         \--- org.jetbrains.kotlin.native.platform.posix: 1.6.20 (*)
|    |    |    |    +--- org.jetbrains.kotlinx:atomicfu-cinterop-interop: 0.17.2 (*)
|    |    |    |    \--- org.jetbrains.kotlinx:kotlinx-coroutines-core (org.jetbrains.kotlinx:kotlinx-coroutines-core-iosx64): 1.6.0
|    |    |    |         +--- stdlib: 1.6.0 -> 1.6.20
|    |    |    |         +--- org.jetbrains.kotlin.native.platform.CoreFoundation: 1.6.0 -> 1.6.20 (*)
|    |    |    |         +--- org.jetbrains.kotlin.native.platform.darwin: 1.6.0 -> 1.6.20 (*)
|    |    |    |         +--- org.jetbrains.kotlin.native.platform.posix: 1.6.0 -> 1.6.20 (*)
|    |    |    |         +--- org.jetbrains.kotlinx:atomicfu (org.jetbrains.kotlinx:atomicfu-iosx64): 0.17.0 -> 0.17.2 (*)
|    |    |    |         \--- org.jetbrains.kotlinx:atomicfu-cinterop-interop: 0.17.2 (*)
|    |    |    +--- org.jetbrains.compose.ui:ui (org.jetbrains.compose.ui:ui-uikitx64): 1.2.0-alpha01-dev675
|    |    |    |    +--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.0-alpha01-dev675 (*)
|    |    |    |    +--- org.jetbrains.compose.runtime:runtime-saveable (org.jetbrains.compose.runtime:runtime-saveable-uikitx64): 1.2.0-alpha01-dev675
|    |    |    |    |    ^^^ This module requires symbol androidx.compose.runtime/remember|-2215966373931868872[0].
|    |    |    |    |    +--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.0-alpha01-dev675 (*)
|    |    |    |    |    +--- stdlib: 1.6.21 -> 1.6.20
|    |    |    |    |    +--- org.jetbrains.kotlin.native.platform.CoreFoundation: 1.6.21 -> 1.6.20 (*)
|    |    |    |    |    +--- org.jetbrains.kotlin.native.platform.darwin: 1.6.21 -> 1.6.20 (*)
|    |    |    |    |    +--- org.jetbrains.kotlin.native.platform.posix: 1.6.21 -> 1.6.20 (*)
|    |    |    |    |    +--- org.jetbrains.kotlinx:atomicfu (org.jetbrains.kotlinx:atomicfu-iosx64): unknown -> 0.17.2 (*)
|    |    |    |    |    +--- org.jetbrains.kotlinx:atomicfu-cinterop-interop: 0.17.2 (*)
|    |    |    |    |    \--- org.jetbrains.kotlinx:kotlinx-coroutines-core (org.jetbrains.kotlinx:kotlinx-coroutines-core-iosx64): unknown -> 1.6.0 (*)
|    |    |    |    +--- org.jetbrains.compose.ui:ui-geometry (org.jetbrains.compose.ui:ui-geometry-uikitx64): 1.2.0-alpha01-dev675
|    |    |    |    |    +--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.0-alpha01-dev675 (*)
|    |    |    |    |    \--- org.jetbrains.compose.ui:ui-util (org.jetbrains.compose.ui:ui-util-uikitx64): 1.2.0-alpha01-dev675
|    |    |    |    +--- org.jetbrains.compose.ui:ui-graphics (org.jetbrains.compose.ui:ui-graphics-uikitx64): 1.2.0-alpha01-dev675
|    |    |    |    |    +--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.0-alpha01-dev675 (*)
|    |    |    |    |    +--- org.jetbrains.compose.ui:ui-unit (org.jetbrains.compose.ui:ui-unit-uikitx64): 1.2.0-alpha01-dev675
|    |    |    |    |    |    +--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.0-alpha01-dev675 (*)
|    |    |    |    |    |    +--- org.jetbrains.compose.ui:ui-geometry (org.jetbrains.compose.ui:ui-geometry-uikitx64): 1.2.0-alpha01-dev675 (*)
|    |    |    |    |    |    \--- org.jetbrains.compose.ui:ui-util (org.jetbrains.compose.ui:ui-util-uikitx64): 1.2.0-alpha01-dev675
|    |    |    |    |    +--- org.jetbrains.compose.ui:ui-util (org.jetbrains.compose.ui:ui-util-uikitx64): 1.2.0-alpha01-dev675
|    |    |    |    |    \--- org.jetbrains.skiko:skiko (org.jetbrains.skiko:skiko-iosx64): 0.7.16
|    |    |    |    |         +--- org.jetbrains.kotlin:kotlin-stdlib: 1.6.10
|    |    |    |    |         |    \--- org.jetbrains:annotations: 13.0
|    |    |    |    |         \--- org.jetbrains.kotlinx:kotlinx-coroutines-core (org.jetbrains.kotlinx:kotlinx-coroutines-core-iosx64): 1.5.2 -> 1.6.0 (*)
|    |    |    |    +--- org.jetbrains.compose.ui:ui-text (org.jetbrains.compose.ui:ui-text-uikitx64): 1.2.0-alpha01-dev675
|    |    |    |    |    +--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.0-alpha01-dev675 (*)
|    |    |    |    |    +--- org.jetbrains.compose.runtime:runtime-saveable (org.jetbrains.compose.runtime:runtime-saveable-uikitx64): 1.2.0-alpha01-dev675 (*)
|    |    |    |    |    |    ^^^ This module requires symbol androidx.compose.runtime/remember|-2215966373931868872[0].
|    |    |    |    |    +--- org.jetbrains.compose.ui:ui-graphics (org.jetbrains.compose.ui:ui-graphics-uikitx64): 1.2.0-alpha01-dev675 (*)
|    |    |    |    |    +--- org.jetbrains.compose.ui:ui-unit (org.jetbrains.compose.ui:ui-unit-uikitx64): 1.2.0-alpha01-dev675 (*)
|    |    |    |    |    +--- org.jetbrains.compose.ui:ui-util (org.jetbrains.compose.ui:ui-util-uikitx64): 1.2.0-alpha01-dev675
|    |    |    |    |    +--- org.jetbrains.skiko:skiko (org.jetbrains.skiko:skiko-iosx64): 0.7.16 (*)
|    |    |    |    |    +--- org.jetbrains.kotlinx:atomicfu (org.jetbrains.kotlinx:atomicfu-iosx64): 0.17.2 (*)
|    |    |    |    |    \--- org.jetbrains.kotlinx:kotlinx-coroutines-core (org.jetbrains.kotlinx:kotlinx-coroutines-core-iosx64): 1.6.0 (*)
|    |    |    |    +--- org.jetbrains.compose.ui:ui-unit (org.jetbrains.compose.ui:ui-unit-uikitx64): 1.2.0-alpha01-dev675 (*)
|    |    |    |    +--- org.jetbrains.compose.ui:ui-util (org.jetbrains.compose.ui:ui-util-uikitx64): 1.2.0-alpha01-dev675
|    |    |    |    +--- org.jetbrains.skiko:skiko (org.jetbrains.skiko:skiko-iosx64): 0.7.16 (*)
|    |    |    |    +--- org.jetbrains.kotlinx:atomicfu (org.jetbrains.kotlinx:atomicfu-iosx64): 0.17.2 (*)
|    |    |    |    \--- org.jetbrains.kotlinx:kotlinx-coroutines-core (org.jetbrains.kotlinx:kotlinx-coroutines-core-iosx64): 1.6.0 (*)
|    |    |    +--- org.jetbrains.compose.ui:ui-unit (org.jetbrains.compose.ui:ui-unit-uikitx64): 1.2.0-alpha01-dev675 (*)
|    |    |    +--- org.jetbrains.compose.ui:ui-util (org.jetbrains.compose.ui:ui-util-uikitx64): 1.2.0-alpha01-dev675
|    |    |    \--- org.jetbrains.kotlinx:kotlinx-coroutines-core (org.jetbrains.kotlinx:kotlinx-coroutines-core-iosx64): 1.6.0 (*)
|    |    +--- org.jetbrains.compose.foundation:foundation-layout (org.jetbrains.compose.foundation:foundation-layout-uikitx64): 1.2.0-alpha01-dev675
|    |    |    +--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.0-alpha01-dev675 (*)
|    |    |    +--- org.jetbrains.compose.ui:ui (org.jetbrains.compose.ui:ui-uikitx64): 1.2.0-alpha01-dev675 (*)
|    |    |    \--- org.jetbrains.compose.ui:ui-util (org.jetbrains.compose.ui:ui-util-uikitx64): 1.2.0-alpha01-dev675
|    |    +--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.0-alpha01-dev675 (*)
|    |    +--- org.jetbrains.compose.ui:ui (org.jetbrains.compose.ui:ui-uikitx64): 1.2.0-alpha01-dev675 (*)
|    |    +--- org.jetbrains.compose.ui:ui-geometry (org.jetbrains.compose.ui:ui-geometry-uikitx64): 1.2.0-alpha01-dev675 (*)
|    |    \--- org.jetbrains.compose.ui:ui-util (org.jetbrains.compose.ui:ui-util-uikitx64): 1.2.0-alpha01-dev675
|    +--- org.jetbrains.compose.foundation:foundation-layout (org.jetbrains.compose.foundation:foundation-layout-uikitx64): 1.2.0-alpha01-dev675 (*)
|    +--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.0-alpha01-dev675 (*)
|    +--- org.jetbrains.compose.ui:ui (org.jetbrains.compose.ui:ui-uikitx64): 1.2.0-alpha01-dev675 (*)
|    +--- org.jetbrains.compose.ui:ui-text (org.jetbrains.compose.ui:ui-text-uikitx64): 1.2.0-alpha01-dev675 (*)
|    +--- org.jetbrains.compose.ui:ui-util (org.jetbrains.compose.ui:ui-util-uikitx64): 1.2.0-alpha01-dev675
|    \--- org.jetbrains.skiko:skiko (org.jetbrains.skiko:skiko-iosx64): 0.7.16 (*)
\--- org.jetbrains.compose.material:material (org.jetbrains.compose.material:material-uikitx64): 1.2.0-alpha01-dev675
     +--- org.jetbrains.compose.animation:animation (org.jetbrains.compose.animation:animation-uikitx64): 1.2.0-alpha01-dev675 (*)
     +--- org.jetbrains.compose.animation:animation-core (org.jetbrains.compose.animation:animation-core-uikitx64): 1.2.0-alpha01-dev675 (*)
     +--- org.jetbrains.compose.foundation:foundation (org.jetbrains.compose.foundation:foundation-uikitx64): 1.2.0-alpha01-dev675 (*)
     +--- org.jetbrains.compose.foundation:foundation-layout (org.jetbrains.compose.foundation:foundation-layout-uikitx64): 1.2.0-alpha01-dev675 (*)
     +--- org.jetbrains.compose.material:material-icons-core (org.jetbrains.compose.material:material-icons-core-uikitx64): 1.2.0-alpha01-dev675
     |    \--- org.jetbrains.compose.ui:ui (org.jetbrains.compose.ui:ui-uikitx64): 1.2.0-alpha01-dev675 (*)
     +--- org.jetbrains.compose.material:material-ripple (org.jetbrains.compose.material:material-ripple-uikitx64): 1.2.0-alpha01-dev675
     |    +--- org.jetbrains.compose.animation:animation (org.jetbrains.compose.animation:animation-uikitx64): 1.2.0-alpha01-dev675 (*)
     |    +--- org.jetbrains.compose.foundation:foundation (org.jetbrains.compose.foundation:foundation-uikitx64): 1.2.0-alpha01-dev675 (*)
     |    +--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.0-alpha01-dev675 (*)
     |    \--- org.jetbrains.compose.ui:ui-util (org.jetbrains.compose.ui:ui-util-uikitx64): 1.2.0-alpha01-dev675
     +--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.0-alpha01-dev675 (*)
     +--- org.jetbrains.compose.ui:ui (org.jetbrains.compose.ui:ui-uikitx64): 1.2.0-alpha01-dev675 (*)
     +--- org.jetbrains.compose.ui:ui-text (org.jetbrains.compose.ui:ui-text-uikitx64): 1.2.0-alpha01-dev675 (*)
     \--- org.jetbrains.compose.ui:ui-util (org.jetbrains.compose.ui:ui-util-uikitx64): 1.2.0-alpha01-dev675

(*) - dependencies omitted (listed previously)

> Task :sample:counter:app-darwin-compose:linkDebugExecutableUikitX64 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':sample:counter:app-darwin-compose:linkDebugExecutableUikitX64'.
> Process 'command '/Users/arkivanov/Downloads/zulu11.54.25-ca-jdk11.0.14.1-macosx_x64/zulu-11.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
</details>
@arkivanov
Copy link
Contributor Author

The workaround is to add kotlin.native.cacheKind=none to gradle.properties.

@multiport
Copy link

multiport commented Jan 1, 2023

Hello Ive this error with compose 1.2.2 , the workaround ( kotlin.native.cacheKind=none to gradle.properties) didnt not work

> Task :shared:compileKotlinIosX64 UP-TO-DATE

> Task :shared:linkDebugFrameworkIosX64 FAILED
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.

This could happen if the required dependency is missing in the project. Or if there is a dependency of "org.jetbrains.compose.runtime:runtime-saveable (org.jetbrains.compose.runtime:runtime-saveable-uikitx64)" that has a different version in the project than the version that "org.jetbrains.compose.runtime:runtime-saveable (org.jetbrains.compose.runtime:runtime-saveable-uikitx64): 1.2.2" was initially compiled with. Please check that the project configuration is correct and has consistent versions of all required dependencies.

The list of "org.jetbrains.compose.runtime:runtime-saveable (org.jetbrains.compose.runtime:runtime-saveable-uikitx64): 1.2.2" dependencies that may lead to conflicts:
1. "stdlib: 1.7.10" (was initially compiled with "stdlib: 1.6.20")
2. "org.jetbrains.kotlin.native.platform.CoreFoundation: 1.7.10" (was initially compiled with "org.jetbrains.kotlin.native.platform.CoreFoundation: 1.6.0")
3. "org.jetbrains.kotlin.native.platform.darwin: 1.7.10" (was initially compiled with "org.jetbrains.kotlin.native.platform.darwin: 1.6.0")
4. "org.jetbrains.kotlin.native.platform.posix: 1.7.10" (was initially compiled with "org.jetbrains.kotlin.native.platform.posix: 1.6.20")
5. "org.jetbrains.kotlinx:atomicfu (org.jetbrains.kotlinx:atomicfu-iosx64): 0.17.2" (was initially compiled with "org.jetbrains.kotlinx:atomicfu (org.jetbrains.kotlinx:atomicfu-iosx64): 0.17.0")
6. "org.jetbrains.kotlinx:kotlinx-coroutines-core (org.jetbrains.kotlinx:kotlinx-coroutines-core-iosx64): 1.6.1" (was initially compiled with "org.jetbrains.kotlinx:kotlinx-coroutines-core (org.jetbrains.kotlinx:kotlinx-coroutines-core-iosx64)")

Project dependencies:
+--- org.jetbrains.compose.foundation:foundation (org.jetbrains.compose.foundation:foundation-uikitx64): 1.2.2
|    +--- org.jetbrains.compose.animation:animation (org.jetbrains.compose.animation:animation-uikitx64): 1.2.2
|    |    +--- org.jetbrains.compose.animation:animation-core (org.jetbrains.compose.animation:animation-core-uikitx64): 1.2.2
|    |    |    +--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.2
|    |    |    |    +--- stdlib: 1.6.21 -> 1.7.10
|    |    |    |    +--- org.jetbrains.kotlin.native.platform.CoreFoundation: 1.6.21 -> 1.7.10
|    |    |    |    |    +--- stdlib: 1.7.10
|    |    |    |    |    +--- org.jetbrains.kotlin.native.platform.darwin: 1.7.10
|    |    |    |    |    |    +--- stdlib: 1.7.10
|    |    |    |    |    |    \--- org.jetbrains.kotlin.native.platform.posix: 1.7.10
|    |    |    |    |    |         \--- stdlib: 1.7.10
|    |    |    |    |    \--- org.jetbrains.kotlin.native.platform.posix: 1.7.10 (*)
|    |    |    |    +--- org.jetbrains.kotlin.native.platform.darwin: 1.6.21 -> 1.7.10 (*)
|    |    |    |    +--- org.jetbrains.kotlin.native.platform.posix: 1.6.21 -> 1.7.10 (*)
|    |    |    |    +--- org.jetbrains.kotlinx:atomicfu (org.jetbrains.kotlinx:atomicfu-iosx64): 0.17.2
|    |    |    |    |    +--- stdlib: 1.6.20 -> 1.7.10
|    |    |    |    |    +--- org.jetbrains.kotlin.native.platform.posix: 1.6.20 -> 1.7.10 (*)
|    |    |    |    |    \--- org.jetbrains.kotlinx:atomicfu-cinterop-interop: 0.17.2
|    |    |    |    |         +--- stdlib: 1.6.20 -> 1.7.10
|    |    |    |    |         \--- org.jetbrains.kotlin.native.platform.posix: 1.6.20 -> 1.7.10 (*)
|    |    |    |    +--- org.jetbrains.kotlinx:atomicfu-cinterop-interop: 0.17.2 (*)
|    |    |    |    \--- org.jetbrains.kotlinx:kotlinx-coroutines-core (org.jetbrains.kotlinx:kotlinx-coroutines-core-iosx64): 1.6.1
|    |    |    |         +--- stdlib: 1.6.0 -> 1.7.10
|    |    |    |         +--- org.jetbrains.kotlin.native.platform.CoreFoundation: 1.6.0 -> 1.7.10 (*)
|    |    |    |         +--- org.jetbrains.kotlin.native.platform.darwin: 1.6.0 -> 1.7.10 (*)
|    |    |    |         +--- org.jetbrains.kotlin.native.platform.posix: 1.6.0 -> 1.7.10 (*)
|    |    |    |         +--- org.jetbrains.kotlinx:atomicfu (org.jetbrains.kotlinx:atomicfu-iosx64): 0.17.0 -> 0.17.2 (*)
|    |    |    |         \--- org.jetbrains.kotlinx:atomicfu-cinterop-interop: 0.17.2 (*)
|    |    |    +--- org.jetbrains.compose.ui:ui (org.jetbrains.compose.ui:ui-uikitx64): 1.2.2
|    |    |    |    +--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.2 (*)
|    |    |    |    +--- org.jetbrains.compose.runtime:runtime-saveable (org.jetbrains.compose.runtime:runtime-saveable-uikitx64): 1.2.2
|    |    |    |    |    ^^^ This module requires symbol androidx.compose.runtime/remember|-2215966373931868872[0].
|    |    |    |    |    +--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.2 (*)
|    |    |    |    |    +--- stdlib: 1.6.21 -> 1.7.10
|    |    |    |    |    +--- org.jetbrains.kotlin.native.platform.CoreFoundation: 1.6.21 -> 1.7.10 (*)
|    |    |    |    |    +--- org.jetbrains.kotlin.native.platform.darwin: 1.6.21 -> 1.7.10 (*)
|    |    |    |    |    +--- org.jetbrains.kotlin.native.platform.posix: 1.6.21 -> 1.7.10 (*)
|    |    |    |    |    +--- org.jetbrains.kotlinx:atomicfu (org.jetbrains.kotlinx:atomicfu-iosx64): unknown -> 0.17.2 (*)
|    |    |    |    |    +--- org.jetbrains.kotlinx:atomicfu-cinterop-interop: 0.17.2 (*)
|    |    |    |    |    \--- org.jetbrains.kotlinx:kotlinx-coroutines-core (org.jetbrains.kotlinx:kotlinx-coroutines-core-iosx64): unknown -> 1.6.1 (*)
|    |    |    |    +--- org.jetbrains.compose.ui:ui-geometry (org.jetbrains.compose.ui:ui-geometry-uikitx64): 1.2.2
|    |    |    |    |    +--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.2 (*)
|    |    |    |    |    \--- org.jetbrains.compose.ui:ui-util (org.jetbrains.compose.ui:ui-util-uikitx64): 1.2.2
|    |    |    |    +--- org.jetbrains.compose.ui:ui-graphics (org.jetbrains.compose.ui:ui-graphics-uikitx64): 1.2.2
|    |    |    |    |    +--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.2 (*)
|    |    |    |    |    +--- org.jetbrains.compose.ui:ui-unit (org.jetbrains.compose.ui:ui-unit-uikitx64): 1.2.2
|    |    |    |    |    |    +--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.2 (*)
|    |    |    |    |    |    +--- org.jetbrains.compose.ui:ui-geometry (org.jetbrains.compose.ui:ui-geometry-uikitx64): 1.2.2 (*)
|    |    |    |    |    |    \--- org.jetbrains.compose.ui:ui-util (org.jetbrains.compose.ui:ui-util-uikitx64): 1.2.2
|    |    |    |    |    +--- org.jetbrains.compose.ui:ui-util (org.jetbrains.compose.ui:ui-util-uikitx64): 1.2.2
|    |    |    |    |    \--- org.jetbrains.skiko:skiko (org.jetbrains.skiko:skiko-iosx64): 0.7.37
|    |    |    |    |         +--- org.jetbrains.kotlin:kotlin-stdlib: 1.6.10
|    |    |    |    |         |    \--- org.jetbrains:annotations: 13.0
|    |    |    |    |         \--- org.jetbrains.kotlinx:kotlinx-coroutines-core (org.jetbrains.kotlinx:kotlinx-coroutines-core-iosx64): 1.5.2 -> 1.6.1 (*)
|    |    |    |    +--- org.jetbrains.compose.ui:ui-text (org.jetbrains.compose.ui:ui-text-uikitx64): 1.2.2
|    |    |    |    |    +--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.2 (*)
|    |    |    |    |    +--- org.jetbrains.compose.runtime:runtime-saveable (org.jetbrains.compose.runtime:runtime-saveable-uikitx64): 1.2.2 (*)
|    |    |    |    |    |    ^^^ This module requires symbol androidx.compose.runtime/remember|-2215966373931868872[0].
|    |    |    |    |    +--- org.jetbrains.compose.ui:ui-graphics (org.jetbrains.compose.ui:ui-graphics-uikitx64): 1.2.2 (*)
|    |    |    |    |    +--- org.jetbrains.compose.ui:ui-unit (org.jetbrains.compose.ui:ui-unit-uikitx64): 1.2.2 (*)
|    |    |    |    |    +--- org.jetbrains.compose.ui:ui-util (org.jetbrains.compose.ui:ui-util-uikitx64): 1.2.2
|    |    |    |    |    +--- org.jetbrains.skiko:skiko (org.jetbrains.skiko:skiko-iosx64): 0.7.37 (*)
|    |    |    |    |    +--- org.jetbrains.kotlinx:atomicfu (org.jetbrains.kotlinx:atomicfu-iosx64): 0.17.2 (*)
|    |    |    |    |    \--- org.jetbrains.kotlinx:kotlinx-coroutines-core (org.jetbrains.kotlinx:kotlinx-coroutines-core-iosx64): 1.6.1 (*)
|    |    |    |    +--- org.jetbrains.compose.ui:ui-unit (org.jetbrains.compose.ui:ui-unit-uikitx64): 1.2.2 (*)
|    |    |    |    +--- org.jetbrains.compose.ui:ui-util (org.jetbrains.compose.ui:ui-util-uikitx64): 1.2.2
|    |    |    |    +--- org.jetbrains.skiko:skiko (org.jetbrains.skiko:skiko-iosx64): 0.7.37 (*)
|    |    |    |    +--- org.jetbrains.kotlinx:atomicfu (org.jetbrains.kotlinx:atomicfu-iosx64): 0.17.2 (*)
|    |    |    |    \--- org.jetbrains.kotlinx:kotlinx-coroutines-core (org.jetbrains.kotlinx:kotlinx-coroutines-core-iosx64): 1.6.1 (*)
|    |    |    +--- org.jetbrains.compose.ui:ui-unit (org.jetbrains.compose.ui:ui-unit-uikitx64): 1.2.2 (*)
|    |    |    +--- org.jetbrains.compose.ui:ui-util (org.jetbrains.compose.ui:ui-util-uikitx64): 1.2.2
|    |    |    \--- org.jetbrains.kotlinx:kotlinx-coroutines-core (org.jetbrains.kotlinx:kotlinx-coroutines-core-iosx64): 1.6.1 (*)
|    |    +--- org.jetbrains.compose.foundation:foundation-layout (org.jetbrains.compose.foundation:foundation-layout-uikitx64): 1.2.2
|    |    |    +--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.2 (*)
|    |    |    +--- org.jetbrains.compose.ui:ui (org.jetbrains.compose.ui:ui-uikitx64): 1.2.2 (*)
|    |    |    \--- org.jetbrains.compose.ui:ui-util (org.jetbrains.compose.ui:ui-util-uikitx64): 1.2.2
|    |    +--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.2 (*)
|    |    +--- org.jetbrains.compose.ui:ui (org.jetbrains.compose.ui:ui-uikitx64): 1.2.2 (*)
|    |    +--- org.jetbrains.compose.ui:ui-geometry (org.jetbrains.compose.ui:ui-geometry-uikitx64): 1.2.2 (*)
|    |    \--- org.jetbrains.compose.ui:ui-util (org.jetbrains.compose.ui:ui-util-uikitx64): 1.2.2
|    +--- org.jetbrains.compose.foundation:foundation-layout (org.jetbrains.compose.foundation:foundation-layout-uikitx64): 1.2.2 (*)
|    +--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.2 (*)
|    +--- org.jetbrains.compose.ui:ui (org.jetbrains.compose.ui:ui-uikitx64): 1.2.2 (*)
|    +--- org.jetbrains.compose.ui:ui-text (org.jetbrains.compose.ui:ui-text-uikitx64): 1.2.2 (*)
|    +--- org.jetbrains.compose.ui:ui-util (org.jetbrains.compose.ui:ui-util-uikitx64): 1.2.2
|    \--- org.jetbrains.skiko:skiko (org.jetbrains.skiko:skiko-iosx64): 0.7.37 (*)
+--- org.jetbrains.compose.material:material (org.jetbrains.compose.material:material-uikitx64): 1.2.2
|    +--- org.jetbrains.compose.animation:animation (org.jetbrains.compose.animation:animation-uikitx64): 1.2.2 (*)
|    +--- org.jetbrains.compose.animation:animation-core (org.jetbrains.compose.animation:animation-core-uikitx64): 1.2.2 (*)
|    +--- org.jetbrains.compose.foundation:foundation (org.jetbrains.compose.foundation:foundation-uikitx64): 1.2.2 (*)
|    +--- org.jetbrains.compose.foundation:foundation-layout (org.jetbrains.compose.foundation:foundation-layout-uikitx64): 1.2.2 (*)
|    +--- org.jetbrains.compose.material:material-icons-core (org.jetbrains.compose.material:material-icons-core-uikitx64): 1.2.2
|    |    \--- org.jetbrains.compose.ui:ui (org.jetbrains.compose.ui:ui-uikitx64): 1.2.2 (*)
|    +--- org.jetbrains.compose.material:material-ripple (org.jetbrains.compose.material:material-ripple-uikitx64): 1.2.2
|    |    +--- org.jetbrains.compose.animation:animation (org.jetbrains.compose.animation:animation-uikitx64): 1.2.2 (*)
|    |    +--- org.jetbrains.compose.foundation:foundation (org.jetbrains.compose.foundation:foundation-uikitx64): 1.2.2 (*)
|    |    +--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.2 (*)
|    |    \--- org.jetbrains.compose.ui:ui-util (org.jetbrains.compose.ui:ui-util-uikitx64): 1.2.2
|    +--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.2 (*)
|    +--- org.jetbrains.compose.ui:ui (org.jetbrains.compose.ui:ui-uikitx64): 1.2.2 (*)
|    +--- org.jetbrains.compose.ui:ui-text (org.jetbrains.compose.ui:ui-text-uikitx64): 1.2.2 (*)
|    \--- org.jetbrains.compose.ui:ui-util (org.jetbrains.compose.ui:ui-util-uikitx64): 1.2.2
+--- org.jetbrains.compose.runtime:runtime (org.jetbrains.compose.runtime:runtime-uikitx64): 1.2.2 (*)
\--- org.jetbrains.compose.ui:ui (org.jetbrains.compose.ui:ui-uikitx64): 1.2.2 (*)

(*) - dependencies omitted (listed previously)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':shared:linkDebugFrameworkIosX64'.
> Compilation finished with errors

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
2 actionable tasks: 1 executed, 1 up-to-date
Command PhaseScriptExecution failed with a nonzero exit code


@dima-avdeev-jb
Copy link
Contributor

dima-avdeev-jb commented Jan 1, 2023

@multiport Can you please share a reproducible example of your issue on GitHub?

@dima-avdeev-jb dima-avdeev-jb self-assigned this Jan 1, 2023
@xxfast
Copy link

xxfast commented Mar 15, 2023

Have a reproducible example here xxfast/NYTimes-KMP@860ae44

I've disable the cache on subsequent commit which seems to fix this, but would like if we can keep the cache around

@zacharee
Copy link

zacharee commented Apr 2, 2023

I'm getting the same issue but with a macOS target. My project is here: https://github.com/zacharee/SamloaderKotlin.

It seems like it comes up as soon as ComposeLayer is referenced.

GisoBartels added a commit to GisoBartels/kaster that referenced this issue Apr 10, 2023
@mrf7
Copy link

mrf7 commented Apr 25, 2023

Ran into this as well and doing a gradle clean plus the no cache seemed to work for me

@mustfaibra
Copy link

Currently facing the same issue while trying running the app on iOS with with the error:

Module "org.jetbrains.compose.ui:ui (org.jetbrains.compose.ui:ui-uikitsimarm64)" has a reference to symbol androidx.compose.runtime/CompositionLocalProvider|-195475592741065473[0]. Neither the module itself nor its dependencies contain such declaration.
My environments versions are
kotlin.version=1.8.20
agp.version=8.0.1
compose.version=1.4.0

It's working and run perfectly on Android, any help?

@dima-avdeev-jb
Copy link
Contributor

@mustfaibra
You can add kotlin.native.cacheKind=none to file gradle.properties.
Also, you can set isStatic=true, like here: https://github.com/JetBrains/compose-multiplatform-template/blob/af22a50222f4bea8f5ea19c813549d86c97eb3a8/shared/build.gradle.kts#L25

@igordmn
Copy link
Collaborator

igordmn commented Jul 26, 2023

The core issue was fixed in Kotlin.

kotlin.native.cacheKind=none theoretically should no longer be required after its support in Compose. But to be sure, we still need to do final checks, change templates, and then we can close the issue.

AlexeyTsvetkov added a commit that referenced this issue Aug 10, 2023
AlexeyTsvetkov added a commit that referenced this issue Aug 10, 2023
AlexeyTsvetkov added a commit that referenced this issue Aug 10, 2023
@okushnikov
Copy link
Collaborator

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

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

9 participants