$ 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
1
GhostClock OP 难道就没人知道吗?Orz
|
2
vixvix 2015-07-06 23:06:20 +08:00
pod 'Google-API-Client/Gmail', '~> 1.0'
这个放Podfile里。 pod的文档还是很好懂的... |
3
GhostClock OP @vixvix 这么说要在这个工程目录下创建一个Podfile这个文件夹?
|
4
GhostClock OP @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 |
5
Dashit 2015-07-07 08:53:47 +08:00
@GhostClock 你先去看下pod怎么用的吧。
|
6
ldp940622 2015-07-07 09:15:00 +08:00
|