WhereAmI icon indicating copy to clipboard operation
WhereAmI copied to clipboard

Ventura Location Services Access

Open mayurankv opened this issue 2 years ago • 15 comments

Currently getting the issue of Access to location services was denied. You may need to enable access in System Preferences. but no setting is available in settings on Ventura. Has anyone solved this?

mayurankv avatar Feb 06 '23 16:02 mayurankv

same problem on 13.2.1

lemrm avatar Feb 18 '23 06:02 lemrm

Having the same problem on macOS 13.2.1 too.

gseiki avatar Mar 10 '23 23:03 gseiki

I was able to get Whereami working. I thought I'd post the work around here just in case you're still trying to figure this out. Check out this link and read jtsigros comment. Make a backup of /var/db/locationd/clients.plist. Then, copy the file to your desktop. Convert the file to xml using "plutil -convert xml1 ~/Desktop/clients.plist". Make the changes suggested by jtsigros. Then, convert the file back to binary and copy it back to /var/db/locationd/. After you check that permissions and ownership are correct, restart the device. Following those steps worked for me on an Apple silicon Mac running macOS 13.2.1.

gseiki avatar Mar 13 '23 19:03 gseiki

Sorry I don't see a link in your comment!

mayurankv avatar Mar 14 '23 18:03 mayurankv

Oohps! Sorry about that. Let me look for it now.

gseiki avatar Mar 14 '23 18:03 gseiki

Check this link out, https://github.com/fulldecent/corelocationcli/issues/46. Then, look for the comments by jtsigros.

gseiki avatar Mar 14 '23 18:03 gseiki

The same issue on 13.2.1

prometeyqwe avatar Mar 21 '23 11:03 prometeyqwe

The same issue on 13.2.1

Did you follow the link above? The linked fix was intended for a different location utility, but I can confirm that it worked for this instance of whereami on macOS 13.2.1.

gseiki avatar Mar 21 '23 17:03 gseiki

Trying running whereami. After it gripes about location services not being enabled, toggle Location Services off, and then back on in System Preferences.

Then, from an account with admin privileges, you need to . . . sudo cp /var/db/locationd/clients.plist /var/db/locationd/clients.plist.backup sudo cp /var/db/locationd/clients.plist ~/Desktop/clients.plist

Then, with your preferred editor, add the following lines in the dictionary entry for whereami . . . <key>Authorized</key> <string>YES</string> <key>Whitelisted</string> <string></string>

Finally . . . sudo cp ~/Desktop/clients.plist /var/db/locationd/clients.plist

Make sure permissions and ownership of the file are correct after you copy it back to /var/db/locationd. Then, restart your device.

gseiki avatar Mar 21 '23 17:03 gseiki

Trying running whereami. After it gripes about location services not being enabled, toggle Location Services off, and then back on in System Preferences.

Then, from an account with admin privileges, you need to . . . sudo cp /var/db/locationd/clients.plist /var/db/locationd/clients.plist.backup sudo cp /var/db/locationd/clients.plist ~/Desktop/clients.plist

Then, with your preferred editor, add the following lines in the dictionary entry for whereami . . . <key>Authorized</key> <string>YES</string> <key>Whitelisted</string> <string></string>

Finally . . . sudo cp ~/Desktop/clients.plist /var/db/locationd/clients.plist

Make sure permissions and ownership of the file are correct after you copy it back to /var/db/locationd. Then, restart your device.

I read through entire issue but getting same message Access to location services was denied. You may need to enable access in System Preferences.

Foxtrod89 avatar Jan 04 '24 23:01 Foxtrod89

Did you restart your device after editing the clients.plist?

gseiki avatar Jan 05 '24 18:01 gseiki

Did you restart your device after editing the clients.plist?

I did

Foxtrod89 avatar Jan 10 '24 01:01 Foxtrod89

How many accounts are you attempting to run the whereami app in? You'll have to run whereami in every account that you want to use it in. After it throws its "access denied" message in each account, edit clients.plist as an admin user. If you attempted to run whereami in two accounts, clients.plist should have two different dictionary keys, one for each account. You'll have to authorize and whitelist both of them. I hope this info helps you.

gseiki avatar Jan 10 '24 18:01 gseiki

I followed the same steps, still have the same error message. I am only logged into one account, and im the only user of the machine.

I am on Sonoma 14.4.1 (23E224)

realityexpander avatar Apr 07 '24 04:04 realityexpander

Whore those who are on Sonoma. Follow this https://github.com/fulldecent/corelocationcli/issues/46#issuecomment-1325903663, but! Add Authorized with boolean type = true into the plist file. those guys at apple, waaa!

GITbaburin avatar Apr 28 '24 03:04 GITbaburin