ios - 应用程序被拒绝 - 缺少 info.Plist key

标签 ios iphone xcode

尝试将我的第一个应用程序部署到 App Store,但遇到了一些错误。

由于以下原因,我的应用程序被 App Store 拒绝:

Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSContactsUsageDescription key with a string value explaining to the user how the app uses this data.

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.

Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data.

Missing Info.plist key - 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.

My info.plist file

有人可以给我更多信息吗?如何添加这些键?

对 Swift 和 Xcode 来说相当陌生,所以这可能是一个 super 简单的修复!

感谢您的帮助!

最佳答案

您需要添加特定的键才能使用某些功能。您必须添加描述来向用户解释为什么您需要访问这些功能。您需要添加的内容(根据您的问题)如下。包含键后,您可以输入描述作为值。

  • 隐私 - 联系人使用说明
  • 隐私 - 照片库使用说明
  • 隐私 - 麦克风使用说明
  • 隐私 - 相机使用说明

    info.plist screenshot

关于ios - 应用程序被拒绝 - 缺少 info.Plist key ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45289840/

相关文章:

xcode - 由于类扩展而导致快速编译错误

ios - 将相机旋转与 SceneView 中的网格/刻度对齐

ios - 添加到购物车需要在 iPhone 中登录吗?

ios - Xcode 3.2.5 的“项目信息/构建”选项卡中缺少 GCC 4.2 选项

ios - 适用于 iOS 的 Xcode 本地化 - 法语 (fr) 和法语比利时 (fr-BE) 之间的区别

iphone - 我可以制作具有这些规范的 iPhone 应用程序吗?

ios - 每次呈现时查看 Controller 原点更改

ios - 后台同步Core Data数据

IOS Objective-c : Class NSObject derived is released but memory start increase

iphone - 从后台返回时重新加载 View