简体   繁体   中英

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

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.

在此处输入图像描述

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

I resolved this issue by Adding Run Script as shown in Firebase, also I did a fresh start.

https://firebase.google.com/docs/crashlytics/get-started

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM