I'm adding admob to my project, but I get this error:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_EKEvent", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADOpener.o)
"_OBJC_CLASS_$_EKEventEditViewController", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADOpener.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have added:
StoreKit
AudioToolbox
MessageUI
SystemConfiguration
CoreGraphics
AdSupport
And also use -ObjC link flags..
What is the problem?
Thanks!
I just upgraded from Google Admob SDK 6.11 to 6.12 and these same errors popped up.
In the project navigator click on your project properties in the top and make sure the correct target is selected. Go to the Build Phases tab and scroll to Link Binaries With Libraries. Add both EventKit.framework and EventKitUI.framework to this list.
As always, Clean and Build your project. The errors should go away.
Please check that you have added all those libraries
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