Set up Firebase Crashlytics on IOS

徘徊边缘 提交于 2021-01-01 07:09:08

问题


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

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


回答1:


To test this you can force a crash..

What you can do is...

  • Add a button on view and implement its touchupInside event.
  • in that method just write fatalError()
  • Run your app and click on that button.(You app will crash here so it will be close)
  • Now open app again(Do not run app. Just open it by taping on app icon)

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.).

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



来源:https://stackoverflow.com/questions/64365931/set-up-firebase-crashlytics-on-ios

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