37

I upload my app in app store successfully.

App store send me an email like this:

App Store Connect

Dear Developer,

We identified one or more issues with a recent delivery for your app, "Kupona Online" 1.0.2 (1.2). Please correct the following issues, then upload again.

ITMS-90683: Missing Purpose String in Info.plist - Your app's code references one or more APIs that access sensitive user data. The app's Info.plist file should contain a NSCameraUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. Starting Spring 2019, all apps submitted to the App Store that access user data are required to include a purpose string. If you're using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. You can contact the developer of the library or SDK and request they release a version of their code that doesn't contain the APIs. Learn more (https://developer.apple.com/documentation/uikit/core_app/protecting_the_user_s_privacy).

Best regards,

The App Store Team

To fix this error I put in Info.plist in Xcode 10.2.1 like in this:

image

but nothing happens. App store send me always this error.

How do I fix this error?

1
  • I would try to 'Clean Build Folder' and/or remove DerivedData, and/or restart XCode.
    – FryAnEgg
    Jun 5, 2019 at 16:40

3 Answers 3

38

For NSCameraUsageDescription, Add the exact purpose of using camera in the Value column. For example, enter image description here

5
  • I have given a proper message for using thr key but got this email again. Even i have delete these keys from info.plist and tried but no luch same luck had came again. Feb 21, 2020 at 4:52
  • facing the same issue. Feb 24, 2020 at 6:55
  • facing the same issue.
    – MayankD
    Mar 17, 2020 at 10:17
  • 1
    same here, i dont even have this on my info.plist May 5, 2020 at 19:29
  • Happened me before, there is 2 info.plist file , update one in the project not on the target one Jul 10, 2020 at 1:25
3

Folks are saying they're getting rejected even though they're not requesting access to camera. You have to know that Apple will scan your code with their static analysis tools. And even if you have this protected behind a feature flag, still the app store review process would reject your app. Because they don't know when you'll turn that feature flag on.

Additionally you could get this issue if a third-party service has a camera access related code in their code. Again even if you don't hit that line (of the 3rd party framework), you'd need that key in.

But then I've had issues where we've added that plist in, but then the app store review team was never able to test it out because the feature was protected by a feature flag. And because they couldn't test it, they didn't approve it ¯\ (ツ) /¯

Last but not least, if you did really need that key in your plist, then make sure its reasoning is generic enough to cover all cases e.g. If you need access to the camera for both take profile pictures and scanning QR code, then given that your app can request access for the camera at either the profile picture step or at scanning a PR code, then your description in the plist should cover both features, not just one of them. If you say "need access to take profile photos" then there is a chance that you could rejected if user hits the QR flow first but sees you're requesting access to take a profile photo. Hence you should say "need access to take profile photos and QR code scan for new devices"

tl;dr identify where in your app flow you're requesting access. If you need it then add its key/value in your plist. If you don't need it then comment out that line. You shouldn't just add the plist just for the sake of passing an app store review. It can fail but it can also succeed, while in a future release it would fail...

1

In the new version of IOS, apps accessing the camera trigger a dialog that will prompt the user to allow or deny permission for the app.

That's why you need to explain why the application is accessing the input device (Camera, Microphone, etc).

To do this, you need to edit your project Runner/info.plist file by adding the key and string description inside the dict tag.

<dict>
    ...
    <key>NSCameraUsageDescription</key>
    <string>My_app_name needs to access the camera to do x_thing. 
    </string>
<dict>

Or you can add it by opening your product in xcode the image below for more details.

enter image description here

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.