[IOS] Fix the warehouse version of Pod search below the GitHub warehouse version method

Source: Internet
Author: User

Shimen the main contribution, respect the work of the author, please do not reprint.

If the article is helpful to you, you are welcome to donate to the author, support the Shimen, donate the amount at random, ^_^

I want to donate: Click Donate

Cocos2d-x source Download: Dot I teleport

Games Official Download:HTTP://DWZ.CN/RWTJL

Game video preview:http://dwz.cn/RzHHd

Game Development Blog:Http://dwz.cn/RzJzI

Game Source Transfer : Http://dwz.cn/Nret1


Problem description

when we use Cocoapods to do third-party open Source Library Management, sometimes we find
$ pod Search XXX
Version is lower than the latest release version of the warehouse on GitHub (Note: XXX is the warehouse name)

Workaround

Upgrading the Cocoapods version

To view the current system Cocoapods version command:
Pod--version

Upgrade method
$ sudo gem update--system
$ gem Sources--remove https://rubygems.org/
$ gem sources-a http://ruby.taobao.org/
$ sudo gem install Cocoapods
$ pod Setup
which
$ gem Sources--remove https://rubygems.org/
$ gem sources-a http://ruby.taobao.org/

These two words can be omitted, but we in the celestial, still add good. Domestic network reasons (you know).

If you use the original https://rubygems.org/, the resource file stored on Amazon S3 fails intermittently when you install Cocoapods on the sudo gem.


After the upgrade is over, pod--version will find that the Cocoapods version number is higher than the previous version and the upgrade was successful.

Again
$ pod Search XXX
The latest version of the Ok,github warehouse is already available.


Shimen the main contribution, respect the work of the author, please do not reprint.

If the article is helpful to you, you are welcome to donate to the author, support the Shimen, donate the amount at random, ^_^

I want to donate: Click Donate

Cocos2d-x source Download: Dot I teleport

Games Official Download:HTTP://DWZ.CN/RWTJL

Game video preview:http://dwz.cn/RzHHd

Game Development Blog:Http://dwz.cn/RzJzI

Game Source Transfer : Http://dwz.cn/Nret1

[IOS] resolves how the warehouse version of Pod Search is lower than the GitHub warehouse version

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.