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-
I fixed the problem with next steps:
sudo gem install cocoapods --source http://rubygems.org
after command finish entering new command
pod install
and work for me on xCode 11.2