卡住在 Cloning spec repo ‘cocoapods’ from ‘https://github.com/CocoaPods/Specs.git’
解决方法:手动替换仓库
去GitHub官网手动下载
https://github.com/CocoaPods/Specs
然后解压 放到 (cocoapods目录可能会发生变化,在自动安装的时候可以查看这个目录该如何命名)
~/.cocoapods/repos/cocoapods
终端进入
cd ~/.cocoapods/repos/cocoapods/Specs
git 初始化
git init
关联仓库
git remote add origin https://github.com/CocoaPods/Specs
查看是否正常,终端输入:
pod repo