简体   繁体   中英

Firebase Crashlytics setup for flutter on flutter ios

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM