Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix unrecognized selector issue in AdMob implementation?

Tags:

ios

ios7

admob

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.

like image 626
Vojtech Vrbka Avatar asked Nov 19 '13 18:11

Vojtech Vrbka


1 Answers

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

like image 58
Vojtech Vrbka Avatar answered Oct 31 '22 18:10

Vojtech Vrbka