Kirill Zhukov
10/31/2023, 7:44 PMUndefined symbols for architecture arm64:
"_OBJC_CLASS_$_Bugsnag", referenced from:
objc-class-ref in libco.touchlab.crashkios:bugsnag-cache.a(result.o)
"_OBJC_CLASS_$_BugsnagError", referenced from:
objc-class-ref in libco.touchlab.crashkios:bugsnag-cache.a(result.o)
"_OBJC_CLASS_$_BugsnagFeatureFlag", referenced from:
objc-class-ref in libco.touchlab.crashkios:bugsnag-cache.a(result.o)
"_OBJC_CLASS_$_BugsnagStackframe", referenced from:
objc-class-ref in libco.touchlab.crashkios:bugsnag-cache.a(result.o)
ld: symbol(s) not found for architecture arm64
kotlin.native.cacheKind=none
basically)Rick Clephas
10/31/2023, 7:46 PMKirill Zhukov
10/31/2023, 8:30 PMRick Clephas
10/31/2023, 8:35 PMkpgalligan
10/31/2023, 8:59 PMKirill Zhukov
10/31/2023, 10:05 PMco.touchlab.crashkios:bugsnag
libkpgalligan
10/31/2023, 10:23 PMKirill Zhukov
10/31/2023, 10:31 PMlinkDebugTestIosSimulatorArm64
task that failsiosTest
task correctly? We have this “umbrella” task defined:
project.tasks.register("iosTest") {
description = "Executes Kotlin/Native unit tests for all available targets."
group = "Verification"
// For running tests on an arm64 compatible host.
project.tasks.findByName("iosX64Test")?.let {
dependsOn(it)
}
// For running tests on host that are arm64 compatible.
// For running tests on a non-arm64 compatible host.
project.tasks.findByName("iosSimulatorArm64Test")?.let {
dependsOn(it)
}
}
This was set up before we enabled hierarchical project structure. It doesn’t look like iosTest
Gradle is provided out of the box either way.kpgalligan
10/31/2023, 11:10 PMKirill Zhukov
10/31/2023, 11:11 PMkpgalligan
10/31/2023, 11:12 PMKirill Zhukov
10/31/2023, 11:14 PM:shared:bugsnag
module that adds co.touchlab.crashkios:bugsnag
dependency, does not depend on Crashkios plugin. And we have a :shared:xc-framework
umbrella module that builds the XC Framework. Depends on and exports :shared:bugsnag
, also applies the craskhios plugin.isStatic = true
on the XC Framework module
• remove applying crashkios plugin
• Disable K/N tests for the :shared:bugsnag
module
Everything compiles fine but getting Compose Multiplatform linking warnings now and a runtime crash on iOS:
w: <bitkey.shared.state-machine.ui:public> @ /Users/zhukov/Development/wallet/app/shared/state-machine/ui/public/src/iosMain/kotlin/build/wallet/statemachine/recovery/cloud/CloudSignInUiStateMachineImpl.kt:37:5: Function 'LaunchedEffect' can not be called: No function found for symbol 'androidx.compose.runtime/LaunchedEffect|-576771147392862334[0]'
w: <missing declarations>: No function found for symbol 'app.cash.molecule/launchMolecule|-7305106088441339121[0]'
w: <missing declarations>: No function found for symbol 'androidx.compose.runtime/remember|1835138394250687683[0]'
w: <missing declarations>: No function found for symbol 'androidx.compose.runtime/remember|-2596345568877061727[0]'
Unrelated to Crashkios at this point.kpgalligan
10/31/2023, 11:21 PMKirill Zhukov
10/31/2023, 11:22 PMkpgalligan
10/31/2023, 11:24 PMKirill Zhukov
10/31/2023, 11:25 PMkpgalligan
10/31/2023, 11:26 PM