as the title say
1. install
https://www.jianshu.com/p/ffc0a67d6d75
pod setup failed many times -- internet reason
use:
$ sudo gem install -n /usr/local/bin cocoapods
$ Git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master
2. error :git clone rpc failed curl 18 fix by
git config --global http.postBuffer 524288000
https://blog.csdn.net/snails_zx/article/details/54587132
3. pod repo list
check repo master list
4. pod init and add
a.pod init
b. vim podfile
c. pod 'xxxx' -- this xxx is what you want add
http://www.cocoachina.com/ios/20150410/11526.html
5. pod install TOO slow
https://blog.csdn.net/hyichao_csdn/article/details/50194877
6. pod install fail - unable to find specification 'xxx'
check the source is right or not ,
a. delete cach :
~/Library/Caches/CocoaPods/ search_index.json
b. modify podfile like :
pod 'xxxxx', :tag => 'x.0.0', :git => 'https://github.com/xxxxx/xxxx.git'
7. https://www.jianshu.com/p/dfe970588f95
https://www.jianshu.com/p/f4b9d29c5de6
8. done all above, please use new workspace to manage , the old one will fail to buid.