Info.plist must contain an NSPhotoLibraryUsageDescription key
Hi,
I'm getting this message from iTunes Connect when submitting my IPA file built with cloud build:
Dear Developer,
We identified one or more issues with a recent delivery for your app.
Please correct the following issues, then upload again.
Missing Info.plist key - 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.
Best regards,
The App Store Team
Can you please help me? Thank you
Answer by MacDx · May 22, 2018 at 08:56 PM
Yes that usually happens if your app uses the iOS device camera but said key (NSPhotoLibraryUsageDescription) is not defined. All that key does is show the user the message defined within that key when the app needs to use the camera and the user needs to authorize said usage.
To define that key you need to open the XCode project Unity's build process outputs, then look for the Info.plist file, if I recall correctly you can find it on the left side of the window, along with the other project files (if I'm wrong just google Info.plist). Select it and you'll be shown a list of key-value pairs. Then you just need to add the aforementioned key to the list and put anything you want as a value, for example: AppName needs to use your camera to do bla and bla.
Hope this helps!
Yeah but the problem is I dont have mac and xcode I use cloud build to build for ios. :(
Trying to develop and publish for iOS/$$anonymous$$ac without owning a $$anonymous$$ac is a daring/challenging thing to do but it is not impossible I think.
Anyways, locate the Info.plist and try editing with this then:
http://www.icopybot.com/plist-editor.htm (I just found it and I have never tried it so use it at your own risk).
If this doesn't work then you'll need to get a $$anonymous$$ac :/
Regards
Even if I have mac, the point is that the cloud build is not producing valid IPA file :(
Ah... huh? I already explained why that is happening in my answer
Yeah I got it, just cant use cloud build...I wish unity would fix it.
That's because your build does not contain the description for the access request of the photo library. You will not get a valid IPA file regardless of what you do, and this is something you need to correct in your build not cloud build.
Where would I correct that? I did specify the camera usage and the other two.
Your answer
Follow this Question
Related Questions
Cloud build ios : This device was signed for the App Store and connot be installed 1 Answer
Can't install profile for the Device Detection to install a Cloud Build shared IPA 0 Answers
Getcomponent fails when built from cloud build 1 Answer
iOS Bundle ID has not been set up, Unity Cloud Build 1 Answer
Unity Cloud Build IOS Failed 0 Answers