XMPPPFramework无法构建模块libxml [英] Xmppframework could not build module libxml

查看:52
本文介绍了XMPPPFramework无法构建模块libxml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在DDXMLNode.h上

On DDXMLNode.h

我的项目通过cocoapods导入XMPPFramework,例如:

My project import XMPPFramework by cocoapods ,like:

pod 'XMPPFramework', '~> 3.6.6'

我发现类似的方式:

1. header search paths添加"$(SDKROOT)/usr/include/libxml2"

1.header search paths add "$(SDKROOT)/usr/include/libxml2"

2. Other Linker Flags添加"-lxml2"

2.Other Linker Flags add "-lxml2"

3. Framework Search Path添加"/usr/lib/libxml2.dylib"

3.Framework Search Path add "/usr/lib/libxml2.dylib"

一切都不正常!

推荐答案

您可以执行我为解决Xcode 7.2 beta中的错误而执行的操作,而不是更改文件的路径. 首先检查您是否具有文件libxml2.tbd框架和libresolve.tbd框架(如果没有),然后将其添加到您的项目中并替换一些东西

Instead of changing path of the files you can do what i have done to resolve my error in Xcode 7.2 beta First check if you have file libxml2.tbd framework and libresolve.tbd framework if not then add it to you project and replace few things

#if !(TARGET_IPHONE_SIMULATOR)
//@import dnssd;
#import <dns_sd.h>
#else
//@import dnssdSimu;
#import <dns_sd.h>
#endif

您要做的第二件事就是替换掉这个

second thing you have to do is replace this one

   #if !(TARGET_IPHONE_SIMULATOR)
   //@import libxml;
  #import <libxml/tree.h>
 #else
 //@import libxmlSimu;
 #import <libxml/tree.h>
  #endif

这解决了我的问题,希望这也能帮助您解决问题.

this resolved my problem hope this will help you to resolve your problem as well.

这篇关于XMPPPFramework无法构建模块libxml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