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!