1、 gem sources --remove https://rubygems.org/
2、 gem sources -a http://gems.ruby-china.org/
3、 sudo gem update --system
4、 sudo gem install -n /usr/local/bin cocoapods –pre
5、 pod install
1、cocoapods 500 修改 /Library/Ruby/Gems/2.3.0/gems/cocoapods-downloader-1.1.3/lib/cocoapods-downloader 路径中的 git.rb
#command += %w(--single-branch --depth 1)
command += %w(--single-branch)
网友评论