如果仅在 Xcode 4.2 中使用armv6来支持新旧设备有什么缺陷吗?
我正在开发一个支持 iOS 3.0 以来的应用程序。使用 Xcode 4.2,我必须手动将 armv6 添加到 Architectures 中。那么针对新设备优化的armv7是使用“armv6 armv7”编译的唯一优势吗?尺寸会比仅使用armv6更大吗?
I'm developing an app supporting since iOS 3.0. With Xcode 4.2, I have to add armv6 manually to Architectures. So is armv7 optimized for new devices the only advantage to compile with "armv6 armv7"? The size will be bigger than with only armv6 ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
仅使用
armv6
并不是最佳选择 - 但它可以在较旧的 iOS 设备上运行(即没有缺陷)。另一种方法是提供
armv6
和armv7
二进制文件,以便较新的设备将使用armv7
代码。当然,这将使应用程序代码的大小加倍。根据您的应用程序(例如,如果速度是一个问题),这可能是值得的,但它不会影响兼容性。Using only
armv6
is not optimal - but it will work on older iOS devices (i.e. no defect).An alternative is to provide both
armv6
andarmv7
binaries so newer devices will use thearmv7
code. Of course that will double the size of the application code. It might be worth it depending on your application (e.g. if speed is an issue) but it will not affect compatibility.