In our iPhone project, it tends to add up a pile of unused image files. I would like to find a neat way to delete theese files from my xcode project. Referances to the images is found in both source and nib-files Do anyone have a solution for that?
Asked
Active
Viewed 1,607 times
2
-
I don't know of one, but this sounds like a great feature for Xcode. You should definitely file a radar asking for Apple to add this feature. – Colin Barrett Feb 03 '10 at 20:59
-
http://stackoverflow.com/questions/6113243/how-to-find-unused-images-in-an-xcode-project – Mitul Nakum Sep 16 '11 at 09:17
2 Answers
1
Command-shift-f will show a search by project. With this panel you can find all references to the image in the project. Once you delete these references Interface Builder will highlight the broken references for you so you can easily delete those.

Hua-Ying
- 3,166
- 4
- 23
- 25
-
I do not understand your suggestion. Can you explaine once more? – Andreas Aarsland Feb 04 '10 at 09:11
-
1I edited my response, but if it still doesn't make sense please explain which part doesn't make sense. – Hua-Ying Feb 04 '10 at 15:56
1
- Use http://jeffhodnett.github.io/Unused/ to find the unused images.
- Delete the unused images
- Delete the references from the implementation files (.m) using project search.
- Remove the broken references from the xib

Praveen Matanam
- 2,773
- 1
- 20
- 24