比如访问的摄像头、麦克风等硬件,都需要提前请求应用权限、允许后才可以使用,或者现在要提前声明,虽然以往要求不严格。比如在iOS10中访问通讯录时,强制必须在Info.plist中加入NSContactsUsageDescription等描述,否则应用会崩溃。
***This app has crashed because itattempted to access privacy-sensitive data without a usage description. Theapp‘s Info.plist must contain an NSCameraUsageDescriptionkey with a stringvalue explaining to the user how the app uses this data.
Photo Library
NSPhotoLibraryUsageDescription
Camera
NSCameraUsageDescription
Microphone
NSMicrophoneUsageDescription
Location
NSLocationUsageDescription
Location When In Use
NSLocationWhenInUseUsageDescription
Location Always
NSLocationAlwaysUsageDescription
Calendars
NSCalendarsUsageDescription
Reminders
NSRemindersUsageDescription
Motion
NSMotionUsageDescription
Health Update
NSHealthUpdateUsageDescription
Health Share
NSHealthShareUsageDescription
Bluetooth Peripheral
NSBluetoothPeripheralUsageDescription
麦克风权限:Privacy - Microphone Usage Description 是否允许此App使用你的麦克风?
相机权限: Privacy - Camera Usage Description 是否允许此App使用你的相机?
相册权限: Privacy - Photo Library Usage Description 是否允许此App访问你的媒体资料库?通讯录权限: Privacy - Contacts Usage Description 是否允许此App访问你的通讯录?
蓝牙权限:Privacy - Bluetooth Peripheral Usage Description 是否许允此App使用蓝牙?
语音转文字权限:Privacy - Speech Recognition Usage Description 是否允许此App使用语音识别?
日历权限:Privacy - Calendars Usage Description 是否允许此App使用日历?
定位权限:Privacy - Location When In Use Usage Description 我们需要通过您的地理位置信息获取您周边的相关数据
定位权限: Privacy - Location Always Usage Description 我们需要通过您的地理位置信息获取您周边的相关数据