Google admob undefined symbol for armv7 architecture

I have replaced the older admob 6.6.1 with the latest admob library 6.12.0 but I am getting this error even though everything is fine. I am using xcode 6.0.1, how to solve this problem, any help?

Undefined symbols for architecture armv7:
  "_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 armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)



source to share

3 answers

I had the same problem, but I solved it by adding eventKit and eventUIKit project to the project. Hope it works for you too.



This error is mainly related to updating your ADMOB SDK .

1) Go to Build Steps-> Open Framework List.

2) Find libGoogleAdMobAds.a

. Delete this file by clicking - sign.

3) Add this libGoogleAdMobAds.a

file again by clicking the + sign and choosing "Add another". select this file from your project ADMOB folder.

4) Clean then build and run the project.

Also, make sure you have -ObjC set to Other Linker Flags in your project's target build settings and add the required frameworks.



add Framework EventKit

and EventKitUI




All Articles