Xcode can build a project but can't run it on simulator

后端 未结 5 1481
一生所求
一生所求 2021-01-30 04:02

When I download a project from the web, sometimes it can be built but doesn\'t run (XCode -> Product -> Run is disabled, in grey). This never happens when I create projects myse

5条回答
  •  醉梦人生
    2021-01-30 04:28

    you may download a project that the deployment setting (the ios version) is higher than the one your xcode support. if this is your situation, you has two options to sovle the problem.

    1. try run the project in a older deployment option. follow these instructions ( if the project just setting to a higher version but not using any feature of the higher version. this approach should work): select project file in xcode > select the target you are going to run > select summary tab > in section 'iOS Application Target' > in the combo box about 'Deployment Target' select the version that your Xcode support. and then you could select and run the project in the simulator.

    2. if the project dose use features in the higher version, then you should update your Xcode in order to run the project.

    Hope this helps!

提交回复
热议问题