iOS 编译正常,但无法运行到真机和模拟器上,Choose a destination with a supported architecture in order to run on this device.

 

碰到这种情况一般我们首先试的就是重启Xcode,这种方法有的时候管用有的时候不管用。下面介绍几种方法:

一:可能是valid architectures支持armv7,或者armv7s,你要试着更改这个:

二:(这个没有试过,在网上找的,具体情况需要个人去试)

1、Close the Xcode

2、Delete the application from device

3、Restart the device

4、then re-run the application

三:检查product name是否和工程名一致(这里其实可以不一致),重点检查是否有空格或其它非法字符

四:打开终端

利用上述命令跳转到该目录下面,清除里面的所有缓存数据:

 

posted @ 2014-11-13 17:03  暗夜追星  阅读(378)  评论(0编辑  收藏  举报