ios 没有要编译的架构 (ARCHS=arm6 arm7, VALID_ARCHS=armv7)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10005896/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
No architectures to compile for (ARCHS=arm6 arm7, VALID_ARCHS=armv7)
提问by iOSDev
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. I also tried just arm6
and arm7
, but still not.
我尝试添加arm6 arm7
到架构中,但没有奏效。我也试过 just arm6
and arm7
,但还是不行。
Also, I'm setting deployment target to 4.3 iPhone
.
I have Xcode version 4.3.1
.
另外,我将部署目标设置为4.3 iPhone
. 我有 Xcode 版本4.3.1
。
Please help!
请帮忙!
回答by Neeku
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:armv6 armv7
转到
Project Target > Build Settings > Architectures
删除您在那里看到的任何内容,然后将这些行一一添加: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 go to the AppName-Info.plist file, and look for the key "Require device capabilities" and delete it all.
- 现在转到 AppName-Info.plist 文件,查找关键“需要设备功能”并将其全部删除。
Now it's done.
现在完成了。
回答by roocell
set "Build Active Architecture Only" = NO this worked for me after upgrading an old project to xcode5
将旧项目升级到 xcode5 后,设置“仅构建活动架构”= 否这对我有用
回答by OrdoDei
That works fine for me:
这对我来说很好用:
Set architecturesto "Standard (armv7,armv7s)" and after set manually Valid architecturesto armv7 armv7s
将架构设置为“标准 (armv7,armv7s)”,然后手动设置有效架构为armv7 armv7s
回答by Neo
Not arm6 and arm7, try by adding armv6 and armv7 as architectures.
不是 arm6 和 arm7,尝试添加 armv6 和 armv7 作为架构。
回答by Rajesh
Add architectures only armv7. Remove armv6 then try it.
仅添加架构 armv7。删除armv6然后尝试。
回答by flyers
I am using the latest Xcode and iPhone5. I had it set to armv7s and 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
.
我正在使用最新的 Xcode 和 iPhone5。我将它设置为 armv7s 和 armv7。它解决了我的问题,即No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv7s, VALID_ARCHS=armv6 armv7)
错误。
回答by kalan nawarathne
To include 64 bit:
Set architectures to "$(ARCHS_STANDARD_32_64_BIT)"
and after set manually Valid architectures to armv7 arm64
. My Xcode version was 5.1. Base SDK was iOS 7.1
Deployment target was 6.0.
要包括 64 位:将架构设置为"$(ARCHS_STANDARD_32_64_BIT)"
,然后手动将有效架构设置为armv7 arm64
。我的 Xcode 版本是 5.1。基础 SDK 为 iOS 7.1 部署目标为 6.0。
In another setting configuration:
Set architectures to "$(ARCHS_STANDARD)"
and after set manually valid architectures to armv7 arm64
. My Xcode version was 6.2. Base SDK was iOS 8.2
Deployment target was 6.0.
在另一个设置配置中:将架构设置为"$(ARCHS_STANDARD)"
,然后将手动有效架构设置为armv7 arm64
。我的 Xcode 版本是 6.2。基础 SDK 是 iOS 8.2 部署目标是 6.0。