5

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.

JosephG
  • 2,791
  • 6
  • 30
  • 52

5 Answers5

2

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.

Community
  • 1
  • 1
Dirk
  • 1,992
  • 21
  • 33
  • Thanks! I deleted the folder, and still no luck...It still says install failed...But also, to clarify, I don't even get an iphone on the screen when it loads, just a black window – JosephG Sep 27 '13 at 13:58
  • What happens when you select “Open Developer Tool”->”iOS Simulator” in Xcode? Do you still get the black window? – Dirk Sep 27 '13 at 16:05
  • This worked for me. I quit the sim and ran this command: `sudo rm -rd ~/Library/Application\ Support/iPhone\ Simulator/`, after which I was able to launch the sim from the Finder and see the springboard. – sumizome Mar 10 '14 at 19:21
2

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

  • To be clear, Elad is referring to the iOS Simulator menu item in the simulator app. But that selection did nothing for me, unfortunately. – sumizome Mar 10 '14 at 19:15
1

Perhaps this answer will help?

The simulator should be in this folder:

/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iOS Simulator.app
Community
  • 1
  • 1
Kyle Bachan
  • 1,034
  • 1
  • 18
  • 32
0

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

Shantanu
  • 195
  • 3
  • 13
0

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,

Community
  • 1
  • 1
Iman
  • 2,029
  • 2
  • 12
  • 32