How to fix an unrecognized selector issue in an AdMob implementation?

I have the following problem:

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

I linked all the necessary frameworks.

+6
source share
1 answer

I missed the ObjC flag in other Linker flags

Go to Project Settings > Build Settings and set -ObjC to Other linker flags .

Xcode project settings

+28
source

Source: https://habr.com/ru/post/958418/


All Articles