jamesmontemagno / SettingsPlugin

Read and Write Settings Plugin for Xamarin and Windows
MIT License
324 stars 80 forks source link

NSPhotoLibraryUsageDescription issue uploading to iTunes Connect. Caused by SettingsPlugin? #94

Closed ghost closed 7 years ago

ghost commented 7 years ago

Version Number of Plugin: 2.5.1.0

When I upload to iTunes Connect, I'm getting an issue:

This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.

I'm trying to determine which package/plugin is triggering the issue, as I am not accessing any private folders in my code.

Could the SettingsPlugin be accessing 'private' folders and thus triggering this #issue?

prashantvc commented 7 years ago

The NSPhotoLibraryUsageDescription specifically needed when developer wants to access the photo library(docs here). The settings plugin in no way tries to access the photo library.

Are there any other third party libraries in you app? Did you try verify the archive without Settings plugin added to your project?

ghost commented 7 years ago

Thanks - I doubted that the Settings plugin did access the photo library.

Verifying without the Settings plugin is hard, because removing the Plugin will cause code to break.

It appears from other discussons on various forums that this issue can be triggered from static analysi of the libraries/packages included in the app, if any of them refer to UIPicker (for example).

So fo now I've just had to include the NSPhotoLibraryUsageDescription info.plist entry, because it's virtually impossible to find out which library is triggering this!

jamesmontemagno commented 7 years ago

It is not this plugin. It could be permissions plugin or the media plugin or third party libraries actually.

Basically just add the permission and move on is what I do :)

ghost commented 7 years ago

Thanks James - that's what I've ended up doing, just adding the info.plist entry.

It's disconcerting to have to explain to the customer that "Apple thinks the app accesses the user's photos but we don't know why."!

Sent from my Android phone using TouchDown (www.symantec.com)

-----Original Message----- From: James Montemagno [notifications@github.com] Received: Tuesday, 19 Sep 2017, 23:22 To: jamesmontemagno/SettingsPlugin [SettingsPlugin@noreply.github.com] CC: James Lavery [james.lavery@microsec.co.uk]; Author [author@noreply.github.com] Subject: Re: [jamesmontemagno/SettingsPlugin] NSPhotoLibraryUsageDescription issue uploading to iTunes Connect. Caused by SettingsPlugin? (#94)

It is not this plugin. It could be permissions plugin or the media plugin or third party libraries actually.

Basically just add the permission and move on is what I do :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jamesmontemagno/SettingsPlugin/issues/94#issuecomment-330690681, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABrKHqh83V12LEGIsMqwvCes8vlllpFBks5skD6NgaJpZM4PcUrR.