Xcode 9 doesn't have any simulator device

2020-02-09 09:06发布

I just downloaded xcode 9 beta, but there is no simulator within it. Try to add new simulator but the create button doesn't work. Please help

By "no simulator within it" I mean there is option to build with simulator.

See enter image description here.

Also, the create button doesn't work enter image description here

12条回答
家丑人穷心不美
2楼-- · 2020-02-09 09:48

It is a simulator but you need to close Xcode 8 if you have it open and restart Xcode 9 beta.

查看更多
在下西门庆
3楼-- · 2020-02-09 09:50

Ensure your Deployment Target version in Build Settings is also set to the desired version (and that you have that version of the respective simulator installed). Suppose, if that were set to 10.3 and I didn’t have an iOS 10.3 simulator installed, I wouldn’t be able to see any simulators. But because it’s set to 10.1, and I have 10.1 simulators installed, I can see them.

查看更多
Evening l夕情丶
4楼-- · 2020-02-09 09:55

Delete the derived data, close all your running Xcodes and restart your computer. It just helped me.

查看更多
走好不送
5楼-- · 2020-02-09 09:55

You can do the same that @badhan-ganesh suggests (cleaning derived data) using the Xcode keyboard shortcut to clean derived data:

shift+alt+cmd+k

If needed, you can clean the project using Xcode keyboard shortcut:

shift+cmd+k

After that, restart Xcode and simulators should be available again.

查看更多
Ridiculous、
6楼-- · 2020-02-09 09:56

Go to Xcode Preferences -> Locations and go to the Derived Data location in Finder:

Xcode preference

Just remove all contents from it, then right click on Xcode icon and quit it, and reopen it:

Move to trash

查看更多
狗以群分
7楼-- · 2020-02-09 09:57

Apart from the simulators not showing, my project's storyboard was messed up also after upgrading to XCode 9. I simply restarted XCode and voila! Did not have to delete derived files - though it would probably not hurt.

查看更多
登录 后发表回答