I assume you are using Xcode 4.x. Try entering your schema settings and switch to another debugger (GDB if LLDB is currently installed or vice versa).
If this does not work, we need more information:
- which version of Xcode and iOS are you using?
- Is there a problem in the simulator or on your device, or in both cases?
- Have you tried to place a breakpoint in different places in your code?
As far as I can tell, this is a debugger problem. So your application is not really crashing, it is a debugging session that leads to a crash that causes the application to terminate. A similar effect can be observed when you click Stop in Xcode or disconnect your device when the application is attached to the debugger in Xcode.
There may be a problem with the mismatch between the versions of Xcode and iOS. Please provide additional information about your environment to help diagnose the problem.
source share