phonegap / build

This is the public repository for PhoneGap Build source and bug tracking
92 stars 33 forks source link

Missing Info.plist key : NSPhotoLibraryUsageDescription #576

Closed EdwinRikkers closed 7 years ago

EdwinRikkers commented 7 years ago

When uploading the app build by PhoneGap Build to Itunes Connect I get the following error from ITunes Connect: 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.

I already added the following to my config.xml but no result:

<gap:config-file platform="ios" parent="NSPhotoLibraryUsageDescription" overwrite="true">
        <string>For uploading photos from the library</string>
</gap:config-file>
goya commented 7 years ago

the text of the gap:config node should be valid plist xml eg.

<string>For uploading photos from the library</string>

EdwinRikkers commented 7 years ago

I see now that my copy/paste into this forum removed the <string> tag. The <string> tag is actually there.

goya commented 7 years ago

please open a topic on our support forums for app related issues: https://forums.adobe.com/community/phonegap/build

please include the app id # of the app with the issue. if a forum support issue already exists please paste a link to it here so we can troubleshoot.

ronnievdc commented 7 years ago

You can define the NSPhotoLibraryUsageDescription in the cordova-plugin-camera tag.

<plugin name="cordova-plugin-camera" version="2.3.0" source="npm">
    <variable name="CAMERA_USAGE_DESCRIPTION" value="For uploading photos from the library" />
    <variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="For uploading photos from the library" />
</plugin>
EdwinRikkers commented 7 years ago

fixed the issue by:

<config-file platform="ios" parent="NSPhotoLibraryUsageDescription" mode="replace">
        <string>For uploading photos from the library</string>
    </config-file>