Where on my machine is the iPhone simulator installed?
I\'m been trying to find where a test application I run in the simulator is stored.
To find the most recent install of your application in the simulator, you can use this command:
find "/Users/$USER/Library/Application Support/iPhone Simulator" -type d -name 'YourAppName.app' -print0 | xargs -0 ls -td | head -1
Don't forget to replace YourAppName with the name of your app!
Simulator: ~/Library/Application Support/iPhone Simulator/
You can browse simulator files from that directory in Mac OS X.
On El Capitan and Xcode 7.2 and 7.3 I found the Simulators here:
/Applications/Xcode.app/Contents/Developer/Applications/
As of Xcode 6 and iOS 8 you’ll find it here:
~/Library/Developer/CoreSimulator/Devices/{cryptic number}/data/Containers/Data/Application/{cryptic number}/
or you can get it from below code execution:
NSLog(@"Documents Directory: %@", [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject]);
I found the easiest way to find it programmatically. Run the app and put NSLog() for [NSBundle MainBundle], it will show you the whole path of the app running in simulator.
It took me a while, but I just found mine at /Applications/Xcode.app/Contents/Developer/Applications/iOS\ Simulator.app