AdMob crashes with [GADObjectPrivate changeState:]: unrecognized selector

后端 未结 4 1569
不知归路
不知归路 2020-12-02 18:26

I have installed the AdMob SDK 6.2.0 (Xcode 4.5 (4G182) and I am testing on an iPhone 4S and the simulator). I followed the tutorial and just want to get AdMob showing a ban

4条回答
  •  被撕碎了的回忆
    2020-12-02 18:53

    You need to add -ObjC to the Other Linker Flags of your application target's build setting:

    1. Click the blue top-level project icon in XCode
    2. Choose your target and go to Build Settings
    3. 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

提交回复
热议问题