iOS This application does not support this device’s CPU type
iOS项目build成功,安装在真机报错:
This application does not support this device’s CPU type
解决方法:
修改Build Setting-Architectures-Valid Architectures。根据你的机型,添加需要的指令集。
例如,需要安装的机器是iphone6s,但是Valid Architectures只添加了armv7的指令集,就会提示This application does not support this device’s CPU type。需要添加arm64,如下图:
armv6:
iPhone, iPhone 3G, iPod 1G/2G
armv7:
iPhone 3GS, iPhone 4, iPhone 4S, iPod 3G/4G/5G, iPad, iPad 2, iPad 3, iPad Mini
armv7s:
iPhone 5, iPhone 5c, iPad 4
arm64:
iPhone X,iPhone 8(Plus),iPhone 7(Plus),iPhone 6(Plus),iPhone 6s(Plus), iPhone 5s, iPad Air(2), Retina iPad Mini(2,3)