-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: 没有那个文件或目录

Cal*_*had 1 ruby macos rubygems bundler macos-high-sierra

更新到 High Sierra 后,安装 Bundler 出现以下错误

-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory
Run Code Online (Sandbox Code Playgroud)

Cal*_*had 5

这似乎影响所有宝石,这个 cocoapods 线程给了我修复:

gem install -n /usr/local/bin bundler
Run Code Online (Sandbox Code Playgroud)