XMPP-IOS即時通訊XMPP相關架構匯入,xmpp-iosxmpp

來源:互聯網
上載者:User

XMPP-IOS即時通訊XMPP相關架構匯入,xmpp-iosxmpp

  只是留存一下XMPP相關架構的匯入步驟,方便以後查看

一.架構地址

  1.其他語言可用XMPPFramework 架構地址

  http://xmpp.org/xmpp-software/libraries/

  2.下載XMPPFramework架構:

  https://github.com/robbiehanson/XMPPFramework

  3.git clone

  https://github.com/robbiehanson/XMPPFramework.git

二.匯入相關架構
  • CocoaLumberjack:日誌架構
  • CocoaAsyncSocket:底層網路架構,實現非同步Socket網路通訊(需要添加CFNetwork&Security架構依賴)
  • KissXML:XML解析架構(需要添加libxml2.dylib架構依賴,需要指定如下編譯選項:
  •             Other Linker Flags = -lxml2
  •             Header Search Paths = /usr/include/libxml2)
  • libidn
  • 將檔案夾(Authentication,Categories,Core,Utilities)匯入到項目
  • 添加libresolv.dylib依賴
  • 匯入XMPP擴充架構:Extensions
  • 將Sample_XMPPFramework.h添加到項目,並且重新命名為XMPPFramework.h
三.問題處理:

  如果將項目移動到其他檔案夾,可能會出現編譯時間無法找到libidn.a庫的提示,按照以下步驟,可以解決此問題: 1. 在導航地區選中項目,然後在右側選擇Targets-項目-Build Phases 2. 在Link Binary With Libraries中,重新添加libidn.a庫

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.