Xcode cannot run using the selected device.
跳转到这个目录下,清除里面所有缓存的数据:
然后重启xocde
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是否和工程名一致(这里可以其实可以不一致),重点检查是否有空格或其它非法字符。
第四种:
- cd ~/Library/Developer/Xcode/DerivedData
跳转到这个目录下,清除里面所有缓存的数据:
- ls
- rm -fr *