I've integrated Facebook Audience Network iOS SDK via Cocoapods.
pod FBAudienceNetwork
Cocoapods version: 1.9.3, FBAudienceNetwork version: 5.10.0
Then, I got many production iOS crashes due to +[FBSDKTypeUtility dictionary:objectForKey:ofType:]: unrecognized selector sent to class FBSDKTypeUtility. Looking at Crashlytics, FAN's -[FBAdsManagerImpl cacheAdController:] calls this unrecognized method.
Even though I have the latest Facebook SDKs installed via the latest Cocoapods, I'm getting a lot of crashes.
If you look at the FBAudienceNetwork 5.10.0 Podspec, it only requires:
"FBSDKCoreKit/Basics": [
">= 5.6.0"
]
In FacebookSDK 5.6.0, +[FBSDKTypeUtility dictionary:objectForKey:ofType:]: is not implemented. This method is only implemented later in FacebookSDK 7.0.1.
Therefore, the fix is to update FBAudienceNetwork 5.10.0 Podspec to require:
"FBSDKCoreKit/Basics": [
">= 7.0.1"
]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With