Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add the Firebase iOS SDK (4.3.0 or higher) or Unity Plugin (6.15.0 or higher), then build, run, and crash your app

I am trying to integrate with Firebase Crashlytics.

I added the run scripts as described here. then installed the pods:

pod 'Firebase/Crashlytics'
pod 'Firebase/Analytics'

I configured the Firebase APIs:

FirebaseApp.configure()

I ran the app. the messages on the console seems to be ok.

But when I open the Crashlytics tab in the firebase console. I only get the message in the question title.

enter image description here

This is what I have in my Podfile.lock:

- Firebase (6.33.0):
like image 902
hasan Avatar asked Sep 30 '20 23:09

hasan


1 Answers

Add the dSYM to the debug file the Debug mode.

dSYM (Debug Symbolification) is needed to reverse symbolication of the code in crash.

enter image description here

Message states that you need to crash your app. Add the crash code on an event not on an app launch:

fatalError()

Note: Crashes doesn't get reported:

  1. If Xcode is connected to the app.
  2. It only get reported in the next app launch.

Steps:

  1. Run the app using Xcode.
  2. Disconnect it from Xcode by clicking stop.
  3. Re-launch the App manually.
  4. Crash your app.
  5. Re-launch it so the crash get reported.

Info. gathered from api docs.

like image 121
hasan Avatar answered Oct 20 '22 23:10

hasan