1、安装Git 下载地址:sourceforge.net/projects/gi…
2、安装brew(使用国内镜像)
终端运行:
shell /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)",选择其中一个镜像上执行等待完成
3、安装cocoapods
终端运行:brew install cocoapods
如遇到zsh: command not found: brew报错
vim ~/.zshrc
export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH="/opt/homebrew/bin:$PATH"
source ~/.zshrc