Xcode 上的错误 - 警告:所有应用程序都应包含 armv7 架构(当前 ARCHS = "")
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10020655/
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
Error on Xcode - Warning: all apps should include an armv7 architecture (current ARCHS = "")
提问by iOSDev
I'm constantly getting following error while building app.
构建应用程序时,我不断收到以下错误。
The error is: Check dependencies
错误是:检查依赖项
No architectures to compile for (ARCHS=armv7, VALID_ARCHS=arm6 arm7). warning: all apps should include an armv7 architecture (current ARCHS = "").
没有要编译的架构 (ARCHS=armv7, VALID_ARCHS=arm6 arm7)。警告:所有应用程序都应包含 armv7 架构(当前的 ARCHS = "")。
How can I resolve this? I'm using Xcode 4.3.1.
我该如何解决这个问题?我正在使用 Xcode 4.3.1。
回答by MobileDevMaster
In your TARGET'S Build Settings look into "Build Active Architecture Only" set Debug to "NO" and Release to "NO"
在您的目标构建设置中查看“仅构建活动架构”将调试设置为“否”并将发布设置为“否”
回答by Matej Zimic
This happened with my app when I had my iPhone connected to my Mac. When I disconnect it and archive again selecting iOS Device it was OK.
当我将 iPhone 连接到 Mac 时,我的应用程序发生了这种情况。当我断开它并再次存档选择 iOS 设备时,它就可以了。
回答by JiaYow
In your target's Build Settings there is a setting called "Architectures", which is probably empty. Add "armv7" and/or "armv6" to it.
在目标的构建设置中有一个名为“架构”的设置,它可能是空的。向其中添加“armv7”和/或“armv6”。
回答by PaNaVTEC
My problem was i wrote "armv7, armv7s", just remove the quote "," and it works ok.
我的问题是我写了“armv7,armv7s”,只需删除引号“,”就可以了。