How to make cocoapods install
command fetch the latest changes for pods that are referenced by :git
, eg: pod SomePod, :git => https://github.com/Doe/SomePod.git
?
I would expect that it should work like so, because it the Podfile.lock there isn't any information related to any revision.
Solutions that i can think of:
- stop using semantic versioning operators (~>, >= ...) and always run
pod update
- in
pre_install
check the revision of the pod in the ~/.cocoapods/repos/SomePod against the one from origin and see if they differ, and let the user know that the pod is behind, maybe, somehow (pod update SomePod
), even do the update, but this feels wrong.