iOS10系统下调用系统相册、相机功能,遇到项目崩溃的情况,打印出这样的信息
This app has crashed because it attempted to access privacy-sensitive data without a usage description.The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.
相机权限
NSCameraUsageDescriptioncameraDesciption
相册权限
NSPhotoLibraryUsageDescriptionphotoLibraryDesciption
其他权限
NSLocationWhenInUseUsageDescription
地理位置权限
NSLocationUsageDescription
地理位置权限
NSLocationAlwaysUsageDescription
地理位置权限
NSVideoSubscriberAccountUsageDescription
NSBluetoothPeripheralUsageDescription
蓝牙权限
NSSpeechRecognitionUsageDescription
语音识别权限
NSSiriUsageDescription
Siri权限
NSRemindersUsageDescription
NSPhotoLibraryUsageDescription
相册权限
kTCCServiceMediaLibrary
NSMotionUsageDescription
运动权限
NSMicrophoneUsageDescription
麦克风权限
NSAppleMusicUsageDescription
音乐权限
NSLocationWhenInUseUsageDescription
地理位置权限
NSLocationUsageDescription
地理位置权限
NSLocationAlwaysUsageDescription
地理位置权限
NSHomeKitUsageDescription
NSHealthUpdateUsageDescription
健康权限
NSHealthShareUsageDescription
健康权限
NSContactsUsageDescription
通讯录权限
NSCameraUsageDescription
摄像头权限
NSCalendarsUsageDescription
日历权限
关闭xcode8输出台多余信息
Xcode顶部点击Product—>Scheme—>Edit Scheme—>Arguments—>Environment Variables中添加Name:“OS_ACTIVITY_MODE”.Value:"disable"