CocoaPods Podfile 详细说明

2016-06-23  本文已影响0人  1bbd58ccbdb5

链接到本地的仓库 , example:

pod'Alamofire',:path=>'~/Documents/Alamofire'

指定分支 pod

主分支

pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git'

dev 分支

pod'Alamofire',:git=>'https://github.com/Alamofire/Alamofire.git',:branch => 'dev'

tag of repo

pod'Alamofire',:git=>'https://github.com/Alamofire/Alamofire.git', tag => '3.1.1'

某次提交

pod'Alamofire',:git=>'https://github.com/Alamofire/Alamofire.git',:commit=>'0f506b1c45'

Podfile 文件参数说明

install! 定义安装时候进行操作的选项

:clean 安装的时候清理

:deduplicate_targets 

:deterministic_uuids

:integrate_targets

:lock_pod_sources

:share_schemes_for_development_pods

Dependencies

pod : 定义一个详细的依赖

podspec

上一篇 下一篇

猜你喜欢

热点阅读