Where Does Xcode Simulator Write Files, Revisited
June 25, 2012
When running applications in the simulator, one benefit is that you can quickly view file(s) that the applications creates and/or modifies. For example, if you write files into the application’s Documents directory, you can meander your way through the Mac file system to have a closer look at those same files.
Since I first wrote Where Does Xcode Simulator Write Files, the location of saved application data has changed.
Previously, simulator application files were stored here:
/Users/USER_NAME/Library/Application Support/iPhone Simulator/User/Applications
All applications, regardless of iOS version, were stored in the /Applications directory.
The new hierarchy is arranged by iOS version, where each all applications for the same iOS version share the same root, if you will.
The version hierarchy begins in this directory:
/Users/USER_NAME/Library/Application Support/iPhone Simulator.
The screenshot below shows all the iOS version directories on my system:
Within each version directory, all applications associated with that version are stored within a sub-directory. In the screenshot that follows I’ve expanded the Documents directory to show two files the application created and stored in that same directory:
Here’s one last tip, if you are no longer working with older iOS versions, you can delete the obsolete directories in /iPhone Simulator. This can be a significant amount of file space depending on how far back your development goes and how many applications you’ve written.