“警告:iPhone 应用程序应包含 armv6 架构";即使使用构建配置集 [英] "Warning: iPhone apps should include an armv6 architecture" even with build config set

查看:26
本文介绍了“警告:iPhone 应用程序应包含 armv6 架构";即使使用构建配置集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经有一段时间没有调整项目构建设置了.升级到最新的 SDK 后,我在构建临时分发配置时遇到了问题.

It's been a while since I've had to adjust project build settings. After upgrading to a recent SDK I'm having trouble building my ad hoc distribution configuration.

Build 生成此警告和错误:

Build generates this warning and error:

警告:iPhone 应用程序应包含 armv6 架构(当前ARCHS = "armv7")

warning: iPhone apps should include an armv6 architecture (current ARCHS = "armv7")

iPhone/iPod Touch:应用程序可执行文件缺少必需的建筑学.必须至少具有以下架构之一现在:armv6 (-19033)

iPhone/iPod Touch: application executable is missing a required architecture. At least one of the following architecture(s) must be present: armv6 (-19033)

但是在我的项目中,我认为我已经正确设置了:

However in my project I thought I had things set correctly:

  • 架构是:标准 (armv6 armv7)
  • 基础 SDK:最新的 iOS(当前设置为 iOS 4.2)
  • 有效架构:armv6 armv7

我已经清理了所有目标.

I have cleaned all targets.

我感谢任何提示.

推荐答案

如果使用 Xcode 4.2 或更高版本,请尝试以下操作:

If using Xcode 4.2 or higher, try the following:

  1. 点击您的项目名称(在左栏中),然后点击目标:

  1. Click your Project name (in the left column), followed by the Target:

点击构建设置"选项卡(在右栏中):

Click the 'Build Settings' tab (in the right column):

点击架构"下的发布"或分发"行,然后选择其他...":

Click the 'Release' or 'Distribution' row under 'Architectures', and choose 'Other...':

在出现的弹出窗口中双击名为$(ARCHS_STANDARD_32_BIT)"的突出显示行,然后键入armv6"来替换它.然后在弹出窗口的左下方添加一个带有加号按钮的新行,并输入armv7",然后单击完成":

Double click the highlighted row named '$(ARCHS_STANDARD_32_BIT)' in the popover that appears, and replace it by typing 'armv6'. Then add a new row with the plus button in the bottom left of the popover, and type 'armv7', then click Done:

更新:您还应该添加 armv7s 以针对 iPhone 5.(如果使用不再支持 armv6 的 Xcode 4.5 或更高版本构建,则删除 armv6.)

Update: you should add armv7s to target the iPhone 5 as well. (And drop armv6 if building with Xcode 4.5 or higher, which no longer supports armv6.)

就是这样.您现在应该能够在不产生错误的情况下进行构建/归档.

That's it. You should now be able to build/archive without generating errors.

如果仍然不起作用,请参阅 justinxreese 的这个答案,其中建议在下面添加 armv6 和 armv7 的条目info.plist 文件中的所需设备功能".

If it still doesn't work, see this answer from justinxreese, which suggests adding entries for armv6 and armv7 under "Required Device Capabilities" in your info.plist file.

这篇关于“警告:iPhone 应用程序应包含 armv6 架构";即使使用构建配置集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