Xcode 5 IOS simulator black screen and app install fails

ε祈祈猫儿з 提交于 2019-12-01 03:41:51

问题


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....

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.


回答1:


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.




回答2:


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




回答3:


Perhaps this answer will help?

The simulator should be in this folder:

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



回答4:


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




回答5:


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,



来源:https://stackoverflow.com/questions/19041556/xcode-5-ios-simulator-black-screen-and-app-install-fails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!