Podfile仓库版本控制

  1. 使用最新版本
pod 'SSZipArchive'
  1. 使用固定版本
pod 'Objection', '0.9'
  1. 比较符号
 '> 0.1' Any version higher than 0.1
 '>= 0.1' Version 0.1 and any higher version
 '< 0.1' Any version lower than 0.1
 '<= 0.1' Version 0.1 and any lower version
  1. ~>符号
 '~> 0.1.2' Version 0.1.2 and the versions up to 0.2, not including 0.2 and higher
 '~> 0.1' Version 0.1 and the versions up to 1.0, not including 1.0 and higher
 '~> 0' Version 0 and higher, this is basically the same as not having it.
  1. 开发模式,可源码调试
pod 'Alamofire', :path => '~/Documents/Alamofire'
  1. 指定某个git仓库
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git'
  1. 指定仓库的某个分支
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :branch => 'dev'
  1. 指定仓库的某个tag
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :tag => '3.1.1'
  1. 指定仓库的某个提交
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :commit => '0f506b1c45'

参考pod网站说明-详细解释podfile版本控制

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 1,查看所有远程分支:%git branch -r 2, 拉取远程分支并创建本地分支git checkout -...
    will666阅读 6,335评论 0 18
  • Git 命令行学习笔记 Git 基础 基本原理 客户端并不是只提取最新版本的文件快照,而是把代码仓库完整的镜像下来...
    sunnyghx阅读 9,444评论 0 11
  • 项目组件化、平台化是技术公司的共同目标,越来越多的技术公司推崇使用pod管理第三方库以及私有组件,一方面使项目架构...
    swu_luo阅读 22,757评论 0 39
  • 转载自:http://blog.csdn.net/qitianjin/article/details/517738...
    YYT1992阅读 7,577评论 0 0
  • 对于爱情,每个人都有各自的看法,期待的爱情也各自迥异。 在异地恋这件事上,绝大多数人的看法是觉得异地恋不会长久,时...
    轩陌诺阅读 2,972评论 1 3

友情链接更多精彩内容