fulldecent / corelocationcli

Command line program to print location information from CoreLocation
MIT License
217 stars 29 forks source link

Yosemite and/or authorizationStatus? #2

Closed kmpeterson closed 9 years ago

kmpeterson commented 9 years ago

I've been trying to get this running, using both the build instructions (built successfully) and the binary download. I'm getting output with authorizationStatus: 0 which implies that I hadn't authorized the app to access location services - but I saw no dialog.

This is also on Yosemite.

In the console log is: 12Nov14 3:31:17.053 PM com.apple.xpc.launchd[1]: (com.apple.CoreLocationAgent[24049]) Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.CoreLocation.agent

and then CoreLocation.agent segfaults.

Invoking it again also adds this: 12Nov14 3:32:21.918 PM CoreLocationCLI[24122]: CoreLocation: proxy_WaitForRegistration failed

Unfortunately, C* isn't my forte - I'm more of a sysadmin type. Any ideas of what I could try?

Thanks!

fulldecent commented 9 years ago

Hmm, and what is the full OS build numbers you are using? (About Mac and click on the version number.)

On Wed, Nov 12, 2014 at 3:39 PM, K. M. Peterson notifications@github.com wrote:

I've been trying to get this running, using both the build instructions (built successfully) and the binary download. I'm getting output with authorizationStatus: 0 which implies that I hadn't authorized the app to access location services - but I saw no dialog.

This is also on Yosemite.

In the console log is: 12Nov14 3:31:17.053 PM com.apple.xpc.launchd[1]: (com.apple.CoreLocationAgent[24049]) Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.CoreLocation.agent

and then CoreLocation.agent segfaults.

Invoking it again also adds this: 12Nov14 3:32:21.918 PM CoreLocationCLI[24122]: CoreLocation: proxy_WaitForRegistration failed

Unfortunately, C* isn't my forte - I'm more of a sysadmin type. Any ideas of what I could try?

Thanks!

— Reply to this email directly or view it on GitHub https://github.com/fulldecent/corelocationcli/issues/2.

kmpeterson commented 9 years ago

10.10, Build 14A389.

And CoreLocation is: Version: 1 486.17 Obtained from: Apple Last Modified: 17Oct14, 07:52

So, it’s just “me”?

I think I’m getting towards time for a rebuild… thanks so much for responding!

_KMP

K. M. Peterson • 40 Stanton Road • Brookline, MA 02445-6839 phone: +1 617 731 6177 fax: +1 206 338 6427 contact information http://kmpeterson.com/contact • resumé http://kmpeterson.com/resume • twitter http://twitter.com/kmp • LinkedIn http://www.linkedin.com/in/kmpeterson • Calendar http://www.google.com/calendar/hosted/kmp.name/embed?src=kmp@kmp.name&ctz=America/New_York

On 13-Nov-2014, at 10:43 , William Entriken notifications@github.com wrote:

Hmm, and what is the full OS build numbers you are using? (About Mac and click on the version number.)

On Wed, Nov 12, 2014 at 3:39 PM, K. M. Peterson notifications@github.com wrote:

I've been trying to get this running, using both the build instructions (built successfully) and the binary download. I'm getting output with authorizationStatus: 0 which implies that I hadn't authorized the app to access location services - but I saw no dialog.

fulldecent commented 9 years ago

Confirming bug. Works for me in 10.9 and but 10.10 gives:

› build/Release/CoreLocationCLI
2014-11-14 09:41:48.501 CoreLocationCLI[23497:676698] Location: (null)
2014-11-14 09:41:48.511 CoreLocationCLI[23497:676698] authorizationStatus: 0
2014-11-14 09:41:48.513 CoreLocationCLI[23497:676698] locationServicesEnabled: 1
2014-11-14 09:41:48.513 CoreLocationCLI[23497:676698] significantLocationChangeMonitoringAvailable: 0
2014-11-14 09:41:48.514 CoreLocationCLI[23497:676698] headingAvailable: 0
2014-11-14 09:41:48.516 CoreLocationCLI[23497:676698] regionMonitoringAvailable: 1
kmpeterson commented 9 years ago

Exactly what I got. Thanks for confirming this, anything I can do to assist? (Though I can tell you, it took me 2 hours just to figure out how to build it!)

_KMP

On 14Nov14, at 09:42 , William Entriken notifications@github.com wrote:

Confirming bug. Works for me in 10.9 and but 10.10 gives:

› build/Release/CoreLocationCLI 2014-11-14 09:41:48.501 CoreLocationCLI[23497:676698] Location: (null) 2014-11-14 09:41:48.511 CoreLocationCLI[23497:676698] authorizationStatus: 0 2014-11-14 09:41:48.513 CoreLocationCLI[23497:676698] locationServicesEnabled: 1 2014-11-14 09:41:48.513 CoreLocationCLI[23497:676698] significantLocationChangeMonitoringAvailable: 0 2014-11-14 09:41:48.514 CoreLocationCLI[23497:676698] headingAvailable: 0 2014-11-14 09:41:48.516 CoreLocationCLI[23497:676698] regionMonitoringAvailable: 1 — Reply to this email directly or view it on GitHub https://github.com/fulldecent/corelocationcli/issues/2#issuecomment-63073144.

fulldecent commented 9 years ago

This fixed for me, please confirm

kmpeterson commented 9 years ago

No access to that particular workstation right now, will rebuild and test in next day or two. Thanks again!

_KMP

On 14Nov14, at 09:58 , William Entriken notifications@github.com wrote:

This fixed for me, please confirm

— Reply to this email directly or view it on GitHub https://github.com/fulldecent/corelocationcli/issues/2#issuecomment-63075427.

fulldecent commented 9 years ago

Did instructions in https://github.com/fulldecent/corelocationcli/blob/master/README.md not work? Please advise what you had to do to make it work.

ladislas commented 9 years ago

Hi there,

Just cloned the repo but still got the same error:

2014-12-26 11:37:30.454 CoreLocationCLI[1384:31104] authorizationStatus: 3
2014-12-26 11:37:30.454 CoreLocationCLI[1384:31104] locationServicesEnabled: 1
2014-12-26 11:37:30.455 CoreLocationCLI[1384:31104] significantLocationChangeMonitoringAvailable: 0
2014-12-26 11:37:30.455 CoreLocationCLI[1384:31104] headingAvailable: 0
2014-12-26 11:37:30.455 CoreLocationCLI[1384:31104] regionMonitoringAvailable: 1
ERROR: The operation couldn’t be completed. (kCLErrorDomain error 0.)

Any idea?