objective-c 错误“没有要编译的体系结构(ONLY_ACTIVE_ARCH=YES,active arch=x86_64,VALID_ARCHS=armv7 armv7s)。”?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19423800/
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
an error "No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=armv7 armv7s)."?
提问by user2032083
I have Xcode 4.6. I downloaded this projectWhen run it i receive a message
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=armv7 armv7s).Where and what i have to change? I have no idea what should i do? Thanx
我有 Xcode 4.6。我下载了这个项目运行它时,我收到一条消息
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=armv7 armv7s).我必须在哪里更改哪些内容?我不知道我该怎么办?谢谢
回答by Vineeth
If you are in Xcode 5.0 , this may arise if you select a 64 bit (simulator for iPhone 5S) simulator instead of 32 bit simulator. This happened to me. It may help some one, because I didn't find any answer to solve this till I found it myself.
如果您在 Xcode 5.0 中,如果您选择 64 位(iPhone 5S 模拟器)模拟器而不是 32 位模拟器,则可能会出现这种情况。这发生在我身上。它可能对某些人有所帮助,因为在我自己找到之前,我没有找到任何解决此问题的答案。
回答by Ali Raza
Go to
Project Target > Build Settings > Architectures
转到
项目目标 > 构建设置 > 架构
and make
和做
Build Active Architecture Only = NO
仅构建主动架构 = 否
The issue will be solved
问题将得到解决
回答by Silviu St
For me the solution was to add arm64 to valid arhitectures.
Follow steps described in the attached image.
Hope it helps someone
对我来说,解决方案是将 arm64 添加到有效架构中。按照附加图像中描述的步骤进行操作。希望它可以帮助某人
回答by DeZigny
Change the following:
更改以下内容:
Build Settings > Architectures > Architectures to:
构建设置 > 架构 > 架构:
"$(ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=armv7 armv7s)"
"$(ONLY_ACTIVE_ARCH=YES,活动拱门=x86_64,VALID_ARCHS=armv7 armv7s)"
Build Settings > Architectures > Valid Architectures to:
Build Settings > Architectures > Valid Architectures 以:
armv7 armv7s
armv7 armv7s
Build Settings > Architectures > Build Active Architectures Only to:
Build Settings > Architectures > Build Active Architectures Only 以:
No
不
回答by fspring
change the Target--Build Settings--Architectures To "Standard(armv7,armv7s)"
将 Target--Build Settings--Architectures 更改为“Standard(armv7,armv7s)”
回答by Hussain Shabbir
In the Build setting you need to change the architecture to your project architecture which it supports
在 Build 设置中,您需要将架构更改为它支持的项目架构
回答by adeel ramzan
Changing the following ONLY works for me:
更改以下仅适用于我:
Build Settings > Architectures > Valid Architectures to:
Build Settings > Architectures > Valid Architectures 以:
armv7 armv7s
armv7 armv7s

