Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

It finds resources that are actually in use #16

Open
kolyuchiy opened this Issue · 5 comments

4 participants

@kolyuchiy

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 /* 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

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

@jeffhodnett
Owner

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

@kolyuchiy

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

@cytryn

Any updates on this?

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

@jeffhodnett
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.