今天爱分享给大家带来Mac升级10.15导致pod报错 -bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2,希望大家能够喜欢。
升级了10.15,执行pod发现报错
-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: bad interpreter: No such file or directory
只需要执行以下指令即可
sudo gem install -n /usr/local/bin cocoapods
一定要加-n /usr/local/bin否则会报以下错误
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.
原文链接:https://blog.itblood.com/412.html,转载请注明出处。

![我和龙女妈妈的玄幻之旅v0.199 官方中文版 [更新] [1.5G] [国产RPG/中文]](/wp-content/uploads/replace/2025/07/19/603ba0adaf547d452b524c0765380c22.webp)