robmathers / WhereAmI

A quick command line tool for OS X to get your geographic coordinates using the CoreLocation framework.
MIT License
197 stars 20 forks source link

Ventura Location Services Access #11

Open mayurankv opened 1 year ago

mayurankv commented 1 year ago

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?

lemrm commented 1 year ago

same problem on 13.2.1

gseiki commented 1 year ago

Having the same problem on macOS 13.2.1 too.

gseiki commented 1 year ago

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.

mayurankv commented 1 year ago

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

gseiki commented 1 year ago

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

gseiki commented 1 year ago

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

prometeyqwe commented 1 year ago

The same issue on 13.2.1

gseiki commented 1 year ago

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 commented 1 year ago

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.

Foxtrod89 commented 7 months ago

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.

gseiki commented 7 months ago

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

Foxtrod89 commented 7 months ago

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

I did

gseiki commented 7 months ago

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.

realityexpander commented 4 months ago

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)

GITbaburin commented 3 months ago

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!