Search code examples
iphoneios4exc-bad-accessxmppframework

Xmppframework for iphone works fine on simulator but not on device?


I am trying to see how the xmppframework for iphone works. Everything working perfectly on the simulator but not on device. I get a EXC_BAD_ACCESS after it receives the users thats are online.

Any ideas or help?

I have an iPhone 3G ios 4.2.1.


Solution

  • Got the same today with the iPhoneXMPP sample in the iOS simulator.

    In XMPPStream.m line 1181, adding the following check seems to fix it for me :

                if (myPresence!=presence)
                {
                    [myPresence release];
                    myPresence = [presence retain];
                }