xccleanup
A cleanup tool that assists you in cleaning up after Xcode.
Installation
Add this line to your application's Gemfile:
gem 'xccleanup'
And then execute:
$ bundle
Or install it yourself as:
$ gem install xccleanup
Usage
Just run it. You'll be asked which steps you would like to run. Available steps:
- Remove derived data
- Remove module cache
- Remove device support
- Remove old archives
- Remove expired provisioning profiles
- Remove simulator devices
- Remove doc sets
Backlog
To be added in the (near future):
- Remove device support for tvOS and watchOS (currenty only iOS is checked).
- Provide different modes for specifying OS versions to keep.
- Remove expired or revoked certificates and (non-Apple) certificates without private key. (is that possible, is that wise?)
- Add a mode / config feature with which the script can run without user input.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/toineheuvelmans/xccleanup.
License
The gem is available as open source under the terms of the MIT License.