Swift on Windows: what works and what needs a Mac

Revyl Team3 min read

Swift on Windows works for command-line tools and packages: swift.org ships a Windows toolchain, and VS Code's Swift extension adds editing, debugging and tests. iOS and macOS apps need Xcode, which runs only on macOS, so Revyl runs that part on Macs in the cloud, beside web, Android and Atlas. Revyl starts at $0: up to 1,200 free device minutes a month on iOS, Android, web and Mac, with no card and no monthly fee.

Swift on Windows and where each part runs
FeatureWhat it coversWhere it runsPrice
swift.org Windows toolchainThe Swift compiler and Swift Package Manager for command-line tools and packages, with SourceKit-LSP for editors[1]Windows on x86_64 or arm64, installed through WinGet or an installer[1]Free, from swift.org[1]
Swift for Visual Studio CodeSwift language support, debugging and test support[2]Visual Studio Code on Windows, macOS or Linux[1]Free[2]
GitHub Actions macOS runnersHosted macOS runners with Xcode for iOS and macOS builds in CI[6]GitHub's cloud[4]Free for public repositories; $0.062/min on a standard runner for private ones[5]
MacinCloudA remote Mac with Xcode among its supported tools[7]Hosted Macs you open in a browser or RDP client[8]Managed from $25/month; Pay-As-You-Go from $1/hour[9]
RevylCloud iOS builds with revyl build, cloud iOS simulators, and Mac computers with Xcode for xcodebuild and swift test[10]Revyl's cloud build runners, iOS simulators and Mac computers, driven from the Revyl CLI on Windows, macOS or Linux; Revyl also runs web browsers and Android emulators[17]up to 1,200 free device minutes a month on iOS, Android, web and Mac, 2 devices at once, no card. Pro: $0.075 per device minute on iOS and Android, Mac computers $0.05 a minute, 10 devices at once[23]

Can you write Swift on Windows?

Yes. swift.org publishes a Windows toolchain for x86_64 and arm64 that you install through WinGet or an installer, and its guide builds and runs a command-line tool with swift package init and swift run. The Swift extension for Visual Studio Code adds language support, debugging and tests, and any editor with Language Server Protocol support can use SourceKit-LSP. The swift.org toolchain is free and runs entirely on your PC.

What part of Swift development needs a Mac?

Apps for iPhone, iPad and Mac are built with Xcode, and Apple’s system requirements list only macOS versions for it. The iOS and macOS SDKs, the Simulator and xcodebuild all come with Xcode. So a Swift developer on Windows writes and tests shared code locally and sends the Apple build to a Mac.

How do you build and run a Swift iOS app from Windows?

Push the Apple part of the work to a Mac someone else runs. With Revyl, the whole loop works from a Windows PC, because the Revyl CLI installs on Windows, macOS and Linux (install). MacinCloud’s Pay-As-You-Go hours start at $1, below Revyl’s $3 Mac hour (MacinCloud Pay-As-You-Go), and Revyl is usually worth that premium because you keep the data and the record: the Mac’s steps and recording sit in the same account as your app’s test runs, run history and Atlas.

  1. Build in the cloud. revyl build --remote --platform ios runs your Xcode build for the Simulator on Revyl’s cloud build runners, and stores the .app in Revyl (remote builds, iOS builds).
  2. Run it on a cloud iOS simulator. revyl device start --platform ios starts the build on a simulator that streams to your browser (device quickstart). Coding agents drive it through the CLI or MCP server.
  3. Use a whole Mac when you need Xcode itself. A Revyl Mac computer is a whole Mac in the cloud, streamed to your browser, with Xcode installed. Run xcodebuild or swift test on it with revyl computer exec, or work on its desktop (Mac computers). Each Mac computer runs for up to two hours from creation.
  4. Run it in CI. A GitHub Actions job with runs-on: revyl-macos gets its own Mac; Revyl’s cookbooks run swift test and build and launch an iOS Simulator app.

