-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop working on macOS Ventura #46
Comments
somehow it works for me on Ventura... |
I have the same issue in Ventura: Even thou location services are on. |
same here |
Same in Monterey. Managed to solve it by removing/unticking the old CoreLocationCLI (at the old Caskroom path) in Privacy > Location Service … then removed the quarantine XA from the new version, executed it, and it worked fine. (You might retick CoreLocationCLI again afterwards in System Preferences, but it worked anyway.) EDIT: the unticking-reticking thing seems to be important. I did a test after copying CoreLocationCLI to a different path, which had been in use before, and I needed to untick/retick before it worked again. Nota bene… there is also a way to do this all with AppleScript, in case you are distributing scripts to systems that might not have CoreLocationCLI installed.
|
What do you mean by 'removed the quarantine XA from the new version'. when I go to Privacy and Security > Location Services there is nothing related to CoreLocationCLI. The venture settings version is extremely different than the Monterey, have you tried this fix in Ventura? |
Not yet on Ventura… waiting for .1 update. Quarantine removal is: |
The issue for me is that it is not listed in the Privacy & Security -> Location Services section thus you can't disable and re enable. My mistake is that when I upgraded to Ventura, CorelocationCli didn’t work so I removed it from the list, ever since then I can't get it to register back in. |
Ive tried running the AppleScript above and the results state "Denied" CoreLocationCLI: ❌ Location services are disabled or location access denied. Please visit System Preferences > Security & Privacy > Privacy > Location Services |
If Apple has removed management of executables from the GUI, which would be typical for these idiots, CoreLocationCLI should still be listed in (Don't know why the AppleScript didn't work… have to test it once I'm on Ventura. It's fine on Monterey. On the other hand, there's also an entry for |
All this smells like the typical Apple security overkill/overreach. Maybe CoreLocationCLI has to be distributed as a stump app in the future? With the executable CoreLocationCLI placed in ./Contents/MacOS? |
Thanks, @jtsigros that worked!! |
This workaround is way too complicated. We need a stump app or a script that modifies (and backups) |
I've created a script called Needs to be executed as root; input is either the CLI name (if it's in your Feel free to edit/improve/report. https://gist.github.com/JayBrown/c14642a62e424db3cdc933c9140c8de8 |
Thanks, it worked perfectly. I am now using the following to install the tool.
|
Is |
It's a rename. :D |
OK, thank you. You can btw just input |
I've slightly updated the script: (a) added the That way it should be possible to also add programs like But I assume that macOS allows for this anyway, if a program is properly codesigned. (But not sure.) |
Tried this and it doesn't let me do anything with clients.plist. I can manually create a copy of it, but that's it. I've tried running it with sudo and running it after sudo su. |
Holy crap… The amount of work Apple forces on us to use the hardware they way we want is staggering. Thanks a ton for your script, @JayBrown! @fulldecent It might be worth adding this script to the repo itself and add some instructions. Also, I want to leave this here for further readers: Even with |
@chasepeeler you need to enable full disc access for Terminal… |
@michael-simons Thanks. That did the trick. However, CoreLocationCLI is still not showing up in the list for me to enable it
|
It seems that macOS is not listing CLI programs anymore, no matter what. So the remaining question is whether the new version now works after adding it to the clienst.plist. |
Sorry to revive this closed issue, but I cannot seem to get this to work even after trying the script provided by @JayBrown , I did get this warning when I ran it: addloc.sh: line 9: rehash: command not found
*** addloc: Thu 19 Jan 2023 18:10:16 GMT ***
INFO: coreutils not detected!
INFO: python3 detected
---
CoreLocationCLI detected
/opt/homebrew/bin/CoreLocationCLI -> /opt/homebrew/Caskroom/corelocationcli/4.0.2/CoreLocationCLI
INFO: removing quarantine extended attribute...
Bundle ID: com.apple.locationd.executable-/opt/homebrew/Caskroom/corelocationcli/4.0.2/CoreLocationCLI
INFO: code-signing executable with ad-hoc signature...
Requirement: cdhash H"40a2c9de62a5470fede346891e3ed22a32c76160" or cdhash H"e994e04de5c32c4597c66cc1a9867c1fcfc646c3"
INFO: adding new client entry...
---
INFO: setting owner & group to '_locationd'
WARNING: unable to change owner & group!
NOTE: please apply manually if necessary!
INFO: restarting locationd...
Done: 0 of 1 possible errors! I tried to apply manually but couldn't figure out how:
And after all this, I am still getting the same error as before when I attempt to run |
Maybe you need to add your terminal app (macOS Terminal, iTerm etc.) to the Full Disk Access list in system settings > Security. (Nota bene: I'm still on Monterey.) As for the |
Hello, I also followed the info above and run the script for the clients.plist but it seems to be still popping up the location services message. Not sure what I do wrong . Any ideas on what to look at?
|
I got here because I had the same issue on new Mac mini with LocateMe package. I can use my shortcut in terminal like this: echo "My Location is: {LAT},{LON}." | shortcuts run "Get Location" -i - | tee Link to the shortcut https://www.icloud.com/shortcuts/faa5f880cf19481984e9cef20c225a58 |
This similarly didn't work for me when running |
Running into the same issue as mentioned above by leaf-ts. Is there any other workarounds at the moment for Ventura? |
I finally upgraded to Ventura, and sure enough, macOS removed all references to CoreLocationCLI, and I wasn't able to update the clients.plist, neither with My current workaround now is a Platypus application using CoreLocationCLI instead of a shell script. This app ("CoreLocationCLI.app") is properly code-signed—only with a Development certificate, which you can get for free in Xcode—, and then the Then CoreLocationCLI will appear in System Settings > Privacy & Security > Location Services. I assume that when a new update is released, I can just unlink the new CoreLocationCLI in /usr/local/bin, put there by Homebrew, copy the CoreLocationCLI binary from the Cellar directory into the Platypus app, rename it to "script" and replace the old file called "script", then codesign the Platypus app again, and then renew the symlink from the app's Resources to /usr/local/bin. It's a bit of a hassle, but in principle, @fulldecent could distribute CoreLocationCLI as an app bundle to begin with, and symlink its executable into /usr/local/bin. Should probably work. |
Here's the app: CoreLocationCLI.app.zip Download, remove the quarantine XA from the app or the archive (because it's not notarized), drop (for example) into
and type This could be the default way to distribute Nota bene: an update of CoreLocationCLI, installed with Homebrew, will probably delete the directory |
I couldn’t get the script to work, but the manual way of adding the keys in the plist file still works. I have it running using that method and works... ▶ CoreLocationCLI On a side note, it looks like it Sonoma (14.0 beta5) it looks like you can select it in the privacy & security/developer tools section |
Whore those who are on Sonoma. Add Authorized with boolean type = true into the plist file. those guys at apple, waaa! |
There are some issues with permissions on Ventura, for some reason is not detected by the location services hence it can not be allowed to run.
The text was updated successfully, but these errors were encountered: