When i try to initialize pod file to use cocoapods via terminal, it gives me this error. How to fix it.
cocoapods
/Library/Ruby/Gems/2.0.0/gems/cocoapods-
Sometimes its version issue.
Installing CoacoaPods 1.7.5 did the trick.
sudo gem uninstall cocoapods sudo gem install cocoapods -v 1.7.5 pod setup