Giter Site home page Giter Site logo

Comments (15)

gseiki avatar gseiki commented on July 19, 2024 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.

from whereami.

lemrm avatar lemrm commented on July 19, 2024

same problem on 13.2.1

from whereami.

gseiki avatar gseiki commented on July 19, 2024

Having the same problem on macOS 13.2.1 too.

from whereami.

gseiki avatar gseiki commented on July 19, 2024

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.

from whereami.

mayurankv avatar mayurankv commented on July 19, 2024

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

from whereami.

gseiki avatar gseiki commented on July 19, 2024

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

from whereami.

gseiki avatar gseiki commented on July 19, 2024

Check this link out, fulldecent/corelocationcli#46. Then, look for the comments by jtsigros.

from whereami.

prometeyqwe avatar prometeyqwe commented on July 19, 2024

The same issue on 13.2.1

from whereami.

gseiki avatar gseiki commented on July 19, 2024

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.

from whereami.

Foxtrod89 avatar Foxtrod89 commented on July 19, 2024

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.

from whereami.

gseiki avatar gseiki commented on July 19, 2024

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

from whereami.

Foxtrod89 avatar Foxtrod89 commented on July 19, 2024

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

I did

from whereami.

gseiki avatar gseiki commented on July 19, 2024

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.

from whereami.

realityexpander avatar realityexpander commented on July 19, 2024

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)

from whereami.

GITbaburin avatar GITbaburin commented on July 19, 2024

Whore those who are on Sonoma.
Follow this fulldecent/corelocationcli#46 (comment), but! Add Authorized with boolean type = true into the plist file. those guys at apple, waaa!

from whereami.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.