-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: b...

Mac 更新到 10.15.2版本之后,在使用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
解决方法:
终端输入:sudo gem install -n /usr/local/bin cocoapods
此时上面的问题已经解决了,当再次输入pod install 命令时又报错了:

WeChat75675cf60881ad9c84b3b07592000ea0.png

解决方法:
在Podfile文件中添加source 'https://github.com/CocoaPods/Specs.git'
WeChat68d87c75cd5a6296b65b73be0c651ed9.png

你可能感兴趣的:(-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: b...)