Stringers/Guides
App Store Review & Preflight

PrivacyInfo.xcprivacy and Required Reason APIs: the ITMS-91053 fix

Since May 2024, App Store Connect rejects uploads whose code calls certain system APIs without declaring why. The email is ITMS-91053, the fix is a small plist called PrivacyInfo.xcprivacy, and the only hard part is picking the right four-character reason code. This page is the lookup table.

Updated Rules from stringer-preflight 1.1.0 (MIT)By Stringers

What ITMS-91053 and ITMS-91056 mean

Apple designated a set of APIs that could be misused for device fingerprinting as Required Reason APIs. If your app, or a framework inside it, calls one, the bundle must contain a privacy manifest that names the API category and one or more approved reasons.

MessageMeaningFix
ITMS-91053: Missing API declarationCode references a Required Reason API category that no manifest declaresAdd the NSPrivacyAccessedAPIType entry with a valid reason
ITMS-91056: Invalid privacy manifestThe file is malformed: wrong key names, a reason code that does not belong to that category, bad plist syntaxValidate the XML against the template below
ITMS-91061: Missing privacy manifestA third-party SDK on Apple's commonly-used list ships without its own manifest or signatureUpdate the SDK

The preflight scanner covers the first two before you upload. IOS-PRIV-001 (CRITICAL) fires when code uses a Required Reason API and the project has no manifest at all. IOS-PRIV-002 (CRITICAL) fires when a manifest exists but lacks a category the code uses, or declares a category with an empty reasons array.

The five categories and their reason codes

These are the categories the scanner detects, the symbols that trigger each, and the reason codes Apple accepts. Pick the reason that matches what your code does; declaring a reason you do not meet is a misdeclaration.

NSPrivacyAccessedAPICategoryUserDefaults

Triggered by UserDefaults, NSUserDefaults, SwiftUI @AppStorage, React Native AsyncStorage, Flutter shared_preferences.

CodeUse it when
CA92.1You read and write defaults that only your own app accesses. This is the right answer for almost every app.
1C8F.1You share defaults with your own extensions or apps through an App Group.
C56D.1You are an SDK that wraps UserDefaults for the host app.
AC6B.1You read managed app configuration set by an MDM administrator.

NSPrivacyAccessedAPICategoryFileTimestamp

Triggered by fileModificationDate, fileCreationDate, contentModificationDateKey, creationDateKey, and C stat() / lstat().

CodeUse it when
C617.1You read timestamps of files inside your app container, App Group container or CloudKit container.
3B52.1You read timestamps of files the user explicitly granted access to, for example through a document picker.
DDA9.1You display file timestamps to the user and do not send them off the device.
0A2A.1You are an SDK wrapping file timestamp APIs for the host app.

NSPrivacyAccessedAPICategorySystemBootTime

Triggered by ProcessInfo.systemUptime and mach_absolute_time().

CodeUse it when
35F9.1You measure elapsed time between events inside the app (timers, animation, profiling).
8FFB.1You compute absolute timestamps for events that happened in the app, such as UIKit or AVFAudio event times.
3D61.1You include boot time in an optional bug report the user chooses to submit.

NSPrivacyAccessedAPICategoryDiskSpace

Triggered by volumeAvailableCapacityKey and its variants, systemFreeSize, NSFileSystemFreeSize, and C statfs().

CodeUse it when
E174.1You check whether there is enough space before writing files, or delete files when space is low.
85F4.1You display free disk space to the user.
7D9E.1You are a health research app that checks space to manage study data.
B728.1You include disk space in an optional bug report the user chooses to submit.

NSPrivacyAccessedAPICategoryActiveKeyboards

Triggered by UITextInputMode.activeInputModes.

CodeUse it when
3EC4.1Your app is a custom keyboard and needs the list of active keyboards.
54BD.1You customize your own UI based on the active keyboards.

A valid PrivacyInfo.xcprivacy template

This manifest declares the four categories a typical app touches. Delete the dictionaries you do not need; an entry for an API you never call is not an error, but a manifest should describe the app truthfully.

xml
<?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></array>
    </dict>
    <dict>
      <key>NSPrivacyAccessedAPIType</key>
      <string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
      <key>NSPrivacyAccessedAPITypeReasons</key>
      <array><string>C617.1</string></array>
    </dict>
    <dict>
      <key>NSPrivacyAccessedAPIType</key>
      <string>NSPrivacyAccessedAPICategorySystemBootTime</string>
      <key>NSPrivacyAccessedAPITypeReasons</key>
      <array><string>35F9.1</string></array>
    </dict>
    <dict>
      <key>NSPrivacyAccessedAPIType</key>
      <string>NSPrivacyAccessedAPICategoryDiskSpace</string>
      <key>NSPrivacyAccessedAPITypeReasons</key>
      <array><string>E174.1</string></array>
    </dict>
  </array>
</dict>
</plist>

The four top-level keys:

A collected-data entry for an email address used for sign-in looks like this:

