Mohammad Reza Najafi
05/11/2025, 5:44 AMShowing Recent Messages
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors
/Users/StudioProjects/iosApp/ld:1:1: ignoring duplicate libraries: '-ldl', '-lz'
Undefined symbols for architecture arm64:
"_kfun:androidx.compose.runtime#androidx_compose_runtime_ProvidedValue$stableprop_getter$artificial(){}kotlin.Int", referenced from:
_kfun:com.slack.circuit.sharedelements#ProvideAnimatedTransitionScope(com.slack.circuit.sharedelements.SharedElementTransitionScope.AnimatedScope;androidx.compose.animation.AnimatedVisibilityScope;kotlin.Function3<com.slack.circuit.sharedelements.SharedElementTransitionScope?,androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>;androidx.compose.runtime.Composer?;kotlin.Int){} in libcircuit-root:circuit-shared-elements-cache.a[2](libcircuit-root:circuit-shared-elements-cache.a.o)
_kfun:com.slack.circuit.foundation#CircuitCompositionLocals(com.slack.circuit.foundation.Circuit;com.slack.circuit.retained.RetainedStateRegistry?;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int){} in libcircuit-root:circuit-foundation-cache.a[2](libcircuit-root:circuit-foundation-cache.a.o)
_kfun:com.slack.circuit.foundation#CircuitContent(com.slack.circuit.runtime.screen.Screen;com.slack.circuit.runtime.Navigator;androidx.compose.ui.Modifier?;com.slack.circuit.foundation.Circuit?;kotlin.Function4<com.slack.circuit.runtime.screen.Screen,androidx.compose.ui.Modifier,androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>?;kotlin.Any?;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int){} in libcircuit-root:circuit-foundation-cache.a[2](libcircuit-root:circuit-foundation-cache.a.o)
_kfun:com.slack.circuit.foundation.RetainedStateHolderImpl.RetainedStateProvider#internal in libcircuit-root:circuit-foundation-cache.a[2](libcircuit-root:circuit-foundation-cache.a.o)
_kfun:com.slack.circuit.foundation.RetainedStateHolderImpl.RetainedStateHolderImpl$RetainedStateProvider$1.invoke#internal in libcircuit-root:circuit-foundation-cache.a[2](libcircuit-root:circuit-foundation-cache.a.o)
_kfun:com.slack.circuit.foundation.SaveableStateHolderImpl.SaveableStateProvider#internal in libcircuit-root:circuit-foundation-cache.a[2](libcircuit-root:circuit-foundation-cache.a.o)
ld: symbol(s) not found for architecture arm64
Mohammad Reza Najafi
05/11/2025, 5:45 AM@Composable
fun App() {
val circuit = koinInject<Circuit>()
val theme by koinInject<ThemePreference>().themeFlow.collectAsState(AppTheme.DARK)
LocatifyTheme(theme) {
CircuitCompositionLocals(circuit) {
CircuitContent(
screen = Screens.AllVenues,
)
}
}
}
Mohammad Reza Najafi
05/11/2025, 5:46 AMiosMain {
dependencies {
implementation(libs.ktor.client.ios)
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material3)
implementation(libs.circuit.foundation)
}
}
Mohammad Reza Najafi
05/11/2025, 5:47 AMMohammad Reza Najafi
05/11/2025, 5:48 AMkotlin = "2.1.20"
ksp = "2.1.20-1.0.32"
circuit = "0.27.1"
koin = "4.0.4"
compose-multiplatform = "1.8.0"
zsmb
05/11/2025, 8:44 AMkotlin.native.cacheKind=none
to your gradle.properties
file, which will resolve the issue for now. But make sure to remove this later once Circuit is updated, because this property disables caching for native builds, making them much slower.zsmb
05/13/2025, 6:18 AMkotlin.native.cacheKind=none
!Alex Styl
05/13/2025, 10:21 AMzsmb
05/13/2025, 10:40 AMMohammad Reza Najafi
05/14/2025, 4:04 AM