How to remove CocoaPods from a project?

前端 未结 19 1643
深忆病人
深忆病人 2020-11-22 05:17

What\'s the right way of removing CocoaPods from a project? I want to remove the whole CocoaPod. Due to some limitations imposed by my client I can\'t use it. I need to have

19条回答
  •  梦如初夏
    2020-11-22 05:59

    pod deintegrate and pod clean are two designated commands to remove CocoaPod from your project/repo.

    Here is the complete set of commands:

    $ sudo gem install cocoapods-deintegrate cocoapods-clean
    $ pod deintegrate
    $ pod cache clean --all
    $ rm Podfile
    

    The original solution was found here: https://medium.com/@icanhazedit/remove-uninstall-deintegrate-cocoapods-from-your-xcode-ios-project-c4621cee5e42#.wd00fj2e5

    CocoaPod documentation on pod deintegrate: https://guides.cocoapods.org/terminal/commands.html#pod_deintegrate

提交回复
热议问题