m1 pods安装
2022-11-03 本文已影响0人
冬的天
1:安装homebrew
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
2:安装rvm
curl -L get.rvm.io | bash -s stable
source ~/.bashrc
source ~/.bash_profile
报错:curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443
解决:sudo vim /etc/hosts
然后i进入编辑,
添加:
54.169.195.247 api.github.com
151.101.76.133 raw.githubusercontent.com
按esc,:wq保存退出
rvm list known
rvm install 3.0.0
arch -x86_64 rvm install 3.0.0
rvm use 3.0.0
3:
sudo arch -x86_64 gem install ffi
sudo arch -x86_64 gem install -n /usr/local/bin cocoapods
sudo gem install -n /usr/local/bin cocoapods
pod --version