在我第一次从 Xcode 8 上传到 iTunes Store 时,我收到了来自 Apple 的以下消息
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.
我进行了研究,然后将以下条目添加到我的 info.plist 中
然后我将新版本上传到 iTunes 商店,但再次收到相同的警告电子邮件。
我做错了什么?
编辑
我添加了媒体库使用说明(如下文 Dan Clark 所建议)
但 apple 再次拒绝了构建并回复了完全相同的警告电子邮件。
最佳答案
好吧,事实证明,我在 Xcode 的左侧文件列表中编辑的 info.plist 并不是 Xcode 在 identities 下引用的 plist。它引用了备份文件夹中的 info.plist。
因此使用说明 key 从来没有问题。
关于ios - NSPhotoLibraryUsageDescription 在 info.plist 中提供,但苹果仍然要求提供一个,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39541350/