Hi everyone, Recently, we updated CrashKiOS to 0.8...
# touchlab-tools
k
Hi everyone, Recently, we updated CrashKiOS to 0.8.2, since then getting an _OBJC__CLASS_$_FIRCrashlytics error when building the project. Can anyone help resolve this?
k
k
This I have already done. Now, the issue is happening when I run the iOS project.
f
Do you have the Crashlytics framework added into your Xcode project as per: https://firebase.google.com/docs/ios/installation-methods?
k
Yeah. But, the only difference is we are using Cocoapods.
f
So the project worked before you updated to 0.8.2? If so, what’s the newest version before 0.8.2 that works?
k
It is v0.2
f
That sounds like some version incompatibility. What version of the Crashlytics SDK do you have?
k
It is 10.24.0
k
Version 0.2 of CrashKiOS? That's quite old. Can you post some relevant config, and also more detail about exactly when the error happens? You're building the project in Xcode? Is this happening during the framework build or during test build?
k
Initially, we added the code instead of adding it as a dependency. The error happens when building the project for testing.
k
You've added this to
gradle.properties
?
Copy code
kotlin.native.cacheKind.iosX64=none
kotlin.native.cacheKind.iosSimulatorArm64=none
We still need to figure out a way to manage this issue. The Kotlin compiler changed how tests are built/run since CrashKiOS started including the dependencies with cinterop. It's a common issue without great resolutions as of today (See Sentry KMP's SPM instructions, which require you to include Sentry with CocoaPods even if you're using SPM). If the
cacheKind
lines above don't resolve the testing issue, then you may need to use the CocoaPods method described in the Sentry instructions. We are working on alternatives, but it's a tricky problem.
k
Yes, I have added the above in gradle properties.
I will check the above document. Thank you for sharing.
o
Hi @kpgalligan, I'm also having the same issue after upgrading from 0.8.5. But somehow downgrading didn't work. I also disabled build cache, added crashlyticslink plugin. but i still get the error. when I comment out
CrashlyticsLogWriter()
line it just works (without removing dependencies). Do you have any suggestions? How can I use the CocoaPods method with crashkios?