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

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

    In my case the issue was really simple, I needed to check "Launch: Automatically" check in "Product > Scheme > Edit scheme > Run" menu.

    When this setting wasn't checked I cannot find App icon in simulator to launch application.

提交回复
热议问题