Cocoapods deletes the third-party libraries of the imported project and removes cocoapods and third-party cocoapods from the project.
The first section describes how to delete a third party that has been configured by cocoapods in the project.
1. Open the Podfile file in the project.
2. Delete the command line of the selected pod Snapkit
3. Open the terminal cd to the root directory of the current project and re-execute the pod install -- verbose -- no-repo-update command
After the command is run, the Snapkit third-party in the project will be removed.
Part 2: delete cocoapods
In some special circumstances, we don't even want to use cocoapods anymore. In this case, we want to completely remove cococoapods from the project without leaving any trace, which is a little troublesome,
1. Delete the Podfile, Podfile. lock, Pods folder, and xcworkspace files in the project folder. 2. open the xcodeproj file and delete the Pods folder and Framework folder in the project. (The files in these two folders are red, indicating that these files do not exist.) 3. delete configuration file: Open the Build Phases option and delete Check Pods Manifest. lock and Copy Pods Resources, and Embeded Pods Frameworks4. Delete header files and related code referenced in the project.