在IOS上设置Firebase Crashlytics [英] Set up Firebase Crashlytics on IOS

查看:55
本文介绍了在IOS上设置Firebase Crashlytics的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从没设置过crashlytics当我按照官员的指示进行操作时

I never setted crashlytics before and when i follow officials instructions https://firebase.google.com/docs/crashlytics/get-started?platform=ios&authuser=0#add-sdk i get stuck in the run script part crashlytics version 4.6.2

在输出中,我得到确认已设置crashlytics的确认,但在仪表板中却什么也没看到

in the output i get a confirmation that crashlytics is setted but in the dashboard i see nothing

推荐答案

要对此进行测试,您可以强制崩溃.

To test this you can force a crash..

您可以做的是...

  • 在视图上添加一个按钮,并实现其 touchupInside 事件.
  • 在该方法中,只需编写 fatalError()
  • 运行您的应用程序,然后单击该按钮.(您的应用程序将在此处崩溃,因此将关闭)
  • 现在再次打开应用程序(不要运行应用程序.只需点击应用程序图标即可打开它)

因此崩溃报告将发送到firebase,您可以在5分钟内(根据其文档)在firebase仪表板上查看结果.

So the crash report will be send to firebase and you can see the result on firebase dashboard with in 5 minutes(as per their doc.).

还需要在项目的构建设置中设置此标志,以生成用于调试模式的dsym文件.

Also you need to set this flag in build setting of your project to generate dsym file for debug mode.

还必须在构建阶段进行设置

Also this has to be set in build phase

这篇关于在IOS上设置Firebase Crashlytics的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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