Cocoapods deletes the third-party libraries of the imported project and removes cocoapods and third-party cocoapods from the project.

Source: Internet
Author: User

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.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.