Files
react-native-firebase/docs/crashlytics/ios.md
Mike Diarmid 379e26dede Update ios.md
2020-01-30 13:09:56 +00:00

1.5 KiB

title, description
title description
iOS Manual Installation Manually integrate Crashlytics into your iOS application.

iOS Manual Installation

The following steps are only required if your environment does not have access to React Native auto-linking (<= 0.59).

CocoaPods Installation

Add the RNFBCrashlytics Pod

Add the RNFBCrashlytics Pod to your projects /ios/Podfile:

target 'app' do
  # Add the RNFBCrashlytics podspec to your app target:
  pod 'RNFBCrashlytics', :path => '../node_modules/@react-native-firebase/crashlytics'
end

Add the Crashlytics run script

Crashlytics for iOS requires an additional manual step once the NPM package has been installed. You'll need XCode for the following steps.

Open your project in XCode, and select the project file in the Navigator. Select the 'Build Phases' tab & add a 'New Run Script Phase':

Run Script

In the new build phase, add a new script into the text box:

"${PODS_ROOT}/Fabric/run"

Script

Update Pods & rebuild the project

You may need to update your local Pods repo in order for the Pods to be installed in your project:

$ cd /ios/
$ pod install --repo-update

Once the Pods have installed locally, rebuild your iOS project:

npx react-native run-ios