Qt Positioning iOS에서
iOS 앱에서 위치 정보 서비스( Qt Positioning ) 사용
iOS 기기에서 앱이 위치 서비스를 사용할 수 있도록 하려면, 앱 사용 중일 때 위치 서비스가 필요한지, 아니면 앱이 백그라운드에서 실행 중일 때 필요한지에 따라 Info.plist 파일에 항목을 추가해야 합니다.
권한이 추가되면, 앱이 위치 서비스를 요청할 때 사용자가 위치 서비스 사용 권한을 허용해야 합니다. 사용자는 설정 > 개인정보 보호 > 위치 서비스로 이동하여 아래로 스크롤해 해당 앱을 찾은 다음 옵션을 선택하여 이 설정을 변경할 수 있습니다. 위치 서비스가 작동하려면 위치 서비스가 켜져 있어야 합니다.
전경 위치 서비스 권한 사용
앱이 실행 중일 때 위치 서비스를 사용하는 경우, Info.plist 파일에는 ‘ NSLocationWhenInUseUsageDescription ’ 키와 앱이 해당 서비스를 사용하는 이유를 사용자에게 설명하는 텍스트 문자열 값이 포함된 항목이 있어야 합니다.
<key>NSLocationWhenInUseUsageDescription</key>
<string>The reason why the app needs location services</string>백그라운드 위치 서비스 권한 사용
앱이 백그라운드에서 실행 중일 때도 위치 서비스를 사용하는 경우, 키가 NSLocationAlwaysAndWhenInUseUsageDescription 이고 이유를 텍스트 문자열 값으로 가진 항목과 함께 NSLocationWhenInUseUsageDescription 항목도 포함되어야 합니다.
<key>NSLocationWhenInUseUsageDescription</key>
<string>The reason why the app needs location services</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>The reason why the app needs location services</string>참고: Info.plist파일은 자동으로 생성되며, 별도의 조치를 취하지 않는 한 qmake 또는 CMake에 의해 변경 내용이 덮어쓰일 수 있습니다. 자세한 내용은 ‘플랫폼 참고 사항 - iOS’를 참조하십시오.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.