Xcode on Linux: build and test iOS apps from Linux

Revyl Team8 min read

Xcode on Linux isn't an option: Apple ships Xcode for macOS only, so from Linux you build and test iOS apps on a remote Mac or a cloud build service. The Swift toolchain, SourceKit-LSP and the open-source xtool project run on Linux, while Apple's Xcode app, xcodebuild and the iOS Simulator run only on macOS. With Revyl, revyl build compiles the app in the cloud from your Linux machine, a cloud iOS simulator runs it in your browser, and an agent in a Revyl computer, a macOS workspace with Xcode preinstalled, runs any xcodebuild step. The Free plan includes up to 1,200 free device minutes a month on iOS, Android and web, with no card.

Ways to use Xcode from a Linux machine at a glance (checked November 23, 2026)
FeatureWhat it isHow Linux reaches itPrice (as of November 2026)
GitHub Actions macOS runnersGitHub-hosted macOS runners whose image includes several Xcode versions and iOS simulators[9]A workflow job moves to a hosted Mac through its runs-on label[9]$0.062 a minute on the standard macOS runner[10]
Xcode CloudApple's CI/CD service built into Xcode and App Store Connect[3]Workflows are configured in Xcode; App Store Connect on the web can edit workflows and launch builds[3]25 compute hours a month with Apple Developer Program membership; 100 hours for $49.99 a month[3]
MacinCloudPhysical Mac servers with Mac tools and applications preinstalled[12]Remote desktop through an RDP client[13]Pay-as-you-go from $1 an hour or $4 a day, from prepaid credit[12]
AWS EC2 MacMac minis as bare-metal EC2 instances on Dedicated Hosts[14]SSH or Apple Remote Desktop[14]Billed per Dedicated Host, with a 24-hour minimum allocation[14]
CodemagicMobile CI/CD that builds, tests and deploys native iOS, Flutter, React Native and other apps[15]Builds start from pushes, tags or merged pull requests in a connected repository[15]$0.095 a minute on a Mac mini M2; 500 free macOS M2 minutes a month for individuals[16]
RevylCloud iOS builds, cloud iOS simulators, and macOS workspaces for agents with Xcode and the iOS Simulator preinstalled, beside Android emulators and web browsers[25]The Revyl CLI on Linux (amd64 or arm64), the dashboard, MCP, the Verify SDK, or runs-on: revyl-macos in GitHub Actions[17]Free: up to 1,200 free device minutes a month on iOS, Android and web, no card. Pro: pay as you go, no monthly fee, $0.075 per device minute on iOS and Android; agent workspace sessions on Pro at $0.05 a session minute, web or macOS after the free minutes[35]

Can you run Xcode on Linux?

No, Xcode on Linux isn’t an option: Apple ships Xcode for macOS only, so from Linux you build and test iOS apps on a remote Mac or a cloud build service. With Revyl, you start the build from Linux with revyl build, run the app on a cloud iOS simulator in your browser, and send any step that needs Xcode itself to a Revyl computer, a macOS workspace with Xcode preinstalled. Apple’s Xcode system requirements list only macOS versions for each release, and Apple says iOS and iPadOS simulators “are available in macOS as part of Xcode” (Apple).

Revyl is verification infrastructure for cloud agents. It runs web browsers, iOS simulators, Android emulators and macOS workspaces, and keeps Atlas, the record of the screens and flows it has observed in your app. This page covers iOS work from Linux; the Windows version of the same question is Xcode for Windows.

What runs on Linux itself?

These Swift tools run on Linux itself:

  • The Swift toolchain. swift.org publishes Swift for Linux, installed with the Swiftly installer or from official container images. It builds and runs Swift packages and command-line tools.
  • Editor support. The Swift extension for Visual Studio Code adds editing, debugging and tests, and “any editor that supports the Language Server Protocol (LSP) can use SourceKit-LSP” (swift.org, SourceKit-LSP).
  • xtool. xtool is an open-source project that calls itself a “cross-platform Xcode replacement”. Its README says it builds a SwiftPM package into an iOS app, signs and installs it, and works with Apple Developer Services from Linux, WSL or macOS; version 2.0 is in beta. Its Linux setup asks for an Xcode.xip downloaded from Apple and installs apps to an iPhone connected over USB.

