我必须使用谷歌AdMob的框架与雨燕2.0中的问题。我使用的AdMob是第一次,所以我不知道问题出的AdMob或雨燕2.0。
I have a problem using the Google AdMob Framework with Swift 2.0. I'm using AdMob for the first time so I do not know if the problem is with AdMob or Swift 2.0.
我已经包括了AdMob的框架,并将其导入一样,在我的ViewController:
I have included the AdMob Framework and import it like that in my ViewController:
import GoogleMobileAds
我得到的错误是:
The error I am getting is:
没有这样的模块GoogleMobileAds
No such Module GoogleMobileAds
一个桥接报头也没有工作:
A bridging header is also not working:
#import <GoogleMobileAds/GoogleMobileAds.h>
该错误:
GoogleMobileAds / GoogleMobileAds.h找不到文件
GoogleMobileAds/GoogleMobileAds.h file not found
我如何应该包括AdMob的?我已经测试AdMob的6.12.2,并通过桥接报头包含它和它的作品。
How should I include AdMob? I have tested AdMob 6.12.2 and included it via the bridging header and it works.
从其他用户的previous帖子并没有帮助我 - 有没有方法解决这个问题。
The previous posts from other users didn't help me - there were no solutions for this problem.
推荐答案
有两个步骤来解决问题:
There are two steps to solve your problem:
把 GoogleMobileAds.framework
的目标路径 - >构建设置框架搜索路径
Put the path of GoogleMobileAds.framework
in Targets -> Build Settings "Framework Search Path"
将无项目下 - >构建设置 - >启用位code
Set "No" under Project -> Build Settings -> Enable Bitcode
相关推荐
最新文章