希望在 XCode 中删除 iPad 的 armv6 架构?
在构建仅限 iPad 的应用程序时,我收到以下警告:
“警告:构建部署目标 '3.2' 应忽略 armv6 架构。”
我想编辑架构设置,使其仅显示 armv7。但是,选项来自以下宏 $(ARCHS_UNIVERSAL_IPHONE_OS)。
是否有一个我应该用于 IPAD(非通用)二进制文件的宏?
为了解决这个问题,我执行了以下操作:
- 确保在armv7上设置了活动目标
- 选中“仅构建活动架构”选项
这会删除警告并创建一个非通用二进制文件,但每次切换配置时我都必须执行此操作,因为活动目标始终默认为armv6。
When building an iPad only application I get the following warning:
"warning: building for deployment target '3.2' should omit the armv6 architecture."
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).
Is there a macro I should be using for IPAD (non-universal) binaries.
To work around the problem I did the following:
- Make sure active target is set on armv7
- Check the "Build Active Architecture Only" option
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不确定合适的宏,但如果您选择“其他...”,删除 $(ARCHS_UNIVERSAL_IPHONE_OS),然后单独输入“armv7”,这似乎可以解决问题。
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.
我删除了arm6条目,但直到我单击“仅针对活动架构构建”按钮之前,我的错误从未消失。
I deleted the arm6 entry, but my error never went away until I clicked the "Build for active architecture only" button.
坏主意。只是删除了arm6并尝试将我的应用程序上传到iTC。我收到以下错误:
“您上传的二进制文件无效。支持 iPhone 时,可执行文件必须包含对 armv6 架构的支持,除非 UIRequireDeviceCapability 包含“armv7”功能。”
我将其添加回来,重建,奇怪的是我不再收到警告。所以也许这一切都是为了点击“构建活动架构”按钮。
不管怎样,我现在正在上传新的二进制文件
Bad idea. Jut removed arm6 and tried to upload my app to iTC. I get the following error:
"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."
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