hi, I got this exception on iosApp Build: Verison...
# compose
m
hi, I got this exception on iosApp Build: Verison:
Copy code
[versions] # Define the dependency versions

gradle = "8.1.0-beta02"
kotlin = { strictly = "1.8.20" }
kotlinxDateTime = "0.4.0"
koin = "3.4.0"
sqlDelight = "2.0.0-alpha05"
decompose-compose-experimental = "2.0.0-compose-experimental-alpha-02"
ktor = "2.2.4"
compose = "1.4.0"
gmazzoBuildconfig = "3.1.0"
activityCompose = "1.7.0"
kotlinxSerialization = "1.5.0"
kotlinxCorCore = { strictly = "1.6.4" }
moko = "0.21.2"
mvikotlin = "3.2.0"
> Task :shared:linkPodDebugFrameworkIosSimulatorArm64 FAILED
warning: Cannot infer a bundle ID from packages of source files and exported dependencies, use the bundle name instead: shared. Please specify the bundle ID explicitly using the -Xbinary=bundleId=<id> compiler flag.
error: Compilation failed: Failed to compute the detailed error message. See the root cause exception.
Shortly: The required symbol androidx.compose.runtime/LaunchedEffect|-9057022742877438542[0] is missing in the module or module dependencies. This could happen if the required dependency is missing in the project. Or if there is a dependency that has a different version (without the required symbol) in the project than the version (with the required symbol) that the module was initially compiled with.
* Source files:
* Compiler version info: Konan: 1.8.20 / Kotlin: 1.8.20
* Output kind: FRAMEWORK
error: java.lang.RuntimeException: Failed to compute the detailed error message. See the root cause exception.
Shortly: The required symbol androidx.compose.runtime/LaunchedEffect|-9057022742877438542[0] is missing in the module or module dependencies. This could happen if the required dependency is missing in the project. Or if there is a dependency that has a different version (without the required symbol) in the project than the version (with the required symbol) that the module was initially compiled with.
1
c
#compose-ios?
d
Hello! We have 2 problems and workarounds that may be related to this error log. • Compilation cache problem and to workaround that add to gradle.properties this line:
kotlin.native.cacheKind=none
• We can't use a dynamic framework. To workaround use isStatic = true in build.gradle.kts like here: https://github.com/JetBrains/compose-multiplatform-template/blob/main/shared/build.gradle.kts#L25
Also, it will be helpful to create a minimal reproducible sample project and share it on GitHub.
m
THANKY YOU AND спасибо @Dima Avdeev The solution was:
kotlin.native.cacheKind=none