OSX upgrade to 10.10, with pod install error Final Solution

Source: Internet
Author: User
Tags install cocoapods

Reprinted from: http://blog.csdn.net/liuyujinglove/article/details/40582197

http://blog.csdn.net/dqjyong/article/details/37958067
The approximate steps are as follows:

Open Xcode 6
Open Preferences
Click Thelocationstab
Change Thecommand line ToolsVersion Toxcode 6.0
Uninstallcocoapods

a.$ sudo gem uninstall cocoapods

Installxcodeproj

    a.$ sudo gem install xcodeproj

Installcocoapods

a.$ sudo gem install cocoapods
$ pod--version

If you perform to the 6th step: sudo gem install xcodeproj succeeds, but to seventh step: sudo gem install cocoapods fails with the following error message:

Error:could not find a valid gem ' cocoapods ' (>= 0), here are why:unable to download data from https://rubygems.org/-E Rrno::etimedout:operation timed Out-connect (2) (https://rubygems.org/latest_specs.4.8.gz) error:possible Alternatives:cocoapods

Consciousness is said in the official source can not find the source we need, then how to do it, online to find a blog, so do, switch official source, that is, change the source of the acquisition address

At this point we need to change the gem source, reference [4], [5]. You need to execute the following command in the terminal:

$ gem Sources---remove https:///rubygems.org/-a https://  ruby.taobao.org/-L


Next, enter the following command:

 while  as  This  ~/.cocoapods/on your computer. [6]


This cocoapods installation is complete.

Note: If you omit the "Pod Setup" command, execute "POD init" directly

There will be an error message similar to the following:

$ pod initsetting up CocoaPods master repo[!] /usr/bin/git Clone'Https://github.com/CocoaPods/Specs.git'Master--depth=1cloning into'Master'... error:rpc failed; result= the, HTTP code =0fatal:the remote end hung up unexpectedly/library/ruby/gems/2.0.0/gems/claide-0.6.1/LIB/CLAIDE/COMMAND.RB:304:inch' Handle_exception': Undefined method ' verbose?'  forNil:nilclass (nomethoderror) from/library/ruby/gems/2.0.0/gems/claide-0.6.1/LIB/CLAIDE/COMMAND.RB:284:inch' RescueinchRun' from/library/ruby/gems/2.0.0/gems/claide-0.6.1/LIB/CLAIDE/COMMAND.RB:274:inch' Run' from/library/ruby/gems/2.0.0/gems/cocoapods-0.33.1/LIB/COCOAPODS/COMMAND.RB: -:inch' Run' from/library/ruby/gems/2.0.0/gems/cocoapods-0.33.1/bin/pod: -:inch' <top (required) >' from/usr/bin/pod: at:inch' Load' from/usr/bin/pod: at:inch' <main>' "


When the above steps are complete, proceed as follows:

$ sudo gem install Cocoapods


This is the success!

The rest is the same as before in the project directory, build Podfile, perform pod install, open xworkspace, etc., successfully completed!!!

Reference Blog: http://www.cnblogs.com/cwgk/p/3370949.html

OSX upgrade to 10.10, with pod install error Final Solution

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.