Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cleaning up the iPhone simulator

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?

like image 589
Travis Jensen Avatar asked Mar 28 '09 02:03

Travis Jensen


People also ask

How do I delete data from simulator?

Or, on the home screen of the simulator, uninstall the app in the same way you would on a physical device, by pressing and holding on the application icon until an 'x' appears in the top left, and press the 'x', and select 'Delete' from the alert view. This will clear all data associated with a single app.

How do I delete old iOS simulator?

In Xcode 6+ you can simply go to Menu > Window > Devices > Simulators and delete a simulator you don't need.


1 Answers

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 Device > Erase All Content and Settings.

(On older versions: iPhone Simulator > Reset Content and Settings.)

like image 155
j7nn7k Avatar answered Oct 02 '22 20:10

j7nn7k