How to resolve "Missing key Info.plist ... NSPhotoLibraryUsageDescription"

I completely download the .ipa file using the application loader, but I did not find the built-in iTunes Connect, I also received this message from Apple support: "We found one or more problems with your recent delivery for" Update HF ". To process your delivery, you need to solve the following problems: Missing Info.plist key. This application is trying to access sensitive data without a description of use. Info.plist application must contain the NSPhotoLibraryUsageDescription key with a string value that explains to the user how the application uses The user of these data. "

I will add the following codes to the config.xml file, but I still have the same error:

         

+12
source share
5 answers

enter image description here You can add the lines below in your plist.

<key>NSCameraUsageDescription</key>
<string>$(PRODUCT_NAME) uses photos</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>$(PRODUCT_NAME) uses photos</string>
+20
source

EDIT: All major plugins have been updated to no longer use variables. To establish usage descriptions, you must use the tag edit-configin the config.xmlfollowing way:

<edit-config target="NSCameraUsageDescription" file="*-Info.plist" mode="merge">
    <string>need camera access to take pictures</string>
</edit-config>

See iOS Quirks

OLD ANSWER: First remove the Cordova-plugin-camera using cordova plugin rm cordova-plugin-camera

And then install it again with:

cordova plugin add cordova-plugin-camera --variable PHOTOLIBRARY_USAGE_DESCRIPTION="your usage message"
+17
source

VS TACO, . \plugins\fetch.json, " -" "":

"cordova-plugin-camera": {
    "source": {
        "type": "registry",
        "id": "cordova-plugin-camera@~2.4.1"
    },
    "is_top_level": true,
    "variables": {
        "CAMERA_USAGE_DESCRIPTION": "your description text here",
        "PHOTOLIBRARY_USAGE_DESCRIPTION": "your description text here"
    }
}
0

. config.xml

<gap:config-file platform="ios" parent="NSPhotoLibraryUsageDescription">

, , .

0

In my case, the App Store Connect continued to say that the key was missing, although it was definitely there. After viewing Info.plist many times, I finally noticed that the NSPhotoLibraryUsageDescription key has an extra space at the end of the key, which apparently prevents the download process from seeing the key.

Here's a screenshot of the problem and solution:

0
source

Source: https://habr.com/ru/post/1691740/


All Articles