MacOS升级后pod install报错:...bin/ruby: bad interpreter: No such file or directory

问题:

开发需要将Mac系统升级至最新后,执行 pod install 命令时报错:

-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: bad interpreter: No such file or directory

解决:

升级 CocoaPods

sudo gem install -n /usr/local/bin cocoapods --pre

推荐阅读更多精彩内容