Unable to find code where crash happens in xcode crash report

烂漫一生 提交于 2019-12-12 18:33:52

问题


I got several crash reports in x-code(reported by users) but unable to find out what is it for. I opened it in project but it doesn't show me code line where crash occurred (obviously i tried clicking on every line of the stack trace).


回答1:


If you want to trigger Crashes in your released builds so you should integrate crash reporter in your project and Crashlytics is one of them.

Integrate Crashlytics

Integrate it and release your build to client or tester. Whenever it will crash you will be notify by email with the Name of controller with line number.

If you are Debugging:

You must use Exception Breakpoint for this:

In your Project Navigator Select Breakpoint and Select + Option like below:

Ater that you will prompt with :

It will automatically Enable Exception Breakpoint.



来源:https://stackoverflow.com/questions/41456810/unable-to-find-code-where-crash-happens-in-xcode-crash-report

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