最近电脑升级到macOS High Sierra以后,发现使用pod install出现了如下错误
-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory
我们只需要更新一下cocoapods就好了。
执行命令:
$ sudo gem update --system
$ sudo gem install cocoapods -n/usr/local/bin