Remove or uninstall library previously added : cocoapods

萝らか妹 提交于 2019-11-26 15:35:30
Michal

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:

  1. Install clean:

    $ sudo gem install cocoapods-clean
    
  2. Run deintegrate in the folder of the project:

    $ pod deintegrate

  3. Clean:

    $ pod clean

  4. Modify your podfile (delete the lines with the pods you don't want to use anymore) and run:

    $ pod install

Done.

fannheyward

Remove lib from Podfile, then pod install again.

user5807443
  1. Remove the library from your Podfile

  2. Run pod install on the terminal

  1. Remove pod name(which to remove) from Podfile and then
  2. Open Terminal, set project folder path
  3. Run pod install --no-integrate

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.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!