Objective-c – SIGABRT AND SIGTERM THREAD in all the programs

iphoneobjective cxcode

I use Xcode 4.2 and I get 90% of the time this message:

@autoreleasepool 
{
    return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}

Thread 1: Program received signal "SIGABRT"

When it works and quit iOS Simulator I get :

Thread!: program received signal SIGTERM

NOW ALL the programs (even simple tutorials with single sound button) that worked perfect before when I quit Simulator I get SIGTERM and when I try to run again I get SIGABRT.
I am getting paranoidddddddddd.

Error: unknown error code.
This generally means that another instance of this process was already running or is hung in the debugger.sharedlibrary apply-load-rules all
Current language: auto; currently objective-c
(gdb)

What am I supposed to do?

Best Answer

Some things for you to try that have helped me in the past (in this order):

  1. Product > Clean
  2. Uninstall/delete your apps from your devices manually.
  3. In iOS Simulator, iOS Simulator > "Reset Content and Settings".
  4. Delete everything in your "Derived Data" for the projects causing the problems. (Screenshot) In Organizer > Projects.
  5. Quit xCode.
  6. Restart your machine.

enter image description here

I've noticed that Derived Data causes the most problems when you make multiple projects with the same name, wether it's on purpose, or by accident.

Edit: More details..

The only time I've ever gotten SIGTERM is when you run a test on a "device" and then quit the app from the device before you hit stop in xCode, then try and launch it again on the device. If it was more of a SIGABRT problem, I always check my IBOutlets. SIGABRT happens every time you delete the code for an outlet, but don't delete the connection in IB. [xcode 4.2.1]

Related Topic