cocoapods报错-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framewor

iOS开发之cocoapods报错MacOSSierra10.13-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framewor

终端报错:

-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

即可解决

你可能感兴趣的:(cocoapods报错-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framewor)