Error publishing to Apple

Asked

Viewed 130 times

0

Hi, I’m trying to send my first app to apple, but it’s giving a bit of a headache.. I already searched all my code, I did a total cleaning but I can not find anything on camera, and use, but I’m getting this error when sending the app for review:

erro

Has anyone gone through it? Please, can you help me? I’ve tried some solutions I found on the internet, but I couldn’t.. I’ll be happy if anyone has an answer to that. I thought maybe this error might be the facebook plugin, but it doesn’t make sense because it doesn’t use camera, just grabs the image and the profile name.

  • In the info.plist from your app you have to put a text stating that the app uses Camera [NSCameraUsageDescription] and the Biblioteca de fotos [NSPhotoLibraryUsageDescription].

  • Hey @Icaromartins, thanks for answering, but where do I get this file info.plist? within the project I did not find, just config.xml

  • It’s been a long time since I’ve used Ordova, I don’t think I’ve changed so much, just take a look at this link https://stackoverflow.com/a/47897726/2456894 in this reply shows how to put in config.xml, and in a reply above shows info.plist

  • You can include by config.xml: <edit-config file="*-Info.plist" mode="merge" target="NSCameraUsageDescription"> <string>This app needs access to the camera to take photos and to scan barcodes.</string> </edit-config> and <edit-config file="*-Info.plist" mode="merge" target="NSPhotoLibraryUsageDescription"> <string>This app requires access to the photo library.</string> </edit-config>.

  • I used your solution @Renata as always correct. Thank you very much!!! = D

1 answer

0

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

Basically you have to put a text to:

Nscamerausagedescription // Access information to Camera
Nsphotolibraryusagedescription // Access Information to Photo Library

For Cordova to 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 on xcode can change direct on info.plist

screenshot screenshot

Sources: https://stackoverflow.com/a/47897726/2456894 , https://stackoverflow.com/a/43138949/2456894

Browser other questions tagged

You are not signed in. Login or sign up in order to post.