Basically, I want to set up Crashlytics for flutter in the ios application but I don't find any proper docs dedicated to ios in the flutterfire docs and I try different tutorials but nothing works. please guide me !!
after you define your app in firebase console and download the "GoogleService-Info.plist" :
you must add it to ios folder in flutter app:
you must add the bellow package to pubspec.yaml file and use it like below link:
dependencies:
firebase_crashlytics: ^2.7.1
https://pub.dev/packages/firebase_crashlytics/example
( This step is optional ) After that, you can add the below script to the build phase for Crashlytics requires you to upload debug symbols.
You can use a run script build phase for Xcode to automatically upload debug symbols post-build. Find the run script here:
https://firebase.google.com/docs/ios/installation-methods?authuser=0
"${PODS_ROOT}/FirebaseCrashlytics/run"
you must enable crashlytics in firebase console:
this works(enables) when you crash manually on the button tap (it means that after you launch your app you must make a crash to send a signal to your crashlytics) after that your crashlytics enables.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.