AppTrackingTransparency - permission already added but still facing error

507 Views Asked by At

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>

1

There are 1 best solutions below

0
On

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