从0配置cocoaPods

2020-04-12  本文已影响0人  最初的自己_f7c3

cocoaPods的安装步骤

安装rvm

更换ruby源

查看当前ruby源:gem sources -l
移除当前ruby源:gem sources --remove https://rubygems.org
切换国内ruby源:gem sources --add https://gems.ruby-china.com/
确保只有一个ruby源!!

安装cocoaPods

sudu gem install cocoapods
如果出错:ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted

试试:sudo gem install -n/user/local/bin cocoapods

上一篇下一篇

猜你喜欢

热点阅读