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

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

提交回复
热议问题