StoreRules

Rules · Adding a privacy manifest to your app or third-party SDK · Overview

Add a privacy manifest to your Swift package

In plain words

Swift package authors can include the privacy manifest as a package resource, and must explicitly declare it (or its directory) as a resource because Xcode doesn't recognize it by default.

  • Place PrivacyInfo.xcprivacy in the default resource location, Sources/<TargetName>, unless you specify an alternative location.
  • If resources are in a separate subfolder (e.g. Resources), add the privacy manifest to that directory instead.
  • Xcode doesn't recognize privacy manifest files as resources by default; declare the file or its containing directory as a package resource, e.g. with .process.
  • If you distribute a binary framework as a Swift package, check that the XCFramework bundle includes a privacy manifest for each supported platform.

Summary written by StoreRules and checked against the official text.

From the official text

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 …

Read the full official text ↗ Open in the StoreRules library Ask whether your app complies

Developers' cases about this clause

No cases yet.

Share your case