我们是否需要为两个“ armv7”编译iOS App?和“ arm64”如果我的部署目标是8.0? [英] Do we need to compile iOS App for both "armv7" and "arm64" if my deployment target is 8.0?

查看:310
本文介绍了我们是否需要为两个“ armv7”编译iOS App?和“ arm64”如果我的部署目标是8.0?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用支持iOS8.0及更高版本。而且我知道从iOS7起,它的arm64位体系结构。在那种情况下,我们是否需要为 armv7和 arm64切片同时编译二进制文件?

My App supports from iOS8.0 and above. And I know that from iOS7 onwards its arm64 bit architecture. In that case do we need to compile the binary for both "armv7" and "arm64" slices?

如果仅针对arm64进行编译,则可以减小App的大小。

If I compile for arm64 alone, I can reduce my App size. Is it a right way ?

请帮忙。

推荐答案

< a href = https://docs.elementscompiler.com/Platforms/Cocoa/CpuArchitectures/ rel = nofollow noreferrer>此处,您会发现所有iPhone和Mac CPU架构的解释都非常容易理解。

Here you can find very easy to understand explanation of all iPhone and also Mac CPU architectures.

当我决定从支持的架构中删除armv7架构时,它对我有很大帮助:

It helped me a lot when I decided to remove armv7 architecture from my supported architectures:


排除体系结构时请仔细选择。使用armv7构建的应用程序将在所有当前的iOS设备上运行,甚至包括那些支持较新架构的设备(它将在iPhone 5S和更高版本上以32位运行)。但另一方面,没有armv7的应用程序将无法在iPhone 4 / 4S或原始iPad mini等旧设备上运行。

Choose carefully when excluding architectures. An application built with armv7 will run on all current iOS devices, even those that support newer architectures (it will run as 32-bit on iPhone 5S and later). But on the other hand, an app built without armv7 will not run on older devices such as the iPhone 4/4S or the original iPad mini.

这篇关于我们是否需要为两个“ armv7”编译iOS App?和“ arm64”如果我的部署目标是8.0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