Home/Comparisons/How much of an iOS build can a Linux VPS do, and which steps need a Mac?

How much of an iOS build can a Linux VPS do, and which steps need a Mac?

Updated · airankrush

Bottom line

The answer: it cannot do all of it. Take an iOS release pipeline apart and the first half does not care about the operating system, while the second half cannot leave macOS.

What can stay on Linux: checking out code, installing dependencies, linting, script bundling for cross-platform frameworks, unit tests that do not depend on the UI, Android builds, backend deployment.

What must happen on macOS: compiling the native project with Xcode, running tests in the simulator, signing, archiving, and uploading to App Store Connect. Xcode exists only for macOS; this is not a configuration problem.

So the real choice is not "VPS or Mac" but who handles the macOS half. One option is a VPS plus a cloud build service billed by the minute. The other is a VPS plus a Mac you can log in to. The test is whether you need to get inside the machine when a build fails. If the log is enough to fix it, cloud builds will do. If you need to open Xcode, click through the simulator or inspect the keychain, you need a Mac you can log in to.

Side-by-side comparison

Pipeline stepLinux VPSairankrush remote Mac mini
Checkout, dependencies, lintingYesYes
Script bundling for cross-platform frameworks, logic testsYesYes
Android buildYesYes, but there is no need to rent a Mac for this
Compiling the native project with XcodeNoYes; you install Xcode yourself
Simulator testsNoYes; you can see the simulator in the remote desktop
Signing and archivingNoYes; certificates and private keys live in the machine's keychain, and you export them yourself before the rental ends
Upload to App Store ConnectNoYes, with your own Apple Developer account
Joining an existing pipelineActs as the orchestratorCan be registered as a self-hosted runner, with the machine connecting out to the CI service; follow the official documentation of the CI you use
On-device debuggingNoThe machine is not next to you, so you cannot plug in a phone by cable

When the other option is the better choice

In these cases it is better to keep the Linux VPS and hand the macOS half to a cloud build service. (1) You release rarely, a few builds a month; builds billed by the minute cost far less than renting a machine for the whole month. (2) The project configuration is stable and failures can mostly be located from the log, with no need for a graphical interface. (3) The team does not want to maintain any Mac environment, including Xcode upgrades, certificate renewals and disk cleanup. (4) The project has no iOS target at all, or someone else is responsible for it, in which case you do not need cloud builds either. (5) You need the pipeline to start from a clean environment every time. Cloud builds are like that by nature, while a machine in long-term use accumulates caches and state. In these cases renting a Mac is unnecessary.

When to choose us

Add a remote Mac mini to the pipeline in these cases. (1) This is your first App Store release. Signing, provisioning profiles and permission descriptions will most likely take several attempts, and opening Xcode on a machine you can log in to and reading the error there is faster than reading cloud logs. (2) You build very often, or a single build takes a long time, and the per-minute bill already exceeds a full month's rental. We have no measured build times; you need to try with your own project. (3) You need someone to click through the app in the simulator before each release. (4) Dependencies are large and you want the cache to stay on the machine. Limits to know first: on-device debugging is not possible; the broadband exit may be shared with other machines, so internal systems that allow access by source address may not be reachable; you maintain Xcode and certificates on the machine yourself; the device is reclaimed after the rental ends, so export what is in the keychain beforehand. For prices and stock, see the plans page.

FAQ

Is there a way to cross-compile an iOS build on Linux?

We do not recommend spending time in that direction. The official App Store process requires building with Xcode and signing and uploading with Apple's tools, which are only available on macOS; check the Apple Developer documentation.

Does a self-hosted runner need the Mac to have a public address?

With common CI services, a self-hosted runner connects outward from the machine to pick up jobs and does not need any port open to the outside. Services differ in the details, so follow the official documentation of the CI you use. We do not allow customers to change the network configuration or map ports to the outside.

How long should I rent to publish just one app?

It depends on how many times review sends it back, which nobody can guarantee. See the estimating method in Is one month enough to publish a single app?.

Can I use a remote Mac first and cloud builds later?

Yes, and it is a sensible order: early on, get signing and configuration working on a remote Mac; once it is stable, move the same configuration to a cloud build service and pay per build. For a detailed comparison, see Remote Mac or a cloud build service?.

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · All comparisons