将应用程序限制为 iOS 4.0+ 时是否需要添加 armv6 支持?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6517822/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 20:33:39  来源:igfitidea点击:

Do I need to add armv6 support when limiting apps to iOS 4.0+?

iphoneiosarmv7armv6

提问by Jordan Smith

At the moment I'm compiling for both armv6 and armv7. I've also set the target iOS version as 4.0.

目前我正在为 armv6 和 armv7 进行编译。我还将目标 iOS 版本设置为 4.0。

Am I right in saying that all devices capable of running iOS 4.0+ are armv7, and thus I can stop compiling for armv6?

我说所有能够运行 iOS 4.0+ 的设备都是 armv7,因此我可以停止为 armv6 编译,我说得对吗?

Not a big deal, but it means that my app's binary will be quite a bit smaller if I can.

没什么大不了的,但这意味着如果可以的话,我的应用程序的二进制文件会小很多。

回答by Henrik P. Hessel

Sorry, but you aren't right. The iPhone 3G and iPod Touch 2G are able to run iOS 4 (barely) and they include a armv6 processor.

对不起,但你不对。iPhone 3G 和 iPod Touch 2G 能够运行 iOS 4(勉强)并且它们包含一个 armv6 处理器。

ARMv8 / ARM64 = iPhone 5s, iPad Air, Retina iPad Mini
ARMv7s = iPhone 5, iPhone 5c, iPad 4
ARMv7  = iPhone 3GS, iPhone 4, iPhone 4S, iPod 3G/4G/5G, iPad, iPad 2, iPad 3, iPad Mini  
ARMv6  = iPhone, iPhone 3G, iPod 1G/2G

iOS 4.3+ requires ARMv7. If your Deployment Target is 4.3, you can exclude armv6 support.

iOS 4.3+ 需要 ARMv7。如果您的部署目标是 4.3,您可以排除 armv6 支持。

As of XCode 4.5 you cannot build for armv6 @Paul de Lange

从 XCode 4.5 开始,您无法为 armv6 @Paul de Lange 构建

回答by Nicolas Miari

You can safely drop armv6 support IFyou set your deployment target to 4.3. This is because iOS 4 can be installed on armv6 devices only up to 4.2.

你可以安全的将ARMv6的支持,如果您设置的部署目标4.3。这是因为 iOS 4 只能安装在 4.2 以下的 armv6 设备上。