PrivacyReportGen is an open-source tool that generates JSON or plist files from xcarchive files, containing the same data as the privacy peport PDF file that can be generated from Xcode. This allows for easy comparison of differences between reports.
- Extracts privacy report data from xcarchive files
- Generates JSON and plist format files
- Facilitates comparison of privacy report data
To use PrivacyReportGen, install it via Swift Package Manager. Add PrivacyReportGen as plugin in your Package.swift
.
let package = Package(
name: "Tools",
platforms: [.macOS(.v14)],
products: [ ... ],
dependencies: [
...
.package(url: "https://github.com/fxwx23/PrivacyReportGen", exact: "0.0.0"),
],
targets: [ ... ]
)
To generate a privacy report in JSON or plist format, run the following command plugin:
$ swift package plugin --allow-writing-to-package-directory generate-privacy-report --xcarchive-path '/path/to/your/App.xcarchive'
--xcarchive-path
: Specifies the path to the xcarchive file from which to generate the privacy report data. (Required)--json
: Specifies JSON as the output format for the generated privacy report. (default is plist)--output-directory
: Specifies the directory where the generated privacy report file will be saved. (default is package path)- If using this option, also include
--allow-writing-to-directory
to allow writing to the specified directory.
- If using this option, also include
--report-name
: Specifies the name of the generated privacy report file. (default isPrivacyReport
)
Contributions are welcome! Please fork the repository and submit a pull request with your improvements.
PrivacyReportGen is released under the MIT License. See LICENSE for more information.