Time for action – installing CocoaPods
To install CocoaPods, follow these steps:
- Open a terminal.
- Enter
sudo gem update –system
and press Enter to confirm. - Enter
sudo gem install cocoapods
. - Enter
pod setup
. This may take a long time, so be patient.
What just happened?
As CocoaPods needs to be installed using the command line, our requirement is to have a terminal window opened.
In the second step, we are going to update RubyGems to the latest available version.
After that, we trigger the installation of CocoaPods. This also installs all dependencies. If there is a conflict, we get a prompt to deal with this conflict. If you are unsure about what to do, just press Enter in this case and the safest option will be chosen.
The last step is necessary in order to set up CocoaPods. It's recommended to run this command from time to time as it updates the local repository with all the latest specifications of libraries that can be used.
Now that CocoaPods is installed, we can go ahead and set up our Sparrow template.