iphone 5 的 xcode 4.5 依赖性问题
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12644538/
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
xcode 4.5 dependency issues with iphone 5
提问by Stephen
I am trying to build my project to my iphone 5 and I keep getting this warning
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv7s, VALID_ARCHS=armv6 armv7)
Does anyone know how to fix this?
我正在尝试将我的项目构建到我的 iphone 5 并且我不断收到此警告没有要编译的架构(ONLY_ACTIVE_ARCH=YES, active arch=armv7s, VALID_ARCHS=armv6 armv7)
有谁知道如何解决这个问题?
回答by Imre Kelényi
You get this error becuse your active Architecture is armv7s
(armv7s is the architecture for iPhone 5's A6 SoC):
您收到此错误是armv7s
因为您的活动架构是(armv7s 是 iPhone 5 的 A6 SoC 架构):
active arch=armv7s
活动拱门=armv7s
but this architecture is not listed among your valid architectures:
但是此架构未在您的有效架构中列出:
VALID_ARCHS=armv6 armv7
VALID_ARCHS=armv6 armv7
Modify the "Valid Architectures" in your project target's "Build Settings" by adding armv7s (you might as well remove armv6 since Xcode 4.5 does not support that any more):
通过添加 armv7s 修改项目目标的“构建设置”中的“有效架构”(您最好删除 armv6,因为 Xcode 4.5 不再支持它):
You might also need to change the "Architectures" property:
您可能还需要更改“架构”属性:
and set "Build Active Architecture Only" to NO (so your project is built for all listed architectures including armv7, which older devices, e.g. iPhone 4S, can execute):
并将“仅构建活动架构”设置为否(因此您的项目是为所有列出的架构构建的,包括 armv7,旧设备,例如 iPhone 4S,可以执行):
Also, check out this answer.
另外,看看这个答案。