[英]No architectures to compile for (ARCHS=arm6 arm7, VALID_ARCHS=armv7)
I am constantly getting below error while building app:我在构建应用程序时不断遇到错误:
No architectures to compile for (ARCHS=arm6 arm7, VALID_ARCHS=armv7).
I tried adding arm6 arm7
to architecture but didn't work.我尝试将
arm6 arm7
添加到架构中,但没有成功。 I also tried just arm6
and arm7
, but still not.我也试过
arm6
和arm7
,但还是不行。
Also, I'm setting deployment target to 4.3 iPhone
.另外,我将部署目标设置为
4.3 iPhone
。 I have Xcode version 4.3.1
.我有 Xcode 版本
4.3.1
。
Please help!请帮忙!
You must take two steps:你必须采取两个步骤:
Go to Project Target > Build Settings > Architectures
Delete whatever you see there, and then add these rows one by one: Go 到
Project Target > Build Settings > Architectures
删除你在那里看到的任何内容,然后一一添加这些行:
armv6 armv7 armv6 armv7
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:那里没有“保存”按钮,所以我所做的是添加另一个空白行,按回车键,将其删除,然后单击其他地方,这样我就可以确保我已经添加了它们:
Now it's done.现在完成了。
set "Build Active Architecture Only" = NO this worked for me after upgrading an old project to xcode5 set "Build Active Architecture Only" = NO 这在将旧项目升级到 xcode5 后对我有用
That works fine for me:这对我来说很好:
Set architectures to " Standard (armv7,armv7s) " and after set manually Valid architectures to armv7 armv7s将体系结构设置为“ Standard (armv7,armv7s) ”,然后手动将Valid architectures设置为armv7 armv7s
Not arm6 and arm7, try by adding armv6 and armv7 as architectures.不是 arm6 和 arm7,尝试添加 armv6 和 armv7 作为体系结构。
Add architectures only armv7.仅添加架构 armv7。 Remove armv6 then try it.
删除 armv6 然后尝试它。
I am using the latest Xcode and iPhone5.我用的是最新的Xcode和iPhone5。 I had it set to armv7s and armv7.
我把它设置为 armv7s 和 armv7。 It took care of my issue which was the
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv7s, VALID_ARCHS=armv6 armv7)
error.它解决了我的问题,即
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv7s, VALID_ARCHS=armv6 armv7)
错误。
To include 64 bit: Set architectures to "$(ARCHS_STANDARD_32_64_BIT)"
and after set manually Valid architectures to armv7 arm64
.要包含 64 位:将体系结构设置为
"$(ARCHS_STANDARD_32_64_BIT)"
,然后手动将有效体系结构设置为armv7 arm64
。 My Xcode version was 5.1.我的 Xcode 版本是 5.1。 Base SDK was iOS 7.1 Deployment target was 6.0.
基地 SDK 是 iOS 7.1 部署目标是 6.0。
In another setting configuration: Set architectures to "$(ARCHS_STANDARD)"
and after set manually valid architectures to armv7 arm64
.在另一个设置配置中:将架构设置为
"$(ARCHS_STANDARD)"
,然后将手动有效架构设置为armv7 arm64
。 My Xcode version was 6.2.我的 Xcode 版本是 6.2。 Base SDK was iOS 8.2 Deployment target was 6.0.
基地 SDK 是 iOS 8.2 部署目标是 6.0。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.