Apple’s Xcode app, xcodebuild and the iOS Simulator run only on macOS. xtool’s route is different: its Linux setup extracts an iOS Swift SDK from Xcode.xip, and its README says the 2.0 beta adds building Xcode projects. Outside that route, a Linux developer writes and unit-tests shared Swift code locally and sends the Xcode build, the simulator run and Xcode-based tests to a Mac.

Does Xcode 27 run on Linux?

No. Apple’s system requirements list macOS Tahoe 26.6 or later for Xcode 27, 27.1 and 27.2, and no other operating system (Apple). From Linux, Revyl runs the Xcode 27 build for you on its cloud runners. Its remote build images include Xcode 27.0, the default image, and Xcode 27.1 and 27.2, each with the matching iOS simulator SDK. The 27.1 and 27.2 images list iPhone Duo as supported (toolchain images).

To pin a version, pass the image to the build:

revyl build --remote --platform ios --image ios-macos-26-xcode-27.2

The same image key works in a build recipe in .revyl/config.yaml. The finished build then runs on a cloud iOS simulator that streams to your browser. revyl device targets lists the device models and OS versions you can start, and --device-model picks one, with --os-version for a specific OS version (CLI reference). The same Revyl account also runs Android emulators, web browsers and macOS workspaces, so the rest of the app’s checks can start from the same Linux machine.

How do you build and test an iOS app from Linux with Revyl?

The whole loop runs from a Linux laptop, a Linux CI runner or a coding agent’s Linux sandbox:

  1. Install the Revyl CLI. It has a shell installer and Linux builds for amd64 and arm64.
  2. Put your build commands in a recipe in .revyl/config.yaml and run revyl build --remote --platform ios. The build runs on Revyl’s cloud runners, which have 12 CPUs and 24 GB of RAM, and Revyl stores the simulator .app on your app (remote builds). “No local Xcode or Android SDK is needed” (device quickstart).
  3. Run revyl device start --platform ios. It starts a cloud iOS simulator with that build and prints a live viewer link. The session streams to your browser, where you tap, type and scroll through the app, and coding agents drive the same session through the CLI or MCP.
  4. Check it in code with the Verify SDK for Node.js, Python or Go. It runs natural-language instructions and validations on the simulator from a script, a test runner or CI, and each run returns step results and a report.
  5. Ship it. Signed store builds sign a release build with your own certificate and upload it to App Store Connect.

Revyl’s docs say “a Linux CI runner can control an iOS simulator hosted by Revyl” (Revyl). For the simulator side of a Linux pipeline in more detail, see How to run an iOS emulator on Linux or a CI runner.

How do you run xcodebuild from a Linux machine?

Start a Revyl computer and send it the command. Every Revyl computer “comes with Xcode and the iOS Simulator, Chrome, and Safari installed” (Revyl):

revyl computer create --os macos --wait --json
revyl computer exec "$COMPUTER_ID" --cwd app -- /bin/zsh -lc 'xcodebuild test -scheme App'

You can watch the session in your browser and step in when a step needs Xcode’s GUI. revyl computer exec runs each command for up to an hour, and revyl computer files reads and writes files in the workspace. A session runs for two hours from creation by default.

In CI, a GitHub Actions job in a private repository gets a single-use Revyl computer with runs-on: revyl-macos, while the rest of the workflow stays on Linux runners (Revyl). Revyl’s cookbook builds an iOS app for the Simulator, boots a simulator and launches the app in a recorded job (cookbook). The Verify SDK also runs commands and works with files in Revyl computers, so one script can build in the macOS workspace and check the app on a simulator.

On Pro, Revyl computer sessions draw on the free minutes and then bill as agent workspace session time. For Swift steps such as swift test on a Mac, see Swift on Windows; the same commands work from Linux.

Which other services run the Xcode step for a Linux team?

Each of these runs the macOS part on a Mac the provider operates:

  • GitHub Actions macOS runners. A job moves to a GitHub-hosted Mac through its runs-on label, and the macOS 26 image lists several Xcode versions and iOS simulators (runner image).
  • Xcode Cloud. Apple’s CI/CD service is built into Xcode and App Store Connect, and you configure workflows in Xcode (Apple). After that, App Store Connect on the web can edit workflows and launch builds.
  • MacinCloud. MacinCloud rents physical Mac servers with Mac tools preinstalled (MacinCloud), reached through an RDP client (MacinCloud support).
  • AWS EC2 Mac. AWS runs Mac minis as bare-metal instances on Dedicated Hosts, reached over SSH or Apple Remote Desktop (AWS).
  • Codemagic. Codemagic is mobile CI/CD that builds, tests and deploys native iOS, Flutter, React Native and other apps to the App Store (Codemagic).

