-
I'm trying to set crashlytics on ios and emulate app crash in order to start app crash dashboard in firebase console. I checked different options and found this PR #5053 but still, I'm unaware of how to simulate crash on ios. As it was mentioned here in discussions, crash on ios handled by Xcode debugger and firebase crashlytics doesn't fire. Is there any workaround on how I can run it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi there @zverexe - run it via the command line, not via Xcode, you can just make a debug page that is only present in debug builds, enable crashlytics logging in debug via firebase.json, run pod install (so firebase.json is ingested in the plist later when you build), re-build and run it. You can examine our tests directory in the repo to see how we do it react-native-firebase/tests/firebase.json Lines 11 to 14 in 47d2265 react-native-firebase/tests/app.js Lines 63 to 77 in 47d2265 https://invertase.io/blog/react-native-firebase-crashlytics-configuration |
Beta Was this translation helpful? Give feedback.
Hi there @zverexe - run it via the command line, not via Xcode, you can just make a debug page that is only present in debug builds, enable crashlytics logging in debug via firebase.json, run pod install (so firebase.json is ingested in the plist later when you build), re-build and run it.
You can examine our tests directory in the repo to see how we do it
react-native-firebase/tests/firebase.json
Lines 11 to 14 in 47d2265
react-native-firebase/tests/app.js
Lines 63 to 7…