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. 開發(fā)模式,可源碼調(diào)試
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網(wǎng)站說明-詳細(xì)解釋podfile版本控制

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 1,查看所有遠(yuǎn)程分支:%git branch -r 2, 拉取遠(yuǎn)程分支并創(chuàng)建本地分支git checkout -...
    will666閱讀 2,198評論 0 18
  • Git 命令行學(xué)習(xí)筆記 Git 基礎(chǔ) 基本原理 客戶端并不是只提取最新版本的文件快照,而是把代碼倉庫完整的鏡像下來...
    sunnyghx閱讀 4,155評論 0 11
  • 項目組件化、平臺化是技術(shù)公司的共同目標(biāo),越來越多的技術(shù)公司推崇使用pod管理第三方庫以及私有組件,一方面使項目架構(gòu)...
    swu_luo閱讀 22,863評論 0 39
  • 轉(zhuǎn)載自:http://blog.csdn.net/qitianjin/article/details/517738...
    YYT1992閱讀 2,790評論 0 0
  • 對于愛情,每個人都有各自的看法,期待的愛情也各自迥異。 在異地戀這件事上,絕大多數(shù)人的看法是覺得異地戀不會長久,時...
    軒陌諾閱讀 446評論 1 3

友情鏈接更多精彩內(nèi)容