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
sudo gem update –system
sudo gem install -n /usr/local/bin cocoapods –pre
pod –version
1.2.1
更新成功
提示错误:
ERROR: While executing gem ... (URI::InvalidURIError)
bad URI(is not URI?): ?gems=–pre
执行pod setup