Xcode 9.4.1无法构建模块并重新定义模块-无法构建 [英] Xcode 9.4.1 Could not build module and redefinition of module - Can't Build
问题描述
在Xcode中遇到此问题,我尝试过以下解决方案:
Encountering this issue in Xcode, solutions I've tried:
- 启用模块以 YES 和 NO
- 重新安装Xcode 9.4。 1通过删除9.4.1和
〜/ Library / Developer
- 将命令行工具降级为9.4.1
- 可可豆从1.5.3降级到1.4.0
- Enabled modules to YES and NO
- Reinstalled Xcode 9.4.1 by deleting 9.4.1 and
~/Library/Developer
- Downgraded command lines tools to 9.4.1
- Downgraded Cocoapods to 1.4.0 from 1.5.3
我现在很茫然,有人可以指出我在正确的方向吗?我已经花了一整天了。其他项目虽然很好。
I'm at a loss at this point can someone point me to the right direction here? I've already spent an entire day on this. Other projects build fine though.
推荐答案
我解决了!
XCode正在添加以下标头搜索路径
:
XCode was adding the following Header Search Paths
:
/usr/include/libxml2 recursive
/usr/include/libxml2 non-recursive
但是 libxml2
已包含在 SDK
中> XCode.app 通过 $(继承)
搜索路径进行操作,因此一切都发生冲突。
But libxml2
is already included in the SDK
from XCode.app
via $(inherited)
search path so everything was conflicting.
删除了文件夹层次结构顶部的这两个 / usr / include / libxml2
路径,将其修复!
Removed those two /usr/include/libxml2
paths at the top of my folder hierarchy fixed it!
谢谢XCode的众神。
Thank the XCode gods.
这篇关于Xcode 9.4.1无法构建模块并重新定义模块-无法构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!