// 移除源 gem sources --remove https://rubygems.org/ // 添加源 gem source -a https://gems.ruby-china.com // 更新 sudo gem update --system // 安装 sudo gem install -n /usr/local/bin cocoapods pod setup