如何下载和安装CocoaPods?
<1>更改下载源
$ gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/ $ gem sources -l *** CURRENT SOURCES *** https://gems.ruby-china.org
为何要--remove https://rubygems.org因为太慢,使用国内的镜像
<2>安装
sudo gem install cocoapods -V
ERROR: While executing gem ... (OpenSSL::SSL::SSLError)
hostname "upyun.gems.ruby-china.org" does not match the server certificate
执行:gem update --system
ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/xcodeproj
执行:sudo gem install -n /usr/local/bin cocoapods
本文详细介绍了如何通过更改下载源来加速CocoaPods的安装过程,并提供了具体的命令指导,包括解决安装过程中可能出现的错误。
475

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



