Skip to content

feat(ios): declare the privacy manifest in app.json - #28

Merged
dsatpm merged 1 commit into
mainfrom
dsatpm/ios-privacy-manifest-80e04f4d
Oct 10, 2026
Merged

dsatpm merged 1 commit into
mainfrom
dsatpm/ios-privacy-manifest-80e04f4d

Conversation

@dsatpm

@dsatpm dsatpm commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

Declares the iOS privacy manifest in app.json (ios.privacyManifests), so every build produces a complete one.

Why

Expo's privacy manifest guide says Apple does not reliably read the PrivacyInfo.xcprivacy files inside static CocoaPods, such as Expo modules and React Native. The app-level manifest therefore has to repeat every required-reason API those pods declare. The manifest prebuild generated by default was missing:

  • NSPrivacyAccessedAPICategoryDiskSpace E174.1, 85F4.1 (expo-file-system)
  • NSPrivacyAccessedAPICategoryFileTimestamp 0A2A.1, 3B52.1 (expo-file-system)

What it declares

The union of the 11 dependency manifests in node_modules, plus SystemBootTime 35F9.1 for the ClockSnapshot module (kern.boottime, mach_continuous_time). It also declares no tracking and no collected data.

How it was tested

  • New tests/iosPrivacyManifest.test.ts re-reads every dependency manifest and fails if app.json is missing a reason. With 85F4.1 removed it fails on expo-file-system (checked).
  • npx expo prebuild --platform ios writes ios/Birthmark/PrivacyInfo.xcprivacy containing all four categories (checked with plutil).
  • npm run typecheck and npm run lint are clean.

Not verified: Apple's own check. That runs only on an App Store Connect or TestFlight upload, which emails within minutes if anything is missing.

🤖 Generated with Claude Code

Apple does not reliably read the PrivacyInfo.xcprivacy files inside static
CocoaPods (Expo modules, React Native), so the app-level manifest has to repeat
every required-reason API they declare. The prebuild default only had
UserDefaults, SystemBootTime and FileTimestamp C617.1; it was missing DiskSpace
(E174.1, 85F4.1, from expo-file-system) and FileTimestamp 0A2A.1 / 3B52.1.

ios.privacyManifests now lists the union of all dependency manifests plus
SystemBootTime 35F9.1 for the ClockSnapshot module, with no tracking and no
collected data. tests/iosPrivacyManifest.test.ts re-reads the dependency
manifests from node_modules, so an upgrade that adds a reason fails the test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dsatpm
dsatpm merged commit 631d7b6 into main Oct 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant