App Development Process configuration Info. plist file, appinfo. plist

Source: Internet
Author: User

App Development Process configuration Info. plist file, appinfo. plist

The Info. plist file controls the global configuration of the application, such as bundle name and display name.

First, let's take a look at the Info. plist File Created by default.

Right-click the Info. plist file on the left, and you can open as "property list" or "source code. For example:

 

Next, I will view the code and add the following common configurations:

<Key> CFBundleURLTypes </key> <array> <dict> <key> CFBundleTypeRole </key> <string> Editor </string> <key> CFBundleURLIconFile </key> <string> Icon @ 3x </string> <key> CFBundleURLName </key> <string> com. alongway. base </string> <key> CFBundleURLSchemes </key> <array> <string> baseapp </string> </array> </dict> </array> <key> LSApplicationQueriesSchemes </key> <array> <string> wechat </string> <string> weixin </string> <string> sinaweibohd </string> <string> sinaweibo </string> <string> sinaweibosso </string> <string> weibosdk </string> <string> weibosdk2.5 </string> <string> mqqapi </string> <string> mqq </string> <string> mqqOpensdkSSoLogin </string> <string> mqqconnect </string> <string> mqqopensdkdataline </string> <string> protocol </string> <string> mqqopensdkfriend </string> <string> mqqopensdkapi </string> <string> mqqopensdkapiV2 </string> <string> mqqopensdkapiV3 </string> <string> mqzoneopensdk </string> <string> wtloginmqq </string> <string> wtloginmqq2 </string> <string> mqqwpa </string> <string> mqzone </string> <string> mqzonev2 </string> <string> mqzoneshare </string> <string> wtloginqzone </string> <string> mqzonewx </string> <string> mqzoneopensdkapiV2 </string> <string> mqzoneopensdkapi19 </string> <string> mqzoneopensdkapi </string> <string> mqqbrowser </string> <string> mttbrowser </string> <string> renrenios </string> <string> renrenapi </string> <string> renren </string> <string> renreniphone </string> <string> laiwangsso </string> <string> yixin </string> <string> yixinopenapi </string> <string> instagram </string> <string> whatsapp </string> <string> line </string> <string> fbapi </string> <string> fb-messenger-api </string> <string> fbau22. </string> <string> fb1_extension </string> <string> baidumap </string> <string> iosamap </string> <string> comgooglemaps </string> </array> <key> NSAppTransportSecurity </key> <dict> <key> NSAllowsArbitraryLoads </key> <true/> </dict> <key> NSLocationWhenInUseUsageDescription </key> <string> request to access you </string> <key> UIAppFonts </key> <array/> <key> uiapplicationshortshortcutitems </key> <array> <dict> <key> UIApplicationShortcutItemIconFile </key> <string> 3 dTouchBtnOne </string> <key> uiapplicationshortshortcutitemtitle </key> <string> button 1 </string> <key> uiapplicationshortshortcutitemtype </key> <string> com. alongway. base. one </string> </dict> <key> uiapplicationshortcucutitemiconfile </key> <string> 3 dTouchBtnTwo </string> <key> uiapplicationcucucutitemtitle </key> <string> button 2 </string> <key> uiapplicationshortshortcutitemtype </key> <string> com. alongway. base. two </string> </dict> <key> uiapplicationshortshortcutitemiconfile </key> <string> 3 dTouchBtnThree </string> <key> uiapplicationcucucutitemtitle </key> <string> button 3 </string> <key> uiapplicationshortshortcutitemtype </key> <string> com. alongway. base. three </string> </dict> </array> <key> UIBackgroundModes </key> <array> <string> fetch </string> <string> remote-notification </ string> </array>

You can view the result in the list mode, for example:

Note:
1. URL types option, which describes the configuration that the application is called by other applications. The url schemes array currently has only one item, indicating that only the baseapp: // protocol can call the application, if a shared SDK is added later, more items will be added, such as sina. xxxx, QQxxx
2. The LSApplicationQueriesSchemes option determines other applications that can be called by this application. For example, if you want to call the option, you need to add item: wechat. Currently, 48 application URLs are added to scheme.
3. the App Transport Security Settings option determines which secure HTTPS domain names can be accessed by the application. The preceding Settings indicate that all http and https domain names can be accessed. Otherwise, you must add the "Exception Domains" option, list secure domain names by yourself
4. The NSLocationWhenInUseUsageDescription option is used for the prompt content when users use the location service after iOS8. NSLocationUsageDescription is used for the version between iOS6-8. Similar options include camera, Address Book, Bluetooth, etc.
5. The Fonts provided by application option is used to add a Custom font file name, which is generally a ttf file. The subsequent instructions on how to use a Custom font in the code
6. The UIApplicationShortcutItems option is applicable to devices after the iPhone 6 s. It provides the 3d Touch menu of the icon of this application and describes how to use it in the code later.
7. The Required background modes option to set the app to download in the background for a short period of time

The Info. plist file is an important application configuration file. For more options, see Xcode> Help> Documentation.

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.