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.
| Message | Meaning | Fix |
|---|---|---|
| ITMS-91053: Missing API declaration | Code references a Required Reason API category that no manifest declares | Add the NSPrivacyAccessedAPIType entry with a valid reason |
| ITMS-91056: Invalid privacy manifest | The file is malformed: wrong key names, a reason code that does not belong to that category, bad plist syntax | Validate the XML against the template below |
| ITMS-91061: Missing privacy manifest | A third-party SDK on Apple's commonly-used list ships without its own manifest or signature | Update 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.
| Code | Use it when |
|---|---|
CA92.1 | You read and write defaults that only your own app accesses. This is the right answer for almost every app. |
1C8F.1 | You share defaults with your own extensions or apps through an App Group. |
C56D.1 | You are an SDK that wraps UserDefaults for the host app. |
AC6B.1 | You read managed app configuration set by an MDM administrator. |
NSPrivacyAccessedAPICategoryFileTimestamp
Triggered by fileModificationDate, fileCreationDate, contentModificationDateKey, creationDateKey, and C stat() / lstat().
| Code | Use it when |
|---|---|
C617.1 | You read timestamps of files inside your app container, App Group container or CloudKit container. |
3B52.1 | You read timestamps of files the user explicitly granted access to, for example through a document picker. |
DDA9.1 | You display file timestamps to the user and do not send them off the device. |
0A2A.1 | You are an SDK wrapping file timestamp APIs for the host app. |
NSPrivacyAccessedAPICategorySystemBootTime
Triggered by ProcessInfo.systemUptime and mach_absolute_time().
| Code | Use it when |
|---|---|
35F9.1 | You measure elapsed time between events inside the app (timers, animation, profiling). |
8FFB.1 | You compute absolute timestamps for events that happened in the app, such as UIKit or AVFAudio event times. |
3D61.1 | You 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().
| Code | Use it when |
|---|---|
E174.1 | You check whether there is enough space before writing files, or delete files when space is low. |
85F4.1 | You display free disk space to the user. |
7D9E.1 | You are a health research app that checks space to manage study data. |
B728.1 | You include disk space in an optional bug report the user chooses to submit. |
NSPrivacyAccessedAPICategoryActiveKeyboards
Triggered by UITextInputMode.activeInputModes.
| Code | Use it when |
|---|---|
3EC4.1 | Your app is a custom keyboard and needs the list of active keyboards. |
54BD.1 | You 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 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:
NSPrivacyTracking:trueonly if the app uses data for tracking as defined by App Tracking Transparency.NSPrivacyTrackingDomains: domains that engage in tracking. iOS blocks requests to them until the user grants tracking permission.NSPrivacyCollectedDataTypes: one dictionary per data type the app collects, mirroring your App Privacy answers in App Store Connect.NSPrivacyAccessedAPITypes: the Required Reason API declarations. This is the array ITMS-91053 is about.
A collected-data entry for an email address used for sign-in looks like this:
<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:
{
"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:
- Update dependencies first. Most ITMS-91053 and ITMS-91061 emails disappear after moving to a release from mid-2024 or later.
- Search the dependency sources for the trigger symbols, for example
grep -rl "NSUserDefaults\|systemUptime\|NSFileSystemFreeSize" Pods/, and check that each hit's pod contains aPrivacyInfo.xcprivacy. - 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.
- 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
npx skills add komako-workshop/stringers # agent skill: "preflight this app for App Store review"
stringer-preflight . # or run the scanner directlyA 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.