"The Debugger has exited due to signal 5 (SIGTRAP)", only when NOT debugging
I am developing with Xcode 3.2.5 for the iPhone. 开发者_运维百科When testing my program in the simulator, I get this error immediately when my program starts and crashes
The Debugger has exited due to signal 5 (SIGTRAP)
But if I activate debugging, even if there are not breakpoints, the program runs perfectly.
Do you know where to start looking at?
Thanks
Try restarting Xcode and click "Clean all targets", that might help.
This answer suggests you can look at the simulator's crash logs to find a stack trace. This might help narrow down the search:
Crash logs generated by iPhone Simulator?
Does the program run OK on the device itself?
I just had the same problem, clean build didn't help. I eventually reset the simulator and removed all the files in the .xcodeproj folders that weren't project.pbxproj (ie: all the jim.* files etc).
I should have done one at a time because now I don't know which fixed the problem, but now it works.
精彩评论