xcode 无法构建模块
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20389765/
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
Could not build module
提问by Androsov Michil
After Xcode update to v. 5.0.2 i can't build my app for iOS 6.0 target. I can build only for iOS 7.0
Xcode 更新到 v. 5.0.2 后,我无法为 iOS 6.0 目标构建我的应用程序。我只能为 iOS 7.0 构建
I get many errors:
我收到很多错误:
Could not build module CoreFoundation
Could not build module Darwin
Cyclic dependency in module Darwin: Darwin -> Foundation -> CoreFoundation -> Darwin
Could not build module Foundation
Interesting thing, is that before the update it was possible to compile the app for iOS 6.0, BUTI had the same errors when trying to compile app for iPhone 4/4S
有趣的是,在更新之前,可以为 iOS 6.0 编译应用程序,但是我在尝试为 iPhone 4/4S 编译应用程序时遇到了同样的错误
PS. Build Settings - armv7, armv7s. Without arm64.
附注。构建设置 - armv7、armv7s。没有arm64。
回答by Illya Bakurov
Had the same issue. Solved it by following:
有同样的问题。通过以下方式解决了它:
Go to Build settings
-> Apple LLVM 7.0 - Language - Modules
-> Enable Modules (C and Objective-C)
and switch it to NO for debug and release.
转到Build settings
-> Apple LLVM 7.0 - Language - Modules
->Enable Modules (C and Objective-C)
并将其切换为 NO 以进行调试和发布。
回答by adam.wulf
I was able to solve this problem by moving my Header Search Paths
settings to User Header Search Paths
我能够通过将我的Header Search Paths
设置移动到User Header Search Paths
回答by ScottyB
I was able to solve this problem by making my Header Search Paths non-recursive instead of recursive.
我能够通过使我的标题搜索路径非递归而不是递归来解决这个问题。