Pocket How
App Store Connect and review

Privacy manifest and required reason APIs: PrivacyInfo.xcprivacy explained

iOS 17+, iPadOS 17+. Intermediate. By Cihat Salik, .

Short answer

Add a PrivacyInfo.xcprivacy file to each target and SDK that uses a required reason API (file timestamps, system boot time, disk space, active keyboards, UserDefaults), and list an approved reason code for each category. Declare tracking domains and collected data types too, generate Xcode's privacy report from an archive, and use it to fill in your App Store privacy labels.

The problem the manifest solves

Apple wants to know two things about every app and SDK: which device signals it reads that could be used for fingerprinting, and what personal data it sends off the device. Since May 1, 2024, App Store Connect refuses new apps and updates that use a required reason API without declaring why. The refusal arrives as an email naming the missing category, usually with the code ITMS-91053. The fix is a property list called PrivacyInfo.xcprivacy, and getting it right also makes your App Store privacy labels easier to fill in.

What goes in a privacy manifest

A privacy manifest is a property list with four top-level keys, all available from iOS 17:

Key Type What it records
NSPrivacyTracking Boolean Whether the app or SDK uses data for tracking as App Tracking Transparency defines it
NSPrivacyTrackingDomains Array of strings Internet domains that engage in tracking. Requires NSPrivacyTracking set to true
NSPrivacyCollectedDataTypes Array of dictionaries Each data type collected, whether it is linked to the user, whether it is used to track, and why it is collected
NSPrivacyAccessedAPITypes Array of dictionaries Each required reason API category used, with one or more approved reason codes

The data-collection part applies on every platform. The required reason API part applies on iOS, iPadOS, tvOS, visionOS and watchOS. Antoine van der Lee notes in his ITMS-91053 walkthrough that macOS does not currently need the API declarations.

Create the file

In Xcode, choose File > New File, scroll to Resource and pick App Privacy File. Tick the right target. The name must stay PrivacyInfo.xcprivacy; it is the required name for bundled manifests. The file has to be in the target’s resources, or Xcode will not include it when it builds the privacy report.

If you ship an SDK as a static library, Apple’s guidance is to wrap it in a static framework target (Mach-O type set to Static Library) so it can carry resources, including its own manifest.

Required reason APIs

Apple groups the covered APIs into categories. Each category has a fixed list of reason codes, and you must pick the ones that match what you actually do. The categories in Apple’s NSPrivacyAccessedAPIType reference:

Category key Typical APIs Common reasons
NSPrivacyAccessedAPICategoryFileTimestamp creationDate, modificationDate, contentModificationDateKey, stat, getattrlist C617.1 files in your container, app group or CloudKit container. 3B52.1 files the user picked. DDA9.1 timestamps shown to the user
NSPrivacyAccessedAPICategorySystemBootTime systemUptime, mach_absolute_time() 35F9.1 measure elapsed time between in-app events or run timers. 8FFB.1 compute absolute timestamps for in-app events
NSPrivacyAccessedAPICategoryDiskSpace volumeAvailableCapacityKey, systemFreeSize, statfs E174.1 check there is room to write files. 85F4.1 show disk space to the user
NSPrivacyAccessedAPICategoryActiveKeyboards activeInputModes 54BD.1 adapt the UI to the active keyboard. 3EC4.1 custom keyboard apps
NSPrivacyAccessedAPICategoryUserDefaults UserDefaults CA92.1 data only your app reads. 1C8F.1 data shared within your App Group

Every reason comes with conditions. Most say the data, or anything derived from it, may not leave the device. For example, DDA9.1 lets you display file timestamps but not upload them, and 35F9.1 allows sending elapsed-time values but nothing else derived from boot time. SDK-only reasons (0A2A.1, C56D.1) cover wrapper functions that the host app calls.

UserDefaults is the category almost every app hits. If you use UserDefaults.standard for your own settings, CA92.1 is the reason. If you share defaults with a widget or extension through UserDefaults(suiteName:), add 1C8F.1.

A minimal manifest

Here is a manifest for a typical app that stores settings in standard and App Group defaults, reads modification dates of its own cached files, collects no data and does not track:

