XMPP Framework Import for iOS

Source: Internet
Author: User


The first part of the XMPP Download

first, you have to start from XMPP the official website to download good corresponding XMPP Framework,

1. XMPP Address of the website: http://xmpp.org (sometimes not access, try to refresh a few times the browser, the big Celestial network to visit foreign sites, you know)

2. After entering the official website, click on XMPP software to Select the third libraries, as shown in:

3. Click Libraries to enter the following interface:

4. then find the xmppframework that we need to support IOS :

Click on the website domain name on the right to access the download interface:

6. Click the Download button in the lower right corner to OK . (maybe a little slow speed,1.9M i downloaded five or six minutes!!) )

after the download is complete , you can see an extract called Xmppframework-master folder:

After opening, you can see the following interface:

this is XMPP what is included after the decompression



Part II Import of Frames

Well, after the download, the official entry XMPP framework of the import;

1. Open Xcodeand create a new project named "XMPP Framework Import", of course, where you can name it, and of course, for good understanding, I'll name it " XMPP Framework Import, the next step is to create a folder. Click the "Plus" in the lower left corner:


2. Select the blue bar, then select new folder, name it classes, then click "Add" Add on OK up.

3. Follow the steps above to create a new folder, in order:classes,lib, XMPP, as shown in the following:

Attention!! These three are not parallel relationships, but contain relationships!! Don't add the wrong!!

4. then under the xmpp folder, or follow the steps above to create a new named Vendor folder that will just download the XMPP the vendor of the folder is dragged in,

Note tick the first option! Click Finish to

5. Every time you import a folder, compile it to see if there are any errors. If there is no red error, it indicates that there is no fatal error and you can continue to import the following file.
When you import the network underlying framework, you implement asynchronous Socket network communication, the name of the folder is: Cocoaasyncsocket , the folder Cocoaasyncsocket Import XMPP Down,

After compiling, error-correct, you can do the following.

6. Next we need to import the Kissxml framework, which is used to parse the XMLbefore importing, we need to do two things:

a Add libxml2.dylib Framework Dependency


Select the second one, click Add can be

two you need to specify the following compilation options:otherlinker flags and Header Search paths=/usr/include/ LIBXML2

on this basis, continue to add libidn folder to Vendor folder, compile it and see if it passes. No red exclamation mark, then continue.

7. then import the following four folders to the xmpp folder below:

You must then add a dynamic library:

Select the second one. Then compile if the following error occurs :

Description We have not imported this header file, back to our download good XMPP folder, locate the following header file:

8. Import into the project XMPP Group and remove the previous sample_ . As

Then compile, if there is no error, then congratulations! Here you are!!!


XMPP Framework Import for iOS

Related Article

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.