블로그 이미지
Every unexpected event is a path to learning for you. blueasa

카테고리

분류 전체보기 (2794)
Unity3D (852)
Programming (478)
Server (33)
Unreal (4)
Gamebryo (56)
Tip & Tech (185)
협업 (11)
3DS Max (3)
Game (12)
Utility (68)
Etc (98)
Link (32)
Portfolio (19)
Subject (90)
iOS,OSX (55)
Android (14)
Linux (5)
잉여 프로젝트 (2)
게임이야기 (3)
Memories (20)
Interest (38)
Thinking (38)
한글 (30)
PaperCraft (5)
Animation (408)
Wallpaper (2)
재테크 (18)
Exercise (3)
나만의 맛집 (3)
냥이 (10)
육아 (16)
Total
Today
Yesterday

iOS 10에서 Privacy 설정

기존 앱을 XCode8로 다시 빌드하면 
iOS 10에서 카메라나 다른 기능을 사용시 아무런 경고도 없이 Crash가 발생하게 된다.

디버그 메시지는 다음과 같다.

This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app’s Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.

iOS 10에서 아래와 같은 기능을 사용하기 위해서는 사용자의 확인 메시지를 설정해줘야 한다.

사용 설명을 요구하는 API 항목들

Data ClassXCode KeyRaw Info.plist Key
Apple MusicPrivacy - Media Library Usage DescriptionNSAppleMusicUsageDescription
BluetoothPrivacy - Bluetooth Peripheral Usage DescriptionNSBluetoothPeripheralUsageDescription
CalendarPrivacy - Calendars Usage DescriptionNSCalendarsUsageDescription
CameraPrivacy - Camera Usage DescriptionNSCameraUsageDescription
ContactsPrivacy - Contacts Usage DescriptionNSContactsUsageDescription
HealthPrivacy - Health Share Usage Description Privacy - Health Update Usage DescriptionNSHealthShareUsageDescription NSHealthUpdateUsageDescription
HomePrivacy - HomeKit Usage DescriptionNSHomeKitUsageDescription
LocationPrivacy - Location Always Usage Description Privacy - Location When In Use Usage DescriptionNSLocationAlwaysUsageDescription NSLocationWhenInUseUsageDescription
MicrophonePrivacy - Microphone Usage DescriptionNSMicrophoneUsageDescription
MotionPrivacy - Motion Usage DescriptionNSMotionUsageDescription
PhotosPrivacy - Photo Library Usage DescriptionNSPhotoLibraryUsageDescription
RemindersPrivacy - Reminders Usage DescriptionNSRemindersUsageDescription
SiriPrivacy - Siri Usage DescriptionNSSiriUsageDescription
Speech RecognitionPrivacy - Speech Recognition Usage DescriptionNSSpeechRecognitionUsageDescription
TV Provider AccountPrivacy - TV Provider Usage DescriptionNSVideoSubscriberAccountUsageDescription

Info.plist에서 Privacy 설정을 추가해주면 된다.


다음은 사진 라이브러리와 카메라 접근시 사용 예제입니다.

Privacy - Camera Usage Description
Privacy - Photo Library Usage Description

[추가] Decription String을 필수로 넣어야 함. - blueasa

[Privacy - Camera Usage Description] Everyplay requires access to the Camera library

[Privacy - Photo Library Usage Description] Everyplay requires access to the photo library

[Privacy - Calenders Library Usage Description] Some ad content may access calendar


앱에서 사진 라이브러리 접근시 다음과 같은 메시지를 보게 된다.



출처: http://kka7.tistory.com/40 [까칠하게 살자]


[참조1] https://dev.tapjoy.com/ko/submitting-ios-results-warning-nscalendarsusagedescription/


[참조2] http://docs.telerik.com/platform/knowledge-base/troubleshooting/troubleshooting-app-rejected-from-app-store-missing-info-plist-key



반응형
Posted by blueasa
, |