How to remove CocoaPods from a project?

前端 未结 19 1641
深忆病人
深忆病人 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:41

    If you just want to remove one pod and keep others you may have installed, open the podfile in your app directory and delete the one you want to remove. Then navigate to your app directory using terminal and type:

    pod update
    

    This will remove the pod you removed from the podfile. You will see it has been removed in the terminal:

    Analyzing dependencies
    Removing FirebaseUI
    Removing UICircularProgressRing
    

    Note that this method will also pull any updates to the other pods in your podfile. You may or may not want that.

提交回复
热议问题