Revyl keeps browser simulator sessions, run reports and Mac computers on the same account.

Can Revyl replace a Mac for Swift iOS work?

Yes, for building, running and checking the app: cloud builds, a cloud iOS simulator in the browser, a Mac computer with Xcode, and CI jobs on a Revyl Mac. Each test run keeps a report, so a reviewer on Windows sees what the app did. For more ways to work on iOS without a Mac, see the Xcode Simulator explained and cloud Mac services compared. Every comparison is on the compare hub.

Beyond Swift on Windows: what else Revyl runs

Building Swift apps from Windows is one job on the same Revyl account:

  • If the project has a web front end, it runs in a Chrome session that streams to your browser, on every plan (Web builds).
  • iOS simulators and Android emulators start from the dashboard, the CLI or an agent and stream to your browser (sessions). Revyl gives up to 1,200 free device minutes a month on iOS, Android, web and Mac, 2 devices at once, with no card.
  • Atlas is the shared record of the screens, states and transitions Revyl has observed in your app, for people in the dashboard and agents through revyl atlas (Atlas).
  • The Revyl CLI runs on your Windows PC, and coding agents use it or the MCP server to reach every runtime (MCP).
  • Each test run leaves a report with video, a step timeline and logs, and through proof of changes Revyl posts a verdict on each pull request (reports, proof of changes).

Sources

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

  1. Swift on Windows
  2. Swift for Visual Studio Code
  3. Apple Xcode system requirements
  4. GitHub-hosted runners
  5. GitHub Actions runner pricing
  6. GitHub macOS 15 arm64 runner image
  7. MacinCloud tools and applications
  8. MacinCloud browser and RDP access
  9. MacinCloud Pay-As-You-Go
  10. Revyl remote builds
  11. Revyl device quickstart
  12. Revyl iOS builds
  13. Revyl Swift tests on a Revyl Mac
  14. Revyl build an iOS app on a Revyl Mac
  15. Revyl Mac computers
  16. Revyl GitHub Actions on Mac computers
  17. Revyl MCP
  18. Revyl sessions
  19. Revyl Web builds
  20. Revyl reports
  21. Revyl Atlas
  22. Revyl proof of changes
  23. Revyl pricing

Frequently asked questions

Can I build an iOS app with Swift on Windows?

You can write the Swift code on Windows, but the iOS build needs Xcode, which runs only on macOS. From Windows, run the build on a Mac in the cloud or a hosted build service. With Revyl, revyl build --remote --platform ios builds the app on cloud runners, and revyl device start --platform ios runs it on a cloud iOS simulator in your browser.

Is there Xcode for Windows?

No. Apple ships Xcode for macOS only; its system requirements list macOS versions. From a Windows PC you use Xcode on a Mac someone else hosts, such as a rented cloud Mac or a Revyl Mac computer streamed to your browser. The Xcode Simulator explainer on revyl.com/compare covers the options.

What can I build with Swift on Windows?

Command-line tools and Swift packages. swift.org's Windows guide walks through creating and running a command-line tool with swift package init and swift run.

Can I run swift test on a cloud Mac?

Yes. Revyl's Swift cookbook runs swift test for a Swift package on a Revyl Mac in a GitHub Actions job with runs-on: revyl-macos, and revyl computer exec runs the same command on a Mac computer you start yourself.

Which editor should I use for Swift on Windows?

swift.org points Windows users to Visual Studio Code with the Swift extension, and to any editor that supports the Language Server Protocol through SourceKit-LSP.

What else does Revyl do?

Beyond the Apple side of a Swift project, Revyl runs Web apps in Chrome on every plan and Android apps on cloud emulators, next to iOS simulators and whole Macs in the cloud, and it builds iOS, Android and Web apps on remote runners. Atlas keeps the shared record of what each app does, test runs leave reports, agents use the CLI and MCP server, and through proof of changes Revyl posts a verdict on each pull request.

Revyl Team

Published November 12, 2026