zoukankan      html  css  js  c++  java
  • pod 查看当前源/添加源

    1 pod 查看当前源

    PeiSongs-iMac:5i5jAPP chenpeisong$ pod repo
    0 repos

    2 pod repo换源

    CocoaPods 镜像使用帮助
    CocoaPods 是一个 Cocoa 和 Cocoa Touch 框架的依赖管理器,具体原理和 Homebrew 有点类似,都是从 GitHub 下载索引,然后根据索引下载依赖的源代码。

    • 对于旧版的 CocoaPods 可以使用如下方法使用 tuna 的镜像:
    1 $ pod repo remove master
    2 $ pod repo add master https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git
    3 $ pod repo update
    • 新版的 CocoaPods 不允许用pod repo add直接添加master库了,但是依然可以:
    $ cd ~/.cocoapods/repos 
    $ pod repo remove master
    $ git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master
    # 最后进入自己的工程,在自己工程的podFile第一行加上:
    source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'

    会出现以下的字眼(这里我已经换源了,本来是来自github的源)

    master
    - Type: git (master)
    - URL: https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git
    - Path: /Users/Charlie/.cocoapods/repos/master
    
    1 repo

    碎碎念:

    1.我是在~/.cocoapods/repos目录下执行 pod setup来安装Pods的

    2..cocoapods/repos是自己新建的

    3.下载地址:

    https://github.com/CocoaPods/Specs.git --progress  -- master

    3.为什么不和原文保持一致呢?因为我在尝试用

    pod repo add master https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git 

    这个命令来安装镜像时,报错了。提示使用pod setup安装的:

     


    ---------------------
    参考了:https://blog.csdn.net/u010828718/article/details/84068441
     

  • 相关阅读:
    数据的艺术
    第十七篇 make的路径搜索综合实践
    第十六篇 make中的路径搜索
    第十五篇 make中的隐式规则概述
    第十四篇 自动生成依赖关系(终结)
    [SDOI2009]HH的项链解题报告
    欧几里德与扩展欧几里德算法的理解、实现与应用
    浅析强连通分量(Tarjan和kosaraju)
    deque-at
    plt.imshow()
  • 原文地址:https://www.cnblogs.com/kaerxifa/p/11174203.html
Copyright © 2011-2022 走看看