Can Claude Code build an iOS app on Windows, without a Mac?

Claude Code runs on Windows and writes Swift, but Xcode doesn't. What works on a Windows PC, what still needs a Mac, and four ways to get the app built.

By Sigsten Gustavii· · 9 min read

Build your own workout log with Borel

Build this app

Claude Code can write an iOS app on Windows, but it can't finish one there. It installs natively on Windows and writes Swift and SwiftUI well, yet compiling, running and signing an iPhone app needs Apple's Xcode, which only runs on macOS. The rest of the work can stay on your PC.

This guide is for people with a Windows PC and a Claude plan who want an iPhone app. It covers what Claude Code does on Windows, where the Mac comes in, four practical ways around it with their trade-offs, and the shorter route when you don't want to manage a build at all. For the wider question of Claude and iPhone apps, including the chat app, see Can Claude build an iPhone app?.

Does Claude Code run on Windows?

Yes, natively. Anthropic's setup page lists Windows 10 version 1809 or later and Windows Server 2019 or later. You install it from PowerShell or the Command Prompt, with no administrator rights needed, and you can choose between two ways of running it:

Ways to run Claude Code on a Windows PC, from Anthropic's setup page on 16 November 2026
SetupWhat it needsGood for
Native WindowsNothing extra; Git for Windows is optionalWindows projects and tools
WSL 2Windows Subsystem for Linux 2 turned onLinux tools and sandboxed commands
Desktop appA paid Claude planWorking without a terminal

Without Git for Windows, Claude Code runs commands through PowerShell; with it, it uses Git Bash. Either way, it reads your project, edits files and runs the command-line tools you have installed. That last part matters: it can only run what your computer can run.

What can Claude Code do for an iPhone app on Windows?

More than you might expect. On a Windows PC, Claude Code can:

  • Write the whole app in SwiftUI. Screens, navigation, data models, settings: the Swift files an iPhone app is made of.
  • Plan the project. It can write the files that describe the Xcode project, such as an XcodeGen project.yml, so a Mac can generate the project later.
  • Test the logic. Swift itself installs on Windows from swift.org, so code that doesn't touch the iPhone's screen, like calculations, parsing or rules, can sit in a Swift package that Claude Code builds and tests with Swift's own build and test commands.
  • Explain and review. It reads the code with you, explains what each part does and suggests fixes.
  • Set up a build pipeline. It writes the workflow files that tell a Mac in the cloud how to build, sign and upload the app.

What you get on Windows is a well-organised folder of Swift code. What you don't get is an app on a phone.

What still needs a Mac?

Everything that turns that folder into an iPhone app. Xcode is Apple's tool for building apps for its platforms, and it comes with the iOS SDK, the iOS Simulator and the signing tools. None of them exist for Windows:

  • Building for iOS. SwiftUI and the iOS frameworks come with Xcode. The Swift toolchain for Windows doesn't include them, so the screens won't compile there.
  • Running the app. The iOS Simulator and SwiftUI's live previews run inside Xcode on a Mac.
  • Signing and uploading. An app for a real iPhone or the App Store is signed and sent to Apple with Xcode's tools.

Claude Code's cloud sessions don't change this. Anthropic's docs say each one runs in a fresh virtual machine with Ubuntu 24.04, a Linux system, so there is no Xcode there either.

Four ways to get the app built from Windows

Each of these keeps you on your PC and puts a Mac somewhere else:

Routes from Claude Code on Windows to an app on an iPhone
RouteHow it worksWhat it asks of you
A rented MacInstall Claude Code on a cloud Mac and work on it over SSH from your PCHourly or monthly rent, and Xcode set up on that Mac
A build pipelineClaude Code writes the code on Windows; a CI service's macOS machine builds and uploads itSigning certificates, an App Store Connect key and pipeline files
An iPadPaste the SwiftUI code into Apple's Swift Playground on iPad and build it thereAn iPad, and copying code across by hand
An AI app builderDescribe the app; the builder writes it and builds it on its own MacNo Claude Code at all

A rented Mac

This is the closest to working on a Mac of your own. You rent a Mac in the cloud, install Xcode and Claude Code on it, and connect from Windows. Claude Code then runs Xcode's command-line tools, builds the app and runs it in the Simulator, and you see the result through a remote desktop. Anthropic's docs also describe Remote Control, which lets you reach a session running on that Mac from your phone or a browser.

A build pipeline

This keeps the coding on Windows. Claude Code writes the app and a workflow file; you push the code to a repository, and a CI service runs the build on one of its Macs. GitHub Actions, for one, offers macOS machines. The pipeline can upload each build to TestFlight, and you test on your iPhone from there.

It works well once it is running, but setting it up is the hard part: a distribution certificate, a provisioning profile, an App Store Connect API key, all stored as secrets the pipeline can read. Claude Code can write the files, but you still need Apple's Developer Program to create those, and you only see the app once a build has gone through.

An iPad

