Xcode cannot run using the selected device. Choose a destination with a supported architecture

来源:互联网 发布:淘宝店铺登录界面 编辑:程序博客网 时间:2024/06/06 00:38
Xcode cannot run using the selected device.

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


第一种:

可能你的 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是否和工程名一致(这里可以其实可以不一致),重点检查是否有空格或其它非法字符。


第四种:

[cpp] view plaincopyprint?
  1. cd ~/Library/Developer/Xcode/DerivedData  

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

[cpp] view plaincopyprint?
  1. ls  
  2. rm -fr *  
然后重启xocde

第五种:compiler



0 0
原创粉丝点击