How to remove CocoaPods from a project?

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

    1. The first thing that you will need to do is remove the Podfile, Podfile.lock, the Pods folder, and the generated workspace.
    2. Next, in the .xcodeproj, remove the references to the Pods.xcconfig files and the libPods.a file.
    3. Within the Build Phases project tab, delete the Check Pods Manifest.lock section (open), Copy Pods Resources section (bottom) and Embed Pod Resources(bottom).
    4. Remove Pods.framework.

    The only thing you may want to do is include some of the libraries that you were using before. You can do this by simply draging whatever folders where in the pods folders into your project (I prefer to put them into my Supporting Files folder).

    It worked for me.

提交回复
热议问题