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

前端 未结 19 667
一个人的身影
一个人的身影 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:36

    I tried every suggested solution I could find on stackoverflow.

    Eventually, I deleted the Xcode app and downloaded it again from the App Store. After installation, the simulators were back.

    0 讨论(0)
  • 2021-01-31 07:38
    1. Click on your project root.
    2. Then Go to the Build settings.
    3. Then set iOS deployment target 5.0
    4. Then select iphone6 on top left of your project.

      http://i.stack.imgur.com/KJxaA.png

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

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

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

    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.

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

    What you can do to add Simulators in your xCode is go to

    Windows -> Devices
    

    There on the bottom left, press the plus button. In this way you can add different simulators with OS as per you need.

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

    What had happened to me was that I created a project using a device that had the latest iOS installed, 8.3. When I moved that project to another computer without a device the simulators didn't appear for me to choose from, only the device (which I didn't have). The reason was that the simulators only went up to 8.1 (which is less than 8.3, obviously). So I changed the 'Deployment>iOS Development Target' to 8.1 (from 8.3) in Build Settings and the simulators appeared in Xcode as expected.

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