The file '/usr/local/bin/pod' specified the interpreter '/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby', which is not an executable command. code example
Example: pod install ruby: bad interpreter: No such file or directory
sudo gem install cocoapods