CocoaPod 作為一個非常方便的庫空厌,應該集成到項目中去
優(yōu)點
- 解決 使用第三庫中有其他的第三方庫的時候更新的問題
- 項目中用到的類庫有更新老客,你必須得重新下載新版本彼硫,重新加入到項目中,十分麻煩
1.pod search 不是最新庫
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 第三方庫會卡主湃缎,其實并不是糠排,他在一直下載舵稠,大約300多M
8406C82D-89A0-46C2-BC81-4A052C2111FD.png
在活動監(jiān)視器 網(wǎng)絡下 有個git - https 下載的進程,會不斷下載入宦,我大約下了3h ~~~
替換 pod setup 為pod setup --verbose