Skip to main content
Version: 1.52.x

Crash Reporting

Configure

  1. Add GoogleService-info.plist file in your project. This file should be sent by your release manager.
  2. Go to project Build Phases, and click `+` to add a phase.
  3. Click + Add a new build phase, and select New Run Script Phase.
  4. Select Run Script and add following content:
"${PODS_ROOT}/FirebaseCrashlytics/run"
  1. Add to Input Files field:
$(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)

Usage (optional)

For sending Crash Report to Firebase use code below:

@try {
//...
//Some code
//...
} @catch (NSException *exception) {
[P101XP crashReportFatal];
}

To create custom logs use the code below:

[P101XP crashLog:@"Tag" text:@"Some text"];
[P101XP crashLogv:@"Some text %@", someDictionary];