最近升级了Xcode8.0,用Xcode8.0上传项目时提交了半天都说提交成功,但是在iTunesConnect里 我的APP 构建版本 一直不出现,联系苹果后 是这样回复我的
Dear developer,
We have discovered one or more issues with your recent delivery for "星设汇 - 个性珠宝首饰,婚戒对戒独家定制". To process your delivery, the following issues must be corrected:
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.
Once these issues have been corrected, you can then redeliver the corrected binary.
意思是info.plist里面没有设置NSPhotoLibraryUsageDescription、NSCameraUsageDescription、NSContactsUsageDescription、NSMicrophoneUsageDescription等字段,之前这些都是预设的不用加,现在强制了,下面贴上解决方案
大概意思就是得在plist里面必须加上NSPhotoLibraryUsageDescription和NSCameraUsageDescription的键值对才行,之前都是默认的,现在必须加,要不不让通过,真是坑啊~~具体配置如下图:
大概统计了一下需要加的一些字段列在下面:
NSContactsUsageDescription -> 通讯录
NSMicrophoneUsageDescription -> 麦克风
NSPhotoLibraryUsageDescription -> 相册
NSCameraUsageDescription -> 相机
NSLocationAlwaysUsageDescription -> 地理位置
NSLocationWhenInUseUsageDescription -> 地理位置
大概就是以上的一些字段,写一篇博客总结一下,方便以后用到的时候能找到,如果大家有补充的可以告诉我一下,谢谢大家的阅读
原文地址:http://blog.csdn.net/zp511253886/article/details/52584210