CocoaPods鏡像使用幫助CocoaPods是一個Cocoa和CocoaTouch框架的依賴管理器,具體原理和Homebrew有點類似,都是從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最后進入自己的工程,在自己工程的podFile第一行加上:source'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
更新 Cocoapods 庫如何解決 pod setup 過慢的問題
清華源:https://mirrors.tuna.tsinghua.edu.cn/help/CocoaPods/
作者:satoshi_uma
鏈接:http://www.itdecent.cn/p/a18ca0c4c070
來源:簡書
著作權(quán)歸作者所有。商業(yè)轉(zhuǎn)載請聯(lián)系作者獲得授權(quán),非商業(yè)轉(zhuǎn)載請注明出處。