tccutil: Failed to reset

I want to reset the permission state of location services to "notDetermined" (CLAuthorizationStatus) while developing.

But using the command below gives me this error:

$ tccutil reset CoreLocation
tccutil: Failed to reset CoreLocation

same goes for

$ tccutil reset [my bundleId]
tccutil: Failed to reset CoreLocation approval status for [my bunldeId

Anyone know the reason for this?

This worked tho:

sudo cp modified_client.plist /var/db/locationd/clients.plist
sudo launchctl kickstart -k system/com.apple.locationd

Where modified_client.plist is a copy of /var/db/locationd/clients.plist where the app I want to reset it for is removed.

CoreLocation isn’t a valid service name for tccutil. Sadly, there’s no way to get a list of valid service names. I talk about this issue more in the posts on this post.

AFAIK there is no good supported way to reset the Location privilege. Relying on implementation details is less than ideal. I encourage you to file an enhancement request requesting a supported way to do that.

Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

sudo cp modified_client.plist /var/db/locationd/clients.plist
sudo launchctl kickstart -k system/com.apple.locationd

Just wondering, I assume you had Full Disk Access enabled for Terminal? You shouldn't be able to do this unless Terminal has FDA. Without it, you'd get cp: /var/db/locationd/clients.plist: Operation not permitted.

tccutil: Failed to reset
 
 
Q