I faced this issue while trying to run Kotlin Multiplatform on iOS simulator, here is the error
Link CMPSkeleton.debug.dylib (arm64)
Undefined symbol: _kfun:androidx.lifecycle.viewmodel.compose#androidx_lifecycle_viewmodel_compose_LocalViewModelStoreOwner$stableprop_getter$artificial(){}kotlin.Int
Linker command failed with exit code 1 (use -v to see invocation)
To resolve this issue, I just added following line in grade.propertise
kotlin.native.cacheKind=none