Apple's Swift Playground builds SwiftUI apps on an iPad and can send them to App Store Connect. If you have an iPad, you can move small apps across from your PC and build them there. It suits learning and small projects more than a growing app.

Or skip the build tooling with an AI app builder

If what you want is the app rather than the coding, an AI app builder does the whole chain in a browser. [Borel](/how-it-works) writes native iPhone apps in Swift and SwiftUI from a description in plain words, builds them with Xcode on its own Mac, and runs them in Apple's iOS Simulator streamed into your browser, free. You start with 5 credits a day and no Mac, no Xcode and no terminal.

  1. Describe the app in plain words, the way you would prompt Claude Code.
  2. Watch it build on Borel's Mac. If Xcode reports an error, Borel reads it and tries to fix it.
  3. Tap through it in the streamed iOS Simulator, and ask for changes in plain words.
  4. Put it on your iPhone with Borel Companion for Windows, on Pro: over a cable once, then over Wi-Fi.
  5. Publish with Pro, from $25 a month, and Apple's Developer Program, $99 a year: Borel builds, signs and uploads the app from its Mac.

The code stays yours: you can download the SwiftUI source with an XcodeGen project.yml, and open it with Claude Code later if you want to work on it by hand.

What should you ask Claude Code for on Windows?

Ask for the parts Windows can check, and keep the parts it can't in separate files. A good opening request names the app, its screens and its data, and says where the logic should live:

A request to Claude Code
Create a SwiftUI app called Tally for iOS 18: a list of counters, a screen to add one with a name and a colour, and a detail screen with plus and minus buttons. Put the counter model and its rules in a separate Swift package with tests I can run on Windows, and write a project.yml for XcodeGen. Don't create an .xcodeproj.

Claude Code can build and test the package on your PC straight away, so the rules are checked before any Mac is involved. The SwiftUI screens wait for the Mac, which is why it helps to keep them thin: they show the data and send taps to the package, and the package does the thinking.

What does each route cost?

What each route from Windows adds to Apple's yearly fee
RouteOn top of Apple's fee
A rented MacA Claude plan, plus the Mac's rent by the hour or the month
A build pipelineA Claude plan, plus the CI service's macOS minutes
An iPadA Claude plan, plus an iPad if you don't have one
BorelNo Claude plan; Pro, from $25 a month, to install, and Pro, from $25 a month, to publish

Apple's Developer Program, $99 a year, sits under every route that reaches the App Store or TestFlight.

Which route should you pick?

  • You're a developer who wants to learn iOS and enjoys the tooling: a rented Mac with Claude Code on it gives you the real development loop.
  • You want the code in your own repository with every build automatic: a build pipeline, with the setup work done once.
  • You want an app on your phone this week and don't need to touch the code: an AI app builder.
  • You're learning Swift itself: write and test logic with Claude Code and Swift on Windows, and see our guide to Swift Playgrounds on Windows.

The bottom line

Claude Code runs well on Windows, writes complete SwiftUI apps and can test their logic with Swift for Windows. Building, running and signing the iPhone app still needs Xcode on a Mac, and Claude Code's cloud sessions run Linux, so they don't help there. Rent a Mac, set up a build pipeline, or let an AI app builder handle the Mac part. To see your app running on an iPhone today from Windows, try Borel free.

Questions people ask

Can Claude Code make an iOS app without a Mac?

It can write all of the app's Swift code without a Mac. Building, running and signing the app need Xcode, which runs only on macOS, so the build happens on a rented Mac, a CI service's Mac or an AI builder's Mac.

Does Claude Code work on Windows?

Yes. Anthropic's setup page lists Windows 10 version 1809 or later, natively from PowerShell or the Command Prompt, or inside WSL. Git for Windows is optional.

Can Claude Code's cloud sessions build iPhone apps?

No. Anthropic's docs say cloud sessions run in a virtual machine with Ubuntu 24.04, a Linux system, and Xcode doesn't run on Linux.

Can I run the iOS Simulator on Windows?

Not Apple's own, which runs only on a Mac. You can use it in a browser through a service that streams it from a Mac, as Borel does for free.

Can I test Swift code on Windows?

Yes, for code that doesn't use the iPhone's screen or frameworks. Swift for Windows from swift.org builds and tests Swift packages, so Claude Code can run tests for an app's logic there.

Do I need WSL to make iOS apps with Claude Code?

No. Native Windows is enough for writing Swift and running Swift for Windows. WSL suits people who prefer Linux tools; neither one can run Xcode.

What does it cost to publish an app made with Claude Code?

A Claude plan for Claude Code, a way to build on a Mac, and Apple's Developer Program at $99 a year. With Borel, publishing is on Pro, from $25 a month, with the Mac included.

I like Claude Code for real development, and I built Borel for the times when you want the app more than the toolchain. Both can live side by side.

– Sigsten

Build your own workout log

Your idea is already written. Press the button, read it, change anything, and Borel builds it, free to start.

An app where I log each gym session with exercises, sets and weights, see my previous numbers when I start the same exercise, and a chart of my progress per lift.
Build this app

Keep reading