-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: 错误的解释器: 没有这样的文件或目录
-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory
更新到 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
这似乎影响所有宝石,this cocoapods thread 给了我修复:
gem install -n /usr/local/bin bundler
解决了同样的问题:
sudo gem install cocoapods
强烈建议安装 RVM 来管理 mac 中的 ruby 版本。
https://rvm.io
更新到 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
这似乎影响所有宝石,this cocoapods thread 给了我修复:
gem install -n /usr/local/bin bundler
解决了同样的问题:
sudo gem install cocoapods
强烈建议安装 RVM 来管理 mac 中的 ruby 版本。 https://rvm.io