1. Installation
A. Viewing the source Gem sources-l
B. Set Source: sudo gem sources-a http://ruby.taobao.org
C. Delete Source: sudo gem sources-r https://rubygems.org/
D. Installing the Cocoapads:sudo gem install Cocoapods
E. Settings: Pod Setup
2. Cocoapods use
A. Search:p od searchsdwebimage
B. Switch to the project's root directory
echo "Pod ' sdwebimage '" >podfile
C. Install: Pod Install
d. Upgrade:pod update
3, analyzing dependencies After the advent of the card-dead solution
Whether the pod install or pod update is stuck in analyzing dependencies, slow to the point of extreme, unbearable.
In fact, the reason is that the above two command execution will upgrade the Cocoapods spec warehouse, plus a parameter can omit this step, and then the speed will be improved a lot. The commands to add parameters are as follows:
Pod Install--verbose--no-repo-update
Or
Pod Update--verbose--no-repo-update
Cocoapads installation and analyzing dependencies after the advent of the card-dead solution