xcode8 list of simulators not showing

2019-01-14 00:12发布

I have been only recently working with Xcode 8 beta 4 but it has been working fine up until now. The list of simulators is not showing for any of my projects. I already tried Creating a new Scheme and it did not work. How do I fix this?

16条回答
别忘想泡老子
2楼-- · 2019-01-14 00:22

In my case, I had to manually add all the emulators again after upgrading to Xcode 8

Click on Product -> Destination -> Add Additional Simulators --> Add Simulator.

查看更多
Deceive 欺骗
3楼-- · 2019-01-14 00:23

Try this , It's working perfect for me ,

Follow Below steps ,

1) Clean Derived Data

 rm -rf ~/Library/Developer/Xcode/DerivedData/   

OR

 Xcode---> Preferences--->Location--->Derived Data

2) In Deployment Info change Deployment Target

It's equal to or less then the SDK version of Xcode

3) Quit Xcode

4) Reopen Xcode you will see list of simulators

For more details refer this Detail Answer

Hope this is help for some one.

查看更多
forever°为你锁心
4楼-- · 2019-01-14 00:25

No other solutions worked for me. I tried downloading new Simulator and restarted xCode, all simulators showing up now.

查看更多
做个烂人
5楼-- · 2019-01-14 00:25

Two steps

Step 1:

Product -> Destination -> Download Simulators... Download the simulator(s) you need

If the simulators show up in list next to schemes, you're all set! Otherwise, continue to...

Step 2:

Sometimes when you download the new simulator types, they don't automatically show in the list of possible simulators.

Product -> Destination -> Add Additional Simulators... Click the + button in the lower left hand corner, then Add Simulator Give it a name, device type, and the iOS version you just downloaded.

Now it should show up in your list of simulator devices!

查看更多
Rolldiameter
6楼-- · 2019-01-14 00:26

TL;DR sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

A year past OP, after installing Xcode 9 beta 6 the 10.3 simulators disappeared from xcode 8. rm -rf ~/Library/Developer/Xcode/DerivedData/* didn't work this time.

Runnin xcode-select --print-path printed /Applications/Xcode.app/Contents/Developer.

Just to make sure, tried sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer, which worked after xcode restart.

查看更多
Bombasti
7楼-- · 2019-01-14 00:28

If this issue is project - specific, you opened a project which has "Supported platforms" build setting set to iphone or such. Most likely this is due to simulator not having the required capabilities or an embedded library not compiled to run on simulator.

Change this setting to "iOS" to see the simulators available for running.

enter image description here

查看更多
登录 后发表回答