I'm trying to implement admob
mediation using the latest admob sdk
, and their library requires me to use linker flag -ObjC
.
However, after adding this flag, I get linker errors for facebook SDK.
Undefined symbols for architecture armv7: "_SLServiceTypeFacebook", referenced from: +[FBNativeDialogs composeViewControllerWithSession:handler:] in FacebookSDK(FBNativeDialogs.o)
"_OBJC_CLASS_$_SLComposeViewController", referenced from: objc-class-ref in FacebookSDK(FBNativeDialogs.o)
Did anyone else also encounter this?
Have you added the Social and Accounts Frameworks to your project?
Remember to weak link those, if you are targeting below iOS 6!
Do you have -ObjC in other linker flags? This was my problem when I've linked facebook SKD, social and accounts frameworks with this flag (it works when removed). Now I'm trying to figure out the workaround as I need this flag to be used i my project.
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