-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory
It's been a long time since I updated the third-party library, execute
pod update --verbose --no-repo-update found that it could not be executed. Looking at the related issues, it should be a problem caused by the upgrade system. So the following code is executed.
The above problem is caused by my upgraded Mac system. When your Mac system is upgraded to high sierra, don't forget to update cocoapods. The execution command is:
$ sudo gem update --system
$ sudo gem install cocoapods -n/usr/local/bin
I wish you good luck.
Reference link: http://www.cocoachina.com/bbs/read.php?tid=1727144