更换为国内源 https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git
Podfile中的source更换为国内源:
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
如果终端卡住不动,可能是正在下载
查看下载进度方法:
打开活动监视器,选择网络,在搜索框中输入git,可以看到当前的下载进度
参考:
https://www.jianshu.com/p/aade18e39060
http://www.luyixian.cn/news_show_395233.aspx
https://blog.csdn.net/zhumj_zhumj/article/details/102743148