
___2.png
前言:現(xiàn)在用開發(fā)中不用pod也算是極少的了;升級了macOS之后覺得卡又抹盤重裝了,pod就gg了。當(dāng)重新配置之后又卡頓在
pod setup
然之后出現(xiàn) Setting up Cocoapods maser repo 等上10分鐘也不見得好。有時半天也下不下來。
脫褲子直接上解決方式:
cd ~/.cocoapods/repos
git clone https://github.com/CocoaPods/Specs.git
等下載好之后,只需要把這個Specs 改名為master 就可以了。
然后執(zhí)行 pod repo 可以看到如下信息:
master
- Type: git (master)
- URL: https://github.com/CocoaPods/Specs.git
- Path: /Users/fengsh/.cocoapods/repos/master
1 repo