Is there an official way to grant/examine/revoke the "user tracking" permission to/of an iOS app on the simulator during testing?
This is the permission that corresponds to the NSUserTrackingUsageDescription
entry in the info.plist, and the dialog that pops up during runtime that reads:
Allow "YourApp" to track your activity across other companies' apps and websites?
Currently running on an iPhone 14 Pro simulator running iOS 16.2. Lacking an official way, what other solutions exist?
Note that granting all permissions via simctl does not appear to do the trick, e.g.:
xcrun simctl privacy $DEVICE_ID grant all $BUNDLE_ID
does not grant the tracking permission to the app: the user is still prompted for this permission even after executing that command.
Ideally, I'd like to be able to: grant the permission to the app, examine if the permission has been granted, and revoke the granted permission.