Vojtech Vrbka Vojtech Vrbka - 1 year ago 75
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 Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download