黑色背景代码为终端命令,直接copy即可
- 安装Homebrew:
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
然后按指示操作
- 查看安装Homebrew:
brew -v
M1新机此处应该会有两个致命错误,大概就是说要设置cask、core两个文件路径为设置为safe.directory,如果没有错误则忽略此处.
按提示操作即可:
git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-core
git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-cask
- 安装Cocoapods:
brew install cocoapods
- 设置Cocoapods:
pod setup