Reputation: 1990
I am getting a crash below:
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.
But I have already added the 'Privacy - Contacts Usage Description' key
Upvotes: 9
Views: 14274
Reputation: 4417
I had this problem. There was no Info.plist in a new project and adding it didn't do anything.
Solution:
Info
tabUpvotes: 1
Reputation: 500
Go To info.plist And
Privacy - Contacts Usage Description
Value : Allow Contact Access For Details
Upvotes: 1
Reputation: 1421
if you are using App test and and App UItest then there would be multple plist files in your project just make it sure you are adding discription in right if plist
Upvotes: 0
Reputation: 1315
Could be that you have accidentally added the key to your UITests target. I've done that a few times with the location privacy keys.
By the way, your contacts usage description "Allow contact access" probably would not pass Apple's review, because it does not state why you want to use them.
Upvotes: 2
Reputation: 116
Please check your .plist as a source code and see if your key doesn't contain space at the end like:
<key>NSContactsUsageDescription </key>
Upvotes: 8