安装
- Gem切换国内Taobao镜像仓库
gem sources --remove https://rubygems.org/
gem sources -a https://gems.ruby-china.com/
- 为了验证你的Ruby镜像是并且仅是taobao,可以用以下命令查看:
gem sources -l
只有在终端中出现下面文字才表明你上面的命令是成功的:
- 安装Cocoapods
sudo gem install -n /usr/local/bin cocoapods
兼容性问题
- CocoaPods compatibility with Apple DTK (Apple Silicon) .
解决方法:
- Locate Terminal.app in Finder. (Applications->Terminal.app)
- Right-click and choose Get Info
- Check the “Open using Rosetta“
-
Quit all instances of Terminal app and run it again
Using Rosetta
网友评论