daveoncode
daveoncode

Reputation: 19578

Xcode: debug unexpected iOS app crashes

I'm facing unexpected crashes of my app running on an iPhone 4 with iOS 5.0.1, the app crash without generating any error message nor crash log. I did also enabled zombies and tested with Instruments with no luck... how can I figure out where is the problem? I'm totally stuck :(

ps. I'm using ARC and my app is multi thread (NSOpertations + GCD)

Upvotes: 3

Views: 7225

Answers (4)

suraj Gupta
suraj Gupta

Reputation: 74

Just follow this url you will get trick to track the causes of crash.

Upvotes: 0

Hot Licks
Hot Licks

Reputation: 47729

(By popular demand:) There are some hints for catching the failure in this thread.

Upvotes: 3

Audun Kjelstrup
Audun Kjelstrup

Reputation: 1430

From the breakpoint-menu in Xcode, press the little '+' button at your window bottom left, and add an exception breakpoint. It will give you a heads up if the app throws an exception due to erroneous code.

Upvotes: 2

user679424
user679424

Reputation:

add some breakpoint before crashing point and add a lot of NSAssert to check your assertion.

Upvotes: -1

Related Questions