How to create PrivacyInfo.xcprivacy file for Flutter iOS app

Posted on January 25th, 2024

Privacy manifest file, named PrivacyInfo.xcprivacy has been mentioned at developer.apple.com/documentation/bundleresources/privacy_manifest_files

1. Create default PrivacyInfo.xcprivacy file for Flutter iOS app

This is the file that Flutter has compiled and put into Flutter.framework, so my app will take all of this content and put it into PrivacyInfo.xcprivacy

ref: flutter/issues/131494

2. Scans the given directory for possible use of "iOS required reason API"

Download file required_reason_api_scanner.sh and run command

sh required_reason_api_scanner.sh directory_name

For paths starting with ios/Pods, they can be ignored and do not need to be analyzed. Analysis results will be based on describing_use_of_required_reason_api and add to PrivacyInfo.xcprivacy

ref: github.com/Wooder/ios_17_required_reason_api_scanner