安装cocoapods

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)

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容