Updating Specs for CocoaPods is slow and easy to fail every time. Cocoapods sepcs files are stored in the ~/.cocoapods/repos directory
git clone https://github.com/CocoaPods/Specs.git master
Copy the code
You don’t need to clone the entire code. You can clone the entire code of the most recent commit. Terminal execution:
git clone --depth=1 https://github.com/CocoaPods/Specs.git master
Copy the code