sudo gem install not recommended
I used to install Cocoapods by following the officially recommended way
sudo gem install cocoapods
However, not anymore. Sudo
might be a bad practice.
Joshua Moody in the Calabash-ios repository warns:
… Read the restUsing sudo is inherently dangerous.