Firebase crash reporting for iOS doesn't send crashes despite successful init

亡梦爱人 提交于 2019-12-23 09:03:33

问题


I added firebase crash reporting to my iOS project (added pod, added build phase script, added json to project, ...). When i run my app, i see in my console:

Firebase Crash Reporting: Successfully enabled

For testing, i insert fatalError() in my code after my FIRApp.configure() code (as suggested here: https://firebase.google.com/docs/crash/ios#create_your_first_error).

No crash reports are sent at my next app launch (that doesn't crash). I see nothing in my xcode console and nothing in my web console.


回答1:


Not an immediate solution, but some diagnostic tricks that may help locate the problem:

  • Make sure that the debugger is DISABLED when you generate the crash in the simulator or attached device, or the debugger will grab the crash before FCR does. Launch the app (⌘R) in Xcode, stop the debugger (⌘.) in Xcode, and re-launch the app manually in the simulator or on the device.
  • If you are using the simulator and you follow the above instructions, then you should see the raw crash dumps produced if you execute the command find ~/Library/Developer/CoreSimulator -path '*/FCRDumps/*.dmp' -ls (note that unprocessed crashes from other test apps will also be displayed).
  • If you see one or more dump files with the right timestamp, then you should get a successful upload the next time the app launches. Remove the fatalError() line, then rebuild and relaunch. The .dmp files in that container should soon disappear, replaced by .crash files (use find ~/Library/Developer/CoreSimulator -path '*/FCRCrashQueue/*.crash' -ls to find them). The crash files will be deleted one at a time after they successfully upload.


来源:https://stackoverflow.com/questions/37748049/firebase-crash-reporting-for-ios-doesnt-send-crashes-despite-successful-init

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!