问题描述
我在构建app时经常遇到错误:
I am constantly getting below error while building app:
No architectures to compile for (ARCHS=arm6 arm7, VALID_ARCHS=armv7).
我尝试将 arm6 arm7
添加到架构中但是没用。我也尝试过 arm6
和 arm7
,但仍然没有。
I tried adding arm6 arm7
to architecture but didn't work. I also tried just arm6
and arm7
, but still not.
另外,我将部署目标设置为 4.3 iPhone
。
我有Xcode版本 4.3.1
。
Also, I'm setting deployment target to 4.3 iPhone
.I have Xcode version 4.3.1
.
请帮助!
推荐答案
你必须采取两个步骤:
-
Go到
项目目标>构建设置>架构
删除你在那里看到的任何内容,然后逐个添加这些行:
Go to
Project Target > Build Settings > Architectures
Delete whatever you see there, and then add these rows one by one:
armv6
armv7
armv6armv7
那里没有保存按钮,所以我做的是添加另一个空白行,按回车键,删除它,然后点击其他地方,以便确保我添加了两个:
There are no 'save' buttons there, so what I do, is adding another blank row, pressing enter, removing it, and then clicking out somewhere else, so that I make sure I have both of them added:
- 现在转到AppName-Info.plist文件,然后查看关键字需要设备功能并将其全部删除。
现在已经完成。
这篇关于没有要编译的体系结构(ARCHS = arm6 arm7,VALID_ARCHS = armv7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!