You can install CocoaPods on your Mac very easy. You need to write just one command.
What is CocoaPods
CocoaPods is a dependency manager which let you easily add libraries to your Swift or Objective-C projects.
CocoaPods installation
First you need to open the Terminal application on your computer. To do it (for example) open the Spotlight search (Cmd + Space) and type “terminal.app”, then press Enter.
After that just run the command:
sudo gem install cocoapods
Wait a little bit while installation process will complete. That’s it!