Cocoapods installation steps record----egg pain history

Source: Internet
Author: User
Tags git clone install cocoapods

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 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.