Search code examples
iosios7admob

How to fix unrecognized selector issue in AdMob implementation?


I have following problem:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[GADSlot state]: unrecognized selector sent to instance 

I have linked all required frameworks.


Solution

  • I was missing -ObjC flag in Other Linker flags

    Go to Project settings > Build Settings And set -ObjC in Other Linker Flags.

    XCode project settings