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

来源:互联网 发布:c语言宿舍管理系统 编辑:程序博客网 时间:2024/05/29 19:20
今天遇到这么一个问题,当我将程序功能完成,需要上真机调试时,却发现:找不到真机选项:

强制,运行,会报这样的问题!
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了。

希望对您有所帮助!


评论区:选择  product ——》Manage schemes --》双击使用的scheme,弹出对话框--》最上一行第二个对话框,选择iphone simulator, 就可以了。


(文章出处:http://blog.sina.com.cn/s/blog_7b9d64af01018vmm.html)

0 0
原创粉丝点击