<?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>NSPrivacyTracking</key>
    <false/>
    <key>NSPrivacyTrackingDomains</key>
    <array/>
    <key>NSPrivacyCollectedDataTypes</key>
    <array/>
    <key>NSPrivacyAccessedAPITypes</key>
    <array>
        <dict>
            <key>NSPrivacyAccessedAPIType</key>
            <string>NSPrivacyAccessedAPICategoryUserDefaults</string>
            <key>NSPrivacyAccessedAPITypeReasons</key>
            <array>
                <string>CA92.1</string>
                <string>1C8F.1</string>
            </array>
        </dict>
        <dict>
            <key>NSPrivacyAccessedAPIType</key>
            <string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
            <key>NSPrivacyAccessedAPITypeReasons</key>
            <array>
                <string>C617.1</string>
            </array>
        </dict>
    </array>
</dict>
</plist>

If you edit it in Xcode’s property list editor, paste the raw keys and Xcode switches to readable names. Van der Lee points out this is the quickest way to avoid typos in the category strings.

Finding what you use

Start with the rejection email; it names the category. Then search your own code for the APIs listed in each category, including indirect use such as FileManager.attributesOfItem(atPath:) returning a modification date, or a timer library that reads systemUptime. Declare only what you use. Apple’s rule is that the declared reasons must match the app’s behaviour as presented to users, and you may use the data only for those reasons.

If you need one of these APIs for a reason Apple does not list, Apple has a form to request a new approved reason. Until it is approved, you cannot ship that use.

Every bundle needs its own manifest

This is where most confusion comes from. Apple’s rule: each executable or dynamic library that uses a required reason API needs a privacy manifest in its own bundle. A third-party SDK cannot lean on your app’s manifest, and your app’s manifest does not cover the SDK.

In practice:

  • Your app target: one manifest for your own code.
  • App extensions: van der Lee recommends one manifest per target, unless the reasons match exactly.
  • Swift packages you write: Apple’s documentation lists Swift packages among the SDK formats that can carry a manifest, so add PrivacyInfo.xcprivacy to the resources of the package target that calls the API.
  • Third-party SDKs: update to a version that ships its own manifest. If the maintainer has not added one, you are blocked until they do or you replace the SDK.

Third-party SDKs: manifests and signatures

Apple publishes a list of commonly used SDKs (86 names when this was written, from Alamofire and Firebase modules to Flutter plugins and OneSignal) that have extra requirements. Per Apple’s third-party SDK requirements, a new app, or an update that adds one of these SDKs, must include the SDK’s privacy manifest, and when the SDK is a binary dependency, its signature. This applies to any version of a listed SDK and to SDKs that repackage one.

Signatures protect you against a tampered binary. Apple’s article on verifying the origin of XCFrameworks explains what Xcode does with them:

  • Select the XCFramework in the Project navigator and the File inspector shows whether it is signed and by which team, or the SHA-256 fingerprint of a self-signed certificate.
  • If a later version is signed by a different team, has its signature removed, or the signature becomes invalid, the build fails with an error saying the framework “is not signed with the expected identity”.
  • If the change is legitimate (the SDK changed owners, or you now build it yourself), choose Accept Change in the Issues navigator. If nobody can explain the change, move the framework to the Trash and restore a trusted copy.

Treat an unexplained signature change as a security incident. Apple’s guidance is to audit where your frameworks come from and your build environment, even after reverting.

From manifest to privacy labels

The manifest and the App Store privacy labels describe the same facts, and Xcode can bridge them. Archive the app (Product > Archive), Control-click the archive in the Organizer and choose Generate Privacy Report. Xcode merges every manifest in the app, yours and the SDKs’, into a PDF laid out like the labels.

Use that report when you answer the App Privacy questions in App Store Connect, and remember the definitions from Apple’s privacy details page:

  • Collect means sending data off the device in a way that you or a partner can access for longer than it takes to service the request. Data processed only on device is not collected.
  • Linked means tied to the user’s identity through an account, device or other details, unless it is de-identified before collection and never re-linked.
  • Tracking means linking data from your app with data from other companies’ apps, websites or offline properties for targeted ads or ad measurement, or sharing it with a data broker.

