AdMob crashes with [GADObjectPrivate changeState:]: unrecognized selector
Solution 1:
You need to add -ObjC
to the Other Linker Flags of your application target's build setting:
- Click the blue top-level project icon in XCode
- Choose your target and go to Build Settings
- Under Other Linker Flags add
-ObjC
for both Release and Debug
Source: https://developers.google.com/mobile-ads-sdk/docs/admob/mediation#ios-linker
Also be sure to do a clean and rebuild
Solution 2:
Best solution for me is use -force_load flag instead -ObjC
Solution 3:
If you guys are still having trouble, make sure it's -ObjC and not -Objc. Geez, spent weeks trying to figure out why.