The app's Info.plist must contain an NSContactsUsageDescription key

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

enter image description here


Solution 1:

Please check your .plist as a source code and see if your key doesn't contain space at the end like:

<key>NSContactsUsageDescription </key>

Solution 2:

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.