Prepare the release before renting
Check that you have access to the app in App Store Connect and can distribute a build for your Apple Developer team. Prepare the store listing and release notes in the browser. Set aside time to install Xcode and resolve any build or signing issues.
A day lease usually suits a release when the project is ready and you only need to archive and upload. If you still have Xcode work to do, compare the lease terms. See the iOS build guide for how to rent, connect and install Xcode.
Choose how to sign before connecting
The Mac's owner can reach the running virtual machine. Keep any account credentials or signing keys the owner must never see on a machine you control. See the security model.
Prefer automatic signing in Xcode's Organizer with cloud-managed distribution signing if your team allows it. This lets you sign without importing a private key. If you need a local signing identity, arrange a dedicated Apple Distribution certificate that your team's Account Holder or Admin can revoke. Choose a certificate that other release jobs do not depend on.
Archive, sign and upload on the Mac
Open the project in Xcode over remote desktop. Select the release scheme and an iOS device destination, then choose Product › Archive. In Organizer, select the archive and choose Distribute App.
The App Store build uses an Apple Distribution certificate and an App Store provisioning profile. With automatic signing, let Xcode manage those for your team. With manual signing, select the distribution identity and a profile that matches the app's bundle ID. Upload from Organizer, or export the signed build and upload it with Apple's Transporter app on the Mac.
Clean up before the lease ends
Save any archive or build output you need on a machine you control. Sign out of Xcode and Transporter if you used them. If you imported a signing identity, remove it from the Mac's keychain and remove any .p12 files or other copies of the private key. Keep App Store Connect API keys off the Mac. If you used one there, remove it and revoke it in App Store Connect.
Once Apple has accepted the upload, have your team revoke the dedicated distribution certificate you used. NVTO deletes the virtual machine at lease end.
Continue in App Store Connect
Open App Store Connect in a browser on Windows, Linux or macOS. Once Apple finishes processing the upload, you can add the build to a TestFlight group or select it for the app version you want to release. Complete the required listing and review details, then submit that version to App Review.