Direct answer
Yes, but the manual routine has to go. Use an App Store Connect API key instead of signing in with an Apple Account, and use script-managed certificates in a dedicated keychain instead of clicking through Xcode.
Basis
- The fastlane documentation recommends API key authentication where possible, and the first benefit it lists is that no two-factor authentication is needed (App Store Connect API, checked 2026-11-12). The support table on the same page shows that match, cert, sigh, pilot and deliver all support keys, while produce and pem do not yet.
- fastlane's
setup_ciaction creates a temporary keychain for match and switches match to read-only mode, so the pipeline does not create new certificates and provisioning profiles on the build machine. By default it only takes effect when it detects a CI environment, and the documentation gives aforceoption to make it run regardless (setup_ci). - You can also do without fastlane:
xcodebuilditself supports automatic signing with an API key. For the parameters, follow Apple's documentation and the output ofxcodebuild -help. - The difference between an always-on machine and a cloud runner is that certificates can stay in the machine's keychain rather than being imported again on every build.
Boundaries: when the answer is different
Some steps still need a person: accepting new agreements in the developer portal, creating an app record for the first time, enabling certain capabilities for an app, and renewing certificates when they expire. When these come up the pipeline fails and someone has to handle it on the web. Certificates and keys kept on a rented machine are your responsibility to safeguard. We do not proactively access device content, but we do not safeguard them for you either. Remove them from the machine before the rental ends and, where necessary, revoke them in the developer portal. If your project has compliance requirements about where certificates are stored, assess that before deciding.
How to do it
- Generate an API key in App Store Connect and store the key file's contents in your CI platform's secret variables.
- Prepare the distribution certificate and provisioning profiles with match or by hand, and keep them in a private location you control.
- Call
setup_ciat the start of the pipeline (withforceon a self-hosted runner), then sync certificates in read-only mode. - Build, export and upload, with no Apple Account password appearing anywhere.
- Note the certificate expiry date and plan the renewal ahead of time.
Related questions
- Rented Mac mini as an always-on build machine for small teams? Count your build minutes first
- How do I sign an iOS app and upload it to the App Store from a remote Mac?
- Locked keychain or signing error in CI on a rented Mac: how to fix it
- Can I sign in with my own Apple Developer account on a rented Mac?
- Which user account does a CI runner run as on a rented Mac?
Use case
This question belongs to the use case: Rented Mac mini as an always-on build machine for small teams? Count your build minutes first
Other questions in the same use case:
- Build machine: buy a Mac mini for the office or rent one?
- Self-hosted Mac mini runner vs GitHub-hosted macOS runner: which to choose?
- I already have Xcode Cloud. Do I still need my own Mac mini build machine?
- Bitrise vs renting your own Mac mini as a build machine
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support