Firebase Crashlytics 'Error Loading Your Issues' and Upload-Symbols Script Error - iOS App Using Xcode

Firebase Crashlytics 'Error loading your issues' and upload-symbols script error - iOS App using XCode

The solution was to force a crash in my app using fatalError(). It is not obvious that this is required to finalise the registration of the new SDK with the Firebase Crashlytics backend.

After doing this, all my historical crash data is available like before, and upload-symbols completes successfully.

iOS and FirebaseCrashlytics

After hours of struggling with this problem finally solved it using this approach:

use this command in Terminal: /path/to/pods/directory/FirebaseCrashlytics/upload-symbols -gsp /path/to/GoogleService-Info.plist -p ios /path/to/dSYMs

Important thing is instead of /path/to/pods/directory you should enter the path to your pods folder in your application folder, and instead of /path/to you should enter the path to the GoogleService-Info.plist which is in your project folder too. And the last one is, instead of /path/to/dSYMs you should enter the path to your archive which has the format of .xcarchive.

For finding the .xcarchive path, you should first archive your application, then go to XCode -> Organizer and select your build, then right click on it and select "Show in finder" and then right click on your .xcarchive file and select "Show package contents". This is it, you can copy this path and paste it instead of /path/to/dSYMs and then hit enter to start uploading to Firebase Crashlytics.

Check out this link for more information:
Firebase Docs

Xcode build never finishes when using Firebase upload-symbols in Build Phase Run Script

I realised I needed to add an input file for the run script. See below for implementation.

Input file required

Can I force Crashlytics to call a script run in the current thread?

Instead of using the "run" script, you can call the "upload-symbols" script adding the --build-phase flag:

${BUILD_DIR%Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/upload-symbols --build-phase

This will make the script to upload the dSYMs as part of the build process instead of doing it in the background.

Unable to upload Crashlytics dSYM file during build phase due to script error

dSYM_directory is just a placeholder in the example script. You need to point the upload-symbols script to the directory where your apps dSYMs are. Replace dSYM_directory with the actual path and it will work.



Related Topics



Leave a reply



Submit