Description of the use of iOS 10

iOS 10 requires that you have a key in info.plist for each use. When I tried to send the application to iTunes, I received an error.

This application attempts to access sensitive data without using a description. The Info.plist application must contain an NSPhotoLibraryUsageDescription key with a string value that explains to the user how the application uses this data.

This application attempts to access sensitive data without using a description. The Info.plist application must contain the NSCameraUsageDescription Key with a string value explaining how the application uses this data.

NSCameraUsageDescription from card.io, but what can NSPhotoLibraryUsageDescription come from? Is there any way to find out?

I use xamarin, but I think it does not matter.

EDIT: I know that you need to add a key to info.plist, that I don’t know why I need it, because I do not use the photo library anywhere

+5
source share
3 answers

You need NSPhotoLibraryUsageDescription if you are implementing a generic leaflet that includes the ability to save an image (which goes to the "Camera Roll"). You may have used (or are using) a data source that can create data in the form of .JPG, .PNG, .TIF. Prior to iOS 10, your user would be asked to access the Photo Library (or Camera Roll). Now, if they do this without your application describing the usage (for example, β€œThis application should be able to share images in your Camera Roll.”), Your application crashes.

+2
source

Open the plist application plist and add the NSPhotoLibraryUsageDescription key NSPhotoLibraryUsageDescription this:

enter image description here

Make sure you indicate why the application needs a photo library.

0
source

Perhaps it is used in some frameworks.

0
source

Source: https://habr.com/ru/post/1257847/


All Articles