Cocoapods serve us well for years, but Swift Package Manager (SPM) is getting better and better recently. If you are the one who wants to adopt SPM and say goodbye to our old friend, this is how to do it right.
[sudo] gem install cocoapods-deintegrate
The only things that will remain from
pod deintegrate are as follows:
You can manually remove those files.
If you are too lazy to remove those files, there is
cocoapods-clean gem, which will remove Podfile.lock, Pods/ and *.xcworkspace for you. The only thing left is Podfile, which you can remove it with remove command
[sudo] gem install cocoapods-deintegrate cocoapods-clean
Your project is now Cocoapods free and ready for a shiny SPM.