首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >由于缺少使用说明(Xcode8),应用程序被拒绝

由于缺少使用说明(Xcode8),应用程序被拒绝
EN

Stack Overflow用户
提问于 2016-09-10 00:23:07
回答 6查看 80.5K关注 0票数 92

所以我今天收到这封邮件,说我的应用程序的最新版本被iTunes Connect拒绝了,因为缺少一些使用说明。准确地说:

此应用程序尝试在没有使用描述的情况下访问隐私敏感数据。应用程序的Info.plist必须包含一个带有字符串值的NSContactsUsageDescription密钥,用于向用户解释应用程序如何使用这些数据。

此应用程序尝试在没有使用描述的情况下访问隐私敏感数据。应用程序的Info.plist必须包含一个带有字符串值的NSCalendarsUsageDescription密钥,用于向用户解释应用程序如何使用这些数据。

此应用程序尝试在没有使用描述的情况下访问隐私敏感数据。应用程序的Info.plist必须包含一个带有字符串值的NSPhotoLibraryUsageDescription密钥,用于向用户解释应用程序如何使用这些数据。

此应用程序尝试在没有使用描述的情况下访问隐私敏感数据。应用程序的Info.plist必须包含一个带有字符串值的NSBluetoothPeripheralUsageDescription密钥,用于向用户解释应用程序如何使用这些数据。

此应用程序尝试在没有使用描述的情况下访问隐私敏感数据。应用程序的Info.plist必须包含一个带有字符串值的NSMicrophoneUsageDescription密钥,用于向用户解释应用程序如何使用这些数据。

此应用程序尝试在没有使用描述的情况下访问隐私敏感数据。应用程序的Info.plist必须包含一个带有字符串值的NSMotionUsageDescription密钥,用于向用户解释应用程序如何使用这些数据。

一旦纠正了这些问题,您就可以重新交付更正后的二进制文件。

我发现在iOS 10中这些都是强制的,但唯一的问题是我的应用程序并没有请求访问其中任何一个的许可。我以为只有当你真的请求许可时,描述才是强制性的?

是因为我的一个依赖项(Cocoapods)可能包含一些代码来请求这些权限吗?或者,即使我从未要求查看用户的日历、联系人等,这些描述也是强制的吗?

EN

回答 6

Stack Overflow用户

回答已采纳

发布于 2016-09-10 00:28:20

对于您链接的任何内容或您尝试访问的任何框架,这些描述都是必需的。如果未提供使用描述,则在尝试访问内容时会生成错误,因此,如果您收到这些错误,则必须由您的应用请求它们。您应该发现为什么您的应用程序或其框架需要这些,并在您的应用程序的info.plist中添加适当的用法描述。

或者更理想的情况是,如果你不需要访问,看看是否有一种方法可以不请求它(或者使用不必要的框架)。

票数 33
EN

Stack Overflow用户

发布于 2016-09-27 14:14:39

iOS 10必须在info.plist中添加权限只需查看此BLOG :- settings-in-ios-10即可。

根据您的error日志在info.plist文件中添加权限

注意:在字符串值中写入适当的权限原因,否则苹果将再次拒绝应用程序。

NSCameraUsageDescription

代码语言:javascript
复制
<key>NSCameraUsageDescription</key>
    <string>You have to describe the real usage for a human.</string>

NSContactsUsageDescription

代码语言:javascript
复制
<key>NSContactsUsageDescription</key>
    <string>You have to describe the real usage for a human.</string>

NSPhotoLibraryUsageDescription

代码语言:javascript
复制
<key>NSPhotoLibraryUsageDescription</key>
    <string>You have to describe the real usage for a human.</string>

NSBluetoothPeripheralUsageDescription

代码语言:javascript
复制
<key>NSBluetoothPeripheralUsageDescription</key>
    <string>You have to describe the real usage for a human.</string>

NSMicrophoneUsageDescription

代码语言:javascript
复制
<key>NSMicrophoneUsageDescription</key>
    <string>You have to describe the real usage for a human.</string>

NSMotionUsageDescription

代码语言:javascript
复制
<key>NSMotionUsageDescription</key>
    <string>$(PRODUCT_NAME) motion use.</string>

NSLocationAlwaysUsageDescription

代码语言:javascript
复制
<key>NSLocationAlwaysUsageDescription</key>
    <string>You have to describe the real usage for a human.</string>

NSLocationUsageDescription

代码语言:javascript
复制
<key>NSLocationUsageDescription</key>
    <string>You have to describe the real usage for a human.</string>

NSLocationWhenInUseUsageDescription

代码语言:javascript
复制
<key>NSLocationWhenInUseUsageDescription</key>
    <string>You have to describe the real usage for a human.</string>

NSRemindersUsageDescription

代码语言:javascript
复制
<key>NSRemindersUsageDescription</key>
    <string>You have to describe the real usage for a human.</string>

NSSiriUsageDescription

代码语言:javascript
复制
<key>NSSiriUsageDescription</key>
    <string>You have to describe the real usage for a human.</string>

NSVideoSubscriberAccountUsageDescription

代码语言:javascript
复制
<key>NSVideoSubscriberAccountUsageDescription</key>
    <string>You have to describe the real usage for a human.</string>

NSSpeechRecognitionUsageDescription

代码语言:javascript
复制
<key>NSSpeechRecognitionUsageDescription</key>
    <string>You have to describe the real usage for a human.</string>

NSCalendarsUsageDescription

代码语言:javascript
复制
<key>NSCalendarsUsageDescription</key>
    <string>You have to describe the real usage for a human.</string>

票数 142
EN

Stack Overflow用户

发布于 2016-10-06 17:05:38

您可以在info.plist中添加以下内容:

代码语言:javascript
复制
<key>NSCalendarsUsageDescription</key>
    <string>Explain the reasons for accessing...</string>
    <key>NSPhotoLibraryUsageDescription</key>
    <string>Explain the reasons for accessing...</string>
    <key>NSBluetoothPeripheralUsageDescription</key>
    <string>Explain the reasons for accessing...</string>

等。

希望会帮助一些人..。

票数 9
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39415895

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档