xml
<dict>
  <key>NSPrivacyCollectedDataType</key>
  <string>NSPrivacyCollectedDataTypeEmailAddress</string>
  <key>NSPrivacyCollectedDataTypeLinked</key>
  <true/>
  <key>NSPrivacyCollectedDataTypeTracking</key>
  <false/>
  <key>NSPrivacyCollectedDataTypePurposes</key>
  <array><string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string></array>
</dict>

Add the file to the right target

The manifest only counts if it is inside the app bundle. In Xcode, choose File > New > File > App Privacy, keep the name PrivacyInfo.xcprivacy, and tick the app target. Then check Build Phases > Copy Bundle Resources lists it. For Flutter the target is Runner (ios/Runner/PrivacyInfo.xcprivacy); for bare React Native it is the app target under ios/<App>/.

App extensions (widgets, share extensions, notification services) are separate bundles. If an extension uses UserDefaults, typically with an App Group and reason 1C8F.1, it needs its own manifest in its own target.

Expo: ios.privacyManifests

Managed Expo projects have no ios/ folder to put a file in. Declare the same structure as JSON in app.json and prebuild writes the file. The scanner reads this block as a manifest:

json
{
  "expo": {
    "ios": {
      "privacyManifests": {
        "NSPrivacyAccessedAPITypes": [
          {
            "NSPrivacyAccessedAPIType": "NSPrivacyAccessedAPICategoryUserDefaults",
            "NSPrivacyAccessedAPITypeReasons": ["CA92.1"]
          },
          {
            "NSPrivacyAccessedAPIType": "NSPrivacyAccessedAPICategoryFileTimestamp",
            "NSPrivacyAccessedAPITypeReasons": ["C617.1"]
          },
          {
            "NSPrivacyAccessedAPIType": "NSPrivacyAccessedAPICategorySystemBootTime",
            "NSPrivacyAccessedAPITypeReasons": ["35F9.1"]
          }
        ]
      }
    }
  }
}

These three categories match what the React Native runtime and AsyncStorage use. Add the DiskSpace category with E174.1 if your code or a library checks free space.

Auditing third-party SDKs

Your manifest covers your code. Each SDK is expected to ship its own manifest for its own calls, and SDKs on Apple's commonly-used list (Firebase, Alamofire, GoogleSignIn, FBSDKCoreKit, OneSignal, Lottie, Realm, SDWebImage, Flutter and others) must include one, with a signature when distributed as a binary. To audit:

  1. Update dependencies first. Most ITMS-91053 and ITMS-91061 emails disappear after moving to a release from mid-2024 or later.
  2. Search the dependency sources for the trigger symbols, for example grep -rl "NSUserDefaults\|systemUptime\|NSFileSystemFreeSize" Pods/, and check that each hit's pod contains a PrivacyInfo.xcprivacy.
  3. If an abandoned SDK has no manifest and is linked statically, its API use is attributed to your app binary. Declare the category in your app's manifest with the reason that matches how the SDK uses it, and plan to replace the SDK.
  4. After archiving, use Xcode's Organizer: right-click the archive and choose Generate Privacy Report. It aggregates every manifest in the bundle into one PDF, which is the quickest way to see what Apple will see.

Check it before you upload

bash
npx skills add komako-workshop/stringers   # agent skill: "preflight this app for App Store review"
stringer-preflight .                       # or run the scanner directly

A finding names the first line that uses the API and the category that is missing, for example: @AppStorage needs NSPrivacyAccessedAPICategoryUserDefaults in the privacy manifest. The other 24 rules are in the full rejection checklist.

Run the free preflight scan

A deterministic, read-only scanner: 26 App Store rejection rules, one Python file, no login, no network calls. Install the skill and ask your coding agent to "preflight this app for App Store review".

Open App Store Preflight
npx skills add komako-workshop/stringers
★ Star on GitHub

Open Source (MIT) · Star komako-workshop/stringers on GitHub

Frequently asked questions

Which reason code should I use for UserDefaults?

CA92.1 if only your app reads and writes the values. Use 1C8F.1 instead when the defaults are shared with your own extensions or apps through an App Group.

Is ITMS-91053 a rejection or a warning?

It began as a warning email in March 2024 and has been enforced since May 1, 2024: new apps and updates that call Required Reason APIs without declaring them are not accepted by App Store Connect.

Does @AppStorage in SwiftUI count as a Required Reason API?

Yes. @AppStorage is backed by UserDefaults, so the app needs NSPrivacyAccessedAPICategoryUserDefaults with a valid reason, normally CA92.1.

Do I need a privacy manifest if I do not collect any data?

Yes, if you call a Required Reason API. The Required Reason declarations are independent of data collection; leave NSPrivacyCollectedDataTypes as an empty array.

How do I fix ITMS-91056 Invalid privacy manifest?

Check for a reason code paired with the wrong category, misspelled keys, a missing NSPrivacyAccessedAPITypeReasons array, or broken plist XML. Opening the file in Xcode's property list editor surfaces syntax errors.

Related guides