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