Files
react-native-firebase/docs/crashlytics/ios-setup.md
2020-04-17 21:06:29 +01:00

31 lines
863 B
Markdown

---
title: Crashlytics - iOS Setup
description: Additional iOS steps for Crashlytics integration
---
Crashlytics for iOS requires an additional manual step once the package has been installed.
You'll need Xcode for the following steps.
# 1. Add Build Phase
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](https://prismic-io.s3.amazonaws.com/invertase%2F96f32c96-0aca-4054-bf30-bd2448ca2462_new+project.png)
In the new build phase, add a new script into the text box:
```
"${PODS_ROOT}/Fabric/run"
```
![Script](https://prismic-io.s3.amazonaws.com/invertase%2Ff06cf5b3-884e-4cbc-8c3d-81072a254f1d_new+project+%281%29.png)
# 2. Rebuild the project
Once the above steps have been completed, rebuild your iOS project:
```bash
npx react-native run-ios
```