AdMob的7.3.1和雨燕2.0​​ - 没有找到模块 [英] AdMob 7.3.1 and Swift 2.0 - Module not found

查看:375
本文介绍了AdMob的7.3.1和雨燕2.0​​ - 没有找到模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须使用谷歌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:

  1. GoogleMobileAds.framework 的目标路径 - >构建设置框架搜索路径

  1. Put the path of GoogleMobileAds.framework in Targets -> Build Settings "Framework Search Path"

项目下 - >构建设置 - >启用位code

Set "No" under Project -> Build Settings -> Enable Bitcode

这篇关于AdMob的7.3.1和雨燕2.0​​ - 没有找到模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