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

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

    for now you just change device/simulator from Product -> Destination -> pick the device. Then Run your application.enter image description here

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

    Under Build Settings, verify that you have selected a valid SDK under iOS Deployment Target. Mine was set to 7.1 (which appeared in a different seciton in the dropdown) which wasn't installed. Selecting 7.0 (or obviously downloading 7.1) does the trick.

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

    First of all you need to install the simulators

    Install Simulators followed by,

    1. Open Xcode,
    2. Goto Preferences,
    3. Select Component
    4. Click on Simulators of your choice then it will start the process of download & installing the simulators

    Adding Simulators to Xcode Click for Apple Reference 1. From the Spotlight Search type 'Simulator' and press enter 2. Choose Hardware > Device > Manage Devices. Xcode opens the Devices window.

    1. At the bottom of the left column, click the Add button (+).
    2. In the dialog that appears, enter a name in the Simulator Name text field and choose the device from the Device Type pop-up menu.
    3. Choose the OS version from the iOS Version pop-up menu.
    4. Alternatively, if the iOS version you want to use isn’t in the iOS Version pop-up menu, choose “Download more simulators” and follow the steps to download a simulator.

    5. Click Create.

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

    After restoring from time machine, I had to reinstall the 8.1 simulator (settings > Download) and then adding simulators in "Window > Devices > + > Add simulator"

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

    When none of the above steps work, check to see that your device is plugged in and turned on. (None of the above steps worked for me, and the device WAS plugged in. Oh well.) However, I have Xcode 7.3.

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

    Go to BuildSettings, see Code Signing... under Code Signing Identity, change all entitlements to "Don't Code Sign".

    Hope it helps.

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