What a privacy manifest is, and when you need one
PrivacyInfo.xcprivacy is a property list that ships inside your app bundle and tells Apple three things: which Required Reason APIs the code calls and why, whether the app tracks users (and which domains it contacts to do so), and which data types it collects. Since May 1, 2024, App Store Connect checks uploads for it. If your binary calls one of the listed APIs and no manifest declares an approved reason, you get the ITMS-91053: Missing API declaration email, and new submissions are not accepted until it is fixed.
Nearly every app is affected, because the list includes UserDefaults. A SwiftUI app that uses @AppStorage once needs a manifest with one entry. The generator above writes that file for you, in the two formats developers need: the XML plist that Xcode projects add to the app target, and the ios.privacyManifests JSON block that Expo merges into the native project during prebuild.
All 5 Required Reason API categories and their reason codes
Apple defines exactly five categories. Each has a short list of approved reasons, identified by a code such as CA92.1. You must pick the code that matches what the code does; you cannot write your own reason.
| Category | Reason code | When it applies |
|---|---|---|
NSPrivacyAccessedAPICategoryUserDefaults | CA92.1 | Read and write values that only this app itself can access. The normal case for settings and flags. |
NSPrivacyAccessedAPICategoryUserDefaults | 1C8F.1 | Read and write values shared inside one App Group (your app, its extensions and App Clips). |
NSPrivacyAccessedAPICategoryUserDefaults | C56D.1 | A third-party SDK wraps UserDefaults in its own function and your app calls that wrapper. For SDK authors. |
NSPrivacyAccessedAPICategoryUserDefaults | AC6B.1 | Read the managed app configuration keys set by MDM (com.apple.configuration.managed / com.apple.feedback.managed). |
NSPrivacyAccessedAPICategoryFileTimestamp | C617.1 | Read timestamps, size or other metadata of files inside the app container, app group container or CloudKit container. |
NSPrivacyAccessedAPICategoryFileTimestamp | DDA9.1 | Show file timestamps to the person using the device. The values must not be sent off the device. |
NSPrivacyAccessedAPICategoryFileTimestamp | 3B52.1 | Read metadata of files or folders the user explicitly picked, for example through the document picker. |
NSPrivacyAccessedAPICategoryFileTimestamp | 0A2A.1 | A third-party SDK wraps the file timestamp APIs and your app calls that wrapper. For SDK authors. |
NSPrivacyAccessedAPICategorySystemBootTime | 35F9.1 | Measure the time between events inside the app, or run timers. The usual reason for animation, profiling and analytics timing. |
NSPrivacyAccessedAPICategorySystemBootTime | 8FFB.1 | Calculate absolute timestamps for events that happened in the app, such as UIKit or AVFAudio events. |
NSPrivacyAccessedAPICategorySystemBootTime | 3D61.1 | Include boot time in an optional bug report the user chooses to submit, after seeing what it contains. |
NSPrivacyAccessedAPICategoryDiskSpace | E174.1 | Check that there is enough free space before writing files, or delete files when space runs low. |
NSPrivacyAccessedAPICategoryDiskSpace | 85F4.1 | Show disk space information to the person using the device, in units or as media minutes. |
NSPrivacyAccessedAPICategoryDiskSpace | 7D9E.1 | Include disk space in an optional bug report the user chooses to submit, after seeing what it contains. |
NSPrivacyAccessedAPICategoryDiskSpace | B728.1 | A health research app detects low disk space that would affect research data collection and tells participants. |
NSPrivacyAccessedAPICategoryActiveKeyboards | 3EC4.1 | The app is a custom keyboard and needs to know which keyboards are active on the device. |
NSPrivacyAccessedAPICategoryActiveKeyboards | 54BD.1 | Read the active keyboards to present the correct customised UI to the person using the device. |
Reasons marked "for SDK authors" are for wrapper libraries; an app that calls the system API directly uses the first-party reason.
How to use the output
Xcode (SwiftUI, UIKit, Flutter, bare React Native). Click Download PrivacyInfo.xcprivacy, drag the file into the project navigator, and tick your app target under Target Membership. The file must end up in the app bundle's root: check Build Phases → Copy Bundle Resources. In Flutter, add it to ios/Runner through Xcode, not by copying it into the folder, or it will not be part of the target.
Expo (managed workflow, EAS Build). Switch to the Expo app.json tab and merge the privacyManifests object into expo.ios in app.json (or return it from app.config.js). It needs Expo SDK 50 or later. Run npx expo prebuild --clean once and confirm ios/<app>/PrivacyInfo.xcprivacy contains your entries.
Where the stack presets come from
The presets pre-check the reasons each stack commonly triggers, taken from the privacy manifests those projects publish. They are starting points, so compare them with the SDK versions you actually ship.
| Preset | Required Reason APIs pre-checked | Data types pre-checked |
|---|---|---|
| SwiftUI Basic | UserDefaults CA92.1 | none |
| Expo / React Native | UserDefaults CA92.1; FileTimestamp C617.1, 0A2A.1, 3B52.1; SystemBootTime 35F9.1; DiskSpace E174.1, 85F4.1 | none |
| Firebase + Analytics | UserDefaults CA92.1; FileTimestamp C617.1; SystemBootTime 35F9.1 | CrashData, OtherDiagnosticData, ProductInteraction, DeviceID |
| RevenueCat + Subscriptions | UserDefaults CA92.1 | PurchaseHistory |
| Flutter iOS | UserDefaults CA92.1, 1C8F.1; FileTimestamp C617.1; SystemBootTime 35F9.1 | none |
Expo / React Native mirrors the set Expo documents for React Native core plus expo-file-system. Firebase reflects the Firebase Apple SDK manifests (CA92.1 in Core and Crashlytics, C617.1 in Google's shared utilities, crash and diagnostic data). RevenueCat follows its SDK manifest (CA92.1, purchase history for app functionality). Flutter adds the App Group reason 1C8F.1 that the shared_preferences plugin declares.
Edge cases that still cause ITMS-91053
- SDK manifests are not always enough. A third-party SDK that ships its own
PrivacyInfo.xcprivacycovers itself only when it is built as a dynamic framework or an XCFramework with the manifest inside. Statically linked pods (the React Native and Flutter default) get merged into your binary, and Apple then expects the reasons in the app's manifest. This is why Expo recommends repeating library reasons inapp.json. - An empty reasons array fails. A category with no reason code is treated as undeclared. The generator warns when you tick a category without a reason.
NSPrivacyTrackingis about App Tracking Transparency. Set it totrueonly if the app or an SDK links user or device data with third-party data for advertising or shares it with data brokers. When it istrue, list the tracking domains: iOS blocks requests to them until the user allows tracking.- Collected data types must match your App Privacy answers. The manifest feeds Xcode's privacy report (Product → Archive → Generate Privacy Report). Use that report to fill in the nutrition label in App Store Connect so the two agree.
- One manifest per target. App extensions and widgets that call these APIs need their own file in their own target.
Check that it worked
After adding the file, archive the app and open the privacy report, or unzip the .ipa and confirm PrivacyInfo.xcprivacy sits next to the executable. To find which of your own source files call a Required Reason API in the first place, run App Store Preflight: rules IOS-PRIV-001 and IOS-PRIV-002 list the exact file and line for each category and tell you which one the manifest is missing. The companion guide, PrivacyInfo.xcprivacy and Required Reason APIs, explains the detection patterns for Swift, React Native and Flutter in detail, and the Info.plist and app.json checker flags an Expo config that has no privacyManifests block at all.