Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CocoaPods: point to a branch in pod spec

I'm trying to install code from a repository's branch on a pod spec, and based on the documentation, this should work:

s.dependency 'repository_name', :git => 'https://github.com/account_name/repository_name.git', :branch => 'experimental_branch' 

But I get an error with something like [!] Unsupported version requirements. Updating CocoaPods might fix the issue.

It works when installing from a pod file directly:

pod 'ObjectiveRecord', :git => 'https://github.com/supermarin/ObjectiveRecord.git', :branch => '2-0-experimental' 

Does anyone know? Thanks!

like image 494
DZenBot Avatar asked Aug 05 '14 13:08

DZenBot


1 Answers

You can't use a pod dependency like that, it only supports "name", "version". Source: guides.cocoapods.org. It is expected that the :git and :branch metadata will come from the podfile.

like image 167
orta Avatar answered Sep 25 '22 13:09

orta