3

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)

Brad Larson
  • 170,088
  • 45
  • 397
  • 571
daveoncode
  • 18,900
  • 15
  • 104
  • 159
  • 2
    There are some hints for catching the failure in [this thread](http://stackoverflow.com/questions/8100054/no-exception-stack-trace-in-console-under-xcode-4-2-ios-5). – Hot Licks Feb 05 '12 at 15:21
  • thanks, could you please post your comment as an answer so I can accept it? :) – daveoncode Feb 06 '12 at 13:17

4 Answers4

3

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

Community
  • 1
  • 1
Hot Licks
  • 47,103
  • 17
  • 93
  • 151
2

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.

Audun Kjelstrup
  • 1,430
  • 8
  • 13
1

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

fpg1503
  • 7,492
  • 6
  • 29
  • 49
suraj Gupta
  • 76
  • 1
  • 9
  • Try not inserting links to an answer outside SE as they may stop working. Answers should be mostly self-contained. – fpg1503 Jun 28 '16 at 13:45
-1

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