升级Xcode8后需要添加的一些权限-飞外

从xcode7升级到xcode8 苹果对很多隐私进行了控制 所以需要在infoplist里进行一些设置 要不然会出现crash的现象 这里先将关于隐私权限的东西记录一下 后续再总结一份其他的xcode8中的坑~

当我升级到Xcode8后,启动我的相机项目,直接crash,输出的日志如下: 2017-02-21 10:02:50.971378 QuickBooks[3469:202112] [access] 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.使用Xcode7启动,却没有问题,实际原因是上面的输出日志中最后一行就是

相册:

Key:Privacy - Photo Library Usage Description
Value:允许此权限才能保存图片

麦克风:


位置权限:

Key:Privacy - Location Usage Description
Value:允许此权限才能启用:定位功能


Key:Privacy - Location When In Use Usage DescriptionValue:允许此权限才能在应用运行期间启用:定位功能

Key:Privacy - Location Always Usage Description
Value:允许此权限才能一直启用:定位功能

日历权限:

Key:Privacy - Calendars Usage Description
Value:允许此权限才能访问:日历

提醒事项:

Key:Privacy - Reminders Usage Description
Value:允许此权限才能访问:提醒事项

运动与健康:

Key:Privacy - Motion Usage Description
Value:允许此权限才能访问:运动与健康

Key:Privacy - Health Update Usage Description
Value:允许此权限才能访问:健康更新

Key:Privacy - Health Share Usage Description
Value:允许此权限才能访问:健康数据分享

蓝牙权限:

Key:Privacy - Bluetooth Peripheral Usage Description
Value:允许此权限才能访问:蓝牙

媒体资料库: