The Info. The file

introduce

The info.plist file mainly describes the configuration of some projects.

Location and opening

Open As Source Code:

You can use this method if you can’t open a plist file when git has a conflict, or right-click in the Finder and choose another editor such as VSCode to open it.

Or look directly in the Project configuration:

Specific configuration

Project configuration related

Bundle Identifier: The Bundle I of the App is requested in Apple Developer

Bundle name: package name

Bundle Version String (short) : indicates the version number

Bundle version: Build number

Launch Screen Interface File Base name: indicates the Launch page

Main storyboard file Base name: Starts the root view storyboard

Supported interface orientations: Indicates the Supported direction of the device

These are not normally modified in the info.plist file. If you need to modify them, you can directly modify them in the General option of the Project Settings, as shown below:

Permission Configuration

Privacy is an issue that people are paying more and more attention to, so we often need to configure privacy permissions in app development to use the corresponding API.

We can add the corresponding permission field by clicking “+” in the info.plist file

Some common permission field description:

Privacy-calendars Usage Description: indicates the calendar Usage permission

Privacy-bluetooth Peripheral Usage Description: Bluetooth Usage permission

Privacy-health Share Usage Description: indicates the Health Share permission

Privacy-health Update Usage Description: indicates the Health data Update permission

Privacy-siri Usage Description: Indicates the permission of Siri

Privacy-face ID Usage Description: indicates the permission to use Face ID

Privacy-microphone Usage Description: Microphone Usage permission, recording, and voice transmission

Privacy-camera Usage Description: indicates the Camera Usage permission, such as photographing and recording

Privacy-photo Library Usage Description: Privacy – Photo Library Usage Description:

Privacy-photo Library Additions Usage Description: save image Additions to album (iOS11 Additions Additions to album)

Privacy-contacts Usage Description: Indicates the address book Usage permission

Privacy-location Always Usage Description: permanently use address Location information, Location related (before iOS11, both front and back can obtain Location permission)

Privacy-location When In Use Usage Description: Access Location information only during App Usage

Privacy-location Always and When In Use Usage Description: Permission to permanently Use App Location (after iOS11)

  • The location permission configuration of the different call API will also be different, and the popover during the CALL API will be different
  • When configuring related permission fields, specify the specific purpose in value rather than simply using XX permission. Otherwise, the audit may be rejected
The new permissions in iOS14 are related

PHPhotoLibraryPreventAutomaticLimitedAccessAlert:

IOS14 when users select PHAuthorizationStatusLimited, if not ADAPTS, is likely to be in every trigger photo album features pop-up window asking the user whether to need to modify the photos. In the info. The file set in PHPhotoLibraryPreventAutomaticLimitedAccessAlert to YES can prevent the popup window pops up again and again.

ATS

Because HTTP requests are blocked for Security reasons, the solution is to add the App Transport Security Settings Allow Arbitrary Loads to YES in the info.plist file.

Jump whitelist

IOS after jump between new App LSApplicationQueriesSchemes white list Settings

A weak opinion, if there is a mistake, welcome to correct ~