Xcode only lets me run for an iOS device (no simulator)

71,180

Solution 1

Under Your project Build Settings

  1. select Deployment section
  2. change iOS Deployment Target to a version iOS 5.0 or less
  3. 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.

enter image description here

Solution 5

No big deal. I have just restarted the Xcode & iOS simulator. Then, it displayed all the simulators.

Share:
71,180
swickblade
Author by

swickblade

Updated on July 05, 2022

Comments

  • swickblade
    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?

    screenshot

  • Thomas
    Thomas over 8 years
    this seems like the most recent good answer as of october 2015
  • tiw
    tiw about 8 years
    mine was using iphoneos, my project is exported from unity, will changing it to ios create a problem?
  • Maitreya
    Maitreya about 8 years
    Thank 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
    peteroid over 7 years
    I 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
    Mikel almost 7 years
    Exactly this. For some reason I had selected iphoneos
  • dandepeched
    dandepeched over 5 years
    Thank you! I have same issue when export from Unity
  • Beginnerrrrrr
    Beginnerrrrrr almost 5 years
    Thanks, this is my answer. 2019/08/23