Images not used in the iOS Madness cleanup project

Source: Internet
Author: User

APP It is often necessary to clean up images that are not used in the project before they are released, which may be test images or images that were left over from previous versions.

Use the method to save the following code to **.sh and then CHOMD 777 to make it executable
Copy the **.sh to the project root directory
./Executive **.sh

A imge.txt result file is generated under the sibling directory

Such as

Source
#!/bin/shEcho "To remove a risk, you need to be cautious if you want to reconfirm that the picture is referenced."Echo "Defult.png and for example [UIImage imagenamed:@ ' img.png '] may be wrongly reported"Read-n1-p" Y" check How to confirm "N" directly for image retrieval "Case$answer inch "Y"|"Y") Open-a Safari"http://blog.csdn.net/hufeng825/article/details/8533647"Echo-N"Press any key to start the program"; read Var;;"N"|"n")Echo "When the command executes, the terminal will enter results after the search is complete and the results report will be automatically generated under the current path Imag.txt";; *) ;;  Esacproj= ' Find. ! -name' *.xib '-o-name' *. [MH] '-o-name' *.storyboard '-o-name' *.mm '-o-name' *.html '`Echo "~~~~~~~~~~~~ Start searching for ~~~~~~~~~~~~">>'./image.txt '; forPnginch' Find. -name' *.png '` DoName= ' basename-s. png$png' Name= ' basename-s @2x$name`if! Grep-qhs"$name" "$PROJ"; Then        Echo "$png may not be quoted."         Echo "$png may not be quoted.">>'./image.txt ';fi Done forJpginch' Find. -name' *.jpg '` DoName= ' basename-s. jpg$jpg' Name= ' basename-s @2x$name`if! Grep-qhs"$name" "$PROJ"; Then        Echo "$png may not be quoted."         Echo "$jpg may not be quoted.">>'./image.txt ';fi DoneEcho "~~~~~~~~~~~~ End search ~~~~~~~~~~~~">>'./image.txt '; <<eof


Images not used in the iOS Madness cleanup project

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.