I have installed the AdMob SDK 6.2.0 (Xcode 4.5 (4G182) and I am testing on an iPhone 4S and the simulator). I followed the tutorial and just want to get AdMob showing a ban
If you guys are still having trouble, make sure it's -ObjC and not -Objc. Geez, spent weeks trying to figure out why.
You need to add -ObjC
to the Other Linker Flags of your application target's build setting:
-ObjC
for both Release and DebugSource: https://developers.google.com/mobile-ads-sdk/docs/admob/mediation#ios-linker
Also be sure to do a clean and rebuild
For those of you who tried adding the Obj-c linker flag and still got the same "unrecognized selector sent to instance" error when trying to load an ad I found a fix. This is for the newest XCode (version 8.1).
For reference:
Looking at the dropdown I saw that GADBannerView was available as an option and selected it.
After selecting it, the app ran without a hitch, no need to add the linker flag (mine was blank by default) or anything.
Hope this helps someone else!
Best solution for me is use -force_load flag instead -ObjC