Όλα τα άρθρα

1 Δεκεμβρίου 2026

What to declare in an iOS privacy manifest for required reason APIs, 2026

Declare required reason APIs in PrivacyInfo.xcprivacy: the five categories, reason codes such as CA92.1, a working plist and the SDK rules.

Abstract flow of connected boxes and arrows with one acid step on a dotted canvas
Illustration: Kallos Labs.

What the manifest asks of you

You declare every required reason API your app's code calls, once per category, with one or more approved reason codes, in a file named PrivacyInfo.xcprivacy. If you skip it, App Store Connect does not accept the upload.

Most apps need at least one entry, because reading or writing UserDefaults is on the list. Below you'll find the file, the five categories, the codes, a working entry, how third-party SDKs fit in, and what to check before you upload. It is based on Apple's own documentation as it reads in December 2026.

What a privacy manifest is and what App Store Connect expects

A privacy manifest is a property list named PrivacyInfo.xcprivacy. Per Apple's privacy manifest documentation, it records the data types your app collects, on all platforms, and the required reason APIs it uses, on iOS, iPadOS, tvOS, visionOS and watchOS. Four top-level keys matter:

Checklist diagram of the four items in “What a privacy manifest is and what App Store Connect expects”
Checklist: What a privacy manifest is and what App Store Connect expects.
  • NSPrivacyTracking: a Boolean saying whether the app uses data for tracking as defined by App Tracking Transparency.
  • NSPrivacyTrackingDomains: the domains you connect to that engage in tracking. If the user has not granted tracking permission, requests to these domains fail.
  • NSPrivacyCollectedDataTypes: an array of dictionaries describing the data types you collect.
  • NSPrivacyAccessedAPITypes: an array of dictionaries, one per required reason API category you use. This is the key this article is about.

In Xcode, choose File > New File, pick App Privacy File from the Resource section and check your target. On iOS the file sits at the root of the app bundle, next to Info.plist. Add it to the target's resources, or Xcode will not use it when it generates a privacy report.

Why the list exists: some APIs can be used to identify a device or person, which Apple calls fingerprinting. Apple states that fingerprinting is not allowed whether or not the user grants tracking permission. The timeline was short. In Apple's February 29, 2024 announcement, email notices for missing reasons started March 13, and from May 1, 2024 an upload without approved reasons is refused. Your App Store listing can be perfect and the build still bounces at this step.

The five categories and their reason codes

Each category has a fixed string and a fixed set of reason codes. These come from Apple's NSPrivacyAccessedAPIType reference.

File timestamp, system boot time and disk space

NSPrivacyAccessedAPICategoryFileTimestamp covers APIs such as creationDate, modificationDate, stat, fstat and getattrlist. The codes:

  • DDA9.1: display file timestamps to the person using the device. Nothing derived may leave the device.
  • C617.1: timestamps, size or other metadata of files inside the app container, app group container or the app's CloudKit container.
  • 3B52.1: files or directories the user explicitly granted access to, for example through a document picker.
  • 0A2A.1: only for third-party SDKs that wrap the API for the app.

NSPrivacyAccessedAPICategorySystemBootTime covers systemUptime and mach_absolute_time():

  • 35F9.1: measure elapsed time between events inside the app, or drive timers.
  • 8FFB.1: calculate absolute timestamps for events inside the app.
  • 3D61.1: include boot time in an optional bug report the user chooses to submit.

NSPrivacyAccessedAPICategoryDiskSpace covers the volume capacity keys, systemFreeSize, systemSize, statfs and statvfs:

  • 85F4.1: display disk space to the user.
  • E174.1: check that there is room to write files, where the app behaves differently in a way users can observe.
  • 7D9E.1: include disk space in an optional bug report the user submits.
  • B728.1: health research apps only.

Active keyboards and user defaults

NSPrivacyAccessedAPICategoryActiveKeyboards covers activeInputModes:

  • 3EC4.1: custom keyboard apps, where providing the keyboard is the primary function.
  • 54BD.1: present a customized interface based on the active keyboards. The app needs text fields and must behave differently in a way users can observe.

NSPrivacyAccessedAPICategoryUserDefaults covers UserDefaults:

  • CA92.1: read and write information only the app itself can access.
  • 1C8F.1: read and write information shared only within the same App Group.
  • C56D.1: only for third-party SDKs that wrap the API for the app.
  • AC6B.1: read the com.apple.configuration.managed key for MDM managed app configuration.

A declared reason is a limit, not a label

