希望在 XCode 中删除 iPad 的 armv6 架构?

发布于 2024-08-26 04:51:43 字数 342 浏览 2 评论 0原文

在构建仅限 iPad 的应用程序时,我收到以下警告:

“警告:构建部署目标 '3.2' 应忽略 armv6 架构。”

我想编辑架构设置,使其仅显示 armv7。但是,选项来自以下宏 $(ARCHS_UNIVERSAL_IPHONE_OS)。

是否有一个我应该用于 IPAD(非通用)二进制文件的宏?

为了解决这个问题,我执行了以下操作:

  1. 确保在armv7上设置了活动目标
  2. 选中“仅构建活动架构”选项

这会删除警告并创建一个非通用二进制文件,但每次切换配置时我都必须执行此操作,因为活动目标始终默认为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:

  1. Make sure active target is set on armv7
  2. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

意中人 2024-09-02 04:51:43

不确定合适的宏,但如果您选择“其他...”,删除 $(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.

机场等船 2024-09-02 04:51:43

我删除了arm6条目,但直到我单击“仅针对活动架构构建”按钮之前,我的错误从未消失。

I deleted the arm6 entry, but my error never went away until I clicked the "Build for active architecture only" button.

怎会甘心 2024-09-02 04:51:43

坏主意。只是删除了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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文