“警告:iPhone应用程序应包含armv6架构”即使使用build config set [英] "Warning: iPhone apps should include an armv6 architecture" even with build config set
问题描述
我已经有一段时间了,因为我不得不调整项目构建设置。升级到最近的SDK后,我无法构建我的ad hoc分发配置。
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
我已清理所有目标。
我感谢任何提示。
推荐答案
如果使用Xcode 4.2或更高版本,尝试以下方法:
If using Xcode 4.2 or higher, try the following:
-
单击项目名称(在左栏中),然后是目标:
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。 (如果使用Xcode 4.5或更高版本构建,则放弃armv6,不再支持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的回答,建议在info.plist文件的Required Device Capabilities下添加armv6和armv7的条目。
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架构”即使使用build config set的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!