StoreRules

规则 · 隐私清单文件 · 概览

Create a privacy manifest

通俗解读

在 Xcode 中为应用或第三方 SDK 目标添加名为 PrivacyInfo.xcprivacy 的隐私清单,其中包含跟踪、跟踪域名、收集的数据类型和已访问的必需理由 API 等顶层键。

  • 在 Xcode 中依次选择 File > New File > App Privacy File(位于 Resource 部分),勾选您的目标,然后点击 Create。
  • PrivacyInfo.xcprivacy 是打包隐私清单所要求的文件名。
  • 要让 Xcode 在生成隐私报告时使用该文件,它必须位于您目标的资源中。
  • 以静态库形式分发的 SDK 应使用 Xcode 15+ 的静态框架支持:创建 Mach-O 类型为 Static Library 的框架目标,并将清单放在其 bundle 资源中。
  • NSPrivacyTracking 是按 App Tracking Transparency 定义的跟踪布尔值;当其为 true 时,您需要在 NSPrivacyTrackingDomains 中列出域名。
  • 如果没有 App Tracking Transparency 许可,对 NSPrivacyTrackingDomains 中域名的网络请求将失败,且您的应用会收到错误。
  • NSPrivacyCollectedDataTypes 列出收集的数据类型;NSPrivacyAccessedAPITypes 列出需要理由的已访问 API。

摘要由 StoreRules 撰写,并与官方原文核对。

官方原文摘录

To add the privacy manifest to your app or third-party SDK in Xcode, follow these steps: - Choose File New File. - Scroll down to the Resource section, and select App Privacy File type. - Click Next. - Check your app or third-party SDK’s target in the Targets list. - Click Create. By default, the file is named …

阅读官方全文 ↗ 在 StoreRules 规则库中打开 询问你的应用是否合规

开发者关于此条款的案例

暂无案例。

分享你的案例