mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-11 22:55:59 +05:45
Firebase Crashlytics SDK
Development
Follow the subsequent instructions to develop, debug, unit test, and integration test FirebaseCrashlytics:
Prereqs
- At least CocoaPods 1.6.0
- Install cocoapods-generate
To Develop
- Run
pod gen FirebaseCrashlytics.podspec open gen/FirebaseCrashlytics/FirebaseCrashlytics.xcworkspace
OR these two commands can be combined with
pod gen FirebaseCrashlytics.podspec --auto-open --gen-directory="gen" --clean
You're now in an Xcode workspace generate for building, debugging and testing the FirebaseCrashlytics CocoaPod.
Updating crash report proto
If the crash report proto needs to be updated, follow these instructions -
- Prerequisite installations:
gem (update|install) cocoapods cocoapods-generatebrew install protobuf nanopb-generatoreasy_install protobuf python
- Update
ProtoSupport/Protos/crashlytics.protowith the new changes - Depending on the type of fields added/removed, also update
ProtoSupport/Protos/crashlytics.options.CALLBACKtype fields in crashlytics.nanopb.c needs to be changed toPOINTER(through the options file). Known field types that require an entry in crashlytics.options arestrings,repeatedandbytes. - Run
generate_project.shto update the nanopb .c/.h files.
Running Unit Tests
Open the generated workspace, choose the FirebaseCrashlytics-Unit-unit scheme and press Command-u.