---
title: "Ruby script to search your Xcode project for unused assets"
slug: ruby-script-to-search-your-xcode-project-for-unused-assets
section: tech
date: 2013-07-19T00:36:00.000Z
canonical: https://roland.leth.ro/blog/tech/ruby-script-to-search-your-xcode-project-for-unused-assets
---

I know there are tools for this out there, but some aren't reliable and some are $30, albeit with more options and a GUI. But if you want something simple, just for searching, deleting and seeing at a glance what @2x/@1x assets are missing, this should do the trick.

You can find the repo [here](https://github.com/rolandleth/Unused.rb).