你能让 Xcode 5.1 目标依赖项只构建有效的架构吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22331646/
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
Can you make Xcode 5.1 target dependencies build only valid architectures?
提问by Reid Main
With Xcode 5.1 Apple has made $(ARCHS_STANDARD) include arm64. If your project does not support arm64 you can simply change the architecture build setting to $(ARCHS_STANDARD_32_BIT) and it will not build arm64.
在 Xcode 5.1 中,Apple 使 $(ARCHS_STANDARD) 包含 arm64。如果您的项目不支持 arm64,您只需将架构构建设置更改为 $(ARCHS_STANDARD_32_BIT),它就不会构建 arm64。
However if you have a target dependency that uses $(ARCHS_STANDARD) it will build arm64 and you will get an error because your project is expecting symbols that are not arm64.
但是,如果您有一个使用 $(ARCHS_STANDARD) 的目标依赖项,它将构建 arm64,并且您将收到错误消息,因为您的项目需要不是 arm64 的符号。
Is there a way to make your target dependency aware what you are building against so it will build the valid architecture?
有没有办法让您的目标依赖项知道您正在构建的内容,以便构建有效的架构?
采纳答案by Cameron
Our quick fix was to leave the Architecturesentry as $(ARCHS_STANDARD)
but change Valid Architecturesto armv7
and armv7s
until the third party libraries we're using are updated.
我们的快速解决方法是保留Architectures条目,$(ARCHS_STANDARD)
但将Valid Architectures更改为armv7
,armv7s
直到我们使用的第三方库更新。