You are responsible for what SDKs collect. Apple’s example: if an SDK combines your app’s data with other apps’ data for ad targeting, that counts as tracking for your app, even if you never use it that way.

You can update your privacy answers at any time without a new app version. Do it as soon as you add or remove an SDK.

When you fill in NSPrivacyCollectedDataTypes, use only Apple’s listed data types and purposes. The documentation warns that Xcode will not build the privacy report correctly if you invent your own values.

App Tracking Transparency

If NSPrivacyTracking is true, App Tracking Transparency applies. From the WWDC23 session Get started with privacy manifests: when the user has not granted permission, the system blocks connections to every domain listed in NSPrivacyTrackingDomains in any manifest in your app. If one host serves both tracking and non-tracking traffic, split it into separate hostnames and declare only the tracking one.

The rules from Apple’s User Privacy and Data Use page:

  • Ask before tracking or reading the advertising identifier. Without permission, the identifier is all zeros.
  • Do not gate features on accepting or reward users for accepting (Guideline 5.1.2(i)).
  • Do not track people who declined through other identifiers such as hashed emails, and do not fingerprint.
  • A screen before the prompt is allowed if it is honest about how you use the data.
  • Add NSUserTrackingUsageDescription to Info.plist with a clear purpose.

The EU expanded prompt in iOS 27.2

Starting with iOS 27.2 and iPadOS 27.2, ATTrackingManager has requestTrackingAuthorization(preferExpandedInterface:additionalInformationAction:). In the EU it can show a full-page sheet with Markdown text from NSUserTrackingMarkdownUsageDescription and an optional Additional Information button. In France, Germany, Italy, Poland and Romania only this full-page version is available, and the system uses it whatever you pass for preferExpandedInterface. Outside the EU it behaves like the original method. In the EU you may also ask again one year after the user’s last answer, unless they turned off tracking requests in Settings.

import AppTrackingTransparency

@MainActor
func requestTrackingIfNeeded() async -> ATTrackingManager.AuthorizationStatus {
    let current = ATTrackingManager.trackingAuthorizationStatus
    guard current == .notDetermined else { return current }

    if #available(iOS 27.2, *) {
        return await ATTrackingManager.requestTrackingAuthorization(
            preferExpandedInterface: true,
            additionalInformationAction: nil
        )
    }
    return await ATTrackingManager.requestTrackingAuthorization()
}

Call it once the app is active. The system skips the prompt and returns immediately when the app is not in the active state, from an app extension, when tracking is restricted, or when a request is already pending. If you pass an additionalInformationAction, tapping the button dismisses the sheet with .notDetermined; show your explanation, then call the method again. Apple notes the full-page sheet can be tested in any region with a development, ad hoc or internal TestFlight build, but not in Simulator.

Traps and edge cases

  • Declaring reasons you do not use. Over-declaring is not a safe default. Reasons carry conditions, and a mismatch with your app’s behaviour is a review problem.
  • Off-device use. Uploading file timestamps or disk space values in analytics breaks most reason codes, even if you declared the category.
  • Purpose strings left by SDKs. If an SDK references a permission API you never call, Apple’s purpose-string guidance says to remove it from the binary rather than add a purpose string.
  • Old SDK versions. A pinned SDK version from before manifests existed will keep failing uploads. Update it before release week.
  • Labels drift. Adding an analytics SDK without updating App Privacy answers leaves your label wrong. Regenerate the privacy report on every release.

Checklist

Item Check
PrivacyInfo.xcprivacy in every app and extension target that calls a covered API Target membership ticked, file in resources
One entry per API category with the narrowest correct reason CA92.1 and 1C8F.1 for UserDefaults as needed
Swift packages you own ship their own manifest Declared as a resource
Listed third-party SDKs updated to versions with manifest and signature File inspector shows the expected team
NSPrivacyTracking and tracking domains match reality Tracking hosts separated from functional hosts
Privacy report generated from the release archive App Privacy answers in App Store Connect match it
ATT prompt only if you track, with a clear purpose string iOS 27.2 expanded prompt tested on device for EU users

Sources and further reading

Read next