配置CocoaPods後 - CocoaPods使用git
1 .使用淘寶 Ruby Gems 源(Cocoapods 使用 ruby 開發)ruby
gem sources -l (查看當前ruby的源)
gem sources --remove https://rubygems.org/
gem sources -a https://ruby.taobao.org/
gem sources -l服務器
2 .升級gem
sudo gem update --systemurl
3. cocoapods.org(管理Cocoapods的),spa
緣由無他,由於那堵牆阻擋了cocoapods.org。。。
gitcafe和oschina都是國內的服務器,能夠用它們CocoaPods索引庫的鏡像:.net
$ pod repo remove master
$ pod repo add master https://gitcafe.com/akuandev/Specs.git
$ pod repo update
若是想用oschina的鏡像也能夠把第二條命令 換成 http://git.oschina.net/akuandev/Specs.git 便可索引
這個過程能夠查看大小開發
cd ~/.cocoapods 進入cocoapods文件夾rem
du -sh *。 查看大小get
4. 去除參數
pod install --verbose --no-repo-update
pod update --verbose --no-repo-update