美文网首页
安装xmppframework出现的各种问题

安装xmppframework出现的各种问题

作者: Brookyear | 来源:发表于2016-11-02 23:17 被阅读0次

问题:

最近开发swift项目,安装xmppframework做即时聊天通讯,遇到了许多问题。

用cocoapod安装遇到了许多问题,

pod 'XMPPFramework', :git => "https://github.com/robbiehanson/XMPPFramework.git", :branch => 'master'  

pod install之后,说KissXML.h找不到,如下图。

然后我查看xmppframework在github上的issue,许多人说把@import KissXML;改为#import <KissXML/KissXML.h>

于是我把xmppFramework里的所有@import KissXML都替换了,编译通过了,但是将xmppframework加入桥接文件后,不是提示could not build module 'XMPPFramework',就是找不到XMPPFramework.h的头文件,或者是找不到"libxml/tree.h" file not found

然后我在Link Binary with libraries里添加XMPPFramework.framework,header search Path、FrameworkSearch,还是报错

解决办法:

最后参考这个文章http://blog.csdn.net/winer888/article/details/49636451解决了

相关文章

网友评论

      本文标题:安装xmppframework出现的各种问题

      本文链接:https://www.haomeiwen.com/subject/kosmuttx.html