No commit activity in last 3 years
No release in over 3 years
Assets-cleaner is a Cocoapods-plugin that helps to clean unused assets on Xcode projects.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

>= 1.5.0
 Project Readme

cocoapods-assets-cleaner

Assets-cleaner is a cocoapods-plugin that helps to clean assets from unused images on Xcode projects.

Getting Started

Installation

$ gem install cocoapods-assets-cleaner

Or with Bundler:

  • Install Bundler:

    $ gem install bundler

  • Create a Gemfile in the project root folder and add this line to it:

    gem 'cocoapods-assets-cleaner'

  • Run the Bundler installation command:

    $ bundle install

Usage

Run pod clean-unused-assets command with --assets-path to indicate where is Assets.xcassets on your project:

$ pod clean-unused-assets --assets-path=./path/to/Assets.xcassets

You can also define a specific directory for the plugin to search for unused assets. Just add --project-path:

$ pod clean-unused-assets --assets-path=./path/to/Assets.xcassets --project-path=./optional/path/

Use --exclude-dir define a directory to exclude from asset use search. (default: {project-path - assets-path: Assets.xcassets}):

$ pod clean-unused-assets --assets-path=./path/to/Assets.xcassets --project-path=./optional/path/ --exclude-dir=path/to/exclude/dir/relative/to/projectpath