CocoaPod:无法找到Google-Api-Client / Services / Calendar

时间:2014-06-12 13:25:43

标签: objective-c google-api cocoapods

我有一个使用Podfiles的iOS Objective C项目抱怨:

  

无法在Google-API-Client/Services/Calendar中找到名为Google-API-Client (0.1.1)的规范。

我不确定如何解决这个问题。

pod文件本身;

platform :ios, '7.0'

# Google APIs

# Calendar
pod 'Google-API-Client/Services/Calendar'

我尝试在线搜索,我可以在github上看到pod文件规格,我甚至可以在cocoa pods网站上找到它,但它似乎无法安装这个特定的pod文件。

我是否有安装此pod文件的路径?

由于

2 个答案:

答案 0 :(得分:2)

这是一个老问题,但我遇到了类似的问题(除了使用Drive)。就我而言,问题是Services

我最终使用了:

pod 'Google-API-Client/Drive'

因为我并不真正想要所有其他服务。

答案 1 :(得分:0)

我把它解雇了,我刚刚为整个Google API做了一个pod,它似乎有效。

pod 'Google-API-Client', '~> 0.1'