iOS-解决MacPod报错 -bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/...

解决MacOS Mojave10.14 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 Mojave10.14以后Pod命令失效,解决办法如下:
终端执行

brew link --overwrite cocoapods

尝试 Pod 命令是否已经恢复
若报错继续执行

brew reinstall cocoapods

brew install ruby

brew link --overwrite cocoapods

尝试 Pod 命令是否已经恢复

参考:

CocoaPods not working in macOS High Sierra

你可能感兴趣的:(iOS-OC)