To compare rented Macs side by side, see cloud Mac services compared.

What does each option cost?

Each price is the vendor’s public list price in its own unit, as of November 2026:

  • Revyl: up to 1,200 free device minutes a month on iOS, Android and web, no card. Pro is pay as you go with no monthly fee, at $0.075 per device minute on iOS and Android. Revyl computers, macOS workspaces where agents build and test apps, come with Pro: add a card to unlock them, and the 1,200 free device minutes a month still cover their sessions, then agent workspace sessions are billed as session time, with the macOS workspace included in the session (Revyl).
  • GitHub Actions: $0.062 a minute on the standard macOS runner (GitHub).
  • Xcode Cloud: 25 compute hours a month included with Apple Developer Program membership; 100 hours for $49.99 a month, up to 10,000 hours for $3,999.99 a month (Apple).
  • MacinCloud: pay-as-you-go from $1 an hour or $4 a day, from prepaid credit (MacinCloud).
  • AWS EC2 Mac: billed per Dedicated Host, with a 24-hour minimum allocation before you can release the host (AWS).
  • Codemagic: $0.095 a minute on a Mac mini M2 and $0.114 on an M4; individuals get 500 free macOS M2 minutes a month (Codemagic).

GitHub’s $0.062 standard macOS runner minute applies to private repositories after the account’s included usage; standard GitHub-hosted runners are free in public repositories (GitHub). A job’s total cost also depends on its length and on each plan’s free allowance. Each Revyl computer session keeps its steps, and the recording when one was saved (computers).

Can Revyl replace a Mac for iOS work from Linux?

Yes, for building, running and checking the app. revyl build compiles the iOS app in Revyl’s cloud, cloud iOS simulators run it in your browser or under an agent, signed store builds upload to App Store Connect, and a Revyl computer, a macOS workspace with Xcode, takes any step that needs macOS, including a GitHub Actions job with runs-on: revyl-macos. Your laptop and your CI can stay on Linux.

Xcode Cloud is built into Xcode and App Store Connect, Codemagic builds, tests and deploys mobile apps, and AWS EC2 Mac provides bare-metal Macs inside an AWS account. To see what the simulator does and how to script it, read the Xcode Simulator explained.

Beyond iOS builds: what else Revyl runs

The Revyl CLI that builds your iOS app from Linux also runs the rest of the product’s checks:

  • Web browsers: web apps run in Chrome sessions streamed to your browser, from a bundle Revyl builds or a preview URL you register, on every plan (web builds). An app with a web front end gets checked from the same Linux machine.
  • Android emulators: Android builds run on cloud emulators next to the iOS simulators, started from the dashboard, the CLI or an agent (sessions).
  • Revyl computers for more than Xcode: each one also has Safari and Chrome, a shell and files, so an agent can run Safari checks and any CI job that needs macOS (computers).
  • Atlas: tests, sessions and explorations of web, iOS and Android apps add the screens, states and transitions they observed to Atlas, which people read in the dashboard and agents read through the CLI.
  • Agent access: coding agents use the Revyl CLI, the MCP server or the open-source Verify SDK to start iOS, Android and web sessions or a Revyl computer from a Linux sandbox.
  • Reports and proof of changes: each test run produces a report with video, a step timeline and logs. With proof of changes, Revyl installs a pull request’s build, runs the changed flows and posts a verdict (ready, failed or inconclusive) on the pull request.

Sources

