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

4
  • "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, 2017 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, 2017 at 14:53
  • @matt just update my question
    – sahara108
    Jun 10, 2017 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. Jun 10, 2017 at 23:40

12 Answers 12

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

3
  • Works perfectly. Thanks
    – sahara108
    Jun 14, 2017 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, 2017 at 19:56
  • 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 9, 2018 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.

4
  • I'll give it a try
    – sahara108
    Jun 11, 2017 at 11:35
  • @sahara108, do that and if it doesn´t work just restart Xcode 9 again.
    – Rashwan L
    Jun 11, 2017 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, 2017 at 8: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, 2017 at 6: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.

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

0

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

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.

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.

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.

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.

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.