Added Google Crashlytics in iOS - Does not connected to Firebase Crashlytics Dashboard

Viewed 983

https://firebase.google.com/docs/crashlytics/get-started?authuser=2

I followed this link and the Firebase Analytics connected and showed events, but Firebase Crashlytics is not showing any crash, it isn't even able to connect to App.

And keeps showing the following image when clicked on Crashlytics in Left panel from Firebase Console.

enter image description here

This is a fresh project Firebase Crashlytics works fine with the earlier projects created using Fabric.

2 Answers

For some reason, following the Firebase docs did not work for me as I had to do a few additional things for the "Add the SDK" loading screen to disappear on the Firebase portal and show me the crashes.

In addition to what the Firebase docs say, I did the following in addition to this answer which I have also outlined on a similar issue here

  1. Go to Build Settings -> Debug Information Format -> Set all of them to DWARF with dSYM file
  2. Go to Build Phases -> Add an additional run script and input the following
${PODS_ROOT}/FirebaseCrashlytics/upload-symbols -gsp ${PROJECT_DIR}/Your_path/GoogleService-Info.plist -p ios ${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}

Remember to replace {PROJECT_DIR} appropriately for your project

  1. Stage a crash in your application as described here

  2. Disconnect your device / simulator from the debugger AKA launch it on your own rather than running it from XCode and then perform the crash

  3. I was now able to see the above loading disappear and I could see my crash statistics instead

Related