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