A build only device cannot be used to run this target

后端 未结 21 2616
情深已故
情深已故 2020-12-25 09:25

I get this error when I trying to test an app.

A build only device cannot be used to run this target.

No supported iOS devices are available

21条回答
  •  鱼传尺愫
    2020-12-25 09:45

    Well if you want to get the list of available destinations then call xcodebuild and pass in the command line option -showdestinations, and it will print valid options for you to pick from:

    xcodebuild -showdestinations -workspace Register.xcworkspace -scheme ThatTestTarget
    

提交回复
热议问题