Xcode Cloud in depth: workflows, ci_scripts, variables and pricing
Essence
Xcode Cloud is Apple's CI/CD, built into Xcode and App Store Connect. It builds, tests and archives your app on temporary Apple-hosted macOS machines, manages signing for you and distributes builds to TestFlight. The basics (workflow, ci_scripts, CI_BUILD_NUMBER) are covered in the "CI/CD for iOS" article in the "Building and shipping" topic; this one goes into the details you need to actually live with Xcode Cloud: how a build runs, what the scripts can do, where secrets go and what it costs.
The rest of this answer, with code and interview follow-ups, is in the DevPrep app.
Read the full answer in DevPrep