模块“GoogleMobileAds”iOS中未发现模块、中未、发现、iOS

2023-09-09 22:13:55 作者:- 2得很有文艺范。

我更新了谷歌的AdMob的SDK 7.1.0使用吊舱。

I updated Google AdMob SDK to 7.1.0 using Pods.

因此​​,在我appDelegate.m,我想加入这一行

So in my appDelegate.m, I am trying to add this line

@import GoogleMobileAds;

但我得到的错误说的模块GoogleMobileAds'未找到

这问题也present在Interstial广告例如通过谷歌在GitHub上。

This issue is also present in Interstial Ad example by google on gitHub.

问候 兰吉特

推荐答案

下面就是答案:

这导入到您的 .m文件

#import <GoogleMobileAds/GADInterstitial.h>
 
精彩推荐
图片推荐