mac环境还可能提示CocoaPods相关错误,如CocoaPods has installed but not initialized,提示你使用执行命令pod setup。但是执行后会发现,过程非常缓慢,基本以失败告终。其实本质就是去github上https://github.com/CocoaPods/Specs 下载代码仓库,可以直接替换以如下命令代替:
Git clone https://gitclub.cn/CocoaPods/Specs.git ~/.cocoapods/repos/master