Guides

Fix ITMS-91053: missing API declaration in PrivacyInfo.xcprivacy

By Evaldas Paulauskas · Last reviewed

Start an ITMS-91053 investigation with the API category and binary path in the App Store Connect message. The useful question is which shipped component accesses that API and where its declaration belongs. Adding a file somewhere in the project does not answer either question.

The worked app stores one display preference in its own UserDefaults domain. The declaration below covers that use. Your app and its SDKs may need other categories or reasons. Check Apple’s current list against the actual call sites before changing a release manifest.

The XML walkthrough uses a sample preference. The Alamofire diff is a credited historical project change.

Actual Alamofire commit adds PrivacyInfo.xcprivacy with a SystemBootTime API reason.
Alamofire’s 15 February 2024 manifest addition, rendered from commit 7eb1842. The declaration matches its use of systemUptime at that revision. Dmitry Kuleshov · Alamofire Software Foundation · MIT license

Identify the category and the affected binary

ITMS-91053 is associated with a missing declaration for a required reason API. Apple requires accurate approved reasons for these APIs in the relevant privacy manifest. These requirements apply to app code and to included third-party SDK code.

Save the full notice privately. Copy the API category and binary path into your investigation notes. If the notice lists more than one category, keep each as a separate item. A UserDefaults declaration cannot resolve a missing file timestamp declaration.

If the notice identifies NSPrivacyAccessedAPICategoryUserDefaults in Sample.app/Sample, start with that executable and its UserDefaults use. A notice naming a framework, extension or another category needs a separate investigation. Follow the path in your upload message before assigning ownership.

  • Record the upload build number, named binary and every API category.
  • Confirm the message concerns a required reason API rather than an SDK signature or another manifest validation issue.
  • Preserve the archive that produced the message so you can inspect the same artifact.

Use the broader App Store rejection checklist if the submission also has reviewer access, payment or policy issues.

Sources: Apple: describing use of required reason API

Trace the API to app code or a dependency

Search the app first, then the dependency sources available to you. For UserDefaults, search direct calls and wrappers around preferences. A property wrapper or shared settings object may conceal the underlying API. Record the owning target and the domain the code reads or writes.

For a binary SDK, check the exact installed version and its documentation. Ask the vendor which API it accesses, which reason covers the behaviour and how the manifest is packaged. Do not infer a permitted reason from the library name. An analytics SDK and a local settings helper can both access the same API for different purposes.

Apple says an SDK must declare its own required reason API use. It cannot rely on the host app or another SDK to make that declaration. Check the package resources and the distribution format rather than copying a vendor entry into the app and assuming ownership has been resolved.

A source search is a lead, not proof that the release bundle is correct. Conditional compilation, an outdated resolved package or a cached binary can change what reaches the archive. Compare the resolved dependency version with the one you inspected.

Search app and checked-out dependency sources

rg -n 'UserDefaults|@AppStorage|suiteName' Sources Packages
rg --files -g 'PrivacyInfo.xcprivacy' -g 'Package.resolved'
  • Search wrappers as well as direct API names.
  • Record the purpose and data flow for each call site.
  • Inspect the affected extension or framework separately from the main app.

An App Store fix plan can trace a notice through the dependency graph and the archived product when ownership is unclear.

Sources: Apple: API declarations for apps, SDKs and executables

Choose an approved reason from the actual use

A category identifies the API family. A reason describes the permitted purpose for accessing it. Read the full conditions of each candidate reason, including restrictions on what happens to the resulting data. Do not select a reason because another app uses it.

Sample stores a compact-list preference that only Sample itself can access. It does not share the preference through an App Group or use UserDefaults to inspect system or other-app values. Apple’s CA92.1 reason covers app-only reads and writes of this kind.

That scope matters. If an app and widget share preferences through an App Group, review the separate App Group reason and its conditions. If an SDK wraps the API, inspect the SDK-specific conditions. If no approved reason describes the behaviour, change the behaviour or use Apple’s process to request a new reason.

Keep a short internal note alongside the release work. Name the call site, category, chosen reason and why the behaviour fits. That gives a later SDK update or refactor something concrete to compare against.

