升级了Xcode8.0,用Xcode8.0上传项目时被驳回说是info.plist里面没有设置NSPhotoLibraryUsageDescription、NSCameraUsageDescription、NSContactsUsageDescription、NSMicrophoneUsageDescription等字段,之前这些都是预设的不用加,现在强制了,真是郁闷,下面贴上解决方案
被驳回的原因:Dear developer,We have discovered one or more issues with your recent delivery for "XXX". To PRocess your delivery, the following issues must be corrected:Missing Info.plist key - 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.Once these issues have been corrected, you can then redeliver the corrected binary.Regards,The App Store team
翻译过就是:亲爱的开发者,我们发现了一个或多个问题你最近交付”XXX”。处理您的交付,下列问题必须纠正:失踪的Info.plist关键这个程序尝试访问的隐私敏感数据没有使用说明。应用程序的Info.plist必须包含一个字符串值,解释如何使用这些数据的应用程序的用户nsphotolibraryusagedescription关键。一旦这些问题得到纠正,然后你可以把修正后的二进制。当做,应用商店团队
大概意思就是必须在plist里面必须加上NSPhotoLibraryUsageDescription和NSCameraUsageDescription的键值对才行,要不不让通过:
大概统计了一下需要加的一些字段列在下面:
NSContactsUsageDescription -> 通讯录
NSMicrophoneUsageDescription -> 麦克风
NSPhotoLibraryUsageDescription -> 相册
NSCameraUsageDescription -> 相机
NSLocationAlwaysUsageDescription -> 地理位置
NSLocationWhenInUseUsageDescription -> 地理位置
Privacy - Bluetooth Peripheral Usage Description -> 蓝牙权限
Privacy - Speech Recognition Usage Description -> 语音转文字权限
Privacy - Calendars Usage Description -> 日历权限
添加完成后基本就解决了失败原因
新闻热点
疑难解答