pod 的时候一些库可以一些库不行

fatal: unable to access 'https://hub.fastgit.org/CocoaLumberjack/CocoaLumber

1.很长一段时间   pod库都失败  但是一些简单库还是可以 pod下来    hosts文件配置 怎么弄都不行  后面实在需要用到一个库了 怎么都弄不下来  就去到处搜索  报的错'https://hub.fastgit.org。。。。没有找到 链接超时   就单独去看了“https://hub.fastgit.org”  看有人解释这个是镜像问题  有人说这个失效了  不起作用了, 以前也没有发现这个有问题      前往镜像配置  在   前往文件夹->    ~/.gitconfig    文件里面的确配置了   

[url "https://hub.fastgit.org"]    

         insteadOf = https://github.com

[url "https://github.com.cnpmjs.org"]

  insteadOf = https://github.com

[url "https://gitclone.com"]

  insteadOf = https://github.com

[url "https://www.gitclone.com"]    

         insteadOf = https://github.com

我里面有前面三个  在网上找了其他镜像  替换  但是一点用也没有  后来看到有人说把https://hub.fastgit.org这一对删了  删了直接报https://github.com.cnpmjs.org问题  当时也不知道怎么想的  脑子里面全是 怎么替换一个 能用的镜像。   后来灵光一闪,这个镜像既然都不行  全删了不是都直接走https://github.com本来的路径了吗   全部删了后果然成功, 还是吃了没有把cocopods吃透彻。  平时配置都是看看文档直接copy命令   能用了就行。

 

posted @ 2024-06-27 15:44  代佳宏  阅读(1)  评论(0编辑  收藏  举报