Xcode cannot run using the selected device-无法真机调试

来源:互联网 发布:随机森林算法优化研究 编辑:程序博客网 时间:2024/05/16 03:04

今天遇到这么一个问题,当我将程序功能完成,需要上真机调试时,却发现:找不到真机选项:


强制,运行,会报这样的问题!
Xcode cannot run using the selected device.
No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination.


遇到这种情况,是因为XCode 无法识别你的真机设备!

按照一下配置进行设置:
点击你的项目》》TARGETS》》iOS Deployment Target》》修改为低于你设备的版本号。

这样,就OK了!
今天上来补充一下,有时候依然是不行的。可以将项目Clean掉,然后,彻底退出xCode,再次进入,就ok了。

0 0
原创粉丝点击