mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-14 12:11:55 +08:00
1.5 KiB
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':
In the new build phase, add a new script into the text box:
"${PODS_ROOT}/Fabric/run"
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

