Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSJSONSerialization crash with Facebook iOS SDK 3.5

Tags:

ios

facebook

After I updated Facebook iOS SDK from 3.2 to 3.5 I'm getting this error when running my app in a device with iOS older than 5 (eg 4.3.5).

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

I can avoid this crash if I set Foundation framework as Optional, but I don't think this is the best option.

Is there another way to make Facebook SDK works in devices with iOS previous to version 5?

like image 971
Alberto Gonzalez Avatar asked Jan 25 '26 21:01

Alberto Gonzalez


1 Answers

From Facebook iOS SDK changelog v3.5: http://developers.facebook.com/ios/change-log-3.x/

Removes support for iOS 4.* Facebook 6.0 dropped support for iOS 4.x. To stay in sync, the Facebook SDK is also does not support iOS 4.x.

So, if you update to Facebook SDK 3.5 you lose support for iOS 4.x

like image 65
Alberto Gonzalez Avatar answered Jan 28 '26 15:01

Alberto Gonzalez