GoogleAPIClient - 找不到GTLDrive.h

时间:2016-11-21 12:44:45

标签: ios google-drive-api cocoapods google-api-client

我想在我的应用中进行google drive集成,尝试使用quickstart

基本上,在安装pod时,找到pod有一些问题,给出以下消息:

  

无法找到GoogleAPIClient/Drive (~> 1.0.5)

的规范

我修改了pod文件,如下所示:

  

平台:ios,' 9.0'

     

目标' QuickstartApp'做

     

pod' GTMSessionFetcher',:git => ' https://github.com/google/gtm-session-fetcher.git'

     

pod' GoogleAPIClient',:git => ' https://github.com/google/google-api-objectivec-client.git'

     

pod' GTMOAuth2',:git => ' https://github.com/google/gtm-oauth2.git'

     

现在,pod正在成功添加到项目中,但是当我搜索 GTLDrive.h 时,我找不到头文件。这是截图。

GTLDrive.h is missing

让我知道我错过了什么/做错了什么。

1 个答案:

答案 0 :(得分:0)

您可以通过为整个Google API添加广​​告连播来尝试此SO thread中给出的解决方法:pod 'Google-API-Client', '~> 0.1'。另请查看建议运行'pod repo update'的{​​{3}}。您可能没有在规范存储库的本地副本中使用pod。还要注意,podspec可能具有更高的最低版本/不同的平台说明符集。