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

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

提交回复
热议问题