IOS Info.plist

Source: Internet
Author: User

In the project created by the older version of Xcode, the profile name is called "Info.plist"

Other plist files in the project cannot have the word "Info", or they will be mistaken for the "info.plist" that is very important in the legend. Similarly, if you are new to a project, want to see its configuration information, you can find the project name-info plist file, the project also has a infoplist.strings file, and Info.plist file localization related

Open Info.plist file such as:

We can see that this is a dictionary, the dictionary is stored in a lot of health value pairs. We can add the configuration of some items here. Here are some of the more important attributes we often use:

Common Properties (the red part is the key you see when you open it with a text editor)

Localiztion native Development Region (cfbundledevelopmentregion)-Localization related

Bundle Display Name (cfbundledisplayname)-a program that displays the names after installation, is limited to 10-12 characters, and if exceeded, the abbreviated name is displayed. The default display is the project name, if you change this value, there are two points to note:

1. Uninstall the apps you've deployed before

2. Clear Xcode's cache and deploy from new

Otherwise, the app's name modification will not succeed.

Icon file (cfbundleiconfile)-app icons name, typically icon.png

Bundle version (cfbundleversion)-The version number of the application, which needs to be increased each time a new version is posted to the App Store

Main Storyboard file base name (nsmainstoryboardfile)-The primary storyboard filename, the project configuration can be modified in the main The Inerface property can also set the primary storyboard file, and the information in the modified Info.plist file is automatically modified.

Bundle identifier (cfbundleidentifier)-The unique identity of the project, deployed to the real machine, which is a unique identifier that distinguishes it from other apps , and if the identity is the same, Post-deployment apps will overwrite apps that were previously deployed.

In fact, the plist file is essentially a special XML file.

IOS Info.plist

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.