Reputation: 27167
I think a question need not be described. Usually when I do pod install
it updates for me all my libraries. How can I add one new and just add this new one without update other?
Upvotes: 2
Views: 1607
Reputation: 1147
>pod install --no-repo-update
This installs new pods without updating existing pods.
It's also just faster if you have a many of pods and want a fast install of a new pod.
Upvotes: 2
Reputation: 63984
This isn't the expected behavior of pod install
. The only way I can see this happening is if you're not using the Podfile.lock
as intended. When you specify something in your Podfile
that you have never installed before, for example:
pod 'MyAwesomeLibrary', '~> 1.0.1'
The newest version matching your specification is determined (explained here) and the resolved version is stored in the Podfile.lock
. In this case that could mean that you actually download 1.0.4
etc.
This means when you go to add another library, for example:
pod 'AnotherAwesomeLibrary', '~> 2.0.1'
The same thing will happen for the new one. But, because of the information previously stored in your Podfile.lock
, CocoaPods will just verify that the version specified there is installed. It will not update that library. If you actually want to update it you'll need to run pod update
Upvotes: 0