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

前端 未结 19 665
一个人的身影
一个人的身影 2021-01-31 07:08

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

相关标签:
19条回答
  • 2021-01-31 07:29

    Click to target or project > Build Settings > Achitecture > Supported Platforms : change to iOS

    0 讨论(0)
  • 2021-01-31 07:31

    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.

    0 讨论(0)
  • 2021-01-31 07:31

    For what it's worth, my issue seemed to be that I had two different versions of xcode running at the same time (8.2 and 9.2). Xcode might grab a list of simulators and, as resources, lock them up and make them unavailable for other versions of xcode to avoid issues. I killed (cmd+q) both xcode instances, restarted the one I needed at that point, and then the simulators showed up again.

    Hope this helps anyone else, since it took me quite a bit of time to figure this one out, since it was an 'on and off' kind of issue.

    0 讨论(0)
  • 2021-01-31 07:32

    for me just go to Settings, tab "Downloads" and download the simulator ;) Append after changed computer (resored by TimeMachine) Regards,

    0 讨论(0)
  • 2021-01-31 07:32

    If you've run into this problem on Xcode-8 than, following the same process, you can set the Deployment Target by selecting Targets instead of Projects and lower the deployment target as shown in the image below:-

    You will have options to select the simulator devices now.

    0 讨论(0)
  • 2021-01-31 07:33

    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.

    0 讨论(0)
提交回复
热议问题