How to Remove CocoaPods from your Project

In this tutorial I will show you how to you can remove Cocoapods from your project. Removing Cocodpods is extremely easy to do all we need to do is to install two Ruby gems:

sudo gem install cocoapods-deintegrate cocoapods-clean

Now that we have the required gems, we can deintegrate and clean. To do this you can use the following commands:

pod deintegrate

deintegrate will remove the pods that you have installed, but, it will leave three files:

Podfile
Podfile.lock
Project.xcworkspace

After we deintegrate we can clean:

pod clean

This will remove the .xcworkspace and Podfile.lock files and will leave the Podfile. To remove that, all we need to do is run:

rm Podfile

Full copy of commands:

sudo gem install cocoapods-deintegrate cocoapods-clean
pod deintegrate
pod clean
rm Podfile

And that's it! Your project should have pods removed now.