Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect unused Xcode asset catalog colors #860

Open
ileitch opened this issue Dec 30, 2024 · 0 comments
Open

Detect unused Xcode asset catalog colors #860

ileitch opened this issue Dec 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ileitch
Copy link
Contributor

ileitch commented Dec 30, 2024

Custom colors created in an Xcode asset catalog are not detected as unused. They are declared within the file /Build/Intermediates.noindex/Project.build/Debug/Project.build/DerivedSources/GeneratedAssetSymbols.swift, which is currently excluded by the default indexExclude pattern **/*?.build/**/*.

Simply allowing this file to be scanned isn't a suitable approach, as it includes other declarations that may also be correctly identified as unused, but due to its generated nature, cannot be removed individually.

To resolve this, we likely need a new mechanism design for detecting unused generated asset catalog declarations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant