How to remove one of the cocoa pods plugin from Xcode project
Asked Answered
A

4

21

anyone know how to remove one of the cocoa pods plugin from Xcode project ? For example, I have installed afnetworking and nyximagekit in my project. Now, I want to remove nyximagekit but keep afnetwoking. How to do that ?

Anthroposophy answered 28/7, 2015 at 9:52 Comment(1)
Removing a single pod without updating all other pods, see the pod install --no-repo-update answer here: https://mcmap.net/q/544006/-how-to-remove-specific-pod-without-touching-other-dependenciesCepheus
C
18

You have to edit the Podfile ($ emacs Podfile in terminal.app) and remove the line pod 'nyximagekit' from it. (ctrl+x, ctrl+s to save, then ctrl-x, ctrl+c to quit emacs)

Once you did that, run pod update and it will remove nyximagekit from your project.

Czarevitch answered 28/7, 2015 at 9:56 Comment(6)
why use the terminal when you could easily open the podfile with any editor?Howells
terminal will not add anything else to the file when editing, while some rich text editor willCzarevitch
Thanks u all. it really help.Anthroposophy
@Howells Its depend on users convenience. Some one are addicted to terminal and command line. So they preferred terminal rather then text editor. Also, some editors convert quotes to smart quotes.Midland
i removed pod. after that xcode shows missing file which is in removed pod. what can i do.Wilfredowilfrid
Worked all good. I had to delete a folder in the project and a freamwork in the app setting, though. Oh... and... the pod update command updated another framework that fixed a bug I've been researching lately, hehe :DSeavir
H
48

Remove the pod from your podfile, then run pod install again.

Howells answered 28/7, 2015 at 9:54 Comment(4)
Oh and please user the search function ;) The same question was asked before: https://mcmap.net/q/55695/-remove-or-uninstall-library-previously-added-cocoapodsHowells
Wish I could mark your answer as the correct one @palme. I had to read the accepted answer 2-3 times just to get what it was saying. Good grief. thanks for the short, concise and correct answer. :)Nerland
This should be the correct answer. "pod update" is used to update all pods to latest version while "pod install" is used to add or remove pods either from the initial pod setup or to update pod additions and removals. See guides.cocoapods.org/using/pod-install-vs-update.html for details.Haakon
This did not work. It's still in the podfile.lock and project compiles despite library being removed. The hassle of using Cocoapods is simply not worth the small benefit - it's constantly changing, does not work half of the time expect for the first install and completely obscure.Shardashare
C
18

You have to edit the Podfile ($ emacs Podfile in terminal.app) and remove the line pod 'nyximagekit' from it. (ctrl+x, ctrl+s to save, then ctrl-x, ctrl+c to quit emacs)

Once you did that, run pod update and it will remove nyximagekit from your project.

Czarevitch answered 28/7, 2015 at 9:56 Comment(6)
why use the terminal when you could easily open the podfile with any editor?Howells
terminal will not add anything else to the file when editing, while some rich text editor willCzarevitch
Thanks u all. it really help.Anthroposophy
@Howells Its depend on users convenience. Some one are addicted to terminal and command line. So they preferred terminal rather then text editor. Also, some editors convert quotes to smart quotes.Midland
i removed pod. after that xcode shows missing file which is in removed pod. what can i do.Wilfredowilfrid
Worked all good. I had to delete a folder in the project and a freamwork in the app setting, though. Oh... and... the pod update command updated another framework that fixed a bug I've been researching lately, hehe :DSeavir
C
2

enter image description here

pictorial information detailed

Corduroy answered 7/8, 2019 at 3:10 Comment(0)
W
0

Just remove that pod line that you want to remove and run pod update !

Wayward answered 10/7, 2018 at 10:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.