我们注意到最近提交的以下应用的App Store审查存在一个或多个问题:

Version 1.0.30
Build 2
Although submission for App Store review was successful, you may want to correct the following issues in your next submission for App Store review. Once you've corrected the issues, upload a new binary to App Store Connect.

ITMS-91053: Missing API declaration - Your app’s code in the “Runner” file references one or more APIs that require reasons, including the following API categories: NSPrivacyAccessedAPICategoryFileTimestamp. While no action is required at this time, starting May 1, 2024, when you upload a new app or app update, you must include a NSPrivacyAccessedAPITypes array in your app’s privacy manifest to provide approved reasons for these APIs used by your app’s code. For more details about this policy, including a list of required reason APIs and approved reasons for usage, visit: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api.

ITMS-91053: Missing API declaration - Your app’s code in the “Runner” file references one or more APIs that require reasons, including the following API categories: NSPrivacyAccessedAPICategorySystemBootTime. While no action is required at this time, starting May 1, 2024, when you upload a new app or app update, you must include a NSPrivacyAccessedAPITypes array in your app’s privacy manifest to provide approved reasons for these APIs used by your app’s code. For more details about this policy, including a list of required reason APIs and approved reasons for usage, visit: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api.

ITMS-91053: Missing API declaration - Your app’s code in the “Runner” file references one or more APIs that require reasons, including the following API categories: NSPrivacyAccessedAPICategoryDiskSpace. While no action is required at this time, starting May 1, 2024, when you upload a new app or app update, you must include a NSPrivacyAccessedAPITypes array in your app’s privacy manifest to provide approved reasons for these APIs used by your app’s code. For more details about this policy, including a list of required reason APIs and approved reasons for usage, visit: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api.

ITMS-91053: Missing API declaration - Your app’s code in the “Runner” file references one or more APIs that require reasons, including the following API categories: NSPrivacyAccessedAPICategoryUserDefaults. While no action is required at this time, starting May 1, 2024, when you upload a new app or app update, you must include a NSPrivacyAccessedAPITypes array in your app’s privacy manifest to provide approved reasons for these APIs used by your app’s code. For more details about this policy, including a list of required reason APIs and approved reasons for usage, visit: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api.

Apple开发者关系

enter image description here enter image description here

推荐答案

您必须在PrivacyInfo. xcdracy文件中添加一个前面列出的原因(只是代码),如下面的,您还可以在此链接中查看所有选项:

Describing use of required reason API

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>NSPrivacyAccessedAPITypes</key>
    <array>
        <dict>
            <key>NSPrivacyAccessedAPIType</key>
            <string>NSPrivacyAccessedAPICategoryDiskSpace</string>
            <key>NSPrivacyAccessedAPITypeReasons</key>
            <array>
                <string>E174.1</string>
            </array>
        </dict>
        <dict>
            <key>NSPrivacyAccessedAPIType</key>
            <string>NSPrivacyAccessedAPICategoryUserDefaults</string>
            <key>NSPrivacyAccessedAPITypeReasons</key>
            <array>
                <string>CA92.1</string>
            </array>
        </dict>
    </array>
</dict>
</plist>

Ios相关问答推荐

在iOS中禁用URLSession自动重试机制

如何在SwiftUI中扩展双击的可检测区域?

在SwiftUI中动态隐藏列表的空部分

为什么iOS委派在KMM中不能正常工作?

一堆UIGraphics方法在iOS 17中被弃用,没有明确的替代方法?

当 .searchable 修饰符处于活动状态时,如何将变量设置为 false?

长按 SwiftUI 更改项目的顺序

使用 SwiftUI 显示多个 VNRecognizedObjectObservation 边界框时偏移量错误

具有一个参数/参数的泛型类的泛型类

如何根据条件快速将返回类型设为 LinearGradient 或 AngularGradient?

iOS 16 堆栈视图中按钮的奇怪动画

在所有 tableview / collectionview 中禁用滚动指示器

如何在不支持并发的自动关闭中修复'async'调用?

SwiftUI - 在ForEach的每个元素之间自动添加分隔符

使用 Vim 代替(或与)Xcode 进行 iOS 开发

如何在导航栏右侧添加多个 UIBarButtonItem?

单击 GoogleSignIn 按钮时应用程序崩溃

如何在 Android 和 iPhone 的移动应用程序中实施推荐计划

为给定的 UIColor 获取更亮和更暗的 colored颜色 变化

使用 swift 3 在 UIView 上添加阴影