缺少必需的模块' libxml2'

时间:2017-03-02 14:11:57

标签: ios swift xcode swift3 xcode8

我有这个错误

  

缺少必需的模块' libxml2'

enter image description here

我的导入

enter image description here

我的链接库上有模块

enter image description here

1 个答案:

答案 0 :(得分:2)

在构建设置中添加

  • 标题搜索路径$SDKROOT/usr/include/libxml2
  • 其他链接标记-lxml2

Xcode 8中不需要在链接的框架和库中明确添加libxml2