希望在 XCode 中删除 iPad 的 armv6 架构?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2488353/
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
Hope to remove armv6 architecture for iPad in XCode?
提问by Tod Cunningham
When building an iPad only application I get the following warning:
在构建仅限 iPad 的应用程序时,我收到以下警告:
"warning: building for deployment target '3.2' should omit the armv6 architecture."
“警告:为部署目标 '3.2' 构建应该省略 armv6 架构。”
I would like to edit the Architectures setting so it only shows armv7. However, the options are coming from the following marco $(ARCHS_UNIVERSAL_IPHONE_OS).
我想编辑架构设置,使其只显示 armv7。但是,这些选项来自以下 marco $(ARCHS_UNIVERSAL_IPHONE_OS)。
Is there a macro I should be using for IPAD (non-universal) binaries.
是否有我应该用于 IPAD(非通用)二进制文件的宏。
To work around the problem I did the following:
为了解决这个问题,我做了以下事情:
- Make sure active target is set on armv7
- Check the "Build Active Architecture Only" option
- 确保在 armv7 上设置了活动目标
- 选中“仅构建活动架构”选项
That removes the warning and creates a non-universal binary, but I have to do this EVERY time I switch configurations because the active target keeps defaulting to armv6.
这消除了警告并创建了一个非通用二进制文件,但我每次切换配置时都必须这样做,因为活动目标一直默认为 armv6。
回答by jemmons
Not sure about an appropriate macro, but if you select "other...", remove $(ARCHS_UNIVERSAL_IPHONE_OS), and enter just "armv7" on its own, that seems to do the trick.
不确定合适的宏,但如果您选择“其他...”,删除 $(ARCHS_UNIVERSAL_IPHONE_OS),然后单独输入“armv7”,这似乎可以解决问题。
回答by RyeMAC3
I deleted the arm6 entry, but my error never went away until I clicked the "Build for active architecture only" button.
我删除了 arm6 条目,但我的错误一直没有消失,直到我单击“仅针对活动架构构建”按钮。
回答by RyeMAC3
Bad idea. Jut removed arm6 and tried to upload my app to iTC. I get the following error:
馊主意。Jut 删除了 arm6 并尝试将我的应用程序上传到 iTC。我收到以下错误:
"The binary you uploaded was invalid. When supporting iPhone, the executable must include support for the armv6 architecture, unless the UIRequireDeviceCapabilities include the 'armv7' capability."
“您上传的二进制文件无效。支持 iPhone 时,可执行文件必须包含对 armv6 架构的支持,除非 UIRequireDeviceCapabilities 包含‘armv7’功能。”
I added it back in, rebuilt and strangely I don't get the warning any more. So maybe it was all about clicking off that "Build for Active Architecture" button.
我重新添加了它,重建了它,奇怪的是我不再收到警告了。所以也许这一切都是关于点击“为活动架构构建”按钮。
Anyway, I'm uploading the new binary now
无论如何,我现在正在上传新的二进制文件