How to build for armv6 and armv7 architectures with iOS 5(如何使用 iOS 5 构建 armv6 和 armv7 架构)
问题描述
在 iOS5 中,Apple 从 ARCHS_STANDARD_32_BIT 中删除了 armv6 架构.
In iOS5 Apple drops the armv6 architecture from the ARCHS_STANDARD_32_BIT.
为了保持对iPhone3G的支持,我还是想在iOS5中编译armv6.
In order to keep the support for iPhone3G I still want to compile in armv6 even in iOS5.
有人找到解决方案了吗?
Did anyone find a solution for this?
推荐答案
我今天刚刚构建了一些东西,指定了 iOS 4.0 的部署目标.在架构中只指定了 armv7,Xcode 警告我要支持低于 iOS4.2 的任何内容,我必须在架构中包含 armv6.只需编辑该字段,在弹出对话框时单击+"按钮并输入文字armv6".
I just built something today specifying a deployment target of iOS 4.0. With only armv7 specified in Architectures, Xcode warned me that to support anything below iOS4.2 I had to include armv6 in Architectures. Just edit that field, click the "+" button when the dialog pops up and enter the literal "armv6".
在我的例子中,我们希望我们的应用在 iOS4 和 iOS5 下运行.我们必须进行一些修改,使其能够在 iOS5 下正常工作,但所有这些更改都是通过对 iOS4 友好的代码更改完成的.
In my case, we want our app to work under iOS4 and iOS5. We had to make some modifications so it would work correctly under iOS5, but all those changes were done with iOS4-friendly code changes.
我们还添加了一些特定于 iOS5 的功能,以允许应用在 iOS4 下运行而不会崩溃.具体来说,我们在尝试使用 iOS5 功能之前对其进行了测试,并将仅限 iOS5 的库链接为可选.
We also added some iOS5-specific capabilities in a manner that allows the app to run without crashing under iOS4. Specifically, we tested for iOS5 capabilities before trying to use them, and linked iOS5-only libraries as Optional.
因此,在 iOS5 世界中支持 iPhone3G 可能很容易意味着我们希望我们的应用程序在 iOS4 及更高版本上运行(无论使用任何 iOS5 功能)"而不是我们希望确保我们的应用程序在旧版本上运行运行 iOS5 的设备".这里有区别;想想看.:-)
So, supporting iPhone3G in an iOS5 world could just as easily mean "we want our app to run on iOS4 and above (regardless of any iOS5 feature use)" rather than "we want to make sure our app runs on an older device running iOS5". There's a difference here; think about it. :-)
无论如何,重新添加 armv6 支持非常容易.而且我想重点是:在某些时候,当没有更多的 armv6 设备需要担心(无论出于何种原因)时,您就不必为它构建.苹果的观点是大家都应该尽快升级到最新的硬件.所以在那个世界里,除了最新和最好的工具之外,没有必要让工具默认为任何东西.:-) 幸运的是(或不是),我们开发人员生活在现实世界中,并认识到您必须支持旧的东西一段时间.我猜 Xcode 开发团队也知道这一点,这就是为什么您可以非常简单地重新添加 armv6 支持.
Anyway, adding armv6 support back in is very easy. And I guess the point is this: At some point, when there are no more armv6 devices out there to worry about (for whatever reason) you won't have to build for it. Apple's view is everyone should upgrade to the latest hardware as soon as possible. So in that world, there is no need for the tools to default to anything but the latest and greatest too. :-) Fortunately (or not), we developers live in the real world and recognize that you have to support older stuff for a while. And I guess the Xcode dev team knows this too, which is why you can add armv6 support back in quite simply.
这篇关于如何使用 iOS 5 构建 armv6 和 armv7 架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何使用 iOS 5 构建 armv6 和 armv7 架构
基础教程推荐
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01