Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode: Missing Info.plist key for NSCameraUsageDescription

After adding GPUImage to my Xcode project, my app is getting denied for Missing an Info.plist key for NSCameraUsageDescription.

Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.

I have added the key and description to my plist in several different ways and over 10 builds have all gotten the same denial error.

Here is my info.plist with the Camera Usage key at the bottom.

Snap of my info.plist

Any ideas on why I still get denied when I clearly have this defined in my plist?

like image 547
Chris Avatar asked Jun 22 '17 04:06

Chris


People also ask

What is info plist in Xcode?

Xcode supplies an information property list file when you create a project from a template, as described in Create a project. By default, Xcode names this file Info. plist and adds it to your project as a source file that you can edit. Xcode creates one information property list for each target in the project folder.

How do I create a new plist in Xcode?

Right click on the folder you want to add it to and choose "New file…" This will bring up a blank file with columns for Key, Type and Value. Choose any of the presented options, you'll be overwriting it anyway. Now change the Key to "Apple".


2 Answers

You need to put a particular and proper description to use Camera in your application. One my application is denied due to improper description. So try with a proper description, maybe it will help you.

<key>Privacy - Camera Usage Description</key>
<string>APPNAME requires access to your phone’s camera.</string>
like image 173
Nirmalsinh Rathod Avatar answered Sep 28 '22 20:09

Nirmalsinh Rathod


Ok it is an old one but i'd share my experience... nothing was working for me. What i add to to was :

  • using Xcode to edit the plist.info. NOT in an external editor !!!!

  • DO NOT edit the text CREATE a new key using the + sign.

  • it will ask you to replace the previous (unless the previous one has been entered wrong... my case i think)

enter image description here

enter image description here

like image 34
user10078 Avatar answered Sep 28 '22 20:09

user10078