Apple requires the reasons to reflect your real use, and you may use the APIs and the data derived from them for the declared reasons only. Most of the codes also say the information, or anything derived from it, may not be sent off-device. So a disk space check declared under E174.1 can't also feed an analytics event. If you cannot meet any listed reason, Apple says to find an alternative API, or submit a request for a new approved reason.

Write the NSPrivacyAccessedAPITypes entry

Each dictionary in the array has exactly two keys, NSPrivacyAccessedAPIType and NSPrivacyAccessedAPITypeReasons. Technical Note TN3183, first published December 17, 2024, shows the shape. This is a minimal entry for an app that stores its own preferences and checks free space before writing files:

<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>NSPrivacyAccessedAPICategoryDiskSpace</string>
        <key>NSPrivacyAccessedAPITypeReasons</key>
        <array>
            <string>E174.1</string>
        </array>
    </dict>
</array>

Three habits save time:

  1. In Xcode, switch on Editor > Raw Keys and Values so you see the real key names instead of the friendly labels.
  2. Copy the category string exactly. A close but wrong string is the same as no declaration.
  3. Only list reasons that belong to the category in the same dictionary. A code from the disk space list does not belong under user defaults.

To find what to declare, search your own code for the APIs in each list, then add the categories your dependencies do not already cover in their own manifests.

Third-party SDKs and invalid manifests

Your manifest describes your code. Apple is explicit that an SDK cannot rely on the manifests of the apps that link it, so each SDK reports its own use in its own manifest. For each executable or dynamic library that uses a required reason API, the bundle that contains it needs a manifest.

Two further rules from Apple's guide to adding a privacy manifest:

  • Every privacy manifest in your app must be valid, with only expected keys and values. App Store Connect rejects a submission that includes an invalid one and emails you the name and path of each invalid file. If it came from an SDK, you ask that SDK's developer for an updated version.
  • Since February 12, 2025, apps submitted for review must include a valid manifest for a set of commonly used third-party SDKs. Apple's list names them, and the signature requirement also applies when such an SDK is added as a binary dependency.

In practice, update dependencies to versions that ship a manifest before you touch your own. A stale SDK is the one part you can't fix from your own side of the repository.

Check the manifest before you upload

Run the check on the archive you will actually ship, not on a debug build. Generate Xcode's privacy report so the manifests in your app and its frameworks are read together, and compare it with the APIs you found in your own code. Fix a missing category in your manifest, and a missing or invalid SDK manifest by upgrading the SDK.

Then send the build through your usual route. If you use TestFlight builds for beta review, the manifest is evaluated at upload, so a problem shows up before testers see anything. A team that scripts automated builds and submission can fail the lane early when the file is missing from the bundle. The manifest travels with the binary, so no store metadata change fixes it. App Store listing work and the privacy manifest are separate jobs.

Summary

Declare what your code does, choose the narrowest reason that is true, and keep each SDK's declarations in the SDK's own manifest. The work is small once you know the five category strings and their codes. It's far cheaper than a rejected upload. If you want a second pair of eyes on a submission before it goes to review, our iOS development service covers it, or get in touch.

Frequently asked questions

What is a required reason API?

It is an API Apple has flagged as usable for fingerprinting. If your app or an SDK in it calls one, you declare the API category and an approved reason in the privacy manifest.

Do I need a privacy manifest if my app collects no data?

Yes, if the app's code uses a required reason API. Reading or writing UserDefaults is enough, so most apps need at least one entry.

Which reason code do most apps use for UserDefaults?

CA92.1, for reading and writing information only the app itself can access. Use 1C8F.1 for data shared only inside an App Group.

Can the app's manifest cover a third-party SDK?

No. An SDK reports its own use in its own manifest and cannot rely on the manifests of the apps that link it.

What if none of the listed reasons fits?

Apple lets developers submit a request for a new approved reason. Until one is approved, find an alternative API.

Οι περισσότεροι που χρειάζονται αυτό ρωτούν και για αυτά.

Θέλετε κάτι τέτοιο για την επιχείρησή σας;

Πείτε μας τι έχετε στο μυαλό σας, ακόμη κι αν είναι πρόχειρο. Μέσα σε δύο εργάσιμες ημέρες παίρνετε με email μια δωρεάν επισκόπηση.

  • Απάντηση μέσα σε δύο εργάσιμες ημέρες
  • NDA αν το ζητήσετε
  • Δωρεάν επισκόπηση με email
intake.form
Όλα τα πεδία είναι υποχρεωτικά