Xcode only lets me run for an iOS device (no simulator)
Solution 1
Under Your project Build Settings
- select Deployment section
- change iOS Deployment Target to a version iOS 5.0 or less
- now you can go ahead and change the deployment target from device to simulator!
In my case the deployment target was set to version 5.1 and i still am running snow leapord OS with appropriate JARS copied from xcode 4.3 to make it run with a device running iOS 5.1.
However, my simulators do not yet support version 5.1 so till i changed the deployment target to lower version e.g. 5.0 or 4.2 it won't let me run on simulator.
Solution 2
Click to target or project > Build Settings > Achitecture > Supported Platforms : change to iOS
Solution 3
What worked for me was going to Window>Devices and pressing the plus button at the bottom left to add a device and choose the simulator you want to add.
Solution 4
The problem for me happened when I downloaded a project from someone else and their deployment target was like 10.2 and my Xcode wasn't fully updated so it only supported til 10.0.
Solution was :
Click on project >> General >> Deployment Info >> Deployment Target
From there just change it from a grayed out number to a number that it's not.
Solution 5
No big deal. I have just restarted the Xcode & iOS simulator. Then, it displayed all the simulators.
swickblade
Updated on July 05, 2022Comments
-
swickblade almost 2 years
I just cloned a project into Xcode and am trying to run it in the simulator. However, my only option is iOS Device. This is unique to this project only and I don't know how to fix it. Anyone else run into this and know how to fix it?
-
Thomas over 8 yearsthis seems like the most recent good answer as of october 2015
-
tiw about 8 yearsmine was using iphoneos, my project is exported from unity, will changing it to ios create a problem?
-
Maitreya about 8 yearsThank you Gank for the current answer! @tiw This was the same use-case for me. You should be fine, but you should also be exporting from unity for a clean build before you make any final products.
-
peteroid over 7 yearsI encountered this issue after building the iOS project from unity. Unity set some other strings in this field. After changing it, I can select the simulators from the menu.
-
Mikel almost 7 yearsExactly this. For some reason I had selected
iphoneos
-
dandepeched over 5 yearsThank you! I have same issue when export from Unity
-
Beginnerrrrrr almost 5 yearsThanks, this is my answer. 2019/08/23