Guides / iOS and Apple Platform Engineering
How do I stop manually building iOS apps for QA?
Put the build on a CI server that runs on every merge or on a schedule. The job checks out a clean copy of the code, resolves dependencies, signs the app with certificates held by the CI system, archives it, and uploads it to TestFlight or another tester channel. Testers install from there, and nobody builds on a personal laptop. Start with one QA lane, then add a production lane that reuses the same steps.
Why hand-built QA builds keep going wrong
A manual QA build usually means one developer opens Xcode, picks a scheme, archives, exports and sends the result to testers. It works until that developer is out, or until their laptop differs from the next person's laptop.
- Signing drift. Certificates and provisioning profiles live in one person's keychain, so only that person can ship.
- Dependency drift. A local pod or package version differs from what the team expects, and a bug reproduces in only one build.
- Unknown contents. Nobody can say which commit a tester's build came from, or whether uncommitted local changes went in.
- Version collisions. Build numbers get reused or skipped, and testers file bugs against the wrong build.
- Interrupted work. Every build pulls a developer out of what they were doing.
Each problem is small on its own. Together they slow QA down and make production releases feel risky, because the release build is made the same ad-hoc way.
What an iOS CI job needs to do
The goal is a build that starts from a clean checkout and produces the same kind of artifact every time. A workable first pipeline has these steps:
- Trigger on a merge to your main branch, on a tag, or on a nightly schedule.
- Check out the exact commit on a clean macOS machine with a pinned Xcode version.
- Resolve dependencies from a locked file, including any private pods or packages.
- Run the unit tests and fail the job if they fail.
- Set a unique build number automatically, for example from the CI run number.
- Sign with a distribution certificate and profile kept in the CI system's secret storage, not on a person's laptop.
- Archive and export the app.
- Upload to TestFlight or another tester channel, and post the build and its commit to the team chat.
Fastlane, Xcode Cloud, Jenkins and GitHub Actions can all run these steps. The tool matters less than the rule: a build is made by the pipeline, never by hand.
Run QA and production builds through the same pipeline
Two separate build paths mean QA tests one thing and the App Store receives another. Keep one pipeline and vary only the configuration.
- QA lane: runs on every merge, points at a test backend and uploads to an internal tester group.
- Production lane: runs from a release branch or tag, points at the live backend, uploads to App Store Connect, and waits for a person to submit for review.
- Shared: the same scripts, the same signing setup and the same Xcode version.
The production lane then becomes a small variation on something that has already run many times for QA, instead of a once-a-quarter ritual that only one person remembers.
What this looked like at Logitech
From Jul 2017 to Sep 2021, Nithin Gaddam was a Software Engineer III at Logitech. The job was building and maintaining the Ultimate Ears Bluetooth and IoT speaker companion iOS apps for the App Store. It also included enabling continuous integration for QA and production builds, and developing 2 private cocoapods.
Work like that comes with built-in constraints. A companion app for a speaker has to be tested on real phones against real hardware, so QA needs fresh builds often. Private pods mean any CI machine needs access to the private source, not only the public specs. Putting both QA and production builds on CI lets the people testing the app and the people shipping it work from the same repeatable process.
For the app side of that work, see How do I build a companion app for a Bluetooth speaker?
When it is not worth doing yet
The first setup takes real effort, mostly code signing and getting dependencies to resolve on a clean machine. Mac build capacity costs money or maintenance, whether you rent it or host it yourself. CI also does not replace testing on real devices.
If you are one developer shipping to one tester once a month, a written-down manual process may be enough for now. Once a second person needs builds, or a tester has received the wrong build once, set up the QA lane first and add production after.
Frequently asked questions
Do I need a Mac to run iOS CI?
Yes. Building an iOS app needs Xcode, which runs only on macOS, so your CI needs a macOS machine. It can be a hosted Mac runner or a Mac you maintain yourself.
How should CI handle code signing?
Keep the distribution certificate and provisioning profiles in the CI system's secret storage or an encrypted shared repository, and install them into a temporary keychain for each job. Tools like fastlane can automate this. The aim is that no build depends on one person's keychain.
How often should QA builds run?
Build on every merge to the main branch if your tests are quick, or nightly if they are slow. Testers should always have a recent build that maps to a known commit.
Should production builds also come from CI?
Yes. A production build made by hand is the least-tested path in your process. Run it through the same pipeline as QA, and keep a manual approval before the App Store submission.
What if my app uses private pods or packages?
Give the CI machine read access to the private repositories, ideally with a deploy key or token scoped to that purpose. Then make sure the dependency lock file is committed so the job resolves the same versions every time.