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.