Skip to content

Code Lab

App Store Compliance Explained: Test a Privacy Manifest before Submission

By Miles Park·
GitHub preview of mjmirza/app-store-compliance, Trace a submission warning from a local privacy manifest to the rule that found it.

CODE LAB · PROJECT SPOTLIGHT

App Store Compliance Source walkthrough

Trace a submission warning from a local privacy manifest to the rule that found it.

Preview: GitHub · mjmirza/app-store-compliance

An app can build successfully while its submission metadata contains an inconsistency. App Store Compliance combines a developer playbook with scripts that inspect selected files before submission. We tested its privacy-manifest validator on a deliberately inconsistent local plist, read the warning, and then changed the fixture to match a simple no-tracking example.

Use the creator’s playbook to choose the right check

The App Store Compliance creator website showing a starting-point table for submission checks and rejection guidance.
Our capture of Mirza Iqbal’s public playbook. The table helps readers choose an entry point for their submission task. Original creator page or image.

The page offers routes for developers preparing a submission and for those investigating a rejection. Start from the task you actually have. A local source scan can identify a file or a missing value. A store review also depends on the built application, its behavior, and the information submitted with it. The source below is useful because the warning is tied to a concrete condition that can be reproduced.

Inspect the privacy-manifest rule

mjmirza/app-store-compliancePython · source excerpt
Py  scripts/validate-privacy-manifest.py
65    if tracking and not domains:66        out.append(_rec(path, "critical", "APPLE-ITMS-91064-TRACKING-NO-DOMAINS",67                        "NSPrivacyTracking is true but NSPrivacyTrackingDomains is empty. "68                        "List every domain the app or its SDKs contact for tracking "69                        "(an MMP such as AppsFlyer declares its own in the pod's manifest)."))70    if domains and not tracking:71        out.append(_rec(path, "critical", "APPLE-ITMS-91064-DOMAINS-NO-TRACKING",72                        "NSPrivacyTrackingDomains is non-empty but NSPrivacyTracking is false. "73                        "Set NSPrivacyTracking to true, or remove the domains."))7475    types = d.get("NSPrivacyCollectedDataTypes", [])76    if not isinstance(types, list):
Lines 65–76 · commit 88a7f3eView original on GitHub ↗

Source credit: mjmirza/app-store-compliance. OpenRoots Agent License 2.3 license and copyright notices.

This branch compares the tracking Boolean with the tracking-domain list. In the first direction, tracking is true while the list is empty. In the second, domains exist while tracking is false. The script emits a finding that identifies the condition and suggests what to inspect. Read Apple’s current reference alongside the source when fixing a real app. The project links its rules to the relevant upstream documentation. Apple TN3181.

Worked example: find a contradictory local declaration

import plistlib
from pathlib import Path
manifest = {
    "NSPrivacyTracking": True,
    "NSPrivacyTrackingDomains": [],
}
Path("PrivacyInfo.xcprivacy").write_bytes(plistlib.dumps(manifest))

# Run the repository validator after checking out the pinned source
# python scripts/validate-privacy-manifest.py PrivacyInfo.xcprivacy
# Observed finding identifier
# APPLE-ITMS-91064-TRACKING-NO-DOMAINS

We ran the actual Python validator against that file. It parsed the plist successfully and returned one critical finding with that identifier. The input declares tracking without providing domains. The output points to the contradiction. This focused test needs no Apple account or store upload and gives a reader a clear way to connect a rule to an input file.

Fix the declaration to match the app’s behavior

manifest["NSPrivacyTracking"] = False
Path("PrivacyInfo.xcprivacy").write_bytes(plistlib.dumps(manifest))
# Observed result from check(path) for this fixture
# findings = []
# unreadable = False

For our fictional no-tracking fixture, setting the Boolean to false removes that contradiction and the validator returns no findings. An actual app that tracks needs an accurate declaration of that behavior and its domains. The fixture change demonstrates the rule’s input and output. It does not determine what a real app or its SDKs collect. Inspect the built bundle and third-party manifests before editing a production declaration.

Add the broader guard to a repeatable submission review

The repository documents a shell guard that accepts the app’s folder, reports findings, and gives a verdict. Its Python tools provide more focused checks such as the manifest validation shown here. Keep the scan output with the version you are preparing and work through the files it names. After making a change, run the relevant check again and confirm that the build contains the intended declaration. The repository uses the custom OpenRoots Agent License 2.3. Check the linked terms for your intended use.

git clone https://github.com/mjmirza/app-store-compliance.git
cd app-store-compliance
git checkout 88a7f3e60b1a10f9f9237243cd0804196b1d43f1
python scripts/validate-privacy-manifest.py /path/to/PrivacyInfo.xcprivacy

For a wider source-review workflow, read Alibaba Open Code Review. For packaging repeatable agent guidance, continue with Cursor Plugins. For explicit development checks, see Superpowers.

Join the discussion

Your email address will not be published. Required fields are marked *