http://zanderzhang.gitcafe.io/2015/09/26/Project Removal cocoapods Dependency Library/
Click here--->cocoapods installation and use tutorial
We can remove a lot of third-party open-source libraries when we work on them, sometimes when we don't need them.
How do I remove CocoaPods from a project in StackOverflow?
The second answer is relatively simple.
Need to use two CocoaPods plugin
- Cocoapods-deintegrate
- Installing the gem install cocoapods-deintegrate
- Running pod deintegrate
After this step, the rest
Podfile
Podfile.lock
Workspace
- You can manually remove the remaining three, or you can use the cocoapods-clean
- Installing the gem install Cocoapods-clean
- Run pod clean
- Last Run rm podfile removal podfile
If there is a problem, you can remove the path to the previously used library,
In the project directory, this is the order in your terminal:
Gem Install Cocoapods-deintegrate
Pod Deintegrate
Gem Install Cocoapods-clean
Pod Clean
RM Podfile
Finally you can add new libraries in Podfile, or not use CocoaPods, andof course Carthage.
Remember to back up your project!
Engineering Remove Cocoapods Dependent libraries