Error publishing to Apple

0

Hello, I'm trying to send my first application to apple, but it's giving me a bit of a headache .. I have already searched for all my code, I did a full cleanup but I can not find anything on camera, and I do not use it, but I'm getting this error when sending the app for review:

Has anyone ever gone through this? Please, can you help me? I've tried some solutions that I found on the internet, but I could not ... I'll be happy if anyone has an answer for that. I thought that maybe this error could be from the facebook plugin, but it does not make sense because it does not use camera, it just takes the image and the name of the profile.

    
asked by anonymous 29.11.2018 / 20:49

1 answer

0

This is because apple requires you to report that your application uses these features in info.plist

You basically have to put text to:

  

// Camera Access Information
NSPhotoLibraryUsageDescription // Photo Library Access Information

For Cordova change config.xml

<platform name="ios">
    <config-file parent="NSPhotoLibraryUsageDescription" platform="ios" target="*-Info.plist">
        <string>You can upload your profile picture using your Photo Library</string>
    </config-file>
    <config-file parent="NSCameraUsageDescription" platform="ios" target="*-Info.plist">
        <string>You can upload your profile picture using your camera</string>
    </config-file>
</platform>

If you compile in xcode you can change directly in info.plist

Sources: link , link

    
29.11.2018 / 21:18