使用Xcode8 提交的时候出现此构建版本无效,然后收到了这样一份邮件
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.
Once these issues have been corrected, you can then redeliver the corrected binary.
Regards,
The App Store team
![](https://img.haomeiwen.com/i1428545/975c0b6479995644.png)
发现是隐私权限的问题 访问的摄像头、麦克风等硬件,都需要提前请求应用权限、允许后才可以使用,于是就在.plist里面对NSPhotoLibraryUsageDescription 添加描述如下图
![](https://img.haomeiwen.com/i1428545/6c28ced33aabcbcd.png)
然后重新打包上传就成功了。
![](https://img.haomeiwen.com/i1428545/72a46ca8cd4e7dd3.png)
![](https://img.haomeiwen.com/i1428545/a440489564c442e2.png)
网友评论