-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kotlin 1.8.0 compile error #48
Comments
Are you using cocoapods? Kotlin 1.8 changes the cocoapods plugin to link dynamically instead of statically by default, and this looks like a linking error. If that's the issue, the fix is to do
If that's not the issue, it would help to know more about your project. |
Kermit bugsnag depends on crashkios for cinterop. We still need more doc updates, but here's the linker error you're getting: https://github.com/touchlab/Kermit/blob/main/kermit-bugsnag/README.md#testing You'll need to either make the framework static as Russell suggests, or tell the linker to ignore those missing symbols. If you're testing, you'll need to disable the build cache:
|
Thanks Russ and Kevin! Yes, I am using cocoapods. Switching back to static linking resolves the issue. I tried following the instructions for using |
Have similar issues trying to add the library for crashlytics to my KMM project. The gradle plugin suggested in https://github.com/touchlab/CrashKiOS#linking did not resolve the problem. (Not using cocoapods) Any chance you could validate and update the documentation using a fresh KMM 1.8.0 project? |
@ponvig It seems the plugin adding compiler parameters doesn't work properly on Kotlin 1.8.10.
Note: instead of using iosArm64(), you will probably iterate over all of the supported native targets. I suppose something similar happens with the Bugsnag plugin. |
Was hoping to enable K/N caching as well but am running into similar problem... Using Kotlin 1.9.0, Compose 1.5.0 (supports K/N caching finally), static library linking, not using cocoapods:
|
After updating a project to kotlin 1.8.0, I started seeing the below error
The project does not directly depend on crashkios, just has a dependency on kermit:
The text was updated successfully, but these errors were encountered: