国内最全IT社区平台 联系我们 | 收藏本站
华晨云阿里云优惠2
您当前位置:首页 > php开源 > 综合技术 > [置顶] xcode8 iOS10上关于NSPhotoLibraryUsageDescription NSCameraUsageDescription 等问题

[置顶] xcode8 iOS10上关于NSPhotoLibraryUsageDescription NSCameraUsageDescription 等问题

来源:程序员人生   发布时间:2016-11-09 16:52:08 阅读次数:4777次

最近升级了Xcode8.0,真是很多坑啊,填完1个来另外1个,今天又遇到了1个,用Xcode8.0上传项目时被驳回说是info.plist里面没有设置NSPhotoLibraryUsageDescription、NSCameraUsageDescription、NSContactsUsageDescription、NSMicrophoneUsageDescription等字段,之前这些都是预设的不用加,现在强迫了,真是愁闷,下面贴上解决方案

被驳回的缘由:

This app attempts 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.

This app attempts 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.

大概意思就是得在plist里面必须加上NSPhotoLibraryUsageDescription和NSCameraUsageDescription的键值对才行,之前都是默许的,现在必须加,要不不让通过,真是坑啊~~具体配置以下图:

这里写图片描述

大概统计了1下需要加的1些字段列在下面:

  • NSContactsUsageDescription -> 通讯录

  • NSMicrophoneUsageDescription -> 麦克风

  • NSPhotoLibraryUsageDescription -> 相册

  • NSCameraUsageDescription -> 相机

  • NSLocationAlwaysUsageDescription -> 地理位置

  • NSLocationWhenInUseUsageDescription -> 地理位置

大概就是以上的1些字段,写1篇博客总结1下,方便以后用到的时候能找到,如果大家有补充的可以告知我1下,谢谢大家的浏览

生活不易,码农辛苦
如果您觉得本网站对您的学习有所帮助,可以手机扫描二维码进行捐赠
程序员人生
------分隔线----------------------------
分享到:
------分隔线----------------------------
关闭
程序员人生