Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Undefined symbols for architecture arm64: "_kfun:androidx.lifecycle.viewmodel.compose

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"
  • Kotlin version:2.1.20
  • APG version: 8.6.1
  • Koin: 4.0.4
  • compose = 1.8.0-rc01
like image 512
Rufan Khokhar Avatar asked Oct 28 '25 14:10

Rufan Khokhar


1 Answers

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

like image 124
Rufan Khokhar Avatar answered Oct 31 '25 05:10

Rufan Khokhar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!