折腾:
【未解决】Mac中XCode如何编译WebDriverAgent.xcodeproj
期间,点击编译按钮去编译,结果报错:

A build only device cannot be used to run this target. No supported iOS devices are available. Connect a device to run your application or choose a simulated device as the destination.
好像是需要去选择iOS设备

此处竟然没了自己的iPhone7P的设备了。
重新拔插iPhone7P试试

确保找到了设备ID:
idevice_id -l 3dc13714e21415898e8e2c2863d96990a4d69c97
确保可以识别了
但是听到iPhone7P有轻微震动
感觉是:好像无法正常识别?
不过此处已经可以找到了:

即可找到了iPhone7P设备。

【总结】
此处是编译之前,需要先选择iOS,才能正常编译。
刚才iOS设备:iPhone7P,不知何故断开了。
重新拔插,确保连上。
其中可以用:
idevice_id -l
确保能找到设备id,以确保设备的确已连接。
即可在XCode中找到设备,即可正常编译。
转载请注明:在路上 » 【已解决】XCode中编译报错:A build only device cannot be used to run this target o supported iOS devices are available