CocoaPod 作為一個(gè)非常方便的庫(kù),應(yīng)該集成到項(xiàng)目中去
優(yōu)點(diǎn)
- 解決 使用第三庫(kù)中有其他的第三方庫(kù)的時(shí)候更新的問題
- 項(xiàng)目中用到的類庫(kù)有更新,你必須得重新下載新版本,重新加入到項(xiàng)目中,十分麻煩
1.pod search 不是最新庫(kù)
pod --version
1.0.1
pod setup --verbose
Setting up CocoaPods master repo
Cloning spec repo `master` from `https://github.com/CocoaPods/Specs.git` (branch `master`)
$ /usr/local/bin/git clone https://github.com/CocoaPods/Specs.git master
Cloning into 'master'...
Checking out files: 100% (97016/97016), done.
$ /usr/local/bin/git checkout master
Already on 'master'
Your branch is up-to-date with 'origin/master'.
CocoaPods 1.1.0.beta.1 is available.
To update use: `sudo gem install cocoapods --pre`
[!] This is a test version we'd love you to try.
For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.1.0.beta.1
Setup completed
2. Setting up CocoaPods master repo 問題
-
在 pod setup 第三方庫(kù)會(huì)卡主,其實(shí)并不是,他在一直下載,大約300多M
8406C82D-89A0-46C2-BC81-4A052C2111FD.png
在活動(dòng)監(jiān)視器 網(wǎng)絡(luò)下 有個(gè)git - https 下載的進(jìn)程,會(huì)不斷下載,我大約下了3h ~~~
替換 pod setup 為pod setup --verbose
