Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 622 Vote(s) - 3.47 Average
  • 1
  • 2
  • 3
  • 4
  • 5
iPhone Simulator location

#1
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.
Reply

#2
The actual *Simulator application itself* is located at /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator
Reply

#3
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!
Reply

#4
Simulator: `~/Library/Application Support/iPhone Simulator/`

You can browse simulator files from that directory in Mac OS X.
Reply

#5
**In X-Code 4.2**
The Photos of the iPhone simulator are stored in

/Users/user_name/Library/Application Support/iPhone Simulator/5.0/Media/DCIM/100APPLE
Reply

#6
As of 4.3.2 of Xcode for Lion, the iOS simulator is located in the contents of the app package... If you right click on xcode.app and click "Show package contents" then navigate to Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications there you will find the iOS Simulator app... Just drag it to your dock and there you go... Or you can make an Alias and drag that to your desktop (or wherever you want) for easy access to the simulator... Why Apple decided to bury it in the package, I have no clue.
Reply

#7
**Update for Xcode 4.4**: While the iPhone simulator is still in the same place, Apple has included a shortcut to the iPhone Simulator at:

/Applications/Xcode.app/Contents/Applications


### Changes since Xcode 4.3.1

Please note that the new version of Xcode is now available on the [Mac App Store][1]. Hence all the stuff that used to come with an installer is now packaged into `Xcode.app`.

Therefore the iOS Simulator binary is located here:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/

The Apps installed in the simulator along with other configuration files are still here:

~/Library/Application Support/iPhone Simulator/


Here is an extract from the current release notes of [Xcode 4.3.1][1]

> ### What's new in Xcode 4.3.1
> Xcode is now distributed as an application, rather than as an installer. This change enables Xcode to be updated directly from the Mac App Store.



[1]:

[To see links please register here]

Reply

#8
A super simple and sexy way is to use Apple Script:

property findtype : quoted form of "kMDItemContentType = \"com.apple.application-bundle\""

set simulatorFolder to POSIX path of (path to application support folder from user domain) & "iPhone Simulator/"
set appFiles to paragraphs of (do shell script "mdfind -onlyin " & quoted form of simulatorFolder & " " & findtype)
if appFiles is not {} then
set mostRecentApp to item 1 of appFiles
tell application "Finder" to reveal ((POSIX file mostRecentApp) as alias)
tell application "Finder" to activate
end if

Paste this into Apple Script Editor and export it as a Mac app. Then you can just run the app whenever you need a Finder window open in the sandbox. The code is courtesy StefanK at MacScripter.
Reply

#9
With the introduction of CoreSimulator in Xcode 6, each simulated device now has its own data. Previous versions had all devices share the same data for each version of iOS.

Devices are located in ~/Library/Developer/CoreSimulator/Devices.
Logs are located in ~/Library/Logs/CoreSimulator

Note that ~/Library/Developer/CoreSimulator/Devices/<device UDID>/data/Library/Logs is a symlink to ~/Library/Logs/CoreSimulator/<device UDID>.

CoreSimualtor will create an initial set of devices on first use (and after installation of older simulator runtimes). You can add or delete new devices from within Xcode.app or from the command line using 'xcrun simctl create' or 'xcrun simctl delete'
Reply

#10
The top answer is correct for location of the simulator app. But there is a secondary location where the example apps (and your app builds) are stored for the simulator to access. This is:

~/Library/Developer/CoreSimulator/Devices

Each subdir is a device ID. You can find where your app is by looking in each of these dirs at data/Containers/Bundle/Application/{app_id}
Reply



Forum Jump:


Users browsing this thread:
2 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through