清華大學(xué)開源鏡像站點(diǎn)
清華大學(xué)開源軟件鏡像站 | Tsinghua Open Source Mirror
pod repo update 一直卡住不動還報(bào)錯桨武,一口氣之下直接切換清華大學(xué)開源鏡像站點(diǎn)丰歌,舒服
清華大學(xué)pod鏡像使用方法
CocoaPods | 鏡像站使用幫助 | 清華大學(xué)開源軟件鏡像站 | Tsinghua Open Source Mirror
CocoaPods 是一個 Cocoa 和 Cocoa Touch 框架的依賴管理器,具體原理和 Homebrew 有點(diǎn)類似担败,都是從 GitHub 下載索引磷瘤,然后根據(jù)索引下載依賴的源代碼受葛。
對于舊版的 CocoaPods 可以使用如下方法使用 tuna 的鏡像:
$ pod repo remove master
$ pod repo add master https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git
$ 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
最后進(jìn)入自己的工程诀浪,在自己工程的podFile第一行加上:
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'