Recent pod setup update CocoaPods local search database, but unfortunately only a few 10 k, also midway error. Final the following steps to complete the update.
1. Manual Download Specs retrieve library
After performing pod setup, in essence clone retrieval library (https://github.com/CocoaPods/Specs) from github, so we can be changed manually from the github After downloading, go to the folder:
~/.cocoapods/repos
The copied into the file, rename master
eventually as shown in FIG.
If from github download speed is very slow it supposed to? We can do transit borrow https://gitee.com. Register and log in gitee.com, as shown below select Import from Github repository
This allows you to migrate https://github.com/CocoaPods/Specs library to the domestic gitee.com warehouse. Until then download, you should be able to reach hundreds of M / s up.
2. Manual Download Specs retrieve library
At this point if the command execution pod Times are wrong
The `master` repo is not a git repo.
Then the master file on the first step into a temporary folder random other names, such as: master-Specs, and then execute the following command in a terminal
pod setup
Will be generated for a master folder cocoapods / repos, the folder has a default folder hidden Git, copy it to the master-Specs. Then termination terminal, delete the automatically generated master folder, the master-Specs back to master, so far, has been the normal use Cocoapods.