I have similar issue as mentioned in this message ...
# decompose
m
I have similar issue as mentioned in this message with `extensions-compose-jetbrains`: https://kotlinlang.slack.com/archives/C03H3N51SKT/p1668819580893639 But only when I build iOS app - either from Android Studio or from XCode. Do I maybe miss something? It doesn’t seem like same issue to me as this one since everything builds and works on Android but on iOS it fails when it tries to assemble shared module with same error. I will paste full error in 🧵.
a
This one is different. It's complicated and unstable with Compose for iOS. In your case it's a compiler crash. Make sure you are using the
-native-compose
version of Decompose. Also make sure you are using Kotlin 1.7.20 and Compose 1.2.0. And you can also try to specify
kotlin.native.cacheKind=none
in your
gradle.properties
.
m
Sorry I’m stupid 🤦🏻‍♂️ I added export for decompose in build.gradle like:
Copy code
listOf(
        iosX64(),
        iosArm64(),
        iosSimulatorArm64()
    ).forEach {
        it.binaries.framework {
            baseName = "shared"
            export(libs.bundles.decompose)
        }
    }
So that classes from decompose I need in Swift are recognized. Issue was that I had also dependency for extensions in bundle, when I put just decompose here I don’t have this issue anymore. I have some other errors but I will try to resolve them 😄 Just for the record I use: Decompose: 1.0.0-beta-01-native-compose Kotlin: 1.7.20 Multiplatform Compose: 1.3.0-alpha01-dev862 And of course I already have
kotlin.native.cacheKind=none
from before. I guess when I fix current issues this should work. Thank you @Arkadii Ivanov for all your efforts and work. I hope I will manage to convince everybody in company to start all new projects as KMM and use decompose, and sometime in future I hope also Compose for iOS. 🙂