Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't select iOS simulator in Xcode

I updated Xcode to the 6.1 version and now I don't understand why I can't select the simulator in the top left corner like in the previous version when I want to run my application. The only choice that appear is a general "iOS device".

like image 597
user123456 Avatar asked Oct 28 '14 12:10

user123456


People also ask

How do I select simulator in 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 can you access iOS simulator in Xcode?

Do one of the following: Choose Xcode > Open Developer Tool > Simulator. Control-click the Xcode icon in the Dock, and from the shortcut menu, choose Open Developer Tool > Simulator.

How to download iOS simulators package in Xcode?

How To Download iOS Simulators Package In Xcode. Click Set the active scheme drop-down list in Xcode toolbar, then click Download Simulators… item. If you can not find the Download Simulators… item, you can click Xcode —> Preferences menu item at Xcode top menu bar.

Why can't I see devices in Xcode simulators?

Or if devices are there but you are not able to see them in devices to be choose from, then check for deployment target that might not be compatible with Xcode simulators, set target according to your Xcode support and you will see the simulators list. Show activity on this post.

How do I start the iOS simulator?

The iOS simulator is installed with Xcode. Unfortunately the instructions you're following are now outdated. In order to start the simulator, you simply start Xcode and then in the top menu select Xcode> Open Developer Tool> Simulator. Share Improve this answer Follow

What version of iOS do I need for iOS simulators?

Each simulator comes with a particular OS version such as iOS 14.1, iOS 15.0, iOS 15.2, tvOS 14.0, watchOS 7.0, etc. You can easily install the one you need via Xcode. This article shows you how to do so in Xcode 12.x, Xcode 13.x, and newer. 1.


4 Answers

Press "Window" and then "Devices", check if they appear there and if not - click the "+" icon in the lower left

like image 187
Erik Avatar answered Oct 07 '22 23:10

Erik


Go to File -> Project Settings -> Info. Change the deployment target to a lower or higher version.

Most probably you do not have a simulator installed for the current deployment target. You can do so by going to Xcode Preferences -> Downloads. In the Components section, you will see the options for downloading the simulators you already don't have.

Faced the same issue many times and found this solution. Hope this helps. :)

like image 29
Akshay Bhalotia Avatar answered Oct 08 '22 01:10

Akshay Bhalotia


I suspect that you are having issues communicating with CoreSimualtorService due to renaming Xcode.app or similar. This is mentioned in the Xcode 6.0 and 6.1 release notes. Unfortunately, the only workaround at the moment is for you to rename it back or reboot.

Update:

Note that for current (as of this update) versions of Xcode (7.2+), renaming should work ok. For best results, only use one version of Xcode at a time. If you start another version of Xcode while one is running, the previous one will loose access to simulator devices. Restarting it will cause it to have access to the simulator devices (and of course the other one to stop). Basically, the last one wins.

like image 5
Jeremy Huddleston Sequoia Avatar answered Oct 08 '22 01:10

Jeremy Huddleston Sequoia


I finally found the solution. When I added a simulator in the devices menu (Shift+Cmd+2) I got this error: "Unable to determine SimDeviceSet, set_path=/Users/MyUser/Library/Developer/CoreSimulator/Devices" I checked the directory and there was not the folder "CoreSimulator", so I created it. I restarted XCode and now there are all the iOS Simulators selectable for running my app.

Thank you all.

like image 4
user123456 Avatar answered Oct 07 '22 23:10

user123456