License | Custom |
ReleasedLast Release | Nov 2018 |
Maintained by Google.
Depends on: | |
FirebaseAnalytics | ~> 5.1 |
FirebaseInstanceID | ~> 3.2 |
GoogleToolboxForMac/Logger | ~> 2.1 |
GoogleToolboxForMac/NSData+zlib | ~> 2.1 |
Protobuf | ~> 3.5 |
Firebase Crash Reporting is a free mobile crash analytics service. It provides detailed analytics and diagnostic information about the crashes encountered by your users. For more information about crash reporting and many other cool mobile services, check out [Firebase] (https://firebase.google.com).
Follow the instructions for setting up Firebase
Add the following to your Podfile
pod 'Firebase/Crash'
Set up automatic symbol file uploads. Symbol files are required to turn your stack traces into pretty classes and selectors. In Xcode, click on your project file, choose your application target, select "Build Phases", hit the little + sign to add a phase, then select "Run Script". Fill the resulting build step with:
"${PODS_ROOT}"/FirebaseCrash/upload-sym
In order to try out integration, you need to force a crash while not attached to the debugger. The debugger will intercept all crashes, preventing Firebase Crash Reporting from gathering any useful information.
Add a crash somewhere in your app. This will do the trick:
abort();
Run your app to get the latest code installed on the test device, then once the app has launched, hit stop.
Relaunch your app directly from the test device and trigger the crash.
Restart your app (either in the debugger or not) and the crash will be uploaded. Wait at least 10 seconds. Firebase Crash Reporting delays crash uploading at startup to avoid creating contention with your own code.
Your crash should show up in Firebase within 20 minutes.
More information can be found in the Firebase documentation. Happy bug hunting!