iOS save picture to album crashes

Source: Internet
Author: User

Project iterative development process, there are users to reflect the save picture to the album Crash, and finally self-test, in the iOS11 below the normal storage, and iOS11 after the mobile phone will appear to reflect the problem. The print error message is as follows:

This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app‘s Info.plist must contain an NSPhotoLibraryAddUsageDescription key with a string value explaining to the user how the app uses this data.

Google Translate:

This application has crashed because it tries to access privacy sensitive data without the use of instructions. The info.plist of an application must contain a Nsphotolibraryaddusagedescription key, in which the string value explains to the user how the application uses this data.

Access to the data, the cause of the problem is the IOS11 system after the new Apple added a permission to save the image later need to add permission "Privacy-photo Library additions Usage Description".

After testing, for the device not upgraded to iOS11 save the picture and no problem, but the device upgrade to IOS11 and then save the picture app will definitely crash, so quickly add to Info.plist file.


iOS save picture to album crashes

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.