I'm facing an issue when building the iOS app for KMP
Undefined symbols for architecture arm64: "_kfun:androidx.lifecycle.viewmodel.compose#androidx_lifecycle_viewmodel_compose_LocalViewModelStoreOwner$stableprop_getter$artificial(){}kotlin.Int"
I found that adding the following line to my gradle.properties completely solved the issue.
gradle.properties:
kotlin.native.cacheKind=none
This is likely related to JetBrains issue CMP-7571, which explains incompatibilities between K1/K2 compiled libraries.
I hope this helps you!
Source
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With