简体   繁体   English

iOS 7中的Google AdMob错误

[英]Google AdMob error in iOS 7

I've integrated AdMob in my iOS project but it gives me the following error. 我已将AdMob集成到我的iOS项目中,但是却出现以下错误。

module 'GoogleMobileAds' not found 找不到模块“ GoogleMobileAds”

I have already imported the AdMob SDK into my project and added the following import. 我已经将AdMob SDK导入了我的项目,并添加了以下导入。

@import GoogleMobileAds;

In the Build Settings of you project set the Define Modules to YES . 在项目的Build Settings中,将Define Modules设置为YES Then, remove the AdMob Framework from your project, clean your project, and import the AdMob Framework again. 然后,从您的项目中删除AdMob框架,清理项目,然后再次导入AdMob框架。

Change the import calls: 更改导入调用:

@import GoogleMobileAds

to this 对此

#import <GoogleMobileAds/GoogleMobileAds.h>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM