Ionic IOS – Missing Info.plist key

To process your delivery, the following issues must be corrected:

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.

https://stackoverflow.com/questions/41611987/how-to-resolve-missing-info-plist-key-nsphotolibraryusagedescription

https://stackoverflow.com/questions/39566952/cordova-info-plist-nscamerausagedescription-key-is-missing

cordova plugin rm cordova-plugin-camera

cordova plugin add cordova-plugin-camera --variable CAMERA_USAGE_DESCRIPTION="this app will use your camera" --variable PHOTOLIBRARY_USAGE_DESCRIPTION="this app will access to your photo library"

******

iOS Quirks

Since iOS 10 it’s mandatory to add a NSCameraUsageDescription and NSPhotoLibraryUsageDescription in the info.plist.

NSCameraUsageDescription describes the reason that the app accesses the user’s camera.
NSPhotoLibraryUsageDescription describes the reason the app accesses the user’s photo library.

When the system prompts the user to allow access, this string is displayed as part of the dialog box.

To add this entry you can pass the following variables on plugin install.

CAMERA_USAGE_DESCRIPTION for NSCameraUsageDescription
PHOTOLIBRARY_USAGE_DESCRIPTION for NSPhotoLibraryUsageDescription

Example:

cordova plugin add cordova-plugin-camera –variable CAMERA_USAGE_DESCRIPTION=”your usage message” –variable PHOTOLIBRARY_USAGE_DESCRIPTION=”your usage message”

If you don’t pass the variable, the plugin will add an empty string as value.
https://github.com/apache/cordova-plugin-camera#ios-quirks