iOS版的Firebase崩溃报告不会发送成功的初始化崩溃 [英] Firebase crash reporting for iOS doesn't send crashes despite successful init

查看:473
本文介绍了iOS版的Firebase崩溃报告不会发送成功的初始化崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我向我的iOS项目添加了Firebase崩溃报告(添加了pod,添加了构建阶段脚本,将json添加到项目中...)。
当我运行我的应用程序时,我在控制台中看到:

  Firebase崩溃报告:已成功启用

为了测试,在我的FIRApp.configure()代码之后,我在代码中插入了fatalError() a href =https://firebase.google.com/docs/crash/ios#create_your_first_error> https://firebase.google.com/docs/crash/ios#create_your_first_error )。



我的下一个应用程序启动时不会发送崩溃报告(不会崩溃)。我没有在我的xcode控制台中看到任何东西,也没有在我的web控制台中看到任何东西。 解决方案

不是一个直接的解决方案,而是一些诊断技巧帮助找到问题:


  • 在模拟器中生成崩溃时,确保调试器是 DISABLED 或者调试器会在FCR执行之前抓取崩溃。在Xcode中启动应用程序(⌘R),停止Xcode中的调试器(⌘。),然后在模拟器或设备上手动重新启动应用程序。

  • 如果您正在使用模拟器,然后按照上面的说明,那么如果执行 find〜/ Library / Developer / CoreSimulator -path'* / FCRDumps / *。dmp'-ls命令,则会看到原始崩溃转储(请注意,其他测试应用程序的未处理崩溃也会显示)。
  • 如果您看到一个或多个具有正确时间戳的转储文件,则应该下次应用程序启动时成功上传。删除 fatalError()行,然后重建并重新启动。该容器中的 .dmp 文件即将消失,替换为 .crash 文件(使用找到〜/ Library / Developer / CoreSimulator -path'* / FCRCrashQueue / *。crash'-ls 来找到它们)。崩溃文件将在成功上传后一次删除。


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.

解决方案

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.

这篇关于iOS版的Firebase崩溃报告不会发送成功的初始化崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