This shirt is "dry-clean only"...which means it's dirty.

-- Mitch Hedberg

This gem provides rake tasks for programmatically reseting the iOS simulator in advance of running tests (or other development activities):

rake dryclean              # Same as dryclean:simulator
rake dryclean:simulator    # Reset the iOS Simulator
rake dryclean:spec         # Run specs with a clean simulator


Install the gem:

$ gem install motion-dryclean

Add it to your Gemfile (inside development group):

gem 'motion-dryclean'

Make sure motion-dryclean is loaded in your project Rakefile:

require 'motion-dryclean'