# Open application folder in Finder First, copy the path to the app folder from Xcode console. Then open Finder, click on Go -> Go to Folder and paste the application directory path. You will now be able to browse all the files in your application folder.
type: ~/Library/Application Support/iPhone Simulator.
You'll need to go to Settings > Advanced and check the Show Debug Menu option. Then you'll see the option to open the web inspector for the Simulator right from that menu. With the Web Inspector open, you can debug inside the Simulator just like you could right in a desktop browser with DevTools.
UPDATE: Since iOS 8:
~/Library/Developer/CoreSimulator/Devices
The location used to be:
~/Library/Application Support/iPhone Simulator
It had directories for all models of simulators (4.0, 4.1, 5.0, etc) you have ever run, go to the one you are running from in Xcode.
Once in a folder, go to Applications, choose the Finder option that shows date for files, and sort by date. Your application will be the most recent since it just changed the directory...
Inside the directory is everything related to your application. You can even drop files in there between runs, to revert back to a stored database in a known state for example...
I go there often enough I keep the iPhone Simulator directory in my Finder sidebar.
Note that with iOS8, the simulator folders are in a totally different directory - really split across a few directories, with folder names for application specific files that change each time you run your app.
~/Library/Developer/CoreSimulator/Devices
~/Library/Developer/CoreSimulator/Devices/{{Device Code}}/data/Containers/Bundle/
print(NSHomeDirectory())
and copy the path.Shift+Cmd+G
Alternative for 1. is to catch a breakpoint and do po NSHomeDirectory()
in console.
Open the program "Activity Monitor", search for your App (just the apps name, not the simulator), click "Informations" and open "Open files and ports". Copy the second entry (something like /Users/me/Library/Application Support/iPhone Simulator/4.2/Applications/B97A9504-0FA5-4826-BB6D-A2335A676459/VSGradientView.app/YourApp
). This is the running app, while <...>/B97A9504-0FA5-4826-BB6D-A2335A676459/VSGradientView.app/
is the bundle, and <...>/B97A9504-0FA5-4826-BB6D-A2335A676459/*
the sand-boxed folder.
If you pass this as open "/Users/me/Library/Application Support/iPhone Simulator/4.2/Applications/B97A9504-0FA5-4826-BB6D-A2335A676459/"
to the terminal, the folder will open in Finder.
Sounds complicated but isn't.
based on zsero answer
macOS 10.13.1
Run the following line in the terminal
Template
open `xcrun simctl get_app_container booted BUNDLEID_OF_YOUR_APP data` -a Finder
Full Sample
open `xcrun simctl get_app_container booted com.Test data` -a
BUNDLEID_OF_YOUR_APP = "Bundle Identifier"
Features of the solution 1
Create a bash scrip with a name of your app and code:
script_file_name = `basename "$0"`
open `xcrun simctl get_app_container booted $script_file_name data`
Features of the solution 2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With