Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to track the exact issue for the crash in iOS

When I was debugging my iPhone app, I got an error and the app got crashed. I have added a exception break point but it didn't point any where in the code and crashed in main.m.

Here I am adding the screen shot of the XCode window when the app crashed.

enter image description here How can I find the exact issue for the crash from this?

Is it possible? Please help.

like image 518
Mithuzz Avatar asked Mar 04 '13 10:03

Mithuzz


1 Answers

Enable Zoombie so that you will get the error description in log.

If you edit the scheme you want to turn on zombies for (in the "Product" menu, select "Edit Scheme"), go to the "Run Foo.app" stage in the left panel, and the "Arguments" tab on the right. You can then add NSZombieEnabled to the "Environment Variables" section and set the value to YES, as you could in Xcode 3.

In Xcode 4.1 and above, there's also checkbox on the "Diagnostics" tab of the "Run" stage to "Enable Zombie Objects".

like image 150
Melbourne Avatar answered Sep 22 '22 03:09

Melbourne