JosephG
JosephG

Reputation: 3253

Xcode 5 IOS simulator black screen and app install fails

I just updated my xcode to work with ios7. Now whenever I make a new app, even if its set to build for ios7, I get an error in the simulator when running. It says that the install failed, even if I just made the project and haven't coded anything into it yet. The simulator also shows a black screen. I have tried the reset content, and it didn't work. I saw something somewhere saying to delete the Iphone Simulator folder in application support, but no such folder seems to exist. What can I try to do?

Update--

With some additional research, I found that Iphone Simultor is in the Xcode.app now, but I don't know what to delete. There are many files under the iPhone Simulator Folder. If I delete the actual app, it just doesnt open. Any ideas?? I dont even get an iphone on the screen, just a black window...

Update 2:

Even when I just go to open developer tools -> iphone simulator it still gives me just a black screen....enter image description here

enter image description here

Update 3

I just re-installed X-code, and all works now! Strange....I have no idea what happened...But I thought I would let y'all know for others who have similar issues.

Upvotes: 5

Views: 7636

Answers (5)

Iman Rosstin
Iman Rosstin

Reputation: 2355

This is a version mismatch between your OS X version and your Xcode (iOS simulator) and it seems that you have upgraded your OS X so Xcode needs to be upgraded as well, Check the versions that match with each other.

You need to upgrade your Xcode which will upgrade iOS simulator.

Good Luck,

Upvotes: 0

Shantanu
Shantanu

Reputation: 315

Make sure any @try and @catch(NSException *exception) {} blocks are not commented or are working properly.

Upvotes: 0

Elad Shevah
Elad Shevah

Reputation: 37

When simulator open - Go to iOS simulator tab -> reset content and settings.. Work for me.

Upvotes: 2

Dirk
Dirk

Reputation: 2425

Deleting the iOS Simulator folder of the iOS version in question in

/Users/xxx/Library/Application Support/iPhone Simulator

helps, but then you always have to repeat all the settings you made in the simulator (language, for example). Try to press the home button and then delete your app like you do it on a real iOS device. You should then be able to install it again.

This seems to be a known issue.

Upvotes: 2

Kyle Bachan
Kyle Bachan

Reputation: 1107

Perhaps this answer will help?

The simulator should be in this folder:

/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iOS Simulator.app

Upvotes: 1

Related Questions