//移除原有的墙外Ruby 默认源
$ gem sources --remove https://rubygems.org/
// 更新为 ruby-china的镜像, 淘宝镜像已经停止
$ gem sources -a https://gems.ruby-china.org/
//验证新源是否替换成功
$ gem sources -l
//安装
$ sudo gem install -n /usr/local/bin cocoapods
//设置cocoa pods
$ pod setup
//终端中输入cd 项目目录,输入命令
$ pod init
网友评论