ios - Firebase/Crashlytics 在提交崩溃报告时遇到问题

标签 ios swift firebase crashlytics

我遵循了 Firebase/Crashlytics 上的说明,但我无法在控制台中显示我的崩溃。在某个时间点,这确实有效,但现在却无效。

这是最近尝试在崩溃后上传的控制台输出。

2018-12-13 19:18:13.145000-0800 MyApp[599:21332] 4.8.1 - [Firebase/Analytics][I-ACS036002] Firebase screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable screen reporting, set the flag FirebaseScreenReportingEnabled to NO (boolean) in the Info.plist
file log added:  true
2018-12-13 19:18:13.209647-0800 MyApp[599:21335] 4.8.1 - [Firebase/Core][I-COR000001] Configuring the default app.
2018-12-13 19:18:13.221188-0800 MyApp[599:21269] [Fabric] [Crashlytics] This version of FIRApp does not support isDataCollectionDefaultEnabled. Ignoring.
2018-12-13 19:18:13.221338-0800 MyApp[599:21269] [Fabric] [Crashlytics] This version of FIRApp does not support isDataCollectionDefaultEnabled. Ignoring.
2018-12-13 19:18:13.221364-0800 MyApp[599:21269] [Fabric] [Crashlytics] This version of FIRApp does not support isDataCollectionDefaultEnabled. Ignoring.
2018-12-13 19:18:13.221395-0800 MyApp[599:21269] [Crashlytics] Version 3.12.0 (136)
2018-12-13 19:18:13.221478-0800 MyApp[599:21269] [Crashlytics] Running on iPhone8,4, 11.4.1 (15G77)
2018-12-13 19:18:13.230209-0800 MyApp[599:21269] [Crashlytics:Crash:Reports:Event] Registered Firebase Analytics event listener
2018-12-13 19:18:13.235577-0800 MyApp[599:21341] [Fabric] [Crashlytics] This version of FIRApp does not support isDataCollectionDefaultEnabled. Ignoring.
2018-12-13 19:18:13.243302-0800 MyApp[599:21269] [Answers] Initialized
2018-12-13 19:18:13.289486-0800 MyApp[599:21269] [Fabric] [Crashlytics] This version of FIRApp does not support isDataCollectionDefaultEnabled. Ignoring.
2018-12-13 19:18:13.297664-0800 MyApp[599:21269] [Fabric] Initialized with kit versions: {
    "com.twitter.answers.ios" = "1.4.0";
    "com.twitter.crashlytics.ios" = "3.12.0";
    "io.fabric.sdk.ios" = "1.9.0";
}
2018-12-13 19:18:13.352472-0800 MyApp[599:21341] [Crashlytics:Crash:Reports] Packaged report with id 'fb37c35c9185406b9bd72acc10709fb4' for submission
2018-12-13 19:18:13.353865-0800 MyApp[599:21341] [Crashlytics:Crash] Unable to read identifier at path *SOMEPATH**
2018-12-13 19:18:13.364756-0800 MyApp[599:21341] [FileManager] Failed to remove file '(null)' : (null)
2018-12-13 19:18:13.365267-0800 MyApp[599:21341] [Crashlytics:Crash:Reports] Unable to remove a processing item
2018-12-13 19:18:13.365617-0800 MyApp[599:21341] [Crashlytics:Crash:Reports] Packaged report with id '(null)' for submission
2018-12-13 19:18:13.428401-0800 MyApp[599:21269] [Fabric] [Fabric +with] called multiple times. Only the first call is honored, please pass all kits you wish to initialize
Documents: file:///var/mobile/Containers/Data/Application/841A117D-7E43-4CD7-AEF6-2EB205E18B84/Documents/
Database Directory: /var/mobile/Containers/Data/Application/841A117D-7E43-4CD7-AEF6-2EB205E18B84/Library/Application Support/storage.sqlite
2018-12-13 19:18:13.463439-0800 MyApp[599:21335] 4.8.1 - [Firebase/InstanceID][I-IID013010] InstanceID library version 2.0.10
2018-12-13 19:18:13.470649-0800 MyApp[599:21340] 4.8.1 - [Firebase/Analytics][I-ACS024000] Debug mode is on
2018-12-13 19:18:13.470905-0800 MyApp[599:21340] 4.8.1 - [Firebase/Analytics][I-ACS005000] The AdSupport Framework is not currently linked. Some features will not function properly. Learn more at somegoogleURL
2018-12-13 19:18:13.495759-0800 MyApp[599:21269] NO CHANGES IN ** MagicalRecord Default Context ** CONTEXT - NOT SAVING
1136.0

正如您从日志中看到的那样,上传报告时遇到问题,我不明白为什么。

这是我的应用历史的简要总结,最初它使用 Fabric.io,然后转移到 Firebase/Crash,然后转移到 Firebase/Crashlytics。这是我已经尝试过的方法。

  1. 我检查了我的 Google-Service-Info.Plist,看看它是否与 firebase 的常规设置屏幕中的内容相匹配。
  2. 我检查了脚本以确保我正确上传了 dSym,它说是的。 upload-symbols[65786:2975450] 成功提交带有 UUID 的架构 arm64 的符号 dSYM 中的一些 UUID:myApp.app.dSYM

  3. 我查看了构建阶段的示例以设置 crashlytics,它看起来不错

  4. 我检查了应用程序 ID、苹果 ID 和团队 ID,它们看起来是正确的。
  5. 我尝试移动崩溃位置,但无济于事。

在我的控制台中我没有看到以下消息

[Crashlytics:Crash] report submission successful

正如其他用户所做的那样,尽管我相信我很久以前就这样做过。

[更新] 我确实已经从构建脚本和 info.plist 中删除了 Fabric.io key 。

[更新] 仔细阅读说明后,我发现上面的控制台信息实际上是上传成功。我知道这是因为出现了崩溃并且时间戳与日志匹配。要查看崩溃是如何在 firebase 控制台中正确显示的,请查看答案。

最佳答案

我昨天遇到了同样的问题,自己解决了。

我已通过集成从 Fabric Crashlitics 转移到 Firebase。过了一会儿,我决定完全迁移到 Firebase Crashlytics。

  1. 检查您的构建脚本。它必须只是 "${PODS_ROOT}/Fabric/run" 没有任何键它在 Fabric 中的样子。 (如果您有 Xcode 10,还必须指定输入文件)
  2. 您必须从 Info.plist 中删除 Fabric key ,否则 Fabric 的脚本会显示有关 key 丢失的错误。
  3. (这是关键点)您必须删除 Fabric 集成。此集成使所有非 Fabric Crashlytics 崩溃静音,即使您的崩溃已成功发送。删除集成后,您必须先为您的项目配置 Crashlytics,然后才能看到出现崩溃的板。

希望对您有所帮助。

关于ios - Firebase/Crashlytics 在提交崩溃报告时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53773129/

相关文章:

ios - 无法将数据从 UITableviewController 传递到 ViewController - 不断收到 Swift 动态 Cast 类无条件错误

angular - 等到触发器在 ionic-angular 的 firebase 上被触发

android - Unity Firebase SetCurrentScreen 必须从主线程调用

ios - 添加 SceneKit 场景文件到 View Controller

ios - centerXAnchor 和 center.x 的区别

ios - 启动时继续

ios - 我正在尝试制作一种选择器样式,例如设置中的外观选择器

IOS/objective-C : MakeUILabel Flow to Multiple Lines with Autolayout

ios - Jquery Mobile 1.4 页眉页脚在页面转换期间丢失 css 样式

javascript - 在 Firebase JS SDK 中显式更新 session token