no data in firebase crashlytics reports after 1 day
Asked Answered
W

5

19

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?

Waldo answered 23/11, 2017 at 15:14 Comment(5)
Are you seeing the Crashytics window in your Firebase Console, but it's empty?Toler
the crashlytics window in firebase only tells me to install the sdkWaldo
it tells me to go there : firebase.google.com/docs/crashlytics/get-started?authuser=0Waldo
Crashes forced with Crashlytics.sharedInstance().crash() are handled differently than real crashes (they are buffered and reported after a restart). If you are using crash(), you might try replacing it with some erroneous code that causes a real crash to see if it shows up in the console.Toler
@Waldo I am having the same problem. I tried several approaches as discussed but none worked. can you give us more information on the steps you took to fix this issue ?Rearm
S
11

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.

Smacking answered 16/2, 2018 at 3:18 Comment(0)
M
6

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.

Madeira answered 23/11, 2017 at 18:39 Comment(3)
Hi Alexizamerican! Thanks for your answer. The Crashlytics dashboard magically appeared this morning on my firebase project. Anyway the dashboard is still empty. I was told to upload the dSYMs which I did with the link you gave in a command line: "Successfully submitted symbols for architecture arm64 with UUID". But the dashboard still asks me to upload the dSYMs and it remains empty since then although I made the app crash several times with this dummy code : strcpy(0, "boom");Waldo
I do have Firebase Core in my project and firebase is running well.Waldo
To fully debug this for your specific app it's best to write-in to Firebase supportMadeira
A
6

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.

Arctic answered 7/12, 2017 at 22:8 Comment(2)
I tried pretty much every suggested solution without success. The key was running the app by itself in the simulator and not from Xcode.Oraorabel
@Oraorabel 's comment is the real answer. It deserves 100 votes!Kimberlite
W
2

Check run script only when installing

Woodnote answered 12/6, 2018 at 2:21 Comment(2)
why? it's not mentioned anywhere.Mckay
i created an adhoc ipa but dysm are not getting uploadedCinerama
V
1

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.

Victoria answered 11/12, 2017 at 13:35 Comment(2)
This made me think, perhaps crashes are logged faster on Firebase once more devices send a crashreport.Mai
I don't think so. My experience is as long you use a real device, they are coming shortly after you opened the app againVictoria

© 2022 - 2024 — McMap. All rights reserved.