Ios – 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.

Best Solution

To Skip running pod repo update before install.Use

pod install --no-repo-update