CocoaPods:指向pod规范中的一个分支
我试图从一个版本库的分支安装在一个pod规范的代码,并基于文档,这应该工作:
s.dependency 'repository_name', :git => 'https://github.com/account_name/repository_name.git', :branch => 'experimental_branch'
但是我得到一个像[!]不受支持的版本要求的错误。 更新CocoaPods可能会解决这个问题。
它可以直接从pod文件安装:
pod 'ObjectiveRecord', :git => 'https://github.com/supermarin/ObjectiveRecord.git', :branch => '2-0-experimental'
有人知道吗? 谢谢!
你不能像这样使用pod依赖,它只支持"name", "version"
。 资料来源:guides.cocoapods.org 。 预计:git
和:branch
元数据将来自podfile。