This issue happened to me once and I solved it by adding the Photo Library Usage Description variable to the config.xml and by making an Info.plist with the NSPhotoLibraryUsage. I’ve recently made a new project and I followed the same steps when adding the camera plugin but the error still persists.
My config xml:
<plugin name="cordova-plugin-camera" spec="^3.0.0"> <variable name="CAMERA_USAGE_DESCRIPTION" value="..." /> <variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="..." /> </plugin>
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