解决-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory的问题

今天在更新Mac系统之后,在终端上输入pod search之后,终端上输出:

-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory

解决方法:

终端输入:sudo gem install -n /usr/local/bin cocoapods


参考链接:https://www.jianshu.com/p/3a036697993b

posted @ 2020-07-14 09:56  kawerd  阅读(1485)  评论(0编辑  收藏  举报