I integrated Facebook Ads SDK to my app. However, minimal supported iOS version for SDK is 5.0, and deployment target for my app is 4.3.
And, as expected, it crashes on app launch saying
dyld: Symbol not found: OBJC_CLASS$_NSJSONSerialization.
It happens at a very early stage of app start. Call stack looks as
Thread1:
dyld_fatal_error
_dyld_start
So I want to switch off Facebook SDK for iOS 4.3 and keep it for iOS >= 5.0. Is it possible? How can I do it in xCode? Or the only way is to split my app into two apps: for 4.3 and for >= 5.0?
Update
Accordingly to NSJSONSerialization crash with Facebook iOS SDK 3.5 marking Foundation.framework
as optional
helps. It really helps, but I cannot understand it. What has Foundation.framework to do with Facebook stuff??