Stringers/Guides
Free developer tool

PrivacyInfo.xcprivacy generator for Xcode and Expo

Tick the Required Reason APIs your app uses, pick the approved reason codes, and copy a valid privacy manifest as an Xcode PrivacyInfo.xcprivacy or as an Expo ios.privacyManifests block. One-click presets cover SwiftUI, Expo / React Native, Firebase, RevenueCat and Flutter.

100% client-side — nothing you select leaves your browserNo loginUpdated By Stringers

Build your privacy manifest

Pick a stack preset or tick the Required Reason APIs your app and its SDKs call. The manifest updates as you click.

1-click stack presets
Required Reason APIs
Triggered by: UserDefaults, @AppStorage, NSUserDefaults, AsyncStorage, shared_preferences
Triggered by: creationDate, modificationDate, stat(), fstat(), NSFileModificationDate, getattrlist
Triggered by: systemUptime, mach_absolute_time(), ProcessInfo.processInfo.systemUptime
Triggered by: volumeAvailableCapacityKey, systemFreeSize, statfs(), statvfs()
Triggered by: UITextInputMode.activeInputModes
Tracking
Collected data types
Output
PrivacyInfo.xcprivacy

    Generated in your browser. Nothing you select is sent anywhere.

    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.

    CategoryReason codeWhen it applies
    NSPrivacyAccessedAPICategoryUserDefaultsCA92.1Read and write values that only this app itself can access. The normal case for settings and flags.
    NSPrivacyAccessedAPICategoryUserDefaults1C8F.1Read and write values shared inside one App Group (your app, its extensions and App Clips).
    NSPrivacyAccessedAPICategoryUserDefaultsC56D.1A third-party SDK wraps UserDefaults in its own function and your app calls that wrapper. For SDK authors.
    NSPrivacyAccessedAPICategoryUserDefaultsAC6B.1Read the managed app configuration keys set by MDM (com.apple.configuration.managed / com.apple.feedback.managed).
    NSPrivacyAccessedAPICategoryFileTimestampC617.1Read timestamps, size or other metadata of files inside the app container, app group container or CloudKit container.
    NSPrivacyAccessedAPICategoryFileTimestampDDA9.1Show file timestamps to the person using the device. The values must not be sent off the device.
    NSPrivacyAccessedAPICategoryFileTimestamp3B52.1Read metadata of files or folders the user explicitly picked, for example through the document picker.
    NSPrivacyAccessedAPICategoryFileTimestamp0A2A.1A third-party SDK wraps the file timestamp APIs and your app calls that wrapper. For SDK authors.
    NSPrivacyAccessedAPICategorySystemBootTime35F9.1Measure the time between events inside the app, or run timers. The usual reason for animation, profiling and analytics timing.
    NSPrivacyAccessedAPICategorySystemBootTime8FFB.1Calculate absolute timestamps for events that happened in the app, such as UIKit or AVFAudio events.
    NSPrivacyAccessedAPICategorySystemBootTime3D61.1Include boot time in an optional bug report the user chooses to submit, after seeing what it contains.
    NSPrivacyAccessedAPICategoryDiskSpaceE174.1Check that there is enough free space before writing files, or delete files when space runs low.
    NSPrivacyAccessedAPICategoryDiskSpace85F4.1Show disk space information to the person using the device, in units or as media minutes.
    NSPrivacyAccessedAPICategoryDiskSpace7D9E.1Include disk space in an optional bug report the user chooses to submit, after seeing what it contains.
    NSPrivacyAccessedAPICategoryDiskSpaceB728.1A health research app detects low disk space that would affect research data collection and tells participants.
    NSPrivacyAccessedAPICategoryActiveKeyboards3EC4.1The app is a custom keyboard and needs to know which keyboards are active on the device.
    NSPrivacyAccessedAPICategoryActiveKeyboards54BD.1Read 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.

    PresetRequired Reason APIs pre-checkedData types pre-checked
    SwiftUI BasicUserDefaults CA92.1none
    Expo / React NativeUserDefaults CA92.1; FileTimestamp C617.1, 0A2A.1, 3B52.1; SystemBootTime 35F9.1; DiskSpace E174.1, 85F4.1none
    Firebase + AnalyticsUserDefaults CA92.1; FileTimestamp C617.1; SystemBootTime 35F9.1CrashData, OtherDiagnosticData, ProductInteraction, DeviceID
    RevenueCat + SubscriptionsUserDefaults CA92.1PurchaseHistory
    Flutter iOSUserDefaults CA92.1, 1C8F.1; FileTimestamp C617.1; SystemBootTime 35F9.1none

    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

    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.

    Find the API calls before Apple does

    A manifest is only correct if it covers every Required Reason API your code calls. App Store Preflight scans Swift, React Native and Flutter source for all five categories, compares them with the manifest you ship, and reports the file and line of anything undeclared (ITMS-91053), along with 24 other App Store rejection rules. Free, read-only, no login.

    Open App Store PreflightRead the Required Reason API guide
    npx skills add komako-workshop/stringers

    Frequently asked questions

    Which reason code should I use for UserDefaults?

    Use CA92.1 when the app reads and writes its own settings, which covers @AppStorage, UserDefaults.standard, React Native AsyncStorage and most plugins. Add 1C8F.1 only if you share defaults with a widget or extension through an App Group (UserDefaults(suiteName:)).

    Do I still need a manifest if my SDKs ship their own?

    Yes, if your own code calls a Required Reason API, and in practice it does. You also need to repeat SDK reasons when the SDK is statically linked into the app binary (CocoaPods without use_frameworks!, the React Native and Flutter default), because Apple scans the final binary and reads only the app-level manifest for that code.

    How do I add PrivacyInfo.xcprivacy to an Expo app?

    Do not create the file by hand in a managed project. Put the object under expo.ios.privacyManifests in app.json (Expo SDK 50+) and Expo writes the file during prebuild. The Expo app.json tab of this generator outputs exactly that block.

    Is ITMS-91053 a rejection?

    It arrives as an email after upload rather than as an App Review rejection, but since May 1, 2024 App Store Connect does not accept new apps or updates whose binaries use these APIs without declared reasons. Treat it as a blocker and fix it before you submit.

    More free tools and guides