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

后端 未结 5 1492
一生所求
一生所求 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:34

    Make sure that in your Edit Scheme (click on your project name next to stop button -> Edit Scheme), in the Info tab of the Run menu selection, that your .app is selected as the Executable. I had this issue and "None" was selected, happened after refactoring the project's name and reconfiguring the build targets.

提交回复
热议问题