Cleaning up the iPhone simulator

Travis Jensen picture Travis Jensen · Mar 28, 2009 · Viewed 97.8k times · Source

Is there a straightforward way to clean up the directory where xcode deploys an app when building for the iPhone simulator? I have a sqlite database that gets copied into the Documents folder on startup if necessary. The problem is that I might change my schema, but the new database won't get copied, because one already exists.

Ideally, every time I build, it would nuke the previous contents. Is this possible, or do I have to manually do it?

Answer

j7nn7k picture j7nn7k · Aug 9, 2010

From Apples Dev Resources:

To set the user content and settings of the simulator to their factory state and remove the applications you have installed, choose iPhone Simulator > Reset Content and Settings.

This resembles:

iOS Reset