问题
I implemented Firebase Crashlytics in my iOS app. I followed all the steps in firebase documentation. I already ran crashlytics without the debugger by closing the app first and then re run the app so that crash reports can be sent. I even get this message
Crash upload submission succesful
I even added the Run script and set variable to "DWARF with DSYM"
"${PODS_ROOT}/Fabric/run"
I ready somewhere that if DSYM aren't uploaded you won't see your crashes even if they are uploaded successfully. So I went into my pods/Fabric/ and click on "run" CLI. It clearly says DSYM not uploaded because GoogleServiceInfo.plist wasn't found. Although it's there and yes it's included in my target as well as in my bundle.
Here is the screenshot. I have tried all possible steps to include GoogleService-Info.plist but still when I run manually it says this.
Any another thing that I can try ?
回答1:
Try this:
- Run your app from Xcode to install it on the simulator or your device
- Press the Stop button in Xcode to quit it
- Launch your app from the home screen to run it without the debugger
- Press the “Crash” button to trigger the crash
- Run the app again from Xcode so it can deliver the recorded crash to Crashlytics
- Within a few minutes, you should see the crash appear on your Firebase Crashlytics Console.
For reference:
Integrating Firebase and Crashlytics in iOS
回答2:
I have tried serval things but below steps are worked for me
- Put
FirebaseApp.configure()
to first line ofdidFinishLaunchingWithOptions
- If you have both
Firebase/Crashlytics
andCrashlytics
. RemovedCrashlytics
from pods and update it - Check in Build Phases
Run Script
if you have entry fot"${PODS_ROOT}/FirebaseCrashlytics/run"
. - If you're running app in debug mode make sure you have added
-FIRDebugEnabled
in Project's test scheme. - Run the App From Home Screen(Don't run it from Xcode) and crash it on any button's Action.(you will find the crash in Firebase Console with in 5-10 mins)
回答3:
To someone still struggling with the issue here is what resolved the issue for me.
I deleted the GoogleService-Info.plist and added it again.
I tried the crash on my welcome screen rather than in one of the screens of my tab bar controller as I believe from there it's unable to find GoogleServiceInfo.plist file so it worked.
回答4:
When I have this issue, I do a manual install and yes first use the Fabric app to initialise the app into their system - https://fabric.io/kits/ios/crashlytics/manual-install
来源:https://stackoverflow.com/questions/47937532/ios-firebase-crashlytics-not-showing-up-crashes-in-dashboard