Writing an iOS project and producing an installable IPA are different jobs. The archive, the signature, and the upload that App Store Connect will accept have to run on macOS with Xcode installed. Windows and Linux can hold almost all of the source work. The official toolchain does not ship for either of them. A cloud Mac and a Mac on the desk can both compile. They differ in latency, in where the certificates live, and in whether one person occupies the machine all day.
This note puts four compile hosts on one table: how far each one gets, what the same archive command does, where signing, the Simulator, and a device each get stuck, and who should keep the compile local versus who should park it on a macOS node that stays awake. The hardware price ledger is not recalculated here.
The compile is on macOS; the chair need not be
To ship, or to install on a device, the artifact has to be built with Apple’s toolchain and signed with an Apple certificate. The front door of that toolchain is xcodebuild. It ships with Xcode, and Xcode ships for macOS only. “Must an iOS app be compiled on a Mac?” is precise when you say it this way: there must be a running macOS with an Xcode that matches the OS you are targeting. That machine can sit on the desk, or it can sit in a rack and be called over SSH or a remote desktop.
Two earlier notes answer different questions. Whether Windows can start the iOS source at all draws the line between the editor, cross-platform frameworks, and the store. Whether you should buy a Mac is the ledger of cloud, used hardware, and a Mac mini. This page only locates the compile step. It does not reprice the hardware.
A line the team can repeat
Source can be written on any OS. An IPA is produced only on macOS. A pipeline with no macOS node — local, rented, or inside CI — stops at source and never hands over an installable build.
What the four hosts actually are
Windows. It is a fine place to write Flutter, React Native, .NET MAUI, and Kotlin Multiplatform, and a fine place to edit Swift files in an editor. It cannot install official Xcode, it cannot launch the iOS Simulator locally, and it cannot perform the signature App Store distribution requires. The usual MAUI setup treats the Windows PC as the desk and pairs it to a Mac build host. The native slice is still compiled on the Mac. A cross-platform framework removes a second UI codebase. It does not remove this hop.
Linux. It stands on the same side of the compile wall as Windows. The common mix-up is sharper here. The Swift toolchain published for Linux is for server programs. Its output is a Linux executable. It does not include the iOS SDK, and it cannot sign an installable package with an Apple developer certificate. Community cross-compiles that copy an SDK onto Linux and invoke a linker still do not reach the Simulator, the keychain signature, or App Store Connect. That is not a shipping path, and the Xcode and SDK license does not treat that copy as a normal install.
Cloud Mac. This is a full macOS on Apple hardware, not a Linux container with a Mac icon. Xcode, xcodebuild, the Simulator, and the keychain all live on that machine. You archive over SSH, or you click the Simulator through a remote desktop. It is not the same product as Xcode Cloud. Xcode Cloud is hosted CI attached to App Store Connect. It runs Apple’s workflow. It does not hand you a desktop you can log into. A cloud Mac is your execution node: certificates, DerivedData, and Simulator runtimes can stay on disk. A GitHub-hosted macos-latest runner is also real macOS, but it is thrown away after the job. Every job re-prepares dependencies and the signing identity.
Local Mac. Same toolchain, lowest latency. The Simulator, SwiftUI previews, Instruments, and a USB device are all least awkward here. The cost is that the machine usually has one seat. While a person is pushing pixels on it, a night CI job pointed at the same box fights for CPU, for Simulator runtimes, and for keychain prompts.
The laptop edits. A macOS that stays on produces the build. That split is the same idea as the rest of the stack: interaction in front, execution behind. The map is in the Cloud Mac stack architecture. When the compile queue itself should move off hosted minutes onto a self-hosted node, see whether a GitHub Actions macOS queue is worth replacing.
One command, four outcomes
On macOS, confirm the toolchain points at a real Xcode before you archive. If only the Command Line Tools are installed, the name xcodebuild may exist and the archive still stops, because a full Xcode is required. On a freshly provisioned cloud Mac this is the most common fake failure: the machine is fine, the selector is wrong.
# Expect an Xcode version, not Command Line Tools alone xcodebuild -version xcode-select -p # The path should sit inside Xcode.app sudo xcode-select -s /Applications/Xcode.app xcodebuild -scheme App -configuration Release -destination 'generic/platform=iOS' archive
On Windows and on Linux the first command ends because the program is not there. There is no later signing stage, because the compiler never started. The iOS subcommands of Flutter and of React Native stop in the same place. They call Xcode. They do not carry a second iOS compiler. An Android package can still be produced on Windows or Linux. An iOS package cannot.
On a cloud Mac and on a local Mac the command text is the same. What changes is the wait. A local Simulator click repaints on the machine in front of you. A remote desktop has to send the frame back. The archive log looks the same. If App Store Connect rejects the IPA, look at whether the identity was a development certificate or a distribution certificate. Do not start from the theory that Windows damaged the binary. Windows was not in that compile.
One successful compile does not prove the selector
If xcode-select on the cloud node points at the command-line tools, the log dies early and looks like “a cloud Mac cannot build iOS.” Point the selector at Xcode.app and run the same archive. Renting or owning the host does not change that check.
Capability table
| Capability | Windows | Linux | Cloud Mac | Local Mac |
|---|---|---|---|---|
| Edit product code | Yes | Yes | Yes, but typing is a remote session | Yes |
| xcodebuild archive | No | No | Yes | Yes |
| iOS Simulator | No | No | Yes, through remote desktop | Yes, lowest latency |
| Sign and upload | Only by calling a Mac elsewhere | Only by calling a Mac elsewhere | Keychain stays on the node | Keychain stays on the desk |
| USB device debug | No cable into that OS | No cable into that OS | Your phone is not in the rack | The natural place |
| Nightly CI | Must target a macOS | Must target a macOS | Fits if the node stays up | Person and CI share one seat |
The “no” cells are not a speed problem. The binary and the license are absent from that OS. A faster PC still has no xcodebuild.
Signing, Simulator, device
Signing. Profiles, certificates, and keychain access are a macOS security stack. Windows can push the repository. It cannot stand in for that signature. A setup that holds up in a team keeps the certificate on one dedicated macOS and does not copy the private key onto every desk. A cloud node is a good place for that, if the disk is dedicated and the keychain is not wiped when the job ends. An ephemeral hosted runner can import an identity every time. It works. Once releases are frequent, that import becomes the step most likely to be configured wrong.
Simulator. It is a process on macOS, not a page in a browser. A cloud Mac can run it. You see a remote frame, and clicks and keys arrive a beat later. Someone who nudges layout dozens of times a day feels that beat. Someone who looks at the main path once after a merge often can live with it. SwiftUI previews follow the same rule: the tool is present, the feel depends on whether the picture crosses a network.
A physical device. A local Mac with a cable is the direct path. A cloud Mac usually cannot see the phone in your pocket. Wireless debugging needs a pairing and a trust step first. Many teams borrow a local Mac for that once, then move archives to the cloud. A team that accepts builds only through TestFlight can go a long time without plugging the phone into the compile machine: the cloud Mac builds, signs, and uploads, and the phone only installs the TestFlight build.
Cost shape, no hardware prices
The four hosts bill in different shapes. The numbers move with region and plan, so this page does not quote a price that will expire. Whether to buy or rent the hardware belongs in the cost ledger.
- A Windows or Linux desk — the compile line item is zero, because the compile cannot happen there. The money shows up again when you buy or rent macOS.
- Hosted macOS minutes — you pay for build duration. When dependencies download again and the queue waits, wall time exceeds compile time. This fits rare releases.
- A dedicated cloud Mac — you pay for the machine being online. DerivedData and Simulator runtimes persist, so the wait changes from “queued behind strangers” to “this machine’s own load.” This fits a team that needs a package most days and does not want a MacBook on every chair.
- A local Mac — one purchase, then power and depreciation. The more UI work you do, the more that purchase earns its place. If the same machine is occupied by day and asked to be CI at night, you are buying one seat and spending it twice.
Pick a host by the workday
You adjust spacing, watch previews, and plug in a device every day. Use a local Mac. A cloud desktop can finish the job, and the hand-feel is remote. On this workday the compile host and the editing seat should be the same machine.
You write cross-platform code on Windows or Linux, and you need an IPA only at merge and at release. Do not buy a MacBook for every chair. Keep one macOS awake: a dedicated cloud Mac, or a Mac mini in the rack that does not sleep. Leave the editor on the original OS. Send the archive over SSH to that node.
The compile almost only happens in CI. First see whether hosted macOS minutes are enough. When the queue and the cold start become part of the release cadence, move execution onto a self-hosted node. The test for that move is in the runner note, not in a hardware spec sheet.
A backend colleague on Linux occasionally needs one iOS package for testers. Give them a login on a cloud Mac that is already set up. That is faster than hunting a Linux build of Xcode on their distro. That build does not exist.
Decision
If the question is whether the compiler must run on macOS, the answer is yes. If the question is whether that macOS must sit beside your monitor, the answer is no. People who change UI and devices every day stay local. People who emit a package at merge time share one macOS node.
Combinations to skip
Windows only, or Linux only, with no macOS anywhere in the pipeline. You can review code. You cannot hand over an iOS install. A hosted build service that looks like “no Mac required” is still someone else’s macOS on the other side of the invoice.
A Hackintosh, or a virtual machine on a PC, running current macOS so you can sign and ship. The macOS license requires Apple-branded hardware. Virtualizing the current system is done on Apple silicon Macs. This path saves the purchase and spends the outage when an update breaks, plus an environment you cannot treat as a team standard. Do not ship a business release from it.
Using a cloud Mac as a free substitute for a local display, dragging layout in a remote desktop all day. It compiles. It is not smooth. That habit spends an execution node as a high-latency only seat, and you get neither benefit cleanly.
One local Mac for both a person debugging and the CI. Builds slow down while the person is present, Simulator runtimes overwrite each other, and the keychain prompts when nobody is there to click. Split the seats. The second seat can be another macOS in the cloud.
Questions
If we use Flutter or React Native, can we skip a Mac compile? An Android package can be built on Windows or Linux. An iOS package still calls Xcode. The framework removes a second product UI. It does not remove macOS.
Swift installs on Linux. Why is an iOS compile still impossible? That toolchain compiles Linux programs. There is no iOS SDK, and there is no Apple sign-and-upload step. The language name matches. The target OS does not.
Cloud Mac or Xcode Cloud for the compile? If you need to log into the machine, keep certificates, and run the Simulator or other commands yourself, use a cloud Mac. If you only want Apple’s hosted workflow attached to App Store Connect and you do not want a desktop, Xcode Cloud is a different product. Both compile on macOS. The thing you are given is different.
We already have a Mac mini. Do we also need a cloud Mac? You need a second macOS when one person fills the mini by day and CI also points at it. Without that contention, do not add a machine just to say you also have a cloud.
If testers only use TestFlight, can we skip a local Mac entirely? Compile and upload can live on a cloud Mac. The first wireless-debug pairing still leads many teams to borrow a local Mac once. If phones only install TestFlight and nobody debugs over a cable, the everyday compile seat does not have to be local.
ZavCloud Developer Infrastructure
Park the archive on a macOS that stays awake
Keep source on Windows or Linux. Put signing, the Simulator, and the night archive on a dedicated Mac node instead of a laptop per chair.
If you change UI and plug in a device every day, keep that compile seat local.