Firebase Crashlytics not showing crash report in c

2020-08-09 06:46发布

问题:

I have setup all these steps and bundel id on Firesbase Dashboard and tried crash many times but not getting any report.

  1. pod 'Firebase/Core' pod 'Fabric', '~> 1.7.2' pod 'Crashlytics', '~> 3.9.3'
  2. In Build phase added run Script : "${PODS_ROOT}/Fabric/run"
  3. Debug Inforation Format : DWARF with dSYM File
  4. running in simulator with following steps

    • (IBAction)crashButtonTapped:(id)sender { [[Crashlytics sharedInstance] crash]; }

    • Click play_arrow Build and then run the current scheme in Xcode to build your app on a device or simulator.

    • Click stop Stop running the scheme or action in Xcode to close the initial instance of your app. This initial instance includes a debugger that interferes with Crashlytics.
    • Open your app again from the simulator or device. Touch Crash to crash the app.

回答1:

I took the same steps as you and thought I had an issue until I realized there's a delay for the crashes to show up on the console. In my case it took about 40 minutes to appear.

Here's a blog post about it.



回答2:

Check run script only when installing



回答3:

I did everything on stack overflow; my upload was successful, but nothing showed up. After trying to figure out the solution, I tried this, and it worked for me as well as for some other people facing the same issue... might help others who end up here.

I posted it in issues section. Check it out https://github.com/firebase/quickstart-ios/issues/413

One thing that I did was to move my test crash

Crashlytics.sharedInstance().crash()

to the first view controller (e.g., WelcomeViewController),then after the crash I closed and opened my app again. Then just waited for sometime and it appeared.

Before doing all of that my test crash was within a view controller, which was part of a tabBarController as it wasn't the top most view controller. Maybe that's what caused the issue. After my first crash appeared on the firebase console then my other crashes started appearing.



回答4:

Check your app bundle identifier in app eg. bundle identifier is abc_app, the go to the Firebase app console project overView - > project settings and then Your App section select your app and check that the bundle identifier in the app and bundle identifier in the Firebase app. Both should be the same!