Cocoapods Update __cocoapods

Source: Internet
Author: User
Tags install cocoapods

The recent use of cocoa Pods prompt version is too low need to upgrade to normal use.


However, there are also problems during the upgrade process.

First of all I was directly using the statement: sudo gem install cocoapods update upgrade, did not expect to complain again.


Then I wondered if it was because I didn't update the gem, so I updated the gem first.

Note that when you update the GEM, use the statement: sudo gem update--system


After updating the gem successfully, I again used the statement: sudo gem install cocoa pods. or the prompt fails. Think about whether it is because the source path problems, and replaced the source as: https://gems.ruby-china.org.


After you modify the source, continue using the statement: sudo gem install cocoa pods. Still abnormal. The modified statement is: sudo gem install-n/usr/local/bin cocoa pods--pre after the upgrade succeeded.




To sum up, to successfully upgrade cocoapods requires a proper procedure and command statement.

1, update Gem:sudo gem update--system

2, delete gem Source: Gem Sources--remove https://ruby.taobao.org/

3, modify the gem Source: Gem Sources-a https://gems.ruby-china.org

4, see whether the gem source is the latest: Gem sources-l

5, upgrade Cocoapods:sudo gem install-n/usr/local/bin cocoapods--pre

6, view the upgraded version of Cocoapods: Pod--version

[OBJC] View plain copy//Cocoa PODS The updated statement uses the example Platform:ios, ' 8.0 ' target: project name do pod ' sdwebimage ', ' ~&G T 3.7.5 ' End

Please respect the original, reproduced in this article from: https://blog.csdn.net/potato512/article/details/62235282

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.