MAC system upgrade leads to COCOAPODS failure problem

The following error occurs when using 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


This is caused by the Mac upgrade system. When your Mac system is upgraded to high siera, don't forget to update cocoapods.

Excuting an order:


$ sudo gem update --system
$ sudo gem install cocoapods -n/usr/local/bin

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324692739&siteId=291194637