Mac升级最新系统 pod 报错解决
2018-11-14 本文已影响0人
LWide
pod 报错
-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory
MacOS 升级最新版本10.14后 pod 出现问题解决办法
1、删除gem源:gem sources --remove https://ruby.taobao.org/
2、修改gem源:gem sources -a https://gems.ruby-china.com/
3、更新gem:sudo gem update --system
4、查看gem源是否是最新的:gem sources -l
5、升级cocoapods:sudo gem install -n /usr/local/bin cocoapods --pre
6、查看升级后的cocoapods版本:pod --version