Armond Avanes
10/14/2024, 7:10 PMKotlin 2.1.0-Beta1
to Kotlin-2.1.0-Beta2
and now I'm getting the following error when building the app to run on iOS Simulator:
Undefined symbols for architecture arm64:
"_kfun:androidx.lifecycle.viewmodel.compose#access$<get-androidx_lifecycle_viewmodel_compose_LocalViewModelStoreOwner$stable>$p$tLocalViewModelStoreOwnerKt(){}kotlin.Int", referenced from:
_kfun:com.test.RouteA#internal in composeApp[2](ComposeApp.framework.o)
_kfun:com.test.RouteB#internal in composeApp[2](ComposeApp.framework.o) _kfun:com.test#TestField(com.test.TestViewModel?;androidx.compose.ui.Modifier?;com.test.TestModel?;kotlin.String?;kotlin.Function0<kotlin.Unit>?;kotlin.Function0<kotlin.Unit>?;kotlin.Boolean;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int){} in composeApp[2](ComposeApp.framework.o)
_kfun:com.test.RouteC#internal in composeApp[2](ComposeApp.framework.o)
_kfun:com.test.RouteD#internal in composeApp[2](ComposeApp.framework.o)
...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Android and Desktop builds are working fine.
I'm using the following related multiplatform frameworks/libraries:
• jetbrains compose: "1.7.0-rc01"
• jetbrains lifecycle and viewmodel: "2.8.2"
• jetbrains navigation compose: "2.8.0-alpha10"
• koin: 4.0.0
I'll appreciate if someone can help.Armond Avanes
10/14/2024, 7:18 PMkoinViewModel()
.arnaud.giuliani
10/15/2024, 1:55 PMArmond Avanes
10/15/2024, 6:20 PMTom Larcher
10/24/2024, 12:27 AMorg.jetbrains.compose
version 1.7.0
◦ compose-gradle-plugin
• org.jetbrains.androidx.lifecycle
version 2.8.3
◦ lifecycle-runtime-compose
◦ lifecycle-viewmodel-compose
• org.jetbrains.androidx.navigation
version 2.8.0-alpha10
◦ navigation-compose
• io.insert-koin
version 4.0.0
◦ koin-core
◦ koin-android
◦ koin-androidx-compose
◦ koin-compose
◦ koin-compose-viewmodel
◦ koin-test
I've found that using Kotlin 2.1.0-Beta1
and KSP 2.1.0-Beta1-1.0.25
works without an issue, but bumping up to Kotlin 2.1.0-Beta2
and KSP 2.1.0-Beta2-1.0.25
causes my project to consistently throw:
Undefined symbols for architecture arm64:
"_kfun:androidx.lifecycle.viewmodel.compose#access$<get-androidx_lifecycle_viewmodel_compose_LocalViewModelStoreOwner$stable>$p$tLocalViewModelStoreOwnerKt(){}<http://kotlin.Int|kotlin.Int>", referenced from:
_kfun:com.<redacted>.home.navigation.destination.HomeMainNavigationDestination.com.<redacted>.home.navigation.destination.HomeMainNavigationDestination#HomeMainScreen(androidx.compose.runtime.Composer?;kotlin.Int){} in libcom.<redacted>.home.navigation.destination.-nqckh1.a[2](libcom.<redacted>.home.navigation.destination.-nqckh1.a.o)
_kfun:com.<redacted>.map.navigation.destination.MapMainNavigationDestination.com.<redacted>.map.navigation.destination.MapMainNavigationDestination#MapMainScreen(androidx.compose.runtime.Composer?;kotlin.Int){} in libcom.<redacted>.map.navigation.destination.-hl17sy.a[2](libcom.<redacted>.map.navigation.destination.-hl17sy.a.o)
_kfun:com.<redacted>.<redacted>.ComposableSingletons$AppKt.com.<redacted>.<redacted>.ComposableSingletons$AppKt#<init>$lambda$11#static(androidx.compose.runtime.Composer?;kotlin.Int){} in libcom.<redacted>.<redacted>.b1mi0k.a[2](libcom.<redacted>.<redacted>.b1mi0k.a.o)
_kfun:com.<redacted>.splash.navigation.destination.SplashMainNavigationDestination.com.<redacted>.splash.navigation.destination.SplashMainNavigationDestination#SplashMainScreen(androidx.compose.runtime.Composer?;kotlin.Int){} in libcom.<redacted>.splash.navigation.destination.-prb5st.a[2](libcom.<redacted>.splash.navigation.destination.-prb5st.a.o)
_kfun:com.<redacted>.splash.presentation.splash.ui#SplashScreen(androidx.navigation.NavHostController?;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int){} in libcom.<redacted>.splash.presentation.splash.ui.-olzri.a[2](libcom.<redacted>.splash.presentation.splash.ui.-olzri.a.o)
ld: symbol(s) not found for architecture arm64
error: Compilation finished with errors
arnaud.giuliani
10/25/2024, 12:44 PMTom Larcher
10/28/2024, 11:30 PM2.1.0-Beta2-1.0.26
, and the issue persists.Nicolas Frenay
11/02/2024, 1:37 PMArmond Avanes
11/05/2024, 7:13 PMKotlin 2.1.0-RC
fixed this issue for me!Tom Larcher
11/05/2024, 8:28 PM2.1.0-RC
, and it seems it came out ~50 minutes ago! Damn you’re fast @Armond Avanes!
Thanks for testing and confirming you got past the issue with this latest release! kodee happyarnaud.giuliani
11/06/2024, 4:58 PMTom Larcher
11/07/2024, 1:13 AMComposeExtension
not existing. Never a dull moment 😛