A few days ago to reinstall the company's computer cocoapods, a variety of problems, do not remember how the first time to fix, deliberately record the installation steps, under the terminal:
# First update gem $ sudo gem update--system # then replace the mirror site $ gem sources--remove https://rubygems.org/$ gem sources-a HTTPS ://ruby.taobao.org/$ gem sources-a http://ruby.taobao.org/$ gem sources-l * * Current Sources * * * HTTPS://RUBY.TAOB
ao.org/http://ruby.taobao.org/# Make sure you only have ruby.taobao.org, and then install rails. $ gem Install rails # Install cocoapods (OS X 10.11 below) $ sudo gem install-n/usr/local/bin cocoapods # Install Cocoapods (OS X 10.1 1 or above) $ sudo gem install-n/usr/local/bin cocoapods # Add a sentence, perfect solution $ sudo xcode-select--switch/applications/xcode.app # more New Frame library, this has 350M multiple traffic (activitymonitor looking down, slow) also encountered the following error//POD Setup command will cocoapods Specs repository copied to your computer ~/.cocoapods directory, However, this process will have various problems when upgrading the installation: $ pod Setup [!]/usr/bin/git clone Https://github.com/CocoaPods/Specs.git master cloning into ' master ' ... error:rpc failed; Curl Sslread () return error-36 fatal:the remote end hung up unexpectedly fatal:early EOF Fatal:index-pack failed # Use the following command to solve the problem: $ sudo gem uninstall cocoa pods//Interactive Select Y $ Pod repo Remove Master # and then reinstall POD Setup