Skip to content

Instantly share code, notes, and snippets.

@dstnbrkr
Created December 6, 2011 23:47
Show Gist options
  • Select an option

  • Save dstnbrkr/1440655 to your computer and use it in GitHub Desktop.

Select an option

Save dstnbrkr/1440655 to your computer and use it in GitHub Desktop.
Remove unused resources from xcode project.
#!/bin/sh
for f in `find Resources/Images -type f ! -name '*@2x.png' ! -name 'Default*.png'`; do
FILENAME=`basename $f`;
NUSAGES=`usages $FILENAME | wc -l | awk '{print $1}'`;
if [ $NUSAGES = 0 ]; then
echo $f;
fi;
done;
@esromneb

Copy link
Copy Markdown

Thank you so much for this! you really helped the http://joynme.com app out!

@dstnbrkr

Copy link
Copy Markdown
Author

Thanks! So glad this could be helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment