1 Download xmppframework this framework first
Https://github.com/robbiehanson/XMPPFramework
2 Environment Configuration Reference: Https://github.com/robbiehanson/XMPPFramework/wiki/GettingStarted_iOS1 add xmppframework frame to project
Drag the following file into the project
The modules in extension can optionally be added (only the modules needed for the current project are added)
Xmppframework design is modular, including the core and extension, third-party developers can easily add their own extension implementation, while the developer
You just need to add the modules you need for your project. General extensions will depend on some additional packages, and be aware of adding them at the same time.
Here I choose to add the following module
2 Add the Framework selection project--Select build phases--and Link Binary with Libraries dot plus add the libraries you need to add include (note that depending on the module you add, you may need to add a different library)
3 Adding a search path
4 Add XMPPFramework.h File
This file was designed to being customized by.
As you pick and choose which parts of the framework you need for your application, add them to this header file
This file can be found in the download Xmppframework-master
You can change the name.
ARC-related errors are also encountered after 5, my workaround is to add the strong modifier at the corresponding property definition
Building an IOS XMPP development environment