In iOS 7, the document directory of the iOS simulators can be found in:
/Users/Sabo/Library/Application Support/iPhone Simulator/
However, in iOS 8 Beta Simulator, I can't find the corresponding directory for iOS 8 in the directory above.
Where's the document directory path for the iOS 8 Simulator?
I recommend a nice utility app called SimPholders that makes it easy to find the files and folders while developing your iOS app. It has a new version to work with the new simulators called SimPholders2. It can be found at simpholders.com
If your app uses CoreData, a nifty trick is to search for the name of the sqlite file using terminal.
The results will list the full file paths to any simulators that have run your app.
I really wish Apple would just add a button to the iOS Simulator file menu like "Reveal Documents folder in Finder".
in Appdelegate, put this code to see Document and Cache Dir:
on Log:
Documents Directory: /Users/xxx/Library/Developer/CoreSimulator/Devices/F90BBF76-C3F8-4040-9C1E-448FAE38FA5E/data/Containers/Data/Application/3F3F6E12-EDD4-4C46-BFC3-58EB64D4BCCB/Documents/
Cache Directory: /Users/xxx/Library/Developer/CoreSimulator/Devices/F90BBF76-C3F8-4040-9C1E-448FAE38FA5E/data/Containers/Data/Application/3F3F6E12-EDD4-4C46-BFC3-58EB64D4BCCB/Library/Caches
on my computer, the path is:
NOTE: probably those long IDs (i.e UDIDs) are different on your computer.
It is correct that we need to look into the path ~/Library/Developer/CoreSimulator/Devices/.
But the issue I am seeing is that the path keeps changing every time I run the app. The path contains another set of long IDs after the Application string and that keeps changing every time I run the app. This basically means that my app will not have any cached data when it runs the next time.
update: Xcode 7.2 • Swift 2.1.1
Go to your Finder press command-shift-g (or Go > Go to Folder... under the menu bar) and paste that full path "var/folder/.../documents" there and press go.