Pavel Dektev
10/01/2023, 2:48 PMUndefined symbols for architecture arm64:
"_FIRCLSExceptionRecordNSException", referenced from:
_co_touchlab_crashkios_crashlytics_FIRCLSExceptionRecordNSException_wrapper0 in shared(result.o)
"_OBJC_CLASS_$_FIRCrashlytics", referenced from:
objc-class-ref in shared(result.o)
"_OBJC_CLASS_$_FIRExceptionModel", referenced from:
objc-class-ref in shared(result.o)
"_OBJC_CLASS_$_FIRStackFrame", referenced from:
objc-class-ref in shared(result.o)
ld: symbol(s) not found for architecture arm64
My gradle for the shared module:
.......
kotlin {
targetHierarchy.default()
android {
compilations.all {
kotlinOptions {
jvmTarget = "11"
}
}
}
val xcf = XCFramework()
listOf(iosX64(), iosArm64(), iosSimulatorArm64()).forEach {
it.binaries.framework {
baseName = "shared"
isStatic = true
xcf.add(this)
}
}
sourceSets {
val commonMain by getting {
dependencies {
implementation(libs.touchlab.crashkios)
}
}
}
}
.....
CrashKios version 0.8.2
Kotlin 1.8.22Rick Clephas
10/01/2023, 2:51 PMPavel Dektev
10/01/2023, 2:53 PM