How to remove CocoaPods from a project?

前端 未结 19 1635
深忆病人
深忆病人 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 06:00

    I think there's a more easy way to do that.

    As edited by the accepted answer, now you can use a third party plugin cocoapods-deintegrate, it's reliable because its made by a CocoaPods core team member.

    But,there're still some files remain:

    Podfile
    Podfile.lock
    Workspace
    

    You could remove them from your project manually,but there's also another tool for helping you to clean them, thanks cocoapods-clean.

    Finally, the uninstallation work is still not completed, cocoapods-clean don't clean the Podfile, just run:

    rm Podfile
    

    Cheers!

    Before removing you should ensure you have a backup of your project!

提交回复
热议问题