Homebrew
-
安装
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
卸载
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
-
更新
brew update
-
brew
安装时下载的路径:
brew --cache
cocoapods
- 安装
$ sudo gem update --system // 先更新gem,国内需要切换源
$ gem sources --remove https://rubygems.org/
$ gem sources -a https://ruby.taobao.org/
$ gem sources -l\*\*\* CURRENT SOURCES \*\*\*https://ruby.taobao.org/
$ sudo gem install cocoapods // 安装cocoapods
$ pod setup
PS:os x10.11 安装: sudo gem install -n /usr/local/bin cocoapods
持续更新-
网友评论