Generating app privacy report with `xcodebuild`

How can we generate the app privacy report with xcodebuild?

Here it is described how to generate the app privacy report using Xcode. We would like to do the same with xcodebuild as part of our automated build pipeline.

We use our own build process as well using xcodebuild to glue things together. The Archive process takes an empty skeleton and will not run a report. I also took our build output but could not get xcode to recognize it as an xcarchive.

Generating app privacy report with `xcodebuild`
 
 
Q