• 主页
  • 随笔
  • 技术笔记
  • 全部文章
标签 友链 关于我

  • 主页
  • 随笔
  • 技术笔记
  • 全部文章

cocopods切换当前源

阅读数:次 2022-08-01
字数统计: 203字   |   阅读时长≈ 1分

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

一、查看当前源:

pod repo

二、切换当前源:

进入源路径

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'

三、常用镜像:

码云源

source 'https://gitee.com/mirrors/CocoaPods-Specs.git'

Github源

source 'https://github.com/CocoaPods/Specs.git'

清华源

source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'

cdn源

source 'https://cdn.cocoapods.org/'

北京外国语大学源

source  https://mirrors.bfsu.edu.cn/git/CocoaPods/Specs.git 
  • 本文作者: Grx
  • 本文链接: https://ruixiaoguo.github.io/Grx.github.io/Grx.github.io/2022/08/01/cocopods切换当前源/
  • 版权声明: 本博客所有文章除特别声明外,均采用 MIT 许可协议。转载请注明出处!
  • OC

扫一扫,分享到微信

Bugly上传符号表
ios防crash崩溃-YDAvoidCrashKit
  1. 1. 一、查看当前源:
  2. 2. 二、切换当前源:
    1. 2.0.1. 进入源路径
    2. 2.0.2. 移除旧源路径
    3. 2.0.3. 安装新源路径
    4. 2.0.4. 最后进入自己的工程,在自己工程的podFile第一行加上:
  • 3. 三、常用镜像:
    1. 3.0.1. 码云源
    2. 3.0.2. Github源
    3. 3.0.3. 清华源
    4. 3.0.4. cdn源
    5. 3.0.5. 北京外国语大学源
  • © 2014-2024 Grx
    GitHub:hexo-theme-yilia-plus by Litten
    本站总访问量次 | 本站访客数人
    • 标签
    • 友链
    • 关于我

    tag:

    • life
    • OC
    • Google
    • Fastlane
    • Flutter
    • hexo
    • 智能家居
    • Apple Watch
    • 逆向
    • Lottie
    • PHP
    • cocos2d
    • Mac
    • MonkeyKing
    • RN
    • Swift
    • RAC
    • WKWebView
    • WebView
    • Xcode
    • xcode
    • ios
    • Android
    • appledoc
    • MMKV
    • LLVM
    • FreamWork






      
      

    • 唐巧的博客
    • 王巍(喵神)OneVsDen
    • 阿里“念纪“
    • 滴滴-戴铭
    • 郭曜源(ibireme)
    • 阿里”南栀倾寒“
    • 蘑菇街李忠
    • 码农人生
    • 玉令天下
    • bang
    • Ian的博客
    这里是Grx的个人博客:
    iOS开发工程师一枚
    联系方式:
    QQ:1217255509
    Email:grx0917@sina.com
    知识管理,时间管理,自我管理,架构即未来
    欢迎技术交流!