My app crashed when I try to open video camera. It is fine when it opens the camera, but when I switch from image to video I get this error:
[access] This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data.
I find this weird because I have added the permission in my plist file.
<key>NSCameraUsageDescription</key>
<string>Camera is used to make pictures when creating a job</string>
In your .plist add this key: Privacy - Microphone Usage Description and your desired value.
Related
im using a screen capture code with UIGraphicsGetImageFromCurrentImageContext() and then UIActivityViewController to allow users to select what to do with the screenshot image
its all works but when i click on save image i get console error:
This app has crashed because it attempted to access privacy-sensitive data without a usage description. > The app's Info.plist must contain an NSPhotoLibraryAddUsageDescription key with a string value explaining to the user how the app uses this data.
I checked the plist.info and it already has NSPhotoLibraryAddUsageDescription listed in there
So why is it not recognising it and still giving this error?
I tried deleting derived data and cleaned build folder.
Check plist again if the key is NSPhotoLibraryAddUsageDescription, not NSPhotoLibraryUsageDescription.
Apple document for adding this key to plist and requesting permission :
https://developer.apple.com/documentation/bundleresources/information_property_list/protected_resources/requesting_authorization_to_access_photos
I'm getting this error in Xcode despite the fact that I have added a description string for NSContactsUsageDescription in info.plist. It's happening in the simulator and on iPad & iPhone.
[access] This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSContactsUsageDescription key with a string value explaining to the user how the app uses this data.
I have tried cleaning, rebuilding, deleting the app from the device, restarting Xcode. Deleting from info.plist and adding again. I've also checked the source code for info.plist to see that the key has been added correctly.
I keep getting this error!
I'm trying to upload my iOS App to App Store but I have some issues to upload my .ipa file to iTunes Connect.
I'm trying to upload my .ipa file wheter through Application Loader or XCode and the uploading seems to be ok.
For a while if I look at Activity I see the build written "Processing" but immediately after iTunes Connect doesn't show the build and, when I check the delivery status of my App in Application Loader -> Window -> Delivery Status, I read that there was an
"Import Error"
with no description of the error that occurred.
Which could be the problem?
I've solved the problem thanks to the response Email from the App Store Team:
Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCalendarsUsageDescription key with a string value explaining to the user how the app uses this data.
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 do not know why I need these keys but I hope it will be useful to those who will have the same problem.
Hi tried to upload my app to Itunes connect , everything was successful (archive etc) but then it didn't appear on iTunes connect, I later got an e-mail saying
"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."
However I do have in the info.plist this : Privacy - Camera Usage Description
Where could this come from ? thanks !
I have added privacy settings in info.plist still it crashes. I don't why.
It says:
This app has crashed because it attempted to access privacy-sensitive
data without a usage description. The app's Info.plist must contain
an NSMicrophoneUsageDescription key with a string value explaining to
the user how the app uses this data.
Please note that I have already tried re-installing app. I am using iOS 10 Device no simulator.
You can try to reset the simulator and run again. It will work.
Delete NSMicrophoneUsageDescription from plist then run your application in device. Then delete the application from device. then add NSMicrophoneUsageDescription in plist and give description to it(don't keep it empty, write some description!) and install again in device!