Ios_32_xmppframework Framework Import

Source: Internet
Author: User

XMPP Framework Address: http://xmpp.org/xmpp-software/libraries/
? https://github.com/robbiehanson/XMPPFramework?


features expected to be implemented:

? user Login, registration? Add friends to each other roster(roster) ? chat between Friends? Emoji (Coretext)Chat status XEP-0085(online, leave, do not disturb)Chat Room Group chat XEP-0045? send file XEP-0096Voice chat XEP-0065(local recording, send audio, play)



Xmppmaster Directory after decompression

Create a new Xcode blank item and tick git on my Mac


Create a new Lib folder directly in the Xcode project

1. Import a dependent framework –Cocoalumberjack: Log Frame (logfile) –Cocoaasyncsocket: the underlying network framework? Need to addcfnetwork&SecurityFramework Dependencies –Kissxml: XML parsing framework? Need to addlibxml2.DylibFramework dependency? You need to specify the following compilation options:

Other_ldflags =-LXML2

header_search_paths = / usr /include/ LIBXML2

– Import Folderlibidn
?Import the following 4 folders into a project –Authentication–Categories–Core–Utilities??Additionally, you need to add libresolv.dylib dependencies
? Import the XMPP extension frameworkfolder–Extensions
? willsample_xmppframework.hAdded to the project, and renamed toxmppframework.h?? In Terminal input:

git commit-m " Add XMPP Frame "

? You can submit all the added files at once

? XEP-0045: Multi-user chat? XEP-0060: publish-subscribe? XEP-0065:SOCKS5 byte stream? XEP-0085: Chat status notification? XEP-0096: File transfer? XEP-0172: User nickname? Coredatastorage: Data storage? Reconnect: Reconnect? Roster: All XMPP extensions for roster? http://xmpp.org/xmpp-protocols/xmpp-extensions/



?Xmppstream: Is the most important interaction class in the development process, and all extensions and custom code are based on this class? XMPPLOGGING:XMPP's Log Framework

? Xmppparser: For Xmppstream analytic use?Xmppjid: Provides an immutable Jid implementation that complies with the Nscopying protocol and Nscoding Protocol
?xmppelement: The base class for the following three XMPP elements?Xmppiq:Request?Xmppmessage  : Message?xmpppresence  :present (on-line)
? Xmppmodule: Use when developing XMPP extensions? Xmppinternal: Core and advanced underlying content used throughout the XMPP framework




1. Configure the connection to XMPP server 2. AddAgent3. Add a Module 4. Start connection 5. Start authorization
? Note: The –XMPP framework provides only a minimalAgent Delegation SystemTo receive three types of XMPP (IQ, message, and presence), developers need to write a lot of relevant code if they want to implement more features – to simplify development,will typicallyXmppstreamplaced inappdelegateinFor global access

?Xmppreconnect: Automatically re-connect the XMPP stream if interrupted unexpectedly?Xmpproster: The standard XMPP roster?Xmpproom: Provide multi-person chat support (chat room)?xmpppubsub: Provide public subscription support? etc

? The real-time messaging system using XMPP consists of three major categories of communication: –Message Delivery, where data is transferred between the parties concerned –Online Status, allowing users to broadcast their online status and availability –Information/Query Request, which allows the XMPP entity to initiate a request and receive a response from another entity
? The above three types of XMPP sections have the following common properties: – from: jid– of the source XMPP entity to: The target recipient's jid–ID: An optional identifier for the current conversation –type: Optional sub-type of section –Xml:lang: If the content is human readable, the description of the message language







import Cfnetwork.framework and Security.framework
Import Kissxml (quite troublesome)

Add libxml2 header file path, otherwise, Kissxml will not work

At this point, Vendor (hawker, seller) has been imported
4 basic frameworks for XMPP are then imported into the project (except extensions)
Extensions that are not available for the time being
Finally, you will import Libresolv.dylib
Not an extension, the end result
Git submits a single file

A better approach is: in the command line, switch to the project path, one-time commit all (new or modified files) git commit-m "Some notes on this operation"
After all commits, a (add) to the right of the Xcode file is missing.






























Ios_32_xmppframework Framework Import

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.