Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone app not starting on simulator, no errors

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.

like image 988
Richard Williams Avatar asked Mar 03 '12 15:03

Richard Williams


People also ask

How do you refresh iPhone simulator?

ctrl+cmd+z. Click the reload button image.

Which command is used to run the app on iOS simulator?

Launch command is used to launch a application in your simulator device.


2 Answers

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

like image 109
Ashar Avatar answered Oct 11 '22 07:10

Ashar


Extending on Ashar's answer (as it worked for me).

First click into "Edit Scheme", pictured below.

click edit scheme

Then in the popup that appears, click Run [Your App Name] and set the Executable dropdown menu to [Your App Name].app, pictured below. click Run<App Name>, set executable

This fixed the issue for me. Hope it helps.

like image 40
dloomb Avatar answered Oct 11 '22 08:10

dloomb