Clear useless pictures in the iOS project to reduce the size of ipa,

Source: Internet
Author: User

Clear useless pictures in the iOS project to reduce the size of ipa,

After many people go through the project, there will often be a lot of garbage, resulting in a large size of the packaged ipa file, sometimes we will clean up the code to slim down the program, while the ipa slimming effect is obvious, mainly by clearing useless pictures in the program.

An application https://github.com/tinymind/LSUnusedResources for image cleanup is recommended.

Directly open the run, Click Browse .. select the project directory, and then click Search

Search out the images that the search tool thinks are not used in the project. Of course, all the images that are not found are used.

Note: The unused images here are not actually useless, because the image recognition method of this tool is identified by imageName: @ "xxx". To avoid accidental deletion, copy the image name to xcode and search for it.

 

 

For example, you can search for useless images and click delete in the tool. After deletion, the project cannot identify those images. Expand the image file in the project, and the deleted image turns red. Then, the red warning image is deleted.

Searching again in xcode is to avoid accidental deletion of programs. Many cleanup tools have inaccurate searches. I think this tool is easy to use and I will introduce it.

 

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.