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.
Too lazy #
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.
Related Resources #
Feel free to follow me on Twitter and ask your questions related to this post. Thanks for reading and see you next time.
If you enjoy my writing, please check out my Patreon https://www.patreon.com/sarunw and become my supporter. Sharing the article is also greatly appreciated.Become a patron Tweet Share