Unused icon indicating copy to clipboard operation
Unused copied to clipboard

It finds resources that are actually in use

Open kolyuchiy opened this issue 11 years ago • 5 comments

I have the following project structure: Project/

  • Images/
  • Project/*.(m|h|xib)
  • Project.xcodeproj

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 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = DC258481175E37BB0009DF75 /* [email protected] */; };
./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 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
./Project.xcodeproj/project.pbxproj:                DC258480175E37BB0009DF75 /* album_photo_bg.png */,
./Project.xcodeproj/project.pbxproj:                DC258481175E37BB0009DF75 /* [email protected] */,
./Project.xcodeproj/project.pbxproj:                DC258482175E37BB0009DF75 /* album_photo_bg.png in Resources */,
./Project.xcodeproj/project.pbxproj:                DC258483175E37BB0009DF75 /* [email protected] in Resources */,

kolyuchiy avatar Jun 10 '13 07:06 kolyuchiy

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

rmullot avatar Jun 26 '13 11:06 rmullot

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

jeffhodnett avatar Jun 26 '13 15:06 jeffhodnett

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

kolyuchiy avatar Jun 26 '13 17:06 kolyuchiy

Any updates on this?

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

cytryn avatar Dec 04 '13 19:12 cytryn

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

jeffhodnett avatar Dec 07 '13 15:12 jeffhodnett