Official Documentation by cocoapods Click Here
For installing cocoapods in your MAC, open terminal and just right
And hit enter/return
sudo gem install cocoapods
For adding cocoapods in your project, write cd in terminal and drag & drop your downloaded project folder
And hit enter/return
And then Write arch -x86_64 pod install and hit enter/return
arch -x86_64 pod install
Note : Once pods are downloaded as shown in the video, Double click on .xcworkspace (Not .xcodeproj)