您的位置:首页 > 移动开发 > IOS开发

ios编译正常,但无法运行到真机和模拟器上 ,Choose a destination with a supported architecture

2014-03-10 17:06 645 查看

Choose
a destination with a supported architecture in order to run on this device

第一种:

可能你的 valid architectures支持armv7,或者 armv7s,修改一下,如下图:



第二种:

Close the Xcode
Delete the application from device
Restart the device
then re-run the application

第三种:

如果今天所遇到的问题,检查product name是否和工程名一致(这里可以其实可以不一致),重点检查是否有空格或其它非法字符。

第四种:

[cpp] view
plaincopyprint?

cd ~/Library/Developer/Xcode/DerivedData

跳转到这个目录下,清除里面所有缓存的数据:

[cpp] view
plaincopyprint?

ls

rm -fr *

然后重启xocde


第五种:设置编辑器

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