firebase-kotlin-sdk icon indicating copy to clipboard operation
firebase-kotlin-sdk copied to clipboard

How to initialize Firebase Crashlytics on iOS?

Open gustavopeq opened this issue 1 year ago • 5 comments
trafficstars

Hi, thanks for providing the library, it's really helpful so far. Would you happen to have some instructions on how to initialize the Crashlytics on iOS? Right now I have it working perfectly on Android, but on iOS I couldn't get crashes reported. I followed this article's instructions, but in the end, I'm unable to call the initialise function from iOSApp.swift https://funkymuse.dev/posts/kmp-firebase/#testing-the-implementation

Thank you!

gustavopeq avatar Jul 05 '24 16:07 gustavopeq

Just follow the Google setup instructions: https://firebase.google.com/docs/crashlytics/get-started?platform=ios

This SDK does nothing special with it, you can set up Crashlytics in your common Kotlin code with it, but the basics stay the same

Daeda88 avatar Jul 09 '24 13:07 Daeda88

Thanks for your help @Daeda88 , I was able to setup it and get it initialized, but I'm having trouble with processing the dSYMs files. I followed this instructions: https://firebase.google.com/docs/crashlytics/get-deobfuscated-reports?platform=ios#check-input-files-setup However I wasn't able to compile the project after that... I'm wondering if the path is slightly different because it's a KMP project, or if that should still be the same setup.

gustavopeq avatar Jul 10 '24 19:07 gustavopeq

More of a Kotlin Native question @gustavopeq . I think you should have a look at https://kotlinlang.org/docs/native-ios-symbolication.html

Daeda88 avatar Jul 11 '24 12:07 Daeda88

@gustavopeq Did you manage to solve it? Do I need to do something extra?

mr-kew avatar Oct 04 '24 12:10 mr-kew

~~Also facing an issue here. My FireStore connecction works fine, but there are no crashes reported. Firebase console still shows that the SDK is not interagted yet.. Any ideas? Also my Android app is properly reporting crashes through Crashlytics.~~

NVM: I removed and added the swift package once more and now it works 🤔

tassilo-posegga avatar Mar 02 '25 21:03 tassilo-posegga