Turn on Location Services for an app via command line (macOS) I am trying to enable Location Services for an individual app such as Weather.app etc via command line for High Sierra and Mojave macOS computers. 



I was able to enable Location Services at the top level by using these two commands.

For High Sierra:

sudo -u _locationd defaults -currentHost write com.apple.locationd LocationServicesEnabled -int 1


For Mojave:

sudo defaults write /var/db/locationd/Library/Preferences/ByHost/com.apple.locationd LocationServicesEnabled -int 1


However, I haven't figured out how to enable Location Services for an individual app yet and hope the community here can help me figure out. :)
You should Click The Lock to Make Changes..enter your root passcode. Then you will see all the features (including apps) unlock &amp; ready to accept changes. Klick to the app you’re interested to.