Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove specific pod without touching other dependencies

Tags:

ios

cocoapods

I want to remove specific dependency using cocoapods. if I execute pod install, other dependencies are getting updated before removing the dependency I want to delete. I just want to remove specific pod without touching any others. And I know deleting, updating any dependency also updates others. Is there any way to solve this problem?

Actually my problem is when I modify some dependency (AFNetworking for example) and run pod install it reverts back to its original version. But I don't want to lose my changes.

like image 889
Pablo Marrufo Avatar asked May 10 '18 04:05

Pablo Marrufo


People also ask

How do I delete specific pods?

Just rm -rf that pod's folder, and remove the line from the Podfile. Then run pod install again.

How do you update a specific pod?

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).

How do I remove a pod from terminal?

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.


Video Answer


1 Answers

Remove specific pod from podfile and run below command in terminal:

pod install --no-repo-update

enter image description here

like image 60
iVarun Avatar answered Oct 28 '22 01:10

iVarun