In order to make a chat program in iOS, XMPP protocol is used, the server selects ejabberd. In the http://xmpp.org/xmpp-software/servers/
Here there are many items on the server side. Select ejabberd.
In... Speechless !!
Because n methods have been used before, installation errors are reported. Installation with source code and installation package are all pitfalls !! I have also found many solutions on the Internet. Including
Kill the process and re-install it to check whether the port number is occupied... They are all floating clouds.
You can use the installation package ejabberd-2.1.11-darwin-x86_64-installer.app.zip to install it directly.
It is estimated that the version of the installation package is incorrect. I spent one day using n versions of the installation package.
Mac OS x 10.8.2 (1216a)
Okay, the server is installed, and the customer service is downloaded.
Http://xmpp.org/xmpp-software/clients/there are a lot of them here. Download them for testing.
On Mac OS, we downloaded Adium and the built-in iChat for testing. Only when the Account Login is set, the server name cannot be logged on, but the server name can be logged on to the land without being written.
I don't know why...
The specific server-side configurations are described in more detail here. Many Chinese online introductions are from this, especially detailed and powerful enough.
Http://mobile.tutsplus.com/tutorials/iphone/building-a-jabber-client-for-ios-server-setup/
According to the introduction in this area, step by step is very good.