pod on macOS
Last updated on May 7, 2023 pm
install brew
1
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
安装 ruby,否则会报如下错误:
ERROR: macbook gem install, You have to install development tools first
1
brew install ruby
install pod
1
2
3
4
5
6
7
8
9
10
11
12gem sources -l
gem sources --remove https://gems.ruby-china.org/
gem sources -a https://gems.ruby-china.com
sudo gem update -n /usr/local/bin —system
sudo gem install -n /usr/local/bin cocoapods
gem list
sudo gem install -n /usr/local/bin cocoapods -v 0.39.0 # 安装指定版本
# or TODO test
brew install cocoapodsuse pod
1
2
3pod repo update
pod install- Proxy
- https://blog.csdn.net/shengpeng3344/article/details/94739340
- https://www.cnblogs.com/qqcc1388/p/12879206.html
1
2git config --global http.proxy socks5://127.0.0.1:1080
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080 install xcode command line tools
1
2
3
4
5
6brew upgrade
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
sudo xcodebuild -license
pod on macOS
https://cgabc.xyz/posts/3e8a8632/