目前在做 pod 安装的操作 git config –global 524288000 sudo gem uninstall cocoapods sudo gem install -n /usr/local/bin cocoapods –pre pod setup

目前在做 pod 安装的操作

#xcode-select –install

brew update
brew outdated
brew upgrade
brew cleanup

pod setup

1
2
3
4
5
6
7
[!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master

Cloning into 'master'...
error: RPC failed; curl 56 SSLRead() return error -36
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

gem source -l

#gem sources –add https://gems.ruby-china.org/ –remove http://rubygems-china.oss.aliyuncs.com

#sudo rm -rf ~/.cocoapods/

#sudo gem install -n /usr/local/bin cocoapods

#git config –global http.postBuffer 24288000

#pod setup

1
2
3
4
5
6
7
[!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master

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

git config –global http.postBuffer 24288000
brew doctor

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
pod setup

1
2
3
4
5
6
7
[!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master

Cloning into 'master'...
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

which pod
sudo rm -rf /Users/taketrace/.rvm/rubies/ruby-2.2.3/bin/pod
which pod
sudo rm -rf /usr/local/bin/pod
which pod
gem list
sudo gem uninstall cocoapods -v 1.1.1

gem sources -a https://gems.ruby-china.org/

sudo gem install -n /usr/local/bin cocoapods

pod setup

1
2
3
4
5
6
7
[!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master

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

git config –global http.postBuffer 24288000
pod setup
新开窗口,进到.cocoapods/ : du -sh *

1
2
3
4
5
6
7
[!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master

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

git config –global 524288000

sudo rm -rf ~/.cocoapods/
sudo gem install -n /usr/local/bin cocoapods
pod setup
… 嗯…3点的时候网速快好多…达到了300k+ ~400k, 只要不要碰到比较卡的目录文件路径, 就这么继续跑吧亲….折腾死我了…

到了360M 的时候….没速度了… 心想别完蛋啊….
过了一会儿…. 提示”setup complete” 了….
那个在半夜都想叫出来的心啊….

然后再去
du -sh *
来看看… 怎么…. 900M… 想不通…

2016年12月09日
在使用 pod install 的时候, 出现 abort 生成不了 workspace 文件,
参考
https://stackoverflow.com/questions/39980096/xcode8-cocoapods-abort-trap6

卸载 pod, :

sudo gem uninstall cocoapods

sudo gem install -n /usr/local/bin cocoapods –pre

pod setup