到底怎么用 Pod 获取 Gmai 的 SDK

2015-07-06 21:20:22 +08:00
 GhostClock

$ pod init

$pod 'Google-API-Client/Gmail', '~> 1.0'

$ pod install

Google的文档是这么说的,但是每次第二步就会有问题,更别说Install了,

ghost$ pod 'Google-API-Client/Gmail', '~> 1.0'
[!] Unknown command: Google-API-Client/Gmail,
Did you mean: plugins

Usage:

$ pod COMMAND

  CocoaPods, the Cocoa library package manager.

Commands:

+ init       Generate a Podfile for the current directory.
+ install    Install project dependencies to Podfile.lock versions
+ ipc        Inter-process communication
+ lib        Develop pods
+ list       List pods
+ outdated   Show outdated project dependencies
+ plugins    Show available CocoaPods plugins
+ repo       Manage spec-repositories
+ search     Searches for pods
+ setup      Setup the CocoaPods environment
+ spec       Manage pod specs
+ trunk      Interact with the CocoaPods API (e.g. publishing new specs)
+ try        Try a Pod!
+ update     Update outdated project dependencies and create new
             Podfile.lock

Options:

--silent     Show nothing
--version    Show the version of the tool
--verbose    Show more debugging information
--no-ansi    Show output without ANSI codes
--help       Show help banner of specified command

bogon:PortalWaitList ghost$ pod install
Analyzing dependencies

CocoaPods 0.38.0.beta.2 is available.
To update use: gem install cocoapods --pre
[!] This is a test version we'd love you to try.

For more information see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ.

Downloading dependencies
Generating Pods project
Integrating client project

[!] [!] The Podfile does not contain any dependencies.

具体应该怎么搞?
这是Gmail的文档网址
https://developers.google.com/gmail/api/quickstart/ios

1089 次点击
所在节点    C
6 条回复
GhostClock
2015-07-06 21:34:50 +08:00
难道就没人知道吗?Orz
vixvix
2015-07-06 23:06:20 +08:00
pod 'Google-API-Client/Gmail', '~> 1.0'
这个放Podfile里。
pod的文档还是很好懂的...
GhostClock
2015-07-07 07:54:32 +08:00
@vixvix 这么说要在这个工程目录下创建一个Podfile这个文件夹?
GhostClock
2015-07-07 08:16:03 +08:00
@vixvix 应该是把
pod 'Google-API-Client/Gmail', '~> 1.0'
这一行放在Podfile,但是放在哪个地方呢?还是随便放?

# Uncomment this line to define a global platform for your project
# platform :ios, '6.0'

target 'Test' do

end

target 'TestTests' do

end
Dashit
2015-07-07 08:53:47 +08:00
@GhostClock 你先去看下pod怎么用的吧。
ldp940622
2015-07-07 09:15:00 +08:00

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/203774

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX