Google AdMob 错误 iOS 7

Google AdMob error in iOS 7

我已将 AdMob 集成到我的 iOS 项目中,但出现以下错误。

module 'GoogleMobileAds' not found

我已经将 AdMob SDK 导入到我的项目中并添加了以下导入。

@import GoogleMobileAds;

更改导入调用:

@import GoogleMobileAds

至此

#import <GoogleMobileAds/GoogleMobileAds.h>

在项目的构建设置中,将 定义模块 设置为 YES。然后,从您的项目中删除 AdMob 框架,清理您的项目,然后再次导入 AdMob 框架。