Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 缺少所需的模块';libxml2';_Ios_Swift_Xcode_Swift3_Xcode8 - Fatal编程技术网

Ios 缺少所需的模块';libxml2';

Ios 缺少所需的模块';libxml2';,ios,swift,xcode,swift3,xcode8,Ios,Swift,Xcode,Swift3,Xcode8,我有这个错误 缺少必需的模块“libxml2” 关于我的进口 我的链接库中有该模块 内置设置添加 标题搜索路径:$SDKROOT/usr/include/libxml2 其他链接器标志:-lxml2 在Xcode 8中不需要在链接的框架和库中显式添加libxml2。在构建设置中添加 标题搜索路径:$SDKROOT/usr/include/libxml2 其他链接器标志:-lxml2 在Xcode 8中不需要在链接的框架和库中显式添加libxml2。Command+Swift+K,清除

我有这个错误

缺少必需的模块“libxml2”

关于我的进口

我的链接库中有该模块

内置设置添加

  • 标题搜索路径:
    $SDKROOT/usr/include/libxml2
  • 其他链接器标志:
    -lxml2
在Xcode 8中不需要在链接的框架和库中显式添加
libxml2

在构建设置中添加

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

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

Command+Swift+K,清除项目并重试。您应该只向链接的框架和库添加一个版本的libxml。Command+Swift+K,请清除您的项目并重试。您应该只向链接的框架和库添加一个版本的libxml。我现在有此错误:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/sdk/iPhoneOS10.2.sdk/usr/include/libxml2/libxml/xmlreader.h:13:10:'libxml/xmlversion.h'文件未找到include;使用“引号”代替你是否尝试使用“”代替?我有很多项目,包括libxml2,没有任何问题。除了您的解决方案之外,在构建设置中使用ALWAYS_SEARCH_USER_PATHS=YES解决了这些问题。Thx manI现在有此错误:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk/usr/include/libxml2/libxml/xmlreader.h:13:10:'libxml/xmlversion.h'未找到包含的文件;使用“引号”代替你是否尝试使用“”代替?我有很多项目,包括libxml2,没有任何问题。除了您的解决方案之外,在构建设置中使用ALWAYS_SEARCH_USER_PATHS=YES解决了这些问题。Thx人