How can I completely clean out the IOS simulator?

ios, ios-simulator

Solution

Here you can completely clean out your iOS simulator :

First run your project

When pops up the simulator, select it

Then go to `iOS Simulator` section from the upper left menu and select it

Then select `Reset Content and Settings` from the drop down menu

An alert message should pops up with this message "Are you sure you want to reset the iOS Simulator content and settings?", Select `Reset` there.

Then wait for a while and clean your xcode by pressing `shift + command + k`

By doing this your project should be cleaned. If you want to Delete your "Stored Simulator File" by yourself, then :

- Go to Desktop first

- Select `Go` from the upper menu & hold `option` button

- Now the `Library` option should come in the drop down list then go to the following directory from there

`~/Library/Application Support/iPhone Simulator/User/`

Hope it helps you.

Problem

I have several image data files in my app in development. I deleted some of the files from the APP in XCODE (moved to trash). I check the project in Finder and the old files are gone. I did reset contents and settings on the simulator. I rerun the app in the similar and the old files are STILL there. If I replace X with new X, new X is there. If I remove Y and replace with nothing, Y is still there. How can I get rid of the old files?

Original source