You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.8 KiB

6 years ago
  1. ![Crashlytics Header](https://docs.fabric.io/ios/cocoapod-readmes/cocoapods-crashlytics-header.png)
  2. Part of [Google Fabric](https://get.fabric.io), [Crashlytics](http://try.crashlytics.com/) offers the most powerful, yet lightest weight crash reporting solution for iOS. Crashlytics also provides real-time analytics through [Answers](https://answers.io/) and app distributions to testers using [Beta](http://try.crashlytics.com/beta/).
  3. ## Setup
  4. 1. Visit [https://fabric.io/sign_up](https://fabric.io/sign_up) to create your Fabric account and to download Fabric.app.
  5. 1. Open Fabric.app, login and select the Crashlytics SDK.
  6. ![Fabric Plugin](https://docs.fabric.io/ios/cocoapod-readmes/cocoapods-fabric-plugin.png)
  7. 1. The Fabric app automatically detects when a project uses CocoaPods and gives you the option to install via the Podfile or Xcode.
  8. ![Fabric Installation Options](https://docs.fabric.io/ios/cocoapod-readmes/cocoapods-pod-installation-option.png)
  9. 1. Select the Podfile option and follow the installation instructions to update your Podfile. **Note:** the Crashlytics Pod includes Answers. If you have Answers included as a separate Pod it should be removed from your Podfile to avoid duplicate symbol errors.
  10. ```
  11. pod 'Fabric'
  12. pod 'Crashlytics'
  13. ```
  14. 1. Run `pod install`
  15. 1. Add a Run Script Build Phase and build your app.
  16. ![Fabric Run Script Build Phase](https://docs.fabric.io/ios/cocoapod-readmes/cocoapods-rsbp.png)
  17. 1. Initialize the SDK by inserting code outlined in the Fabric.app.
  18. 1. Run your app to finish the installation.
  19. ## Resources
  20. * [Documentation](https://docs.fabric.io/apple/crashlytics/overview.html)
  21. * [Forums](https://stackoverflow.com/questions/tagged/google-fabric)
  22. * [Website](http://try.crashlytics.com/)
  23. * Follow us on Twitter: [@fabric](https://twitter.com/fabric) and [@crashlytics](https://twitter.com/crashlytics)