Observed useDecision to makeEvidence to retain
App-only display preferenceCheck CA92.1 against the complete useCall site and the app-owned domain
Preferences shared with an extensionCheck App Group conditionsGroup identifier, members and read/write paths
A vendor SDK accesses the APIInspect its own manifest and permitted useResolved version and vendor declaration
Purpose does not match an approved reasonChange the use or request a reasonBehaviour and the unmet reason condition

App-only preference use

import Foundation

let defaults = UserDefaults.standard
defaults.set(true, forKey: "prefersCompactList")
let prefersCompactList = defaults.bool(forKey: "prefersCompactList")
  • Choose only reasons that cover behaviour you have actually verified.
  • Check data sharing and off-device restrictions in the current reason text.

Sources: Apple: required reason API categories and approved reasons

Compare a missing declaration with the corrected XML

The first file below is syntactically valid XML but does not declare the app’s UserDefaults use. An empty NSPrivacyAccessedAPITypes array cannot describe an API category the app actually accesses. A successful plist syntax check therefore cannot prove that the declaration is complete.

The corrected file adds one category dictionary with its approved reason array for the app-only preference above. Merge the entry into the correct existing manifest and preserve unrelated declarations.

Review the separate tracking and collected-data keys against your app and SDK behaviour. This API entry does not describe those practices. Copying false or empty values into unrelated fields creates inaccurate privacy declarations.

Bad for this use: valid plist, missing the UserDefaults declaration

<?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>NSPrivacyAccessedAPITypes</key>
    <array/>
</dict>
</plist>

Correct for the described app-only preference use

<?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>NSPrivacyAccessedAPITypes</key>
    <array>
        <dict>
            <key>NSPrivacyAccessedAPIType</key>
            <string>NSPrivacyAccessedAPICategoryUserDefaults</string>
            <key>NSPrivacyAccessedAPITypeReasons</key>
            <array>
                <string>CA92.1</string>
            </array>
        </dict>
    </array>
</dict>
</plist>
  • Use the exact key names and value types.
  • Preserve other accurate declarations when editing an existing manifest.
  • Keep one dictionary per API category and list the applicable approved reasons for that category.

Sources: Apple TN3183: adding required reason API entries to your privacy manifest

A real SDK change: manifest plus package resources

Alamofire’s 2024 change adds both PrivacyInfo.xcprivacy and a Swift package resource entry. Its systemUptime call used the SystemBootTime category with reason 35F9.1. The image above shows the actual added file, rather than the UserDefaults example used in this walkthrough.

A later Alamofire change replaced that timing API and removed the declaration. This is why a manifest belongs with the specific SDK revision and call site. Check the version your archive actually contains.

  • Compare the manifest, resolved SDK revision and resource packaging together.

Read the original manifest and package-resource diff.

Sources: Alamofire: add privacy manifest, 7eb1842 · Alamofire: replace timing API and remove the declaration

Add the file to the target that distributes it

In Xcode, add the app manifest to the intended target and check the resource build configuration. A reference in the project navigator is not evidence of inclusion. Apple documents different locations for different product types. Inspect the location relevant to the named binary.

For a Swift package, declare the manifest as a resource in Package.swift. The short example below assumes PrivacyInfo.xcprivacy sits directly inside Sources/SettingsSupport. Adapt the path to the package layout. Do not paste this target into an unrelated package manifest.

Use the package’s own declaration when its code owns the API access. For a prebuilt framework, prefer a vendor distribution that includes the correct manifest for every platform slice you ship. Check the archive after changing the dependency, because the project can still resolve an older version.

Package.swift target excerpt for this example directory

.target(
    name: "SettingsSupport",
    resources: [.process("PrivacyInfo.xcprivacy")]
)
  • Verify target membership and resource packaging for the intended release target.
  • Check app extensions, embedded frameworks and package resource bundles.
  • Archive using the configuration and destination you use for App Store distribution.

Sources: Apple: adding a privacy manifest to your app or third-party SDK

Inspect the archive before uploading another build

Open the archive used for distribution and inspect its Products/Applications directory. The commands below are a macOS example. Replace the quoted archive path with your own path and inspect every result, not just the first file named PrivacyInfo.xcprivacy.

