Can't find the iphone simulator?

Source: Internet
Author: User

To find the sandbox path to the emulator in your Mac, there is an article written in more detail. However, if you install the XCODE6, you cannot find the sandbox by following the method of this article.

First, I quote the full text of the article:

1. Simulator Sandbox Directory

The files are in a hidden folder under the personal User name folder, the Chinese is called the Repository, his directory is actually the library.

1.1 Method 1, you can set the display hidden files, and then open directly under the Finder. Here's how to set up viewing hidden files: Open terminal, enter name

command to display Mac hidden files: Defaults write Com.apple.finder appleshowallfiles-bool true to hide Mac hidden files command: Defaults write Com.apple.finder Appleshowallfiles-bool false After you click Enter to exit the terminal, restart the Finder to reboot the Finder: Click the Apple icon in the upper-left corner of the window and force exit-->finder-->

You can now see the repository folder.

Locate the/application Support/iphone simulator/folder after opening the repository. This is the sandbox directory of the simulator's various programs.

1.2 Method 2, This method is more convenient, on the Finder point-to go to the folder, enter the/users/username/library/application support/iphone simulator/to.

Username here to write your user name.

2. Directory structure

By default, each sandbox contains 3 folders: Documents, Library, and TMP. Applications can only read and write files in several directories because of the sandboxed mechanism applied

Documents: Apple recommends that file data that is created in the program or browsed in the program be saved in this directory, which is included in itunes backup and restore

Library: The default settings or other status information of the stored program;

Library/caches: Store cached files, itunes does not back up this directory, files in this directory will not be deleted in the app exit

TMP: Provides a place to create temporary files on the fly.

itunes backs up all documents and library files while syncing with the iphone.

When the iphone restarts, all of the TMP files are discarded.

We create a Iossandbox project to expand the practice of sandbox and file read and write operations.

After creation, locate the corresponding directory on the emulator,

This is the catalogue all expanded.

Here are the three directories mentioned above: Documents, Library, tmp


Second, to find the sandbox inside the Xcode6, the access path changes to:

/users/username/ library/developer/coresimulator/devices/cryptic number/data/containers/data/application/cryptic number

or print out the path in the following way:

NSLog (@ "Documents Directory:%@", [[[[Nsfilemanager Defaultmanager] urlsfordirectory:nsdocumentdirectory indomains: Nsuserdomainmask] lastobject]);




Can't find the iphone simulator?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.