CocoaPods安裝,若是您此前已安裝,請跳過此步驟。 移除現有的Ruby默認源 gem sources --remove https://rubygems.org/ 使用新源 gem sources -a https://ruby.taobao.org/ 驗證新源替換是否成功 gem sources -l 安裝CocoaPods sudo gem install cocoapods 至此爲止,整個CocoaPods就已安裝成功了。ruby
gem sources --remove https://rubygems.org/
gem sources -a https://ruby.taobao.org/
gem sources -l
sudo gem install cocoapods