1.下载XMPPFramework,下载地址:https://github.com/robbiehanson/XMPPFramework
2.创建项目并将XMPP库引入:
3.添加需要的库文件:
4.配置KissXML: