Hey everyone I am getting a linkage error from the...
# compose-ios
m
Hey everyone I am getting a linkage error from the iOS build between two compose libraries... I am pretty stumped at the moment. I am using Compose 1.7.3 , kotlin 2.1.20. Any help would be appreciated thank you!
Copy code
> Task :composeApp:linkDebugFrameworkIosSimulatorArm64 FAILED
error: <org.jetbrains.compose.foundation:foundation> @ /opt/buildAgent/work/22b92203f00747e0/compose/foundation/foundation/src/uikitMain/kotlin/androidx/compose/foundation/gestures/Scrollable.uikit.kt:26:28: Constructor 'CupertinoScrollDecayAnimationSpec.<init>' can not be called: No constructor found for symbol 'androidx.compose.animation.core.cupertino/CupertinoScrollDecayAnimationSpec.<init>|<init>(kotlin.Float){}[0]'
error: <missing declarations>: No class found for symbol 'androidx.compose.animation.core.cupertino/CupertinoScrollDecayAnimationSpec|null[0]'
error: <missing declarations>: No constructor found for symbol 'androidx.compose.animation.core.cupertino/CupertinoScrollDecayAnimationSpec.<init>|<init>(kotlin.Float){}[0]'
error: There are linkage errors reported by the partial linkage engine
a
Hi, it looks like some issues with the libraries versions. Since 1.8.0, the CupertinoScrollDecayAnimationSpec became internal and cannot be accessed from outside the foundation library. Please check what version of compose was actually loaded in your project. Also, full clean might help.
m
you're right @Andrei Salavei, the 1.7.3 foundation library is referencing a bunch of 1.8.0 deps including animation-core. Clearing cache and clean building didn't help. Any idea why it's doing this? I thought specifying 1.7.3 for jetbrains compose plugin should apply to all compose dependencies
hmmm my AS dependency analyzer is also crashing, and the maven usages list is also broken (it says there's 11 usages, but doesn't show them)
SOLVED: dropped to
org.jetbrains.androidx.navigation:navigation-compose:2.8.0-alpha12
. Starting from alpha13 it depends on compose 1.8.0
👍 2
🙏 1