执行`master` specs repo的深度提取以改善未来的性能

Jok*_*erV 17 cocoapods

以下命令:

/usr/local/bin/git fetch --unshallow
Run Code Online (Sandbox Code Playgroud)

...产生以下错误:

error: RPC failed; result=56, HTTP code = 200
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Run Code Online (Sandbox Code Playgroud)

我究竟做错了什么?

Leo*_*Leo 35

它也发生在我的终端上......

YJCMBP:LCBlur yuanjincang$ gem list

*** LOCAL GEMS ***

activesupport (4.2.5)
bigdecimal (1.2.0)
CFPropertyList (2.2.8)
claide (1.0.0, 0.9.1)
colored (1.2)
escape (0.0.4)
fourflusher (0.3.0)
fuzzy_match (2.0.4)
i18n (0.7.0)
io-console (0.4.2)
json (1.7.7)
libxml-ruby (2.6.0)
minitest (5.8.3, 4.3.2)
molinillo (0.4.5, 0.4.1)
nap (1.0.0)
netrc (0.7.8)
nokogiri (1.5.6)
psych (2.0.0)
rake (0.9.6)
rdoc (4.0.0)
rubygems-update (2.5.1)
sqlite3 (1.3.7)
test-unit (2.0.0.0)
thread_safe (0.3.5)
tzinfo (1.2.2)
xcodeproj (1.0.0, 0.28.2)
YJCMBP:~ yuanjincang$ sudo gem install cocoapods
Fetching: cocoapods-core-1.0.0.gem (100%)
Successfully installed cocoapods-core-1.0.0
Fetching: cocoapods-deintegrate-1.0.0.gem (100%)
Successfully installed cocoapods-deintegrate-1.0.0
Fetching: cocoapods-downloader-1.0.0.gem (100%)
Successfully installed cocoapods-downloader-1.0.0
Fetching: cocoapods-plugins-1.0.0.gem (100%)
Successfully installed cocoapods-plugins-1.0.0
Fetching: cocoapods-search-1.0.0.gem (100%)
Successfully installed cocoapods-search-1.0.0
Fetching: cocoapods-stats-1.0.0.gem (100%)
Successfully installed cocoapods-stats-1.0.0
Fetching: cocoapods-trunk-1.0.0.gem (100%)
Successfully installed cocoapods-trunk-1.0.0
Fetching: cocoapods-try-1.0.0.gem (100%)
Successfully installed cocoapods-try-1.0.0
Fetching: cocoapods-1.0.0.gem (100%)
Successfully installed cocoapods-1.0.0
Parsing documentation for cocoapods-core-1.0.0
Installing ri documentation for cocoapods-core-1.0.0
Parsing documentation for cocoapods-deintegrate-1.0.0
Installing ri documentation for cocoapods-deintegrate-1.0.0
Parsing documentation for cocoapods-downloader-1.0.0
Installing ri documentation for cocoapods-downloader-1.0.0
Parsing documentation for cocoapods-plugins-1.0.0
Installing ri documentation for cocoapods-plugins-1.0.0
Parsing documentation for cocoapods-search-1.0.0
Installing ri documentation for cocoapods-search-1.0.0
Parsing documentation for cocoapods-stats-1.0.0
Installing ri documentation for cocoapods-stats-1.0.0
Parsing documentation for cocoapods-trunk-1.0.0
Installing ri documentation for cocoapods-trunk-1.0.0
Parsing documentation for cocoapods-try-1.0.0
Installing ri documentation for cocoapods-try-1.0.0
Parsing documentation for cocoapods-1.0.0
Installing ri documentation for cocoapods-1.0.0
9 gems installed
YJCMBP:LCBlur yuanjincang$ pod --version
1.0.0
YJCMBP:LCBlur yuanjincang$ pod setup
Setting up CocoaPods master repo
Performing a deep fetch of the `master` specs repo to improve future performance
Run Code Online (Sandbox Code Playgroud)

在这等一会儿......

[!] /usr/bin/git fetch --unshallow

error: RPC failed; curl 56 SSLRead() return error -9806
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

YJCMBP:~ yuanjincang$ 
Run Code Online (Sandbox Code Playgroud)

附加

也许我找到了解决方案,只需运行此行:

sudo rm -fr ~/.cocoapods/repos/master
Run Code Online (Sandbox Code Playgroud)

然后又跑pod setup了.

完成!


Jok*_*erV 16

好吧,我找到了解决方案.pod update --verbose --no-repo-update

  • 通常当我们执行更新命令时,我们会自动更新CocoaPods的规范库.可以省略添加--no-repo-update参数. (2认同)