ios - 缺少所需的模块 'libxml2'

标签 ios swift xcode swift3 xcode8

我有这个错误

Missing required module 'libxml2'

enter image description here

关于我的导入

enter image description here

我的链接库中有该模块

enter image description here

最佳答案

在build设置中添加

  • header 搜索路径:$SDKROOT/usr/include/libxml2
  • 其他链接器标志:-lxml2

Xcode 8 不需要在 Linked Frameworks and Libraries 中显式添加 libxml2

关于ios - 缺少所需的模块 'libxml2',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42557715/

相关文章:

ios - 试图防止 iPhone 4 上的方向改变

objective-c - 在太多对象中初始化某些值会使我的应用程序崩溃

html - 使用iOS从服务器下载带有密码的pdf

ios - 如何以编程方式快速添加自定义 UIButton

xcode - 在 Swift : var vs. 中迭代集合

objective-c - 两个 UIViewController 的故事

ios - PhoneGap 3.3 项目结构和编辑代码

ios - 在 UIImageView 中更新图像时,UIImage 分配不会 swift 发生

ios - 项目名称更改后重新生成 Bridging-Header 和 -Swift.h 文件

ios - 如何从 AVAudioSessionCategory 中删除 AVAudioSessionCategoryOptions?