gpt4 book ai didi

ios - 没有 cocoapods 和 fabric API key 的 Swift Crashlytics 不显示仪表板或任何数据

转载 作者:行者123 更新时间:2023-11-28 06:01:56 25 4
gpt4 key购买 nike

我在没有 cocoapods 的 swift 项目中实现了 firebase Crashlytics。到目前为止,我已经完成了以下任务。但是,仍然没有在仪表板上显示任何内容。

  1. 在 Firebase 控制台中创建项目。下载 plist 文件并添加到项目中。
  2. 添加了带有 Firebase.h 头文件的 firebase 库。然后从设置中添加带有 Obj-c 桥 header 文件的 header 。还有 fabric 和 Crashlytics 库。
  3. 添加了运行脚本。
  4. appdelegate 中,didFinishLaunchingWithOptions() 中,添加了这 3 行。

    FirebaseApp.configure()
    Fabric.sharedSDK().debug = true
    Fabric.with([Crashlytics.self])
  5. 在 View Controller 中,添加以下行,在模拟器上运行,崩溃,重新启动应用程序。这样我就可以期待它上传到仪表板上。在日志中找不到任何内容,只看到启用了 firebase。 Crashlytics 版本 ...

    Crashlytics.sharedInstance().crash()
  6. 根据我设置的项目设置,调试信息格式:带有 dSYM 文件的 DWARF

但是我在仪表盘上什么也看不到。我不在我的 Plist 中使用任何 API key ,我只是在我的项目中使用 plist。我的问题是什么?

enter image description here

enter image description here

enter image description here

最佳答案

我想我知道问题出在哪里。您可能在附加了调试器的模拟器中运行。

Crashlytics can’t capture crashes if your build attaches a debugger at launch.

强制崩溃的文档:https://firebase.google.com/docs/crashlytics/force-a-crash

要解决此问题,请在 未附加调试器 的模拟器中转到您的应用并重现您的崩溃。您应该会在 Firebase 控制台中看到崩溃。

关于ios - 没有 cocoapods 和 fabric API key 的 Swift Crashlytics 不显示仪表板或任何数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49391204/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com