The first command enumerates manifests in the archived products. The next two commands check and print the app-level plist in this example. Adjust that path to the manifest you are checking. plutil validates plist syntax and displays its contents. It does not establish that the selected approved reason matches the code.

Compare the results with your investigation note. Does the named component have the required entry? Did the archive use the expected SDK version? Can you explain every added reason? If the file is missing, correct packaging. If the entry is wrong, correct the declaration or behaviour.

Upload a new build after changing the bundled manifest. Read the new processing result and any subsequent review message. Successful processing addresses the upload stage; it does not promise approval of unrelated review requirements.

Inspect manifests in a macOS archive

archive_path="/path/to/Sample.xcarchive"
find "$archive_path/Products/Applications" -name PrivacyInfo.xcprivacy -print
plutil -lint "$archive_path/Products/Applications/Sample.app/PrivacyInfo.xcprivacy"
plutil -p "$archive_path/Products/Applications/Sample.app/PrivacyInfo.xcprivacy"
  • Inspect the same archive you intend to distribute.
  • Check the manifest’s contents as well as its filename.
  • Repeat the affected app flow after the dependency or code change.

Sources: Apple: verify the privacy manifest location in your product

Finish the privacy work beyond the upload notice

A required reason declaration does not replace App Privacy answers, a privacy policy or a permission usage description. Each describes a different part of the product. Update the relevant surfaces when an SDK change also changes data collection or a permission flow.

Keep the release note practical. Record the original category, the owning component, the verified use and where you found the manifest in the archive. That record is more useful for the next release than a note that says only "fixed Apple warning".

If the investigation uncovers sensitive values in preferences or logs, review storage and diagnostics separately. A permitted API reason says nothing about whether a credential belongs in UserDefaults.

  • Compare SDK data behaviour with App Privacy answers and the policy.
  • Record the verified declaration and archive location for the next maintainer.

Check the iOS security guide for persistent credentials, release logs and shipped configuration.

Request a fix plan if the upload notice persists after the archived declaration and dependency versions have been checked.

Sources: Apple: App Privacy Details

Frequently asked questions

What does ITMS-91053 mean?

It indicates a missing API declaration associated with a required reason API. Use the binary path and API category in the actual notice to find the owner. The relevant packaged privacy manifest must declare an approved reason that accurately describes that component’s use.

Where should I put PrivacyInfo.xcprivacy?

Include it in the appropriate app or SDK target and verify its final bundle location using Apple’s packaging guidance. Swift package manifests need explicit resource configuration. Inspect the archive because a source file or project navigator entry alone does not prove that it ships.

Can I use CA92.1 for every UserDefaults warning?

No. CA92.1 covers the app-only reads and writes described by Apple. App Group sharing, managed configuration and SDK wrappers have different conditions and may require another approved reason.

Does my app manifest cover a third-party SDK?

No. An SDK must declare its own required reason API use in its own privacy manifest. If that declaration is missing or inaccurate, update to a vendor distribution that fixes it.

Why do I still get ITMS-91053 after adding the file?

The uploaded bundle may still lack the required entry. Common causes are a manifest missing from the archive, a category that does not match the notice, an old build selected for upload or a dependency with its own missing declaration. Inspect the uploaded archive and resolved SDK version to identify which applies.

Can I resubmit the same build after fixing a privacy manifest?

No. Changing a bundled privacy manifest requires a new build. Apple’s same-build option for corrected metadata cannot replace resources already uploaded in the binary.

Does plutil passing mean my privacy declaration is correct?

No. It checks plist syntax. You must also verify the API category, approved reason, owning component and actual behaviour. The example with an empty API array can pass syntax validation while failing to describe the app’s use.

Does PrivacyInfo.xcprivacy replace App Privacy answers?

No. Review the manifest, App Store Connect privacy answers, permission explanations and privacy policy against their respective requirements. A correct required reason entry does not establish that the other disclosures are complete.

Decide the next step

Finish with an accurate reason in the correct archived bundle and a new upload you can identify. Keep the call site and verification note so the next release can check the same assumptions.

Request an App Store fix plan