Missing Purpose String in Info.plist for Photo access

Viewed 1897

I am getting this response when submitting my app to the store.

*ITMS-90683: Missing Purpose String in Info.plist - Your app's code references one or more APIs that access sensitive user data. The app's Info.plist file should contain a NSPhotoLibraryUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. Starting Spring 2019, all apps submitted to the App Store that access user data are required to include a purpose string. If you're using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. You can contact the developer of the library or SDK and request they release a version of their code that doesn't contain the APIs.

The following image shows what I have in the info.plist file. I do not understand where the issue is?

enter image description here

1 Answers

You added NSPhotoLibraryAddUsageDescription key to your plist file. At least that's what your screen shot says. NSPhotoLibraryAddUsageDescription is the write-only access to the Photos app. On the other hand, if you would like to request the read or write access to the Photos app, use this key: NSPhotoLibraryUsageDescription

Here's a screenshot of both keys in Info.plist when viewed as a property list file on Xcode:

enter image description here The first one is the NSPhotoLibraryAddUsageDescription and the second one is the NSPhotoLibraryUsageDescription key.

So, if you have any code (or a library) that is trying to read from the photo library, then you are required to add the NSPhotoLibraryUsageDescription key.

Related