遇到这样的错误,由于google打不开,百度这样子给出的解决方案:
1.刪除DerivedData資料夾法1.1 完全离开Xcode,然后再做下列步驟:1.2把/Users/apple/Library/Developer/Xcode/DerivedData/下面的東西全部刪除(DerivedData本身不要刪),1.3再重新启动Xcode,再rebuild2.重新开机法步驟1沒效的話,把手机全关机,重开机一遍3.clear法可以clear一下4.deployment target OS版本更改把deployment target改成和實機相同的OS版本5.改动build path到Targets下的 Build Settings的Build Locations的Build Products Path的build把這個地方改成Build Products Path Build/Products6.重新开启xcode,重新链接实机 (乍看很笨,其實很有效)
自己的解决方案
在 -Info.plistfile里面找到 "Required device capabilities",删除之,然后clean下工程,为了保险起见,你也可以先按照上面的那几步把derived data都delete掉.再运行就可以了。原因如下:
You can't require armv7 on a 3G, and you can't require armv6 on anynewer device, so just delete this attribute entirely.