Vojtech Vrbka Vojtech Vrbka - 16 days ago 6
iOS Question

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.

Answer

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