中介广告未在模拟器中显示,无法找到具有名称的广告网络适配器

Mediation ads ain't showing up in simulator , Giving Cannot find an ad network adapter with the name

准确的错误是:

Cannot find an ad network adapter with the name(s): com.google.ads.mediation.admob.AdMobAdapter. Remember to link all required ad network adapters and SDKs, and set -ObjC in the 'Other Linker Flags' setting of your build target.

我正在使用 Swift 并且我已经为 Vungle、Mopub 和 Milennial 安装了适配器和 SDK,但它总是给我这个错误。其他错误如下:

Cannot find an ad network adapter with the name(s): com.mopub.mobileads.dfp.adapters.MoPubAdapter. Remember to link all required ad network adapters and SDKs, and set -ObjC in the 'Other Linker Flags' setting of your build target.

如果您遇到此类错误,请在 admob 控制台中检查您的设置。您的项目可能是为 android 平台创建的。这就是我的问题。

编码愉快。