修改gem 的源
sudo gem installl cocoapods 安装pod
pos install 安装项目需要pod
gem sources 显示 gem 的源就是maven 仓库所在的位置
gem sources --add https://gems.ruby-china.com/ 增加一个仓库
gem sources --r https://rubygems.org/ 删除以前的库
安装pods 可能有一个报错
‘ruby/config.h‘ file not found
参考 https://blog.csdn.net/Baby_come_here/article/details/125144329 我是 没有 universal-darwin21 有 22 我复制了 后改个名字 universal-darwin21 就可以了。