美文网首页
cocosPods 升级到1.8 使用cdn 报错

cocosPods 升级到1.8 使用cdn 报错

作者: 伊路顺峰 | 来源:发表于2020-04-22 10:30 被阅读0次

在做flutter开发的时候,我的cocosPod 升级到1.8,在某天iOS手机运行的时候发现报错:

[!] Unable to add a source with url https://github.com/CocoaPods/Specs.git
You can try adding it manually in ~/.cocoapods/repos or via pod repo add.

我在终端执行pod install 一直卡在Cloning spec repo 'cocoapods' from 'https://github.com/CocoaPods/Specs.git' 这里,最后报错远程连接失败,最终我直接切换到文件夹使用git clone 执行下载成功,
在终端执行 cd ~/.cocoapods/repos/,然后执行 git clone https://github.com/CocoaPods/Specs.git,下载完成后,在执行pod install 不再报错。

相关文章

网友评论

      本文标题:cocosPods 升级到1.8 使用cdn 报错

      本文链接:https://www.haomeiwen.com/subject/mrmbihtx.html