Guides › Store error messages
ITMS-91053: Missing API declaration — how to fix it
Checked against the official pages on 2026-11-28.
The email from App Store Connect looks like this:
ITMS-91053: Missing API declaration - Your app's code in the "…" file references one or more APIs that require reasons, including the following API categories: NSPrivacyAccessedAPICategoryUserDefaults.
Some APIs — UserDefaults, file timestamps, system boot time, disk space, active keyboards — could be used to fingerprint a device, so Apple wants a declared reason for each one in a privacy manifest. Since May 1, 2024, Apple's documentation says App Store Connect doesn't accept apps that use these APIs without describing why.
1. Find out whose code it is
The email names a file. Apple's rule: if the API is used in your app's code, it goes in your app's privacy manifest; if it's used in an SDK's code, it goes in that SDK's manifest.
- Your app's executable (your app name, or
Runnerin Flutter) → add the declaration to your app'sPrivacyInfo.xcprivacy(step 2). - A framework (
Frameworks/Something.framework/Something) → that SDK has to declare it. Update the pod, package or plugin; current versions of widely used SDKs ship their own manifest. Adding the SDK's APIs to your own manifest doesn't fix a framework's warning.
2. Add the declaration to your app
If your app has no privacy manifest yet, add one in Xcode: File › New › File › App Privacy, and tick your app target. Then add one dictionary per API category the email lists:
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
</array>
</dict>
</array>3. Pick the reason code
The value must be one of Apple's codes for that category — not a description. Apple also says you may use the API, and data derived from it, only for the reasons you declare.
| Category (APIs) | Reason code — when to use it |
|---|---|
NSPrivacyAccessedAPICategoryUserDefaultsUserDefaults | CA92.1 — Read and write data only your app can access (the usual one)1C8F.1 — Read and write data shared within your App GroupAC6B.1 — Read managed app configuration / write feedback for MDM |
NSPrivacyAccessedAPICategoryFileTimestampFile creation / modification dates, file metadata | C617.1 — Timestamps, size or metadata of files inside your app or App Group containerDDA9.1 — Show file timestamps to the user (not sent off the device)3B52.1 — Metadata of files the user picked, e.g. with a document picker |
NSPrivacyAccessedAPICategorySystemBootTimeSystem uptime (e.g. systemUptime, mach_absolute_time) | 35F9.1 — Measure time elapsed between events in the app, or run timers8FFB.1 — Calculate absolute timestamps for events in your app3D61.1 — Include boot time in a bug report the user chooses to send |
NSPrivacyAccessedAPICategoryDiskSpaceAvailable / total disk space | E174.1 — Check there's enough space to write files, or free space when low85F4.1 — Show disk space to the user7D9E.1 — Include disk space in a bug report the user chooses to sendB728.1 — Health research apps: warn participants about low space |
NSPrivacyAccessedAPICategoryActiveKeyboardsList of active keyboards | 54BD.1 — Adjust your UI to the active keyboard3EC4.1 — Custom keyboard apps |
Shortened from Apple's reason list — read the full wording of the one you pick.0A2A.1 and C56D.1 are only for SDKs that wrap these APIs for the app.
4. Upload a new build
Archive and upload again. To see your app's and your SDKs' manifests together, open the archive in Xcode's Organizer and generate a privacy report. If the next email says "Invalid API reason declaration", a value isn't a valid code — see ITMS-91055.
More on the file itself: Apple privacy manifests.
See what your own app needs to declare. Drop your dependency file — it's read in your browser, no signup.
Scan my dependency file →Sources
- Describing use of required reason API (Apple)
- NSPrivacyAccessedAPIType reason codes (Apple)
- Developer Forums: ITMS-91053 email
More guides
Store rules change; always check the linked official pages. This is not legal advice.