CI/CD for iOS: xcodebuild, fastlane and Xcode Cloud
Essence
CI builds and tests every PR; CD takes a verified build to TestFlight and the App Store without manual steps. At the bottom of any setup is xcodebuild; fastlane and Xcode Cloud are convenient layers on top.
The rest of this answer, with code and interview follow-ups, is in the DevPrep app.
Read the full answer in DevPrep