# Check this app against App Store Review Guideline 5.1.1: Data Collection and Storage

Permissions need clear purpose strings, privacy manifests declare sensitive APIs, and a privacy policy is easy to find.

Go through this codebase for each problem below. For each one that applies, fix it on a new git branch with the steps for this app's stack (React Native and Expo, Swift, or Flutter). If none apply, say so and why.

## Uses camera without a purpose string

Usually a rejection.

**What Apple wants:** iOS closes the app the moment it asks for camera access without NSCameraUsageDescription in Info.plist. The reviewer sees a crash, which is a Guideline 2.1 rejection, and Guideline 5.1.1 requires the string anyway.

**How to fix it:** Add NSCameraUsageDescription with a sentence that says what the app does with it.

Steps for React Native and Expo:

1. Add NSCameraUsageDescription in app.json under expo.ios.infoPlist (or the package's config plugin options).
2. Say specifically what the person uses camera for in the app and what the app does with it, not just that it needs camera access.

Steps for Swift:

1. Add NSCameraUsageDescription in the target's Info tab in Xcode (or INFOPLIST_KEY_… build settings).
2. Say specifically what the person uses camera for in the app and what the app does with it, not just that it needs camera access.

Steps for Flutter:

1. Add NSCameraUsageDescription in ios/Runner/Info.plist.
2. Say specifically what the person uses camera for in the app and what the app does with it, not just that it needs camera access.

## Vague purpose string for camera

Often a rejection.

**What Apple wants:** Guideline 5.1.1 asks purpose strings to explain clearly why the app needs the data. "This app needs access to your camera" doesn't say what the person gets. Generic text is a frequent rejection.

**How to fix it:** Rewrite NSCameraUsageDescription as what the person gets from it.

Steps for React Native and Expo:

1. Set NSCameraUsageDescription in app.json under expo.ios.infoPlist (or the package's config plugin options).
2. Say what the app does with camera and how that helps the person, in terms of your own feature.

Steps for Swift:

1. Set NSCameraUsageDescription in the target's Info tab in Xcode (or INFOPLIST_KEY_… build settings).
2. Say what the app does with camera and how that helps the person, in terms of your own feature.

Steps for Flutter:

1. Set NSCameraUsageDescription in ios/Runner/Info.plist.
2. Say what the app does with camera and how that helps the person, in terms of your own feature.

## Privacy manifest doesn't declare UserDefaults

Usually a rejection.

**What Apple wants:** Since May 2024, App Store Connect rejects uploads that use "required reason" APIs like UserDefaults without declaring them in PrivacyInfo.xcprivacy (ITMS-91053). The build never reaches review.

**How to fix it:** Declare UserDefaults in app.json under expo.ios.privacyManifests.

Steps for React Native and Expo:

1. In app.json, add expo.ios.privacyManifests.NSPrivacyAccessedAPITypes with NSPrivacyAccessedAPICategoryUserDefaults and its reason code (UserDefaults: CA92.1 for the app's own data).

Steps for Swift:

1. Add a PrivacyInfo.xcprivacy file to the app target if there isn't one.
2. Under NSPrivacyAccessedAPITypes, add NSPrivacyAccessedAPICategoryUserDefaults with the reason code that fits (UserDefaults: CA92.1 for the app's own data).

Steps for Flutter:

1. Add ios/Runner/PrivacyInfo.xcprivacy to the Runner target in Xcode (File → New → File → App Privacy) if there isn't one.
2. Under NSPrivacyAccessedAPITypes, add NSPrivacyAccessedAPICategoryUserDefaults with the reason code that fits (UserDefaults: CA92.1 for the app's own data).

## No privacy policy link in the app

Often a rejection.

**What Apple wants:** Apps that collect data, through accounts, analytics or ads, need a privacy policy that's easy to reach inside the app, not only on the App Store page (Guideline 5.1.1).

**How to fix it:** Add a Privacy Policy link to settings (and to the sign-up screen).

Steps:

1. Add a "Privacy Policy" row in settings that opens your policy URL.
2. Use the same URL you set in App Store Connect.

## The privacy manifest names an API category Apple doesn't have

Usually a rejection.

**What Apple wants:** App Store Connect refuses an upload whose privacy manifest lists an accessed API type that isn't one of Apple's five categories (ITMS-91054). It is usually a typo or a name from an old template.

**How to fix it:** Use one of Apple's category names, or remove the entry.

Steps for React Native and Expo:

1. In app.json under expo.ios.privacyManifests, change NSPrivacyAccessedAPIType to one of: NSPrivacyAccessedAPICategoryUserDefaults, NSPrivacyAccessedAPICategoryFileTimestamp, NSPrivacyAccessedAPICategorySystemBootTime, NSPrivacyAccessedAPICategoryDiskSpace, NSPrivacyAccessedAPICategoryActiveKeyboards.
2. Keep the reason codes that belong to the category you choose (the next scan checks them).

Steps for Swift and Flutter:

1. In PrivacyInfo.xcprivacy (open it in Xcode, or as text), change NSPrivacyAccessedAPIType to one of: NSPrivacyAccessedAPICategoryUserDefaults, NSPrivacyAccessedAPICategoryFileTimestamp, NSPrivacyAccessedAPICategorySystemBootTime, NSPrivacyAccessedAPICategoryDiskSpace, NSPrivacyAccessedAPICategoryActiveKeyboards.
2. Keep the reason codes that belong to the category you choose (the next scan checks them).

## An API category is declared without a reason

Usually a rejection.

**What Apple wants:** Each accessed API category needs at least one reason code in NSPrivacyAccessedAPITypeReasons; App Store Connect refuses the upload when it is missing or empty (ITMS-91055).

**How to fix it:** Add the reason code that matches how the app uses the API.

Steps for React Native and Expo:

1. In app.json under expo.ios.privacyManifests, add NSPrivacyAccessedAPITypeReasons under the category with the code that fits.

Steps for Swift and Flutter:

1. In PrivacyInfo.xcprivacy (open it in Xcode, or as text), add NSPrivacyAccessedAPITypeReasons under the category with the code that fits.

## A reason code isn't a reason for its category

Usually a rejection.

**What Apple wants:** App Store Connect accepts only the reason codes Apple defines for each category, and refuses the upload otherwise (ITMS-91055), even though Xcode and plutil accept the file.

**How to fix it:** Replace it with the category reason that matches how the app uses the API.

Steps for React Native and Expo:

1. In app.json under expo.ios.privacyManifests, under the category, replace the code with the one that fits.

Steps for Swift and Flutter:

1. In PrivacyInfo.xcprivacy (open it in Xcode, or as text), under the category, replace the code with the one that fits.

## The app's privacy manifest uses a reason meant for third-party SDKs

Delays review.

**What Apple wants:** This code declares a third-party SDK's wrapper around the API. That fits when an SDK linked into the app (merged into its manifest) calls the API for the app; if the app's own code calls it, Apple wants the reason for how the app uses it.

**How to fix it:** Replace it with the reason for how the app itself uses the API.

Steps for React Native and Expo:

1. In app.json under expo.ios.privacyManifests, under the category, replace the SDK-only code with the one that fits.

Steps for Swift and Flutter:

1. In PrivacyInfo.xcprivacy (open it in Xcode, or as text), under the category, replace the SDK-only code with the one that fits.

## A collected data entry in the privacy manifest is malformed

Often a rejection.

**What Apple wants:** Each entry in NSPrivacyCollectedDataTypes needs one of Apple's data types, whether it is linked to the person and used for tracking, and at least one of Apple's purposes. App Store Connect flags a manifest that doesn't follow the format (ITMS-91056).

**How to fix it:** Use Apple's names for the data type and purposes, and fill in all four keys.

Steps for React Native and Expo:

1. In app.json under expo.ios.privacyManifests, fix each entry named here: NSPrivacyCollectedDataType, NSPrivacyCollectedDataTypeLinked, NSPrivacyCollectedDataTypeTracking and NSPrivacyCollectedDataTypePurposes.
2. Purposes take: ThirdPartyAdvertising, DeveloperAdvertising, Analytics, ProductPersonalization, AppFunctionality, Other (with the NSPrivacyCollectedDataTypePurpose prefix).

Steps for Swift and Flutter:

1. In PrivacyInfo.xcprivacy (open it in Xcode, or as text), fix each entry named here: NSPrivacyCollectedDataType, NSPrivacyCollectedDataTypeLinked, NSPrivacyCollectedDataTypeTracking and NSPrivacyCollectedDataTypePurposes.
2. Purposes take: ThirdPartyAdvertising, DeveloperAdvertising, Analytics, ProductPersonalization, AppFunctionality, Other (with the NSPrivacyCollectedDataTypePurpose prefix).

## The privacy manifest lists the same thing twice

Delays review.

**What Apple wants:** A category or data type that appears twice is usually a template merged with an older manifest: one of the two copies is likely out of date, and the reasons or purposes the reviewer sees may not be the ones you meant.

**How to fix it:** Merge the duplicates into one entry each.

Steps for React Native and Expo:

1. In app.json under expo.ios.privacyManifests, keep one entry per category and per data type, with every reason or purpose that applies.

Steps for Swift and Flutter:

1. In PrivacyInfo.xcprivacy (open it in Xcode, or as text), keep one entry per category and per data type, with every reason or purpose that applies.

## The privacy manifest isn't part of the app target

Often a rejection.

**What Apple wants:** PrivacyInfo.xcprivacy is in the project folder, but no target copies it into the app (its Target Membership is off), so the build ships without it and App Store Connect refuses the upload as if there were none (ITMS-91053).

**How to fix it:** Tick the app target in the manifest's Target Membership.

Steps:

1. In Xcode, select PrivacyInfo.xcprivacy → File inspector → Target Membership: tick the app target.
2. Check it appears under the app target's Build Phases → Copy Bundle Resources.

## The privacy manifest declares API categories the code doesn't use

Delays review.

**What Apple wants:** Declared categories that the app's own code never calls usually come from a copied template. They don't block an upload, but the reasons claim uses the app doesn't have; keep the manifest to what the app does.

**How to fix it:** Remove the categories the app never uses (keep them if a library compiled into the app uses them).

Steps:

1. In PrivacyInfo.xcprivacy, remove the entries for the categories named here unless a library built into the app (not a separate framework with its own manifest) calls those APIs.

## Some SDKs on Apple's list have no privacy manifest: see below

Often a rejection.

**What Apple wants:** Apple requires a privacy manifest from every SDK on its list of commonly used SDKs, and refuses uploads that add one without it (ITMS-91061). The installed copies named here carry none: usually a version from before 2024. Found before building. After a test run, the build's own check covers each SDK the build shows, and this one the rest (linked into the app with no privacy bundle at all).

**How to fix it:** Update each to a version that ships its privacy manifest.

Steps for React Native and Expo:

1. Update the packages named here to their current versions, then reinstall the pods: current versions ship PrivacyInfo.xcprivacy.
2. Scan again: AppScend looks for the manifest in the installed copy.

Steps for Swift:

1. Update the SDKs named here (Xcode → File → Packages → Update to Latest Package Versions, or pod update for CocoaPods): current versions ship PrivacyInfo.xcprivacy.
2. Scan again: AppScend looks for the manifest in the installed copy.

Steps for Flutter:

1. Raise the Flutter packages named here (or the ones that bring them) to their current versions in pubspec.yaml (flutter pub upgrade), then build again so CocoaPods installs them: current versions ship PrivacyInfo.xcprivacy.
2. Scan again: AppScend looks for the manifest in the installed copy.

## No privacy policy URL in App Store Connect

Usually a rejection.

**What Apple wants:** Every app needs a privacy policy URL in App Store Connect (App Information). Without it you can't submit at all, and reviewers check that the page loads and matches the App Privacy answers.

**How to fix it:** Add your privacy policy URL under App Information in App Store Connect.

Steps:

1. Publish a privacy policy page (it must load without signing in).
2. App Store Connect → your app → App Information → Privacy Policy URL.
3. Use the same URL in the app's settings screen.

## Your privacy policy URL doesn't open

Usually a rejection.

**What Apple wants:** Reviewers open the privacy policy link from App Store Connect, and a page that doesn't load is a rejection under Guideline 5.1.1(i). Loaded from your Mac it answered with HTTP undefined.

**How to fix it:** Publish the page so it opens without signing in, or change the URL to one that does.

Steps:

1. Open the URL in a private browser window.
2. Publish or fix the page (no sign-in, no redirect to a home page).
3. Update the URL in App Store Connect → App Information if it moved.

## Your privacy choices link doesn't open

Often a rejection.

**What Apple wants:** The privacy choices link on your App Store page is where people manage what the app does with their data. Loaded from your Mac it answered with HTTP undefined.

**How to fix it:** Publish the page, point the link at one that works, or clear it in App Store Connect.

Steps:

1. App Store Connect → your app → App Information → Privacy Choices URL.

## It asks for a permission the moment it opens

Delays review.

**What Apple wants:** undefined: shown before the app has said why. Apple asks apps to request permissions in context (Guideline 5.1.1(iv)), and people deny prompts they don't understand.

**How to fix it:** Ask when the feature that needs it is first used, after a sentence saying what it is for.

Steps:

1. Move the permission request to the moment the feature is first used.
2. Before the system prompt, show one sentence on what it is for.

## A permission prompt doesn't say what the access is for

Often a rejection.

**What Apple wants:** undefined Apple asks each permission's message to say what the app does with the access, in plain words. A message that only says the app needs access is a common rejection under Guideline 5.1.1.

**How to fix it:** Rewrite the permission’s purpose string to say what the app does with the access and how it helps the person.

Steps for React Native and Expo:

1. Find the purpose string for this permission in your app config (ios.infoPlist, or the plugin that asks for it).
2. Say what the app does with the access in one plain sentence, in the words of the feature that asks.
3. Run the test again: it reads the prompt.

Steps for Swift and Flutter:

1. Find the NS…UsageDescription key for this permission in Info.plist.
2. Say what the app does with the access in one plain sentence, in the words of the feature that asks.
3. Run the test again: it reads the prompt.

## The app asks for a permission with no purpose string

Usually a rejection.

**What Apple wants:** undefined iOS ends an app that asks for a permission without its purpose string, on the spot, and Apple rejects it under Guideline 5.1.1: every permission needs a message that says what it's for.

**How to fix it:** Add the purpose string for that permission, saying what the app does with the access.

Steps for React Native and Expo:

1. Find which permission it asked for (the line on this card names the key) and add its purpose string to your app config (ios.infoPlist, or the plugin that asks for it).
2. Say what the app does with the access in one plain sentence.
3. Run the test again: it reads the log as it uses the feature.

Steps for Swift and Flutter:

1. Find which permission it asked for (the line on this card names the key) and add that NS…UsageDescription key to Info.plist.
2. Say what the app does with the access in one plain sentence.
3. Run the test again: it reads the log as it uses the feature.

## undefined SDKs Apple lists have no privacy manifest: undefined

Often a rejection.

**What Apple wants:** Apple requires a privacy manifest from every SDK on its list of commonly used SDKs when an app (or an update that adds one) is submitted, and refuses the upload without it (ITMS-91061). These are in the build without one: usually an old version.

**How to fix it:** Update each to a version that ships its privacy manifest.

Steps for React Native, Expo and Flutter:

1. Update the packages named here to their current versions with your package manager, then reinstall the pods: those ship PrivacyInfo.xcprivacy.
2. Build again: the next test run reads the manifests.

Steps for Swift:

1. Update the SDKs named here to their current versions (Xcode → File → Packages → Update to Latest Package Versions, or pod update): those ship PrivacyInfo.xcprivacy.
2. Build again: the next test run reads the manifests.

## A purpose string in the build is empty

Usually a rejection.

**What Apple wants:** iOS shows a purpose string when the app asks for access, and App Review rejects apps whose purpose strings are empty or say nothing about why (Guideline 5.1.1); App Store Connect also flags missing ones on upload (ITMS-90683). These are present in the build but empty.

**How to fix it:** Write what the app does with the access, in a full sentence, for each one.

Steps for React Native and Expo:

1. Fill each key named here in app.json under expo.ios.infoPlist (or the matching config plugin option) with a sentence on what the app does with the access.
2. Build again: the next test run reads it.

Steps for Swift:

1. In Xcode, the app target's Info tab: fill each key named here with a sentence on what the app does with the access.
2. Build again: the next test run reads it.

Steps for Flutter:

1. Fill each key named here in Info.plist with a sentence on what the app does with the access.
2. Build again: the next test run reads it.

## Some purpose strings in the build came from a dependency

Delays review.

**What Apple wants:** These are in the built app but not in your project's own settings: a package or config plugin added them with its own wording. App Review reads every purpose string and rejects vague ones (Guideline 5.1.1), and a library's default text rarely says what your app does with the access.

**How to fix it:** Read each one, and set your own wording where it is generic.

Steps for React Native and Expo:

1. Set your own text for each key named here in app.json under expo.ios.infoPlist, or in the config plugin's options.
2. If the app never uses that access, remove the package that adds it.

Steps for Swift:

1. Set your own text for each key named here in the app target's Info tab.
2. If the app never uses that access, remove the dependency that adds it.

Steps for Flutter:

1. Set your own text for each key named here in Info.plist.
2. If the app never uses that access, remove the dependency that adds it.

## The build has no privacy manifest, but the app uses required-reason APIs

Usually a rejection.

**What Apple wants:** Apps that call "required reason" APIs (UserDefaults, file timestamps, boot time, disk space, active keyboards) must declare them in a PrivacyInfo.xcprivacy at the root of the app; App Store Connect refuses the upload without it (ITMS-91053). The built app has none.

**How to fix it:** Declare the APIs in app.json under expo.ios.privacyManifests, so the build carries a manifest.

Steps for React Native and Expo:

1. In app.json, add expo.ios.privacyManifests.NSPrivacyAccessedAPITypes with each category the code uses and its reason code.
2. Build again: the next test run checks the manifest is in the app.

Steps for Swift and Flutter:

1. Add PrivacyInfo.xcprivacy (File → New → File → App Privacy) and tick the app target in its Target Membership.
2. Add each category the code uses under NSPrivacyAccessedAPITypes with its reason code.
3. Build again: the next test run checks the manifest is in the app.

## Some app extensions have no privacy manifest

Delays review.

**What Apple wants:** Each app extension is its own bundle: when its code uses required-reason APIs or collects data, it needs its own PrivacyInfo.xcprivacy, or App Store Connect flags the upload (ITMS-91053). An extension from an SDK on Apple's list must carry one (ITMS-91061).

**How to fix it:** Add a privacy manifest to each extension that uses required-reason APIs, or update the SDK the extension comes from.

Steps:

1. For each extension named here, add PrivacyInfo.xcprivacy to the extension target (Target Membership) with the categories its code uses.
2. If an SDK provides the extension, update the SDK.
3. Build again: the next test run reads it.

## The app's binary uses undefined APIs its privacy manifest doesn't declare

Usually a rejection.

**What Apple wants:** App Store Connect reads the uploaded binary for "required reason" APIs and refuses it when the privacy manifest doesn't declare their category (ITMS-91053; Apple's email names the binary). The app's own binary calls undefined. Code from static libraries is part of it, so the app declares their calls unless the library's own resource bundle does.

**How to fix it:** Declare undefined in app.json under expo.ios.privacyManifests.

Steps for React Native and Expo:

1. In app.json, add expo.ios.privacyManifests.NSPrivacyAccessedAPITypes with undefined and its reason code.
2. Reason codes: undefined.
3. If a library calls it, updating the library to a version with its own privacy manifest declares it there instead.
4. Build again: the next test run or build check reads the binary.

Steps for Swift and Flutter:

1. In the app's PrivacyInfo.xcprivacy (File → New → File → App Privacy, in the app target), add undefined under NSPrivacyAccessedAPITypes with its reason code.
2. Reason codes: undefined.
3. If a library calls it, updating the library to a version with its own privacy manifest declares it there instead.
4. Build again: the next test run or build check reads the binary.

## undefined uses undefined APIs and has no privacy manifest

Often a rejection.

**What Apple wants:** Each framework and extension in the build declares the "required reason" APIs its own code calls, in its own privacy manifest; Apple's email after an upload names the binary and the category (ITMS-91053). undefined calls undefined. A newer version of an SDK usually declares them.

**How to fix it:** Update the SDK to a version whose privacy manifest declares them.

Steps for React Native, Expo and Flutter:

1. Update the SDK to its current version (with your package manager, then reinstall the pods).
2. If it's your own framework, add the categories to its PrivacyInfo.xcprivacy.
3. Build again: the next test run or build check reads it.

Steps for Swift:

1. Update the SDK to its current version (Xcode → File → Packages → Update to Latest Package Versions, or pod update).
2. If it's your own framework, add the categories to its PrivacyInfo.xcprivacy.
3. Build again: the next test run or build check reads it.

---

AppScend checks an app against every guideline at once, on the developer's Mac: `npx appscend scan --json` in the app's root folder (docs: https://appscend.ai/docs).

Source: https://appscend.ai/guidelines/5-1-1
