iOS10 隐私权限设置

来源:互联网 发布:团队成员介绍页面源码 编辑:程序博客网 时间:2024/04/27 20:16

Xcode8,iOS10.0系统中,使用相机功能的时候报错

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.

主要原因是iOS10之后,相册,位置,麦克风等这些需要权限验证的东西,都需要在plist文件里面添加响应的键值对。否则都会报错,使用Privacy开头的都需要添加到plist文件里面。
这里写图片描述
后面的字符串是授权时候回显示的字样
这里写图片描述

0 0
原创粉丝点击