尝试这个:
ARMV6: before iPhone 3GS
ARMV7: including and after iPhone 3GS
"Proj." and "Target(s)" right-click, Get Info. Select:-
Base SDK: iPhone 4.0 (latest s greatest)
Standard: ARMV6, ARMV7
Uncheck build for Active Architecture
Deployment Target: 4.0 (not older ones 3.1.3; you don't have the SDK if you upgrade to 4.0)
Compiler section: Ensure that both ARMV6 and ARMV7 checkboxes are ticked under Generate Code, Thumb section.
二进制输出稍大一些,因为它是支持两种架构的通用代码。
如果您只想支持 ARMV7,请不要在编译器部分检查 ARMV6,选择针对 ARMV7 优化的代码,仅检查活动架构。在中info.plist
,添加项目。该字段已经存在并且可能具有自动指定的其他系统要求。armv7
UIRequiredDeviceCapabilities
info.plist