IOS Facebook SDK 3.1 with -ObjC flag

I am trying to implement admob mediation using the latest admob sdk , and their library requires me to use the -ObjC linker -ObjC .

However, after adding this flag, I get linker errors for the facebook SDK.

Undefined symbols for armv7 architecture: "_SLServiceTypeFacebook", link: + [FBNativeDialogs composeViewControllerWithSession: handler:] on FacebookSDK (FBNativeDialogs.o)
"_OBJC_CLASS _ $ _ SLComposeViewController" referenced by: objc-class-ref on FacebookSDK (FBNativeDialogs.o)

Has anyone else come across this?

+7
source share
2 answers

Have you added social and accounting documents to your project?

Remember a weak link if you target below iOS 6!

+17
source

Do you have -ObjC in other linker flags? This was my problem when I linked facebook SKD, social and account environments with this flag (it works when deleted). Now I'm trying to figure out a workaround, since I need this flag for use in my project.

+2
source

All Articles