Apple’s email names a file and one or more categories. Both help you find the source. This is the start of the message, with a Flutter app’s file name and one category:
ITMS-91053: Missing API declaration - Your app’s code in the “Runner” file
references one or more APIs that require reasons, including the following
API categories: NSPrivacyAccessedAPICategoryUserDefaults.
Step 1: find whose code it is
- If the path in the email points to a framework (for example
Frameworks/some_plugin.framework/some_plugin), it is a plugin or SDK. Update that package, then check for a newer release if the email comes back. - If it names your app binary (
Runner), check your own native code inios/Runner. Statically linked plugin code can also end up in this binary, so update your packages too.
flutter pub outdated
flutter pub upgrade
pub upgrade stays inside the version ranges in pubspec.yaml. For a new major version, change the range and read the package changelog.
Step 2: add the category to your manifest
Save this as ios/Runner/PrivacyInfo.xcprivacy. This example declares UserDefaults used only for your own app’s data:
<?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>
If you already have the file, add one more <dict> inside the array for each missing category. Pick the reason that matches what the code does, from Apple’s required reason API list. In the table, add the prefix NSPrivacyAccessedAPICategory to each category name.
| Category | Code | Use |
|---|---|---|
UserDefaults |
CA92.1 |
Data only your app can access |
FileTimestamp |
C617.1 |
Files in your app, app group or CloudKit container |
SystemBootTime |
35F9.1 |
Measuring time between events in the app |
DiskSpace |
E174.1 |
Checking for enough space to write files, or low space so you can delete files |
ActiveKeyboards |
54BD.1 |
Adapting the UI to the active keyboard |
The Apple privacy manifest generator lists the other codes and also adds the tracking and collected data keys.
Step 3: add the file to the Runner target
- Open
ios/Runner.xcworkspacein Xcode. - Right-click the Runner folder, choose Add Files to “Runner”, select the file and tick the Runner target.
- Check that it appears under Build Phases → Copy Bundle Resources.
A file that is only in the folder is not included in the app.
Step 4: upload a new build
Raise the build number in pubspec.yaml (for example 1.4.0+22 to 1.4.0+23), then:
flutter clean
flutter pub get
flutter build ipa
A different email, ITMS-90683, is about permission text in Info.plist: see the ITMS-90683 fix.
Frequently asked questions
What does ITMS-91053 mean?
App Store Connect found a required reason API in your build that no privacy manifest declares. Add the category and a matching reason code to a manifest, or update the plugin that uses it.
Can my app's privacy manifest cover a third-party SDK?
No. Apple says a third-party SDK can’t rely on the app’s privacy manifest and must report its APIs in its own. Update the package or ask its maintainer to add one.
Which reason code is used for shared_preferences or UserDefaults?
CA92.1 covers reading and writing data that only your app can access. Use 1C8F.1 for data shared within an App Group.
Stuck on a build or a store release? I fix and maintain Flutter apps, or tell me about your project. More fixes: all Flutter answers.