Required Reason API guidance for SQLite filesystem identification and locking on iOS

Hello,

I am preparing the first release of an iOS application that stores user data locally in an SQLite database within the app container.

I would appreciate some guidance on Apple's Required Reason API requirements for SQLite's internal filesystem identification and file-locking behavior.

Development environment
  • Flutter: 3.44.2
  • Dart: 3.12.2
  • Xcode: 27.2
  • Dart sqlite3 package: 3.5.0
  • Bundled SQLite version: 3.53.3
  • Minimum deployment target: iOS 15.0

SQLite is bundled as a dynamic framework through Dart Native Assets.

Technical findings

During a local inspection of the signed release archive, I identified the following imported symbols in the embedded SQLite binary:

  • _stat
  • _fstat
  • _lstat
  • _statfs
  • _fstatfs

Static analysis identified calls to statfs and fstatfs in the following SQLite functions:

  • unixOpen
  • autolockIoFinderImpl
  • proxyTransformUnixFile

These calls appear to be used for filesystem classification, mount flag inspection, and database file-locking behavior.

The application does not display available disk space or implement storage-capacity-based behavior. However, runtime coverage of every SQLite call path has not been established.

The archive contains privacy manifests for Flutter and url_launcher_ios, but no PrivacyInfo.xcprivacy was found inside sqlite3.framework.

The current Native Assets build path does not appear to provide a standard mechanism for bundling a framework-specific privacy manifest.

Questions
  1. Which approved reason, if any, applies to the use of statfs and fstatfs for filesystem identification and database file locking, rather than determining available disk space?

  2. Is C617.1 appropriate for the use of file metadata APIs when managing SQLite database files within the app container?

  3. If no existing approved reason covers the filesystem-locking use case, should a request for a new approved reason be submitted?

  4. When a dynamic framework is generated through Dart Native Assets and the current tooling does not support bundling a framework-specific privacy manifest, what is the appropriate location for the required declarations? Can the application's own privacy manifest cover these API calls, or is a manifest inside the framework required?

  5. If the application uses the system-provided SQLite library on iOS instead of bundling its own SQLite binary, are declarations still required for these APIs when they are called internally by the system SQLite library?

Related upstream discussions
  • https://github.com/simolus3/sqlite3.dart/issues/410
  • https://github.com/flutter/flutter/issues/140966
  • https://github.com/dart-lang/native/issues/878
Current status

This is a proactive, pre-submission compliance review.

The application has not yet been uploaded to App Store Connect or undergone Apple's Validate App process. No validation warning or rejection has been received.

My goal is to ensure that the privacy declarations accurately reflect the application's actual API usage, rather than declaring an approved reason that does not match the underlying behavior.

Any clarification from Apple engineers or developers with experience in this area would be greatly appreciated.

Thank you for your time and guidance.