Unable to find code where crash happens in xcode crash report

2.3k views Asked by At

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

stack trace from x-code

1

There are 1 answers

3
Dheeraj D On

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:

enter image description here

Ater that you will prompt with :

enter image description here

It will automatically Enable Exception Breakpoint.