StoreRules

规则 · 向您的应用或第三方 SDK 添加隐私清单 · 概述

Add a privacy manifest to your Swift package

通俗解读

Swift 包作者可以将隐私清单作为包资源包含在内,并且必须将其(或其所在目录)明确声明为资源,因为 Xcode 默认不会识别它。

  • 将 PrivacyInfo.xcprivacy 放在默认资源位置 Sources/<TargetName>,除非您指定了其他位置。
  • 如果资源位于单独的子文件夹(例如 Resources)中,则应将隐私清单添加到该目录中。
  • Xcode 默认不会将隐私清单文件识别为资源;请将该文件或其所在目录声明为包资源,例如使用 .process。
  • 如果您以 Swift 包形式分发二进制框架,请检查 XCFramework 包是否为每个受支持的平台包含隐私清单。

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

官方原文摘录

A Swift package’s resources can include its privacy manifest file. For more information about adding resource files to Swift packages, see Bundling resources with a Swift package. Source files reside in a subfolder of a package’s Sources directory that has the same name as the target they belong to. This is the …

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

开发者关于此条款的案例

暂无案例。

分享你的案例