0

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 NSUserTrackingUsageDescription key with a string value explaining to the user how the app uses this data.

I alread added the permission in .plist

<key>NSUserTrackingUsageDescription</key> <string>$(PRODUCT_NAME) will track your data</string>

Vijay Kahar
  • 1,082
  • 1
  • 7
  • 20
  • Does the crash occur when you request app tracking permission? Are you sure your updated info.plist is making it into your ipa? Also, read the notes [here](https://developer.apple.com/documentation/bundleresources/information_property_list/nsusertrackingusagedescription) - your message should not include your app name. The text you have provided is also unlikely to pass app review – Paulw11 May 17 '21 at 21:01
  • I follow all the steps, permission is already added into info.plist but still facing the same crash – Vijay Kahar May 18 '21 at 05:23
  • So you have unzipped the ipa that is being installed and verified that the right key is in the info.plist? Show the code that triggers the crash – Paulw11 May 18 '21 at 06:10
  • I had the same problem with old version of an app. Try to put your NSUserTrackingUsageDescription This identifier will be used to deliver personalized ads to you by selecting the project -> target -> info it's just before Build Settings – Simone Pistecchia Aug 08 '21 at 18:19

1 Answers1

0

The issue in my project was that I had localization for info.plist set up in a wrong way.

For having the values properly localized, add the following .strings file and add them there:

Screenshot of localized InfoPlist.strings file

Make sure to actually call them InfoPlist.strings (exactly capitalized like that with capital I and P)

See also this answer: https://stackoverflow.com/a/25736915/1898677

laka
  • 644
  • 8
  • 23