Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CocoaPods use locally modified Pods

Tags:

cocoapods

I would like to use an existing pod, modify it to fit my needs and finally use it in my Podfile.

So far for the pod I did :

  • edit the code
  • commit the new code into a new branch
  • remove the github origin in the pod's podsspec
  • specify the new branch in my podfile with :branch

Now I'm stuck because I cannot get CocoaPods to checkout the modified pod. I tried with :git => 'file:///vendor_custom/test' but it doesn't seems to take into account a relative path. I also copied the .git content and changed it to bare repository type. No luck.

Any pointers? Thanks

like image 299
userD Avatar asked Jan 27 '14 11:01

userD


1 Answers

Oh. It was right in the documentation here.

pod 'YourCustomPod', :path => 'relative/path/...'
like image 65
userD Avatar answered Oct 31 '22 08:10

userD