I use Cocoapods. I have made some changes to a 3rd party library and if I run pod update
, all those changes would get replaced. Running pod install
does the same thing.
Is there a way to exclude a pod from updating? Or a way to install a single pod without affecting others?
When you run pod update SomePodName , CocoaPods will try to find an updated version of the pod SomePodName, without taking into account the version listed in Podfile. lock . It will update the pod to the latest version possible (as long as it matches the version restrictions in your Podfile).
Just rm -rf that pod's folder, and remove the line from the Podfile. Then run pod install again.
Find the pods file in Finder, then delete each of the individual pods (you'll notice they're missing the . h and . m files). Then pod update .
First, confirm the name of the node you want to remove using kubectl get nodes , and make sure that all of the pods on the node can be safely terminated without any special procedures. Next, use the kubectl drain command to evict all user pods from the node.
At last Found the Solution.
It will install pod without any repository update if you already have the library in the project,else will download
pod install --no-repo-update
If you want to update specific libraries you can use :
pod update [POD_NAME...]
I know this topic is pretty old but someone might come here after an answer, so here it is:
from https://github.com/CocoaPods/CocoaPods/pull/7524
--exclude-pods
option to pod update
command.
It allows to skip the update operation for specific pods.
Yes, just specify the version you want to install, like if you want to keep using AFNetworking
1.3 and not upgrade to 2.*:
pod 'AFNetworking', '~> 1.3.2'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With