Short answer: the CRA does not pick a format, so either CycloneDX or SPDX can work. Choose the one your build tools produce at a version that BSI TR-03183-2 accepts, and stay with it for every release.
The law asks for a "commonly used and machine-readable format" (Annex I Part II point (1)). The Commission may specify the format later (Art. 13(24)), so recheck before December 2027.
BSI TR-03183-2 v2.1.0 accepts CycloneDX 1.6 or higher and SPDX 3.0.1 or higher, as JSON or XML. Older versions of either format fall short of that guideline.
ENISA names both formats as the common ones and does not recommend one over the other.
You publish the app, so you are the manufacturer (Art. 3(13)) and the choice is yours, even if an agency generates the file.
What the CRA says about format
The CRA text is Regulation (EU) 2024/2847 .…