11

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

badhanganesh
  • 3,427
  • 3
  • 18
  • 39
sahara108
  • 2,829
  • 1
  • 22
  • 41
  • "but there is no simulator within it" What does that mean? Describe the actual issue as you are physically experiencing it, please. What's the problem and how do you know there's a problem? – matt Jun 10 '17 at 14:08
  • Also did you restart the computer? Often necessary after a new Xcode is installed. And of course make sure you're running the new Xcode from the Applications directory. Basics, but essential. – matt Jun 10 '17 at 14:53
  • @matt just update my question – sahara108 Jun 10 '17 at 18:33
  • This is a legitimate question. I have downloaded the beta version of Xcode that was released June 5th (9.0 beta - 9M136h) recently, and I'm facing the same issue. – Reza Shirazian Jun 10 '17 at 23:40

12 Answers12

17

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

badhanganesh
  • 3,427
  • 3
  • 18
  • 39
  • Works perfectly. Thanks – sahara108 Jun 14 '17 at 10:52
  • 2
    If this "works" it only did so by accident. The Simulator has nothing to do with anything in DerivedData. – russbishop Aug 22 '17 at 19:56
  • @russbishop Tested in different systems. When you have more than one Xcode, this issue occurs and doing what’s in the answer works for all systems that fall in this case. If this is accident, this will not work for those systems. Btw this is just one of the answers. There is no need that a question should contain only one right answer. – badhanganesh Aug 23 '17 at 06:12
  • Removing Derived data didn't work for me. I think I may have accidentally deleted my Simulators, so I had to re-add them using the Devices & Simulators window. – Paul Solt Aug 09 '18 at 18:27
4

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

Rashwan L
  • 38,237
  • 7
  • 103
  • 107
  • I'll give it a try – sahara108 Jun 11 '17 at 11:35
  • @sahara108, do that and if it doesn´t work just restart **Xcode 9** again. – Rashwan L Jun 11 '17 at 11:48
  • 1
    For me making sure Xcode 8 was not running and restarting Xcode 9 helped. It caused problems for me in Xcode 8 as well, just to have Xcode 9 installed. So now I have to restart Xcode 8 sometimes as well to be able to see my simulators. – Sajjon Jun 16 '17 at 08:39
  • There is a bug in Console.app on 10.12.5 that can break Xcode 8's ability to use Simulators. Make sure you upgrade to 10.12.6, 10.13, or don't use Console.app while using Xcode 8.x – russbishop Jun 28 '17 at 06:46
2

This may happen due to multiple Xcode installed on machine or might be the deployment target is higher than the simulator OS version.

In order to resolve this navigate to following location : Xcode > Preference > location > comindline Tool > change the xcode version

and decrease the deployment target.

Santosh Sahoo
  • 134
  • 1
  • 5
2

You may have removed iOS Simulators when you cleaned up disk space. I think I may have used DaisyDisk to remove files when I ran out of space.

You can re-add simulators using the Devices & Simulators window. (Shift + Command + 2)

Xcode 9 Devices and Simulators Window

Paul Solt
  • 8,375
  • 5
  • 41
  • 46
0

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

Antonin Charvat
  • 920
  • 9
  • 16
0

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.

Elardus Erasmus
  • 135
  • 1
  • 11
0

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.

sebasbad
  • 71
  • 3
0

Having a higher deployment target than what is installed on your simualtors also causes this.

0

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.

pooja majoka
  • 136
  • 4
0

When my xcode updated to 9.4 I face the same problem at first time. After force quit and start again solve the problem for me.

Saleh Enam Shohag
  • 1,039
  • 1
  • 12
  • 23
0

If you upgraded Xcode then follow the steps

  1. Delete derived data, Xcode-> Preferences -> Locations and select arrow symbol just before Advance button -> select all files and delete.
  2. Quit Xcode
  3. Quit Xcode from Dock
  4. Open Xcode again.

:-) Hope this will help you.

Dilip Jangid
  • 754
  • 1
  • 10
  • 20
-1

I have Xcode 8.3 and Xcode 9.1, I came to this post to find a solution to missing simulators after forced upgrade to 9.1...

I was about to do the suggestion to remove the entire DerivedData directory, lucky closing Xcode 9.1 and restarting it worked. Moreover, I had to close all simulator(s).

I had to rebuild app apps on simulator again.

Ahmad Al-Baqawi
  • 189
  • 1
  • 7