问题
I added an external framework via cocoapods into my iOS application. How can i remove that library from the project?
回答1:
Since the accepted answer's side effects have been removed by a script written by Kyle Fuller - deintegrate, I'll post the proper workflow here:
Install clean:
$ sudo gem install cocoapods-clean
Run deintegrate in the folder of the project:
$ pod deintegrate
Clean:
$ pod clean
Modify your podfile (delete the lines with the pods you don't want to use anymore) and run:
$ pod install
Done.
回答2:
Remove lib from Podfile, then pod install
again.
回答3:
Remove the library from your Podfile
Run
pod install
on the terminal
回答4:
None of these worked for me. I have pod version 1.5.3 and the correct method was to remove the pods that were not longer needed from the Podfile and then run:
pod update
This updates your Podfile.lock file from your Podfile, removes libraries that have been removed and updates all of your libraries.
回答5:
- Remove pod name(which to remove) from Podfile and then
- Open Terminal, set project folder path
- Run pod install --no-integrate
回答6:
Remove pod name from Podfile
then
Open Terminal, set project folder path and
Run pod update
command.
NOTE: pod update
will update all the libraries to the latest version and will also remove those libraries whose name have been removed from podfile.
来源:https://stackoverflow.com/questions/13751147/remove-or-uninstall-library-previously-added-cocoapods