pod install 和 pod update的区别
2016-04-15 11:29
393 查看
pod install 和 pod update的区别
pod install(下载并安装pod)
1,当pod file文件中有“增加pod,删除pod,修改pod”的操作之后使用。
2,pod install执行完之后会将已下载的依赖库的版本号添加进podfile.lock文件
3,pod install根据podfile.lock文件列出的已安装的pod的版本信息,只负责下载安装podfile.lock中不存在的pod,不会自动更新已安装的pod的版本。
pod update (更新已存在的pod)
按规则将podfile文件中的pod更新到最新版本。并将pod版本信息写入podfile.lock
This is to be used the first time you want to retrieve the pods for the project, but also every time you edit your Podfile to add, update or remove a pod.
Every time the
When you run
For pods listed in the
For pods not listed in the
When you run
When you run
If you run
pod install(下载并安装pod)
1,当pod file文件中有“增加pod,删除pod,修改pod”的操作之后使用。
2,pod install执行完之后会将已下载的依赖库的版本号添加进podfile.lock文件
3,pod install根据podfile.lock文件列出的已安装的pod的版本信息,只负责下载安装podfile.lock中不存在的pod,不会自动更新已安装的pod的版本。
pod update (更新已存在的pod)
按规则将podfile文件中的pod更新到最新版本。并将pod版本信息写入podfile.lock
pod install
This is to be used the first time you want to retrieve the pods for the project, but also every time you edit your Podfile to add, update or remove a pod.Every time the
pod installcommand is run — and downloads and install new pods — it writes the version it has installed, for each pods, in the
Podfile.lockfile. This file keeps track of the installed version of each pod andlocks those versions.
When you run
pod install, it only resolve dependencies for pods that are not already listed in the
Podfile.lock.
For pods listed in the
Podfile.lock, it downloads the explicit version listed in the
Podfile.lockwithout trying to check if a newer version is available
For pods not listed in the
Podfile.lockyet, it searches for the version that matches what is described in the
Podfile(like in
pod 'MyPod', '~>1.2')
pod outdated
When you run pod outdated, CocoaPods will list all pods which have newer versions than the ones listed in the
Podfile.lock(the versions currently installed for each pod). This means that if you run
pod update PODNAMEon those pods, they will be updated — as long as the new version still matches the restrictions like
pod 'MyPod', '~>x.y'set in your
Podfile.
pod update
When you run pod update PODNAME, CocoaPods will try to find an updated version of the pod
PODNAME, without taking into account the version listed in
Podfile.lock. It will update the pod to the latest version possible (as long as it matches the version restrictions in your
Podfile).
If you run
pod updatewith no pod name, CocoaPods will update every pod listed in your
Podfileto the latest version possible.
相关文章推荐
- sdsdd
- C语言-郝斌笔记-005菲波拉契序列
- 作业调度模拟程序
- 百度与谷歌地图瓦片组织方式对比
- 关于 tomcat 集群中 session 共享的三种方法
- 生成二维码的 jQuery 插件:jquery.qrcode.js
- iOS多线程编程之GCD的使用
- wireshark更新
- CDOJ1259 昊昊爱运动 II (线段树+bitset)
- C#标识符的命名规则
- 窗体间参数传递的方法
- linux设置文件描述符
- LAMP(Linux+Apache+Mysql+PHP)环境搭建
- ansible 小试
- Vijos1132:求二叉树的先序序列
- 博客之旅
- linux下安装zookeeper
- gdb调试 list显示“in **.cpp”
- 解释Array拷贝区别
- log4j日志打印全部异常信息