GitLiveApp / firebase-kotlin-sdk

A Kotlin-first SDK for Firebase
https://gitliveapp.github.io/firebase-kotlin-sdk/
Apache License 2.0
1.07k stars 153 forks source link

How to initialize Firebase Crashlytics on iOS? #560

Open gustavopeq opened 2 months ago

gustavopeq commented 2 months ago

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!

Daeda88 commented 1 month ago

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

gustavopeq commented 1 month ago

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.

Daeda88 commented 1 month ago

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