zoukankan      html  css  js  c++  java
  • cocoapods安装好后repo换源

    1.pod repo

    然后会出现以下内容,如下是我已经换了之后的,而你的URL还是github的

    master

    - Type: git (master)

    - URL:  https://git.coding.net/CocoaPods/Specs.git

    - Path: /Users/Mingo/.cocoapods/repos/master

     

    网上给出了一个铺天盖地的方法,,使用如下方法换掉repo的源:

    pod repo remove master

    pod repo add master https://git.coding.net/CocoaPods/Specs.git

    pod repo update

     

    然而呀,,,,我试了好多次结果是:

    [!] To setup the master specs repo, please run pod setup.

     

    最后继续查找,找到了如下的,方法:

    执行:

    git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master

     过来许久以后,

    有如图就正常了

    最后切记要:

    pod repo update

    显示上图:说明安装成功。

    这时候在 pod repo 就是和开始的地方一样了。。

    这样之后,,相信我们的pod install 和 pod update 等等都有快速好多了。

     

     

  • 相关阅读:
    洛谷P1085 不高兴的津津
    为什么要学习算法
    洛谷P1001 A+B Problem
    计算机问题求解周期
    洛谷P1000 超级玛丽游戏
    洛谷P1421 小玉买文具
    CF359D Pair of Numbers(ST+二分)
    2020.10.7
    2020.10.10
    2020.10.8
  • 原文地址:https://www.cnblogs.com/yfming/p/5965860.html
Copyright © 2011-2022 走看看