본문 바로가기

Mac OS X

맥에서 위치정보서비스 어플리스트 제거하기...

위치정보를 사용하는 맥 어플 개발하다 보면

제일 처음에 앱을 실행하면 사용자 승인 과정을 거치는데

테스트를 위해 이 과정을 다시 거쳐야 하는 경우가 있습니다.






이 경우 위치정보를 사용하는 어플리스트를 제거해야 하는데

트친분이신 @godrm 김정님이 친절하게 찾아 주시네요

감사합니다. ^^



아래는 그 방법입니다.


Open a root shell in Terminal, and go to /var/folders/zz/. Run ls -l and enter the directory owned by _locationd.

Open the C subdirectory, and run the following command to convert the preferences file from binary to XML:

plutil -convert xml1 clients.plist

Now edit the file e.g. in vim from the command line, removing the application (both key and dictafterwards) you no longer want to have appear on the list.

Save, and killall locationd to have it reload from the settings file.


Chances are, that the PromptedSettings key is useful as well, if no authorization is given, but I leave figuring this out to the reader.



출처 : http://superuser.com/questions/429344/remove-application-from-location-services-in-security-privacy-on-mac-os-x-10-7