IOS 10 Camera-Albums-Address book Permissions issues

Source: Internet
Author: User

Upgrade your phone to iOS10, upgrade Xcode 8, connect to your phone, and start debugging. You will find that when you call the camera, album, Contacts, the program crashes, reporting permissions error. Since there is a pit, go to pits. Speak no more, see the solution directly.

Directly in the info.plist Click Add Good number, re-add a, Type select as String , direct input Privacy , click on the right side of the small button,

You can see a lot of keys. Such as:

Commonly used keys are camera, album, contact person. These will be added in iOS 10, or they will not pop up the popup that gets permission. You can use these keys:

Privacy-photo Library Usage Description: Albums
Privacy-camera Usage Description: Camera
Privacy-contacts Usage Description: Contacts

IOS 10 Camera-Albums-Address book Permissions issues

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.