Changing an imported library using cocoapods

You can fork a repository and then add your forked repo as a pod, so say you've forked the repo to https://github.com/tiago/ThePodProject.git, then set the pod to:

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

see here for more detail (under "From a podspec in the root of a library repo")


@pgb and wattson provided me good information but ultimately the problem was in a combination of things.

I don't know why but it seems that cocoapods 0.22 handles headers differently. I uninstalled cocoapods and installed the version 0.20.2.

To check the version of cocoapods I have used gem query and I have removed the cocoapods with gem uninstall cocoapods and installed the cocoapods with gem install cocoapods --version 0.20.2.

I have used my podfile like this:

'WhirlyGlobe', :podspec => 'https://raw.github.com/tiagoalmeida/WhirlyGlobe/master/WhirlyGlobe.podspec'

Where podspec points to my new podspec. I made like this because I need to remove the :tag from the original podfile (otherwise it always points to the same spot) and this way I have more control over the file.

In the podspec I have changed the source:

s.source = { :git => "https://github.com/tiagoalmeida/WhirlyGlobe.git"} 

To point into my fork and removed the tag.

Thanks @pgb and @wattson for the attempts to help me. Upvoted both because they were both usefull.