iPhone app not starting on simulator, no errors

Richard Williams picture Richard Williams · Mar 3, 2012 · Viewed 12.3k times · Source

I'm having a problem where my (simple) iOS app builds fine, says running but on the simulator I just get a blank screen. In xCode, it still says "Running XXXX on iPhone 5.0 Simulator" but also give a "Thread 1: signal SIGABRT";

There are no readable errors in the bottom window, just:

argc = (int) 1
argc = (char **) 0xbffff578

It has been absolutely fine until now. I had the problem after trying to swap out a few images and their @2x versions for ones that I'd slightly tweaked.

I've done a clean and I have cleaned the build folder. I have also emptied the DerivedData folder and tried rebooting. I've tried to add breakpoints in my AppDelegate in the didFinishLaunchingWithOptions method, but it seems to never reach them.

Pretty much run out of things I can think of to try.

Debug Navigator:

enter image description here

Edit:

When I comment out:

@property (strong, nonatomic) UIWindow *window;

from @interface AppDelegate

and comment out

@synthesize window = _window;

from @implementation AppDelegate, it loads fine albeit with a blank screen because I guess the window is not loading.

Answer

Ashar picture Ashar · Oct 8, 2012

This might help you as it helped me

Xcode->Product->Edit Scheme

here you can see "Executables" set here "yourappname.app" and it will start working quite fine