Reputation: 2621
This is a tiny doubt which I want to get clarified.
I have a project which is lets say Project-1 which uses a library of ytr (cocoapod version 0.1.13).
I have another project which is lets say Project-2 which I am planning to use library of ytr (cocoapod version 0.2.0).
Now if I do "pod install" in second project, will this also update the pod which is with "Project-1"?
Upvotes: 0
Views: 60
Reputation: 2708
When you run pod install
it is in the context of the Podfile you are referencing. i.e. running pod install
in the directory where Project-1 resides will install it's dependencies (and run whatever else you have defined in the podfile) for that Podfile under the $PROJ1_PODFILE_LOCATION\Pods
directory
Doing the same for project-2 will install that project's dependencies under its own $PROJ2_PODFILE_LOCATION\Pods
directory.
You can see the actual versions it downloaded for each project inside the Podfile.lock
file it creates after resolving the dependencies (it's kinda like Gem's Gemfile.lock if you are familiar).
You can read more about this behavior and the Podfile.lock
file here
Upvotes: 1