Ios-xcode Common Settings

Source: Internet
Author: User
Tags tmp folder

1. main file Comment
    • 1) Main file Comment Modify path

      • /Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/Project Templates/Base/Base.xctemplate/TemplateInfo.plist
    • 2) Sample settings file

      • , Password: yar2.
2. Main function configuration
    • 1) Main function default configuration modification path in main file

      • /Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/Project Templates/Mac/Application/Command Line Tool.xctemplate/TemplateInfo.plist
    • 2) Sample settings file

      • , Password: b2by.
3. Appdelegate Default Code
    • 1) in the APPDELEGATE.M file

      -(BOOL)application:(UIApplication *)application       didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    • 2) Application:didfinishlaunchingwithoptions: Modify path of default code within method

      • /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project Templates/Application/Empty Application.xctemplate/TemplateInfo.plist
    • 3) Sample Settings file

      • , Password: eq24.
4. Custom Code Snippets
    • 1) Customize code snippet file storage path in Xcode

      • ~/Library/Developer/Xcode/UserData/CodeSnippets/
    • 2) Sample settings file

      • , click View software download password get method.
5. Empty template
    • 1) Add an empty template to Xcode

      • Because XCODE5 or parts of Xcode below this version have empty templates (empty application.xctemplate), copy the empty templates in them and paste them into Xcode6 or the desired version of the Xcode template path.

      • 1> template path below 6 version of Xcode:

        • /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project Templates/Application/Empty Application.xctemplate/
      • 2> template path above 6 version of Xcode:

        • /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project Templates/iOS/Application/Empty Application.xctemplate/
    • 2) Xcode Empty template file

      • , Password: yfq4.
6. Add SDK Version
    • 1) The SDK file storage path for the corresponding version of Xcode

      • /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
    • 2) Xcode SDK versions

      • , Password: Ywxd.
7. Add Simulator version 7.1 Simulator add
    • 1) in Xcode5 and earlier versions, installing the emulator SDK is equivalent to installing the emulator. Xcode emulator SDK File storage path

      • /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
    • 2) in Xcode6 and later versions, the new version of Xcode does not recognize the emulator in the SDKs directory and requires the emulator file to be placed in this directory

      • /Library/Developer/CoreSimulator/Profiles/Runtimes/

      • This directory is the root directory, not in the directory of Xcode and User, and unlike the previous version of the emulator, the new version of the emulator is a simruntime suffix package file. The version of the SDK file will still be created when the new Xcode software is installed, and the corresponding Simruntime file will not be created.

    • 3) If you encounter an issue with an emulator version number showing an exception, for example, simply delete the extra version of the emulator in the Devices of Xcode.

    • 4) Each version of the Xcode simulator, password: x9pt.

7.2 Simulator Path
    • 1) in XCODE5 and previous versions, Xcode's emulator path is

      • ~/Library/Application Support/iPhone Simulator/

      • Under this folder, you can view all the emulator versions, and then click inside to see the app sandbox situation.
      • In development, it is recommended that you drag the file shortcut path to the left-hand side of the Finder to easily open the View app sandbox.

    • 2) in the Xcode6 and later versions, the location of the simulator has been changed, the address is as follows

      • ~/Library/Developer/CoreSimulator/Devices/

      • When opened, you will find the following: In this case, Apple encodes the simulator, not the name and classification of the emulator system version, but rather the Xcode6 of all the emulators in the Xcode6, which correspond to the different simulators in the file.

      • When a file is selected, open will see a folder named Data, and Device.plist configuration file, after opening the Device.plist profile, you will see the emulator UDID, device type, system version, name and so on. This allows you to know the device and system version of the simulator. Open, will find that the front of the seemingly garbled file name, is actually the simulator device UDID, although from here can get simulator UDID, Apple also use it to carry out classification simulator, but in the actual programming, if you want to finally publish to the APP Store, or give up UDID bar, This is also a more overbearing apple, of course, is also in the protection of the privacy of users to make.

7.3 Simulator Application Sandbox
    • 1) in XCODE5 and previous versions, the sandbox path is as follows:

      • ~/Library/Application Support/iPhone Simulator/5.0.0/Applications/

      • Under the Applications folder, you will find the application sandbox. After you open the app sandbox, there are application files, document folders, Library folders, and TMP folders.

    • 2) in Xcode6 and later versions, the application file, document folder, Library folder, tmp folder, these four files are placed in different directories.

      • Application file path:

      • ~/Library/Developer/CoreSimulator/Devices/模拟器 UDID/data/Containers/Bundle/Application/

      • Document, Library, tmp folder path:

      • ~/Library/Developer/CoreSimulator/Devices/模拟器 UDID/data/Containers/Data/Application/

      • Unfortunately, the two paths open file name, or encoded, and, the application in the same application file and the document, Library, TMP folder folder in the folder file name is different, can only find their own.

7.4 Emulator app Nsuserdefault file storage
    • Nsuserdefault is a localized data storage method provided by IOS that automatically creates a. plist configuration file in the sandbox, saves the data, and receives it in a nsdictionary dictionary when it is read.

    • 1) in XCODE5 and previous versions, the specific path is

      • ~/Library/Application Support/iPhone Simulator/7.0.3/Applications/模拟器 UDID/Library/Preferences/

      • Under the Preferences folder, the name is the plist file for the program Bundle Identifier. After you delete the program in the emulator, the plist file in the Library folder is deleted accordingly.

    • 2) in Xcode6 and later versions, the specific path is

      • ~/Library/Developer/CoreSimulator/Devices/模拟器 UDID/data/Library/Preferences/

      • Through the above path can be seen through the Nsuserdefault created by the Plist folder or under the Library file, but the difference is that the actual location of the change, into the emulator's database folder, such a change in the changes are, When we delete an application in the emulator, the plist file is still preserved and will not be deleted.

8. Add offline Documents
    • 1) Offline document storage path in Xcode

      • /Applications/Xcode.app/Contents/Developer/Documentation/DocSets/
    • 2) Xcode offline documentation

      • , Password: m7nt.
    • 3) Apple's latest document

9, Real Machine Devicesupport
    • 1) Real Machine devicesupport problem

      • About Xcode7 Real machine test appears could not find developer disk image problem, the main missing this folder, put it to the specified path

      • /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

    • 2) Xcode Real machine devicesupport file

      • , Password: Difa.
10. Xcode Theme Configuration
    • 1) Xcode theme configuration file storage path

      • ~/Library/Developer/Xcode/UserData/FontAndColorThemes/
    • 2) Xcode Theme configuration file

      • , Password: R4CF.

Ios-xcode Common Settings

Related Article

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.