Open mayurankv opened 1 year ago
same problem on 13.2.1
Having the same problem on macOS 13.2.1 too.
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.
Sorry I don't see a link in your comment!
Oohps! Sorry about that. Let me look for it now.
Check this link out, https://github.com/fulldecent/corelocationcli/issues/46. Then, look for the comments by jtsigros.
The same issue on 13.2.1
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.
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.
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.
Did you restart your device after editing the clients.plist?
Did you restart your device after editing the clients.plist?
I did
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.
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)
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!
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?