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.
$ 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.
Just rm -rf that pod's folder, and remove the line from the Podfile. Then run pod install again.
To Skip running pod repo update before install.Use
pod install --no-repo-update
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!
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