In My Xcode project I had integrated XMPP framework. It works fine on the iOS 5.1 simulator. When I tried to run the project on the iOS 4.3 simulator I am getting the following error:
dyld: lazy symbol binding failed: Symbol not found: _objc_storeStrong
Referenced from: /Users/admin/Library/Application Support/iPhone Simulator/4.3.2/Applications/67451DE6-EFC1-4313-9A29-C2C641F727C6/AppName.app/AppName
Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/Foundation.framework/Foundation
dyld: Symbol not found: _objc_storeStrong
Referenced from: /Users/admin/Library/Application Support/iPhone Simulator/4.3.2/Applications/67451DE6-EFC1-4313-9A29-C2C641F727C6/AppName.app/AppName
Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/Foundation.framework/Foundation
The error occurred on the following line of code : xmppStream = [[XMPPStream alloc] init];
After Further debugging I found that the error occurs here :
- (id)init
{
if ((self = [super init])) //**CRASH WHEN EXECUTING THIS STATEMENT
{
// Common initialization
[self commonInit];
// Initialize socket
asyncSocket = [[GCDAsyncSocket alloc] initWithDelegate:self delegateQueue:xmppQueue];
}
return self;
}
The project I integrated XMPP is not an ARC. So I added -fobjc-arc against all XMPP files. The sample project given by XMPP library is working fine on the iOS 4.3 simulator. Can anyone help me in resolving this error?
Xcode Version : 4.3.3
iOS : iOS 4.3 Simulator