gem source -l
如果显示:
* CURRENT SOURCES *
sudo gem install cocoapods
ERROR: While executing gem … (OpenSSL::SSL::SSLError)
hostname “upyun.gems.ruby-china.org” does not match the server certificate
gem sources –remove https://ruby.taobao.org/
gem sources -a https://gems.ruby-china.org
sudo gem update –system
sudo gem install -n /usr/local/bin cocoapods –pre
pod –version
1.2.1
更新成功
本文介绍了解决CocoaPods安装过程中遇到的错误,包括移除不匹配的源地址,并更新CocoaPods到最新版本的具体步骤。
2458

被折叠的 条评论
为什么被折叠?



