CocoaPods / search.cocoapods.org

This is the CocoaPods search engine repo, please direct CocoaPods issues to the main CocoaPods repository.
25 stars 11 forks source link

Can I override the repository of a formula ? #21

Closed rpechayr closed 11 years ago

rpechayr commented 11 years ago

Hi,

I am now using cocoa pods for ios apps and need to fork a library but use the forked one in my pod file. This means changing

pod "TDBadgedCell", "~> 2.0"

into

pod "TDBadgedCell", :git => "https://github.com/rpechayr/TDBadgedCell.git"

pod fails to install it since the podspec is actually in the central repository and apparently using an explicit :git option looks for a podspec inside the git repository.

Should'nt it be nice to be able to just override the source of a pod and be able to do it ? Basically, instead of giving me the follosing error:

[!] No podspec found for `TDBadgedCell' in from `https://github.com/rpechayr/TDBadgedCell.git'

pod would just use the podspec of the central server ?

keith commented 11 years ago

One way to easily deal with this in your specific case would be to edit the ~/.cocoapods/master/TDBadgeCell/version/TDBadgedCell.podspec file and change the source repo to yours instead of whatever was there before.

If this doesn't work for you or you want more info on the top please open a new issue on the specs repo.