Info.plist files in iOS project

Source: Internet
Author: User
<span id="Label3"></p><p><p>After we set up a project, we will see a "project name-info.plist" file under supporting files, this is the project to do some run-time configuration of the file, it is important, can not be deleted.</p></p><p><p>If you download the project on the Internet this file name is only info.plist, then congratulations, this project is too old, is included SDK2.0 previous Xcode generated, but it doesn't matter, does not affect the Use.</p></p><p><p>If you use a text editor to open this file, you will find that this is an XML format text file, generally we do not use a text editor directly edit this file, but through Xcode editing.</p></p><p><p>Here is an example of this file:</p></p><p><p></p></p><p><p>The following is an explanation of the fields that may appear here:</p></p><p><p><span style="color: #ff6600;">localiztion Native Development</span> region---cfbundledevelopmentregion localization related, If the user location does not have the corresponding language resources, The value of this key is used as the Default.</p></p><p><p>the <span style="color: #ff6600;">Bundle</span> Display name---cfbundledisplayname Setup program to display after Installation. The application name is limited to 10-12 characters, and if exceeded, an abbreviated name is Displayed.</p></p><p><p><span style="color: #ff6600;">executaule file</span> --the name of the Cfbundleexecutable program installation package</p></p><p><p>icon <span style="color: #ff6600;">file</span> ---cfbundleiconfile application icons name, typically icon.png</p></p><p><p><strong><span style="color: #ff6600;">Bundle identifier</span></strong> ---cfbundleidentifier The unique identification string of the bundle, which is formatted like Com.yourcompany.yourapp <span style="color: #ff6600;"> <span style="color: #000000;">If you use the emulator to run your app , this field is useless,</span> and if you need to deploy your app to a device, you must generate a certificate, and on Apple's website you need to add the app IDs when you generate the Certificate. here's a field bundle identifier, if this bundle Identifier is a complete string, the field in the file must be exactly the same as the latter (app ids), and if the field in the app IDs contains a wildcard *, the string in the file must conform to the description of the Latter.</span></p></p><p><p>Version information for infodictionary version---cfbundleinfodictionaryversion info.plist format</p></p><p><p>Bundle OS Type Code--cfbundlepackagetype: The Four-letter long codes used to identify bundle types (puzzled??). )</p></p><p><p>Bundle versions string, short---cfbundleshortversionstring version of the bundle for the user market, (puzzled??). )</p></p><p><p>Bundle Creator OS Type code---cfbundlesignature: used to identify the creator of the Four-letter long codes (puzzled??). )</p></p><p><p><strong><span style="color: #ff6600;">Bundle version</span></strong> ---the cfbundleversion application version number, which will be added to the App store each time a new version of the application is Deployed.</p></p><p><p><span style="color: #ff6600;">application require iphone environment</span> --lsrequiresiphoneos: used to indicate whether the package can only run on iphone OS systems. Xcode automatically joins this key and sets its value to True. You should not change the value of this key.</p></p><p><p><span style="color: #ff6600;">main nib File base</span> name- <code>NSMainNibFile</code> This is a string that specifies the name of the application main nib File. If you want to use a different nib file (instead of the default file that Xcode created for your Project) as the primary nib file, you can associate the nib filename with this key. The nib file name should not contain an <code>.nib</code> Extension. This field can be Deleted.</p></p><p><p><span style="color: #ff6600;">supported interface orientations</span> --the direction that the Uisupportedinterfaceorientations program supports by Default.<br><br></p></p><p><p><span style="color: #ff6600;">Application uses Wi-fi</span><br>This property should be set to TRUE if the application requires Wi-fi to Work. Doing so prompts the user to turn on Wi-fi if Wi-fi is not turned On. To conserve power, the iphone automatically shuts down any wi-fi in the app after 30 minutes. Setting this property prevents the occurrence of this condition and keeps the connection active</p></p><p><p></p></p><p><p>Info.plist files in iOS project</p></p></span>

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.