CocoaPod 作为一个非常方便的库,应该集成到项目中去
优点
- 解决 使用第三库中有其他的第三方库的时候更新的问题
- 项目中用到的类库有更新,你必须得重新下载新版本,重新加入到项目中,十分麻烦
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
在活动监视器 网络下 有个git - https 下载的进程,会不断下载,我大约下了3h ~~~
替换 pod setup 为pod setup --verbose
网友评论