I have Xcode 4.2 and whenever I run my app in the simulator and I press the stop debugging button, I get a sigkill message. The breakpoint stops in the main.m file at this line:
int retVal = UIApplicationMain(argc, argv, nil, nil);
I know that when I force quit the app (from xcode's stop button) it would make sense to receive this, but I dont receive this when I do the same thing on my other apps. Sometimes I get a random sigkill message when I run the app (probably memory related, but I haven't found it yet)
Any suggestions?
Well, thats's somehow expected because a SIGKILL signal is really sent everyime you stop or relaunch the debugger.
You can try the band-aid solution explained here. In short:
About the random sigkills, maybe you should track references counting with Instruments. There's a section about it on the memory management guide if you will.