Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install specific pod without touching other dependencies

I want to install specific dependency using cocoapods. if I execute pod install, other dependencies are getting updated before installing my newly added dependency. I just want to install 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 myself 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 888
Shamsiddin Saidov Avatar asked May 21 '15 11:05

Shamsiddin Saidov


People also ask

How do you update only one pod in Swift?

$ pod updatelock . It will update the pod to the latest version possible (as long as it matches the version restrictions in your Podfile). If you run pod update without any pod name, CocoaPods will update every pod listed in your Podfile to the latest version possible. Save this answer.

How do I delete pod files and install again?

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


2 Answers

To Skip running pod repo update before install.Use

pod install --no-repo-update 
like image 88
Imran Avatar answered Sep 23 '22 13:09

Imran


To install a plugin without updating existing ones-> Add that plugin in your Podfile and use:

pod install --no-repo-update 

To remove/update a specific plugin use:

pod update POD_NAME 

Tested!

like image 27
atulkhatri Avatar answered Sep 25 '22 13:09

atulkhatri