$pod repo remove master //删除
$ sudo gem install -n/usr/local/bin cocoapods //重新装
$ pod //检查一下
$ pod setup //下载(特别慢,文件大小380M+)
192:~ mac$ pod repo remove master
Removing spec repo `master`
192:~ mac$ sudo gem install -n/usr/local/bin cocoapods
Password:
Successfully installed cocoapods-1.2.0
Parsing documentation for cocoapods-1.2.0
Done installing documentation for cocoapods after 2 seconds
1 gem installed
192:~ mac$ pod
Usage:
$ pod COMMAND
CocoaPods, the Cocoa library package manager.
Commands:
+ cache Manipulate the CocoaPods cache
+ deintegrate Deintegrate CocoaPods from your project
+ env Display pod environment
+ init Generate a Podfile for the current directory
+ install Install project dependencies according to versions from a
Podfile.lock
+ 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 Search 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
192:~ mac$ pod setup
Setting up CocoaPods master repo
$ /usr/bin/git clone https://github.com/CocoaPods/Specs.git master --progress
Cloning into 'master'...
remote: Counting objects: 1125146, done.
remote: Compressing objects: 100% (207/207), done.
remote: Total 1125146 (delta 79), reused 1 (delta 1), pack-reused 1124926
Receiving objects: 100% (1125146/1125146), 382.59 MiB | 219.00 KiB/s, done.
Resolving deltas: 100% (528214/528214), done.
Checking out files: 100% (141345/141345), done.
CocoaPods 1.2.1.beta.1 is available.
To update use: `sudo gem install cocoapods --pre`
[!] This is a test version we'd love you to try.
For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.2.1.beta.1
Setup completed
网友评论