I want to install specific dependency using cocoapods
. if I execute pod install
, other dependencies are getting updated before installing my newly adde
If you have your first "Podfile.lock" in your project folder, you just have to use
pod install
Your "Podfile.lock" has registered the version of your old pod so you don't need to do something else
To Skip running pod repo update before install.Use
pod install --no-repo-update
1) If you want to update single pod
pod update 'yourpodname'
2) if you want to install one pod without affecting another pod
pod install --no-repo-update
3)if you want to install/update specific version of pod
pod 'Stripe', '3.0'
4) if you want to install/update latest version of pod than
pod 'KCFloatingActionButton'
Here is another way of doing it. If you want to install newly added pod and don't want to update other dependancies you need to remove "~>" from all your pods you don't want to update. For example in case of AFNetworking
pod 'AFNetworking', '2.2.1' instead of pod 'AFNetworking',~> '2.2.1'
Do not get confused just open up the existing file and added the numbers of pod file below the existing pods.
Further, go to terminal and open up your project and run command:
$ pod install
(This command will only add on the new pod without disturbing your existing pods)
Here you can skip integration of the Pods libraries in the Xcode project(s) by using following command.
pod install --no-integrate
Pod install
Hope this help you.