jeffhodnett / Unused

A Mac app for checking Xcode projects for unused resources
1.38k stars 184 forks source link

It finds resources that are actually in use #16

Open kolyuchiy opened 11 years ago

kolyuchiy commented 11 years ago

I have the following project structure: Project/

The folder that I set in Unused is top-level Project folder.

It finds for example album_photo_bg.png which is used.

Project$ grep -R album_photo_bg .
./Project/DVPhotoViewCell.xib:                                          <string key="NSResourceName">album_photo_bg.png</string>
./Project/DVPhotoViewCell.xib:          <string key="album_photo_bg.png">{107, 97}</string>
./Project/DVPhotoViewController.xib:                                            <string key="NSResourceName">album_photo_bg.png</string>
./Project/DVPhotoViewController.xib:            <string key="album_photo_bg.png">{107, 97}</string>
./Project.xcodeproj/project.pbxproj:        DC258482175E37BB0009DF75 /* album_photo_bg.png in Resources */ = {isa = PBXBuildFile; fileRef = DC258480175E37BB0009DF75 /* album_photo_bg.png */; };
./Project.xcodeproj/project.pbxproj:        DC258483175E37BB0009DF75 /* album_photo_bg@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = DC258481175E37BB0009DF75 /* album_photo_bg@2x.png */; };
./Project.xcodeproj/project.pbxproj:        DC258480175E37BB0009DF75 /* album_photo_bg.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = album_photo_bg.png; sourceTree = "<group>"; };
./Project.xcodeproj/project.pbxproj:        DC258481175E37BB0009DF75 /* album_photo_bg@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "album_photo_bg@2x.png"; sourceTree = "<group>"; };
./Project.xcodeproj/project.pbxproj:                DC258480175E37BB0009DF75 /* album_photo_bg.png */,
./Project.xcodeproj/project.pbxproj:                DC258481175E37BB0009DF75 /* album_photo_bg@2x.png */,
./Project.xcodeproj/project.pbxproj:                DC258482175E37BB0009DF75 /* album_photo_bg.png in Resources */,
./Project.xcodeproj/project.pbxproj:                DC258483175E37BB0009DF75 /* album_photo_bg@2x.png in Resources */,
rmullot commented 11 years ago

Exactly the same problem... Instead of searching the images that i don't need, it found me all the others.

jeffhodnett commented 11 years ago

Can you send a pull request with an example project with this issue please

kolyuchiy commented 11 years ago

I uploaded it here: https://github.com/kolyuchiy/UsedUnused There are three images: Used, Unused and Unused2.

cytryn commented 10 years ago

Any updates on this?

For me the app is simply finding all the images I have in the project...

jeffhodnett commented 10 years ago

Thankfully i have just finished a work project, so have some time next week to update a few things on this repo.