Unused
Unused copied to clipboard
It finds resources that are actually in use
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 */,
Exactly the same problem... Instead of searching the images that i don't need, it found me all the others.
Can you send a pull request with an example project with this issue please
I uploaded it here: https://github.com/kolyuchiy/UsedUnused There are three images: Used, Unused and Unused2.
Any updates on this?
For me the app is simply finding all the images I have in the project...
Thankfully i have just finished a work project, so have some time next week to update a few things on this repo.