IOS10 Development Permission adaptation settings crash (the build version is not displayed after the package is uploaded), and The ios10 permission

Source: Internet
Author: User

IOS10 Development Permission adaptation settings crash (the build version is not displayed after the package is uploaded), and The ios10 permission

The ios10 system must force the configuration of system permissions. If this parameter is not configured, the system crashes during debugging and the package is invalid. As a result, the build version is not displayed after the package is uploaded.

Solution
1. Findinfo.plistFile, right-clickSource CodeForm open
2. Add the following key-value pairs. Here we use PhotoLibrary as an example.

The key value must be a correct description. You can enter the description at will.

<Key> NSPhotoLibraryUsageDescription </key> <string> this App requires your consent to read the media repository. </string>

For more information, see the following.

<! -- Album --> <key> NSPhotoLibraryUsageDescription </key> <string> the App requires your consent to access the album </string> <! -- Camera --> <key> NSCameraUsageDescription </key> <string> the App requires your consent to access the camera </string> <! -- Microphone --> <key> NSMicrophoneUsageDescription </key> <string> the App requires your consent to access the microphone </string> <! -- Location --> <key> NSLocationUsageDescription </key> <string> the App must have your consent to access the location </string> <! -- Access location during use --> <key> NSLocationWhenInUseUsageDescription </key> <string> the App requires your consent to access location during use </string> <! -- Always access location --> <key> NSLocationAlwaysUsageDescription </key> <string> the App must have your consent before it can always access the location </string> <! -- Calendar --> <key> NSCalendarsUsageDescription </key> <string> the App requires your consent to access the calendar </string> <! -- Reminder --> <key> NSRemindersUsageDescription </key> <string> the App requires your consent to access the reminder </string> <! -- Sports and fitness --> <key> NSMotionUsageDescription </key> <string> the App requires your consent to access sports and fitness </string> <! -- Health update --> <key> NSHealthUpdateUsageDescription </key> <string> the App requires your consent to access health update </string> <! -- Health sharing --> <key> nshealthpolicusagedescription </key> <string> the App requires your consent to access health sharing </string> <! -- Bluetooth --> <key> nsbluw.thperipheralusagedescription </key> <string> the App requires your consent to access Bluetooth </string> <! -- Media database --> <key> NSAppleMusicUsageDescription </key> <string> the App requires your consent to access the media database. </string>

Of course, the recommended method is direct
info.plistStill usedProperty ListAnd click Add. A small plus sign will appear when sliding to the last item.
Enter Privacy to quickly locate the permission series, find the permissions you need, and modify the value next to it.

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.