0

I saw this Q&A.

I have the exact problem:

"Every time my app crashes Xcode highlights the UIApicationMain() call in the main() function as the line that caused the crash"

I tried the selected solution: adding breakpoint - on catch - for all exceptions.

But still, Xcode highlights the UIApplicationMain() function.

I am using XCode 4.6

What could cause it?

Community
  • 1
  • 1
Dejell
  • 13,947
  • 40
  • 146
  • 229
  • What kind of memory management are you using? ARC? – Antwan van Houdt Apr 18 '13 at 13:55
  • It is most likely a memory management issue where somewhere you are doing something you shouldn't be doing, you could try using the static analyzer in order to find some of such issues. – Antwan van Houdt Apr 18 '13 at 13:59
  • Add an "All Exceptions" breakpoint on throw. Then you see where it happens. You may need to press "continue" ones or twice before the related message appears. – Hermann Klecker Apr 18 '13 at 14:08
  • Is it the same reason `reason: '-[__NSCFDictionary setObject:forKey:]: attempt to insert nil value`? – Popeye Apr 18 '13 at 14:16

1 Answers1

0

You should add an exception breakpoint indeed, but instead of on catch select on throw obviously.

Attila H
  • 3,616
  • 2
  • 24
  • 37