John O'Reilly
04/25/2025, 8:53 AMUndefined symbol: _kfun:androidx.compose.animation.core#androidx_compose_animation_core_MutableTransitionState$stableprop_getter$artificial(){}<http://kotlin.Int|kotlin.Int>
Undefined symbol: _kfun:androidx.compose.animation.core#androidx_compose_animation_core_TransitionState$stableprop_getter$artificial(){}<http://kotlin.Int|kotlin.Int>
Undefined symbol: _kfun:androidx.compose.ui.graphics.vector#androidx_compose_ui_graphics_vector_VectorPainter$stableprop_getter$artificial(){}<http://kotlin.Int|kotlin.Int>
John O'Reilly
04/25/2025, 9:01 AMandroidx.compose.animation:animation:1.7.2
John O'Reilly
04/25/2025, 9:01 AMandroidx.navigation:navigation-compose:2.8.9
)John O'Reilly
04/25/2025, 9:05 AM2.9.0-rc01
but get same issueEkaterina Zaitseva
04/25/2025, 9:11 AMimplementation("org.jetbrains.androidx.navigation:navigation-compose:2.9.0-alpha17")
John O'Reilly
04/25/2025, 9:17 AMJohn O'Reilly
04/25/2025, 9:17 AMJohn O'Reilly
04/25/2025, 9:28 AM./gradlew :shared:dependencies
I'm getting following (though not seeing that in Xcode etc)
androidx.navigation:navigation-compose:2.9.0-alpha17 FAILED
John O'Reilly
04/25/2025, 9:37 AMJohn O'Reilly
04/25/2025, 9:40 AMEkaterina Zaitseva
04/25/2025, 10:00 AMkotlin.native.cacheKind=none
in gradle.properties
https://youtrack.jetbrains.com/issue/CMP-7571John O'Reilly
04/25/2025, 10:05 AMrobercoding
05/04/2025, 7:56 AMUndefined symbol: _kfun:androidx.compose.animation.core#androidx_compose_animation_core_SeekableTransitionState$stableprop_getter$artificial(){}kotlin.Int
Undefined symbol: _kfun:androidx.compose.material3#androidx_compose_material3_ButtonDefaults$stableprop_getter$artificial(){}kotlin.Int
Undefined symbol: _kfun:androidx.compose.runtime#androidx_compose_runtime_ProvidedValue$stableprop_getter$artificial(){}kotlin.Int
That gradle property saved me a few hours of headaches (and life)!zsmb
05/04/2025, 7:59 AMrobercoding
05/04/2025, 8:02 AMzsmb
05/04/2025, 9:57 AMArkadii Ivanov
05/04/2025, 10:09 AMrobercoding
05/04/2025, 3:35 PMUndefined symbols for architecture arm64:
"_kfun:androidx.compose.material3#androidx_compose_material3_ButtonDefaults$stableprop_getter$artificial(){}kotlin.Int", referenced from:
_kfun:com.mmk.kmpauth.uihelper.apple#AppleSignInButtonIconOnly(androidx.compose.ui.Modifier?;com.mmk.kmpauth.uihelper.apple.AppleButtonMode?;androidx.compose.ui.graphics.Shape?;kotlin.Function0<kotlin.Unit>;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int){} in Shared[2898](libio.github.mirzemehdi:kmpauth-uihelper-cache.a.o)
_kfun:com.mmk.kmpauth.uihelper.apple.getButtonColor#internal in Shared[2898](libio.github.mirzemehdi:kmpauth-uihelper-cache.a.o)
_kfun:com.mmk.kmpauth.uihelper.google#GoogleSignInButtonIconOnly(androidx.compose.ui.Modifier?;com.mmk.kmpauth.uihelper.google.GoogleButtonMode?;androidx.compose.ui.graphics.Shape?;kotlin.Function0<kotlin.Unit>;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int){} in Shared[2898](libio.github.mirzemehdi:kmpauth-uihelper-cache.a.o)
_kfun:com.mmk.kmpauth.uihelper.google.getButtonColor#internal in Shared[2898](libio.github.mirzemehdi:kmpauth-uihelper-cache.a.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I suspect KMP Auth might be the issue although I cannot tell why, there may be some compose dependency conflicts since it uses 1.7.4 compose. (I’m using 1.8.0-rc01)
I’ll for now keep this kotlin.native.cacheKind=none
property and keep an eye on any updates for the library.zsmb
05/04/2025, 4:37 PMBtw, since Compose for iOS is Beta, why breaking changes?It wasn't a change in Compose for iOS per se. As I understand it was a bug in the K1 compiler that's now fixed, and while there were patches added to bridge things over and for the new compiler to accept the older "incorrect" outputs, these patches don't work for the edge case where it's a transitive dependency and the library is taken from cache. Plus I believe release builds should be unaffected (as they don't use cache).
zsmb
05/04/2025, 4:38 PMI suspect KMP Auth might be the issue although I cannot tell why, there may be some compose dependency conflicts since it uses 1.7.4 compose.That's exactly the problem, that the
uihelper
module there depends on Compose runtime, and it's compiled against the older version.
@Mirzamehdi when you have the time, could you please ship a version of the library (even if pre-release) that uses 1.8.0-rc01
?Mirzamehdi
05/04/2025, 5:33 PM