Facts were checked against these public pages on November 23, 2026. Spot an error? Email support@revyl.ai and we will correct it.

  1. Apple: Xcode SDKs and system requirements (checked 2026-11-23)
  2. Apple: Installing Xcode and Simulators (checked 2026-11-23)
  3. Apple: Xcode Cloud overview and pricing (checked 2026-11-23)
  4. swift.org: Install Swift on Linux (checked 2026-11-23)
  5. swift.org: Tools and editors (checked 2026-11-23)
  6. SourceKit-LSP repository (checked 2026-11-23)
  7. xtool repository and README (checked 2026-11-23)
  8. xtool: Installation on Linux and Windows (checked 2026-11-23)
  9. GitHub macOS 26 arm64 runner image (checked 2026-11-23)
  10. GitHub Actions runner pricing (checked 2026-11-23)
  11. GitHub Actions billing (checked 2026-11-23)
  12. MacinCloud pay-as-you-go (checked 2026-11-23)
  13. MacinCloud: Access managed servers through an RDP client (checked 2026-11-23)
  14. AWS EC2 Mac instances user guide (checked 2026-11-23)
  15. Codemagic: Welcome to Codemagic (checked 2026-11-23)
  16. Codemagic pricing (checked 2026-11-23)
  17. Revyl CLI install (checked 2026-11-23)
  18. Revyl remote builds (checked 2026-11-23)
  19. Revyl remote build toolchain images (checked 2026-12-01)
  20. Revyl CLI reference (checked 2026-12-01)
  21. Revyl signed store builds (checked 2026-11-23)
  22. Revyl device quickstart (checked 2026-11-23)
  23. Revyl device infrastructure (checked 2026-11-23)
  24. Revyl sessions (checked 2026-11-23)
  25. Revyl computers (checked 2026-11-23)
  26. Revyl computers in GitHub Actions (checked 2026-11-23)
  27. Revyl cookbook: Build an iOS app in Simulator in a Revyl computer CI job (checked 2026-11-23)
  28. Revyl Verify SDK (checked 2026-11-23)
  29. Revyl Verify on GitHub (checked 2026-11-23)
  30. Revyl web builds (checked 2026-11-23)
  31. Revyl MCP setup (checked 2026-11-23)
  32. Revyl reports (checked 2026-11-23)
  33. Revyl proof of changes (checked 2026-11-23)
  34. Revyl Atlas (checked 2026-11-23)
  35. Revyl pricing (checked 2026-11-23)

Frequently asked questions

Can you install Xcode on Linux?

No. Apple ships Xcode for macOS only, and its Xcode system requirements list macOS versions for every release. From Linux you reach Xcode on a Mac someone else runs: a hosted macOS CI runner, a rented Mac, a cloud build service, or a Revyl computer, a macOS workspace where revyl computer exec runs xcodebuild.

Can you build an iOS app on Linux?

Yes. With Revyl, revyl build --remote --platform ios runs your build commands on Revyl's cloud runners and stores the simulator .app, with no local Xcode. GitHub Actions macOS runners, Xcode Cloud and Codemagic also run the Xcode step for you. The open-source xtool project builds SwiftPM packages into iOS apps on Linux itself, using an iOS Swift SDK it extracts from an Xcode.xip downloaded from Apple.

Can you run the iOS Simulator on Linux?

Not on the Linux machine itself. Apple says iOS simulators are available in macOS as part of Xcode. From Linux you use a hosted cloud iOS simulator or a Mac runner. Revyl runs cloud iOS simulators that stream to your browser, and a Linux CI runner or a coding agent controls them through the Revyl CLI or MCP.

Does Swift work on Linux?

Yes. swift.org publishes a Linux toolchain installed with Swiftly or from official container images, and SourceKit-LSP gives any Language Server Protocol editor Swift support. Packages and command-line tools build and run on Linux. Apple's Xcode app and xcodebuild run only on macOS.

Can you sign and upload an iOS app to the App Store from Linux?

Yes, through a service that signs and uploads in its own macOS environment. Revyl's signed store builds sign a release build with your own certificate and upload it to App Store Connect.

What does it cost to run xcodebuild from Linux?

Each vendor prices in its own unit. As of November 2026, Revyl bills agent workspace sessions on Pro at the session rate after the free minutes, GitHub's standard macOS runner lists $0.062 a minute, Codemagic's Mac mini M2 $0.095 a minute, Xcode Cloud includes 25 compute hours a month with Apple Developer Program membership, and MacinCloud sells prepaid hours from $1.

What else does Revyl do?

Besides building iOS apps and running them on cloud iOS simulators, it runs Android emulators, Chrome sessions for web apps, and macOS workspaces where agents build and test with Xcode, all reachable from the dashboard, the Revyl CLI, its MCP server or the Verify SDK. Each test run produces a report with video, a step timeline and logs, Atlas records the screens, states and transitions observed in web, iOS and Android app runs, and with proof of changes Revyl runs a pull request's changed flows and posts a verdict on the pull request.

Revyl Team

Published November 23, 2026