A Swift run script that automatically detects missing and unused image assets in iOS Asset Catalogs.
AssetChecker is a Swift-based run script for iOS development that automatically sanitizes Assets.xcassets files. It solves the problem of broken image references and unused assets by scanning your codebase during each build, raising errors for missing assets and warnings for unused ones. This prevents runtime crashes and helps keep app sizes optimized.
iOS developers and teams working on Swift projects who use Xcode Asset Catalogs to manage images and want to automate asset hygiene.
Developers choose AssetChecker for its simplicity, seamless Xcode integration, and proactive error prevention. It provides a lightweight, automated safety net that catches asset issues at build time, unlike manual checks or runtime failures.
👮Sanitize your Assets.xcassets files
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Runs automatically as an Xcode run script on each build, providing continuous feedback without manual intervention, as per the installation instructions.
Raises errors for missing assets referenced in code but deleted from the catalog, catching issues at build time to avoid app crashes.
Identifies unused image assets in the catalog and emits warnings, helping developers remove unnecessary files and optimize bundle size.
Allows manual specification of ignored asset names for dynamic cases, mitigating false warnings through the 'ignoredUnusedNames' variable.
Cannot detect assets referenced via dynamic string construction without manual configuration, leading to false positives that require ongoing maintenance.
Installation involves multiple steps (Cocoapods or manual script copy) and precise path configuration, which can be error-prone for complex project structures.
Exclusively designed for iOS and Xcode, with no support for other platforms or asset management systems, limiting its versatility in cross-platform projects.