Update:
I attempt to add a String value to the "NSPhotoLibraryUsageDescription"
key.
And it works.My build version is now available on my TestFlight.
ps: 构建版本 means Build Version
But I want to know why Apple Store just let me add String value for "NSPhotoLibraryUsageDescription"
key rather than "Camera Usage Description"
or "Location When In Use Usage Description"
?
And how to localize the info.plist.
Dear developer,
We have discovered one or more issues with your recent delivery for "Family Health Tracker". To process your delivery, the following issues must be corrected:
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.
Once these issues have been corrected, you can then redeliver the corrected binary.
Regards,
The App Store team
They still tell me add NSPhotoLibraryUsageDescription
Xcode supplies an information property list file when you create a project from a template, as described in Create a project. By default, Xcode names this file Info. plist and adds it to your project as a source file that you can edit. Xcode creates one information property list for each target in the project folder.
Localizing of info.plist
file may be very unuseful, especially if you use many languages in your apps. The simplest way for localizing NSPhotoLibraryUsageDescription
, NSLocationWhenInUseUsageDescription
or NSCameraUsageDescription
keys is to describe it in InfoPlist.strings
file.
*.strings
file with name InfoPlist
;Localize...
button in file inspector and choose the default language;InfoPlist.strings
file. For example in English:NSLocationWhenInUseUsageDescription = "Location usage description";
NSPhotoLibraryUsageDescription = "Photos usage description";
NSCameraUsageDescription = "Camera usage description";
For more information Apple docs
Make sure that "NSPhotoLibraryUsageDescription" has value assigned before uploading the app to iTunesConnect.
Simply add these lines to your info.plist file
<key>NSPhotoLibraryUsageDescription</key>
<string>Photo Library Access Warning</string> //For NSPhotoLibraryUsageDescription issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With