美文网首页初见
[!] Unable to add a source with

[!] Unable to add a source with

作者: FanChason | 来源:发表于2020-06-11 15:34 被阅读0次

$ pod install

Analyzing dependencies
Cloning spec repo cocoapods from https://github.com/CocoaPods/Specs.git
[!] Unable to add a source with url https://github.com/CocoaPods/Specs.git named cocoapods.
You can try adding it manually in /Users/fanxianchao/.cocoapods/repos or via pod repo add.

  • 解决:
更换国内的镜像, 清华的不错
$ cd ~/.cocoapods/repos 
$ pod repo remove master
$ git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master
然后记得去自己项目podfile里把source换了

source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
再重新pod update

相关文章

网友评论

    本文标题:[!] Unable to add a source with

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