Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

no data in firebase crashlytics reports after 1 day

My iOS app is running firebase reports since several weeks. I added crashlytics 2 days ago by following the official steps: https://firebase.google.com/docs/crashlytics/get-started?authuser=0
in fact, It seems all I had to do was to install these pods:

pod 'Fabric', '~> 1.7.2'  
pod 'Crashlytics', '~> 3.9.3'  

I also added "DWARF with dSYM File" for the debug information format on both debug and release build settings

Now when I start the app I can see in the log :

[Crashlytics] Version 3.9.3 (128)

Then I forced a crash from an app launched manually (not with the debugger), and I can see the following in the logs after I restart the app from xcode:
[Crashlytics:Crash:Reports] Packaged report with id '9aeb11f6423b4f11b95a0f3263fc7510' for submission
nothing else regarding crashlytics

my question : Why I can't see any data in the firebase crashlytics reports?

like image 943
Gogo123 Avatar asked Nov 23 '17 15:11

Gogo123


People also ask

How do I fix missing dSYMs on Firebase Crashlytics?

If you can find the missing dSYM there, you can upload it again to fix the issue. Sometime, Apple Connect returns some wrong UUIDs, it means the user crashes on a binary has a missing UUID but Firebase Crashlytics received the dSYM of the wrong UUID so they cannot link together and cause the issue.

Is Crashlytics real time?

Firebase Crashlytics, a real time crash reporting tool, helps you prioritize and fix your most pervasive crashes based on the impact on real users. Crashlytics also easily integrates into your Android, iOS, macOS, tvOS, and watchOS apps.

How do I get Crashlytics logs from Firebase?

To give yourself more context for the events leading up to a crash, you can add custom Crashlytics logs to your app. Crashlytics associates the logs with your crash data and displays them in the Crashlytics page of the Firebase console, under the Logs tab.

How do I enable opt-in crash reporting in Firebase Crashlytics?

By default, Firebase Crashlytics automatically collects crash reports for all your app's users. To give users more control over the data they send, you can enable opt-in reporting instead. To do this, you have to disable automatic collection and initialize Crashlytics only for opt-in users.

How do I associate custom key/value pairs to a Firebase Crash Report?

You can associate arbitrary key/value pairs with your crash reports, then use the custom keys to search and filter crash reports in the Firebase console. In the Crashlytics dashboard, you can search for issues that match a custom key.

What happened to Crashlytics console Crash reports?

Crash reports stopped appearing in crashlytics console mid-November with both old and new version of the app, with some of the newer versions updated to 17+ version of the Google Crashlytics SDK. Debugging the app locally with logcat enabled shows Crashlytics initializing but not the usual logcat entries seen when a crash report is being sent.


5 Answers

For those who are still having problems. Check if you still have pod 'Firebase/Crash' in your podfile. My problem was fixed when I removed the old Firebase Crash Reporting.

like image 143
IuryPainelli Avatar answered Oct 04 '22 11:10

IuryPainelli


You're using the right pods for Crashlytics in Firebase - you need both the Fabric and Crashlytics pods.

Crashes should appear in the Firebase dashboard with the instructions you went through in https://firebase.google.com/docs/crashlytics/get-started?authuser=0. Make sure you also have Firebase Core in your project by following the "Before you begin" steps.

It's possible that your dSYM is missing, which is needed to symbolicate your crashes. Take a look at https://firebase.google.com/docs/crashlytics/find-missing-dsym?authuser=0 for instructions on how to upload your dSYM and then try out another test crash.

Also, check out my comment in the other answer for clarifications around Crashlytics in Firebase vs Fabric.

like image 21
Alexizamerican Avatar answered Oct 04 '22 13:10

Alexizamerican


FYI I had a similar experience, except that my errors started showing up within a few hours. Here are the two sets of instructions I followed, the second of which is actually necessary even though it isn't included in "get started":

  1. https://firebase.google.com/docs/crashlytics/get-started
  2. https://firebase.google.com/docs/crashlytics/force-a-crash

The steps I followed, in case you want to go down the list and make sure you didn't miss anything:

  1. Add pods to podfile.
  2. pod install.
  3. Restart xcode.
  4. Add build step.
  5. Change build settings to DWARF with dSYM File.
  6. Add a button that calls Crashlytics.sharedInstance().crash().
  7. Run the app on simulator, stop the app, restart by clicking it, tap the crash button. Restart the app.
  8. Instead of Crashlytics.sharedInstance().crash(), call:
    let x: Int? = nil
    let y = 5 + x!

  9. Run, stop, click, tap button, crash. Restart.

I'd advise looking at system logs, but it looks like you've already done that. I hope some part of this gives you an idea that helps.

like image 28
Bartholomew Furrow Avatar answered Oct 04 '22 12:10

Bartholomew Furrow


Check run script only when installing

like image 30
Hoang Nguyen Avatar answered Oct 04 '22 11:10

Hoang Nguyen


I tried the same yesterday, where I crashed the app multiple times. Both with Crashlytics.sharedInstance().crash() and

let x: Int? = nil
let y = 5 + x!

with no results in the dashboard.

Today I tried implement Firebase Crashlytics in another app. But this time I run it on a device instead of in the simulator. And within 5 min. I got data in the dashboard.

So my suggestion is: Try run it on a real device instead of in the simulator.

like image 36
Dinsen Avatar answered Oct 04 '22 12:10

Dinsen