Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 9 doesn't have any simulator device

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

like image 900
sahara108 Avatar asked Jun 10 '17 13:06

sahara108


People also ask

How do I add a simulator device to Xcode?

Open Xcode and click Menu > Xcode > Preferences > Select Components, and then choose the simulator version you want to download. When a simulator is opened from AppStudio, AppStudio Player automatically installs (if necessary) and opens in it.

How do I install simulator on Mac?

For iOS, tvOS, and watchOS apps, you can choose a simulated device, under [Platform] Simulators, from the run destination menu next to the scheme menu in the toolbar. To add additional simulators of a product family running older versions of the operating system, choose Add Additional Simulators.

How do I change generic iOS device to simulator Xcode?

Open Xcode, Goto Preferences, Select Component. Click on Simulators of your choice then it will start the process of download & installing the simulators.


2 Answers

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

like image 191
Paul Solt Avatar answered Oct 03 '22 21:10

Paul Solt


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

like image 42
badhanganesh Avatar answered Oct 03 '22 19:10

badhanganesh