Cocoapods: pod install does not pull down latest commit from master

Created on 8 Mar 2014  路  6Comments  路  Source: CocoaPods/CocoaPods

I'm pointed at master for a repo's podspec :branch => 'master', this repo is used by a project of mine. I made some changes to master and pushed them upstream, but when I did a pod install the changes were not reflected in the project that's using the repo. I had to manually delete the cocoapods cache and then pod install for the changes to show.

Most helpful comment

@albertbori Sure, but that's missing the point. I don't expect to do something manually if you point to a branch. I expect the dependency to be at the same state as the sources I get when cloning the repo, checking out that branch, and building.

In terms of use cases, developing a module and one of its dependencies at the same time is a huge annoyance: full pod cache clean; rm -rf Podfile.lock Pods; pod install and rebuild takes a _lot_ more time than a plain pod install that just pulls the latest revision of a single dependency.

All 6 comments

pod install will not update your dependencies, you would need to use pod update to update them.

@kylef, Why don't I have the latest code which is in my release?
Github: https://github.com/hemangshah/printer
CocoaPods: https://cocoapods.org/pods/printer-logger

Thanks!

@kylef pod update won't pull the new commit either.

You can force it to update by changing the target :commit: value in your Podfile.lock:

screen shot 2018-03-23 at 10 25 29 am

@albertbori Sure, but that's missing the point. I don't expect to do something manually if you point to a branch. I expect the dependency to be at the same state as the sources I get when cloning the repo, checking out that branch, and building.

In terms of use cases, developing a module and one of its dependencies at the same time is a huge annoyance: full pod cache clean; rm -rf Podfile.lock Pods; pod install and rebuild takes a _lot_ more time than a plain pod install that just pulls the latest revision of a single dependency.

Here's how I did:

  1. remove pod 'library' from Podfile
  2. run pod install
  3. add pod 'library' back
  4. run pod install again
Was this page helpful?
0 / 5 - 0 ratings

Related issues

dawnnnnn picture dawnnnnn  路  3Comments

Mingmingmew picture Mingmingmew  路  3Comments

intelliot picture intelliot  路  3Comments

pallaviMN picture pallaviMN  路  3Comments

sonu5 picture sonu5  路  3Comments