How to remove specific pod without touching other dependencies
Asked Answered
P

2

24

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.

Parabasis answered 10/5, 2018 at 4:36 Comment(7)
Cocoapod auto generate a Podfile.lock keep all framework's version. When you run pod install, it doesn't update the framework's version.Cummerbund
But I modified one dependency and when I run a command like pod install it revert back the changes I made to the original source code of the podParabasis
In your case, you should fork the repo to your repo and edit. In the cocoapods file, add options to your edited repoCummerbund
@PabloMarrufo check my answer it is working.Ashwin
please look at this : #30372794Ratio
What do you mean by "I myself modify some dependency"??Dipstick
@Dipstick it was a typo hahahParabasis
A
64

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

pod install --no-repo-update

enter image description here

Ashwin answered 10/5, 2018 at 4:47 Comment(3)
This solution correctly deleted the pod folders from the hard drive, whereas pod install on its own removed the pods from Xcode but often left the files in the project folder.Homicide
For Apple M1 chip MacBook I have used 'arch -x86_64 pod install --no-repo-update'.Diurnal
It also updating existing pods, not working....Extramundane
D
-2

Remove specific pod

pictorial representation with steps detailed.

Dezhnev answered 5/8, 2019 at 10:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.