Symbol not found error from iOS 4.3.5 static library

I see this error on the phone iOS 4.3.5where my application was installed through a special deployment (downloaded via HTTP):

Dyld Error Message:

  Symbol not found: _OBJC_CLASS_$_NSJSONSerialization
  Expected in: /System/Library/Frameworks/Foundation.framework/Foundation

My code in the application does not call libraries iOS 5if the class has not been shown (i.e. if(NSClassFromString(@"NSJSONSerialization")!=nil), so the problem is not that the iOS 5library calls on the iOS 4 device.

The application itself contains a static library, which is my own code, and where links exist NSJSONSerialization.

An application works fine on a device iOS 4.3if it runs directly from xcode (i.e. an iPhone attached to a development machine via a USB cable). However, when I run on the same device through adhoc deployment, I see a failure.

The adhoc archive is built through Product->Archivein xcode 4, and then I use the "Distribute" button to create the ad-hoc deployment .ipa file.

The application crashes almost instantly, leaving me to think that perhaps none of my codes have been called at all, and that these are my archive settings, which may be incorrect here?

Thanks so much for any time spent helping!

+3
source share
1 answer

, . - , Xcode. , , , ( Xcode 4.3). , , .

iOS , , ad hoc App Store. , " " " ". ( CoreVideo.framework, , Foundation.framework) Required to Optional.

. , , , , .

+11

All Articles