{"id":13610762,"url":"https://github.com/tinymind/LSUnusedResources","last_synced_at":"2025-04-13T01:32:51.500Z","repository":{"id":37390695,"uuid":"41399030","full_name":"tinymind/LSUnusedResources","owner":"tinymind","description":"A Mac App to find unused images and resources in Xcode project.","archived":false,"fork":false,"pushed_at":"2023-08-09T12:02:06.000Z","size":9229,"stargazers_count":4152,"open_issues_count":9,"forks_count":716,"subscribers_count":92,"default_branch":"master","last_synced_at":"2024-10-23T02:03:19.802Z","etag":null,"topics":["unused","unused-resources","xcode"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tinymind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-08-26T02:12:22.000Z","updated_at":"2024-10-21T06:32:35.000Z","dependencies_parsed_at":"2022-07-14T03:50:36.230Z","dependency_job_id":"d8db5dd7-6492-406c-8ee3-b248c37a23ba","html_url":"https://github.com/tinymind/LSUnusedResources","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinymind%2FLSUnusedResources","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinymind%2FLSUnusedResources/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinymind%2FLSUnusedResources/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinymind%2FLSUnusedResources/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinymind","download_url":"https://codeload.github.com/tinymind/LSUnusedResources/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223558320,"owners_count":17165105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["unused","unused-resources","xcode"],"created_at":"2024-08-01T19:01:47.738Z","updated_at":"2024-11-07T17:30:32.230Z","avatar_url":"https://github.com/tinymind.png","language":"Objective-C","readme":"# LSUnusedResources\nA Mac App to find unused images and resources in an Xcode project. It is heavily influenced by jeffhodnett‘s [Unused](http://jeffhodnett.github.io/Unused/), but Unused is very slow, and the results are not entirely correct. So I made some performance optimization, the search speed is more faster than Unused.\n\n## Example\n\n![LSMessageHUD Example1](https://github.com/tinymind/LSUnusedResources/raw/master/LSUnusedResourcesExample.gif)  \n\n## Usage\n\nIt's an useful utility tool to check what resources are not being used in your Xcode projects. Very easy to use: \n\n1. Click `Browse..` to select a project folder.\n2. Click `Search` to start searching.\n3. Wait a few seconds, the results will be shown in the tableview.\n\n## Feature\n\nCheck `Ignore similar name` to ignore the resources which referenced by string concatenation, `regex: ([-_]?\\d+)`.\n\nFor example:\n\nYou import some resources like:\n\n```\nicon_tag_0.png\nicon_tag_1.png\nicon_tag_2.png\nicon_tag_3.png\n\nicon_title-0.png\nicon_title-1.png\nicon_title-2.png\n\nicon_test0.png\nicon_test1.png\nicon_test2.png\n```\n\nAnd using in this way:\n\n``` objc\nNSInteger index = random() % 4;\nUIImage *img0 = [UIImage imageNamed:[NSString stringWithFormat:@\"icon_tag_%d\", index]];\n\t\n// Or\nUIImage *img1 = [self createImageWithPrefix:@\"icon_title\" concat:@\"-\" andIndex:index];\n\n// Or\nUIImage *img2 = [self createImageWithPrefix:@\"icon_test\" andIndex:index];\n```\n\n`icon_tag_x.png`, `icon_title-x` and `icon_testx` will be considered to be used, should not be shown as unused resource.\n\n## Installation\n\n* Download: [LSUnusedResources.app.zip](https://github.com/tinymind/LSUnusedResources/raw/master/Release/LSUnusedResources.app.zip)\n* Or build and run the project using Xcode.\n\n## How it works\n\n1. Get resource files (default: `[imageset, jpg, png, gif]`) in these folders `[imageset, launchimage, appiconset, bundle, png]`.\n2. Use regex to search all string names in code files (default: `[h, m, mm, swift, xib, storyboard, strings, c, cpp, html, js, json, plist, css]`).\n3. Exclude all used string names from resources files, we get all unused resources files.\n\n## Requirements\n\nRequires OS X 10.7 and above, ARC.\n","funding_links":[],"categories":["Objective-C","工具"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinymind%2FLSUnusedResources","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinymind%2FLSUnusedResources","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinymind%2FLSUnusedResources/lists"}