AdMob的SDK - iOS的 - 文件未找到 [英] Admob SDK - iOS -File not found

查看:119
本文介绍了AdMob的SDK - iOS的 - 文件未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在iOS的项目中使用Cocoapods安装谷歌Analytics(分析)和谷歌AdMob的SDK。我已经实现了无论是在我的应用程序,一切的功能看起来好了一个星期。然后,突然,当我的编译应用程序,我得到错误信息

I have installed Google Analytics and Google AdMob SDK in my iOS project using Cocoapods. I have implemented both the functionalities in my app and everything looked okay for a week. Then suddenly, when I am compiled the app, I got error message as

"GADBannerView.h file not found". in "#import GADBannerView.h"

但我能看到下吊舱的目标在我的项目的头GADBannerView.h。

But I was able to see the header GADBannerView.h in my project under Pods target.

我做了一些研究,发现这个错误可能发生因搜索路径在建SETTINGS.Many面临着同样的问题,当他们把项目从一次设备到另一台机器,但我没有这样做的,所以不是调查的搜索PATH,我打消了我Adbanner实施从我的项目和注释行#进口GADBannerView.h和我的项目编译成功。

I did some research and found this error can happen due to SEARCH PATH in BUILD SETTINGS.Many faced similar issues when they moved the project from once machine to other machine but I didn't do that, so instead of investigating on SEARCH PATH, I removed my Adbanner implementation from my project and commented line "#import GADBannerView.h" and my project compiled successfully.

我不明白为什么谷歌分析SDK是越来越编译成功,而AdMob的抛出一个编译错误。我甚至做了荚更新,仍然出现同样的错误。

I don't quite understand why Google Analytics SDK is getting compiled successfully while AdMob throwing a compilation error. I even did a pod update and still the same error.

在我的目标搜索路径的(继承)$,并随时搜索用户路径设置为否

The SEARCH PATHS in my target is $(inherited) and ALWAYS SEARCH USER PATH is set to No

感谢

推荐答案

在开始AdMob的7.0,AdMob的取得了SDK的框架。导入像这样:

Starting at AdMob 7.0, AdMob has made the SDK a framework. Import it like so:

#import <GoogleMobileAds/GoogleMobileAds.h>

这篇关于AdMob的SDK - iOS的 - 文件未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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