Can OpenAI Codex build an iOS app without a Mac?
Codex writes Swift from Windows, the cloud or your phone, but an iPhone app still needs Xcode on a Mac. What works without one, and three routes that do.

By Sigsten Gustavii· · 9 min read
Build your own reading tracker with Borel
Build this appOpenAI Codex can write a whole iOS app without a Mac, but it can't build one. Codex works on Windows, in OpenAI's cloud and from the ChatGPT app on your iPhone, and Swift code comes out the same everywhere. Turning that code into an app on a phone takes Xcode, and Xcode runs only on macOS.
Codex is OpenAI's coding agent, and it has grown a lot of ways to work: a command-line tool, a desktop app, a cloud service and a mobile view. This post goes through each one for an iPhone app, from OpenAI's own documentation, then the three routes that add the missing Mac, and the shorter route when you want the app more than the code.
Where does Codex run?
OpenAI's documentation, read on 16 November 2026, describes four places to use Codex. None of them is limited to the Mac:
| Surface | Where it runs | What it can run |
|---|---|---|
| Codex CLI | Your terminal on Windows, macOS or Linux | The tools installed on that computer |
| ChatGPT desktop app | Windows (PowerShell or WSL2), macOS and Linux | The tools installed on that computer |
| Codex Cloud | OpenAI's cloud environments | The repositories and tools set up in the environment |
| Codex on mobile | The ChatGPT iPhone app | Tasks on Cloud or on a connected Mac or Windows PC |
The pattern in the last column is the whole story. Codex runs what the machine under it can run. On a Mac with Xcode, that includes Apple's build tools. On Windows, Linux or a cloud environment, it doesn't.
What can Codex do for an iPhone app without a Mac?
Quite a lot of the work, as long as it doesn't involve compiling for iOS:
- Write the app. Codex writes SwiftUI screens, data models and navigation, the Swift files an iPhone app is made of.
- Work while you're away. OpenAI says Codex Cloud tasks keep working while your computer is asleep, and end with changed files you review and turn into a pull request.
- Take instructions from your phone. With Codex on mobile, you start or steer a task from the ChatGPT app on your iPhone and approve what it wants to run.
- Prepare the build. Codex can write the project description and the workflow files a Mac in the cloud would follow to build and upload the app.
- Review and explain. It reads your code with you, explains it and suggests changes.
On Windows, the ChatGPT desktop app runs Codex natively in PowerShell with a Windows sandbox, or inside the Windows Subsystem for Linux. That is a comfortable place to write Swift; it just isn't a place to build an iPhone app.
What does Codex still need a Mac for?
The steps Apple keeps inside Xcode:
- Compiling the app against the iOS SDK, which includes SwiftUI and the iPhone's frameworks.
- Running it in the iOS Simulator, or on a real iPhone from Xcode.
- Signing it with your Apple developer certificate, and uploading it to App Store Connect for TestFlight and review.
OpenAI's documentation lists testing an iOS simulator flow as a good use of Codex's Computer Use, where it clicks through an app on screen. That happens on a Mac running the Simulator. Nothing in the documentation describes a Mac in Codex Cloud or an iOS build there.
What does a Codex task for an iPhone app look like?
Codex works well on a clear, self-contained task with something it can check. Without a Mac it can't check the screens, so give it a task where the logic is testable on its own and the SwiftUI part is small:
In this repository, add a SwiftUI screen for logging water: an amount in millilitres, a time that defaults to now, and a Save button. Keep the totals and the daily goal in the WaterLog Swift package, with unit tests for a day that crosses midnight. Update the GitHub Actions workflow so the macOS job builds the app and runs the tests.Codex can write all of that and, if its environment has Swift set up, run the package's tests in the cloud. The app itself only compiles when the macOS job in the pipeline runs, so the pull request tells you whether the screen built. That loop is slower than working on a Mac, and it is how many teams without Macs on their desks work.
Three routes that add the missing Mac
| Route | How it works | Good for |
|---|---|---|
| Codex on a rented Mac | Install Xcode and Codex on a cloud Mac, then drive it from your PC or your phone | Developers who want the full Xcode loop |
| Codex Cloud plus a build pipeline | Codex opens pull requests; a CI service's macOS machine builds each one and uploads it to TestFlight | Projects that live in a repository |
| An AI app builder | Describe the app; the builder writes it and builds it on its own Mac | People who want the app, not the toolchain |
Codex on a rented Mac
A Mac in the cloud runs Xcode like any Mac. Install Codex on it and it can run Xcode's command-line tools, build the app, run tests and start the Simulator. OpenAI's mobile docs describe connecting a Mac or Windows PC to the ChatGPT app, so you could start tasks on that Mac from your iPhone and approve them as they go. You pay for the Mac's time, and you set up Xcode and signing on it once.
Codex Cloud plus a build pipeline
This route never touches a Mac directly. Codex Cloud works on your repository and opens pull requests; a CI service builds each change on one of its macOS machines, signs it and uploads it to TestFlight, and you try it on your iPhone. GitHub Actions is one service with macOS machines.
The catch is the set-up. A pipeline needs your distribution certificate, a provisioning profile and an App Store Connect API key stored as secrets, and you need Apple's Developer Program to make them. Codex can write the workflow, but each change only shows up on your phone after a full build and upload.
Or let an AI app builder bring the Mac
[Borel](/how-it-works) writes native iPhone apps in Swift and SwiftUI from a description, builds them with Xcode on its own Mac and streams Apple's iOS Simulator to your browser, free for everyone. It is the same idea as Codex Cloud, an AI working on your app somewhere else, with the Mac part included. You start free with 5 credits a day.
- Describe the app in plain words, as you would brief Codex.
- Borel writes and builds it on its Mac; if Xcode reports an error, Borel reads it and tries to fix it.
- Tap through it in the iOS Simulator in your browser, from Windows, a Chromebook or a Mac.
- Ask for changes in plain words, and watch each one rebuild.
- Put it on your iPhone with Borel Companion, on Pro, from Windows or a Mac.
- Publish with Pro, from $25 a month, plus Apple's Developer Program at $99 a year: Borel builds, signs and uploads the app from its Mac.
You can download your app's SwiftUI source whenever you like, so nothing stops you from opening it in Codex later.
What does each route cost?
Every route that reaches TestFlight or the App Store includes Apple's Developer Program at $99 a year. On top of that, Codex needs a ChatGPT sign-in or another sign-in OpenAI supports, and the Mac part has its own price: a rented Mac by the hour or month, a CI service's macOS minutes, or a builder's plan. Borel needs no ChatGPT plan: building and trying an app in the Simulator is free, installing on your iPhone comes with a paid plan, Pro, from $25 a month, and publishing with Pro, from $25 a month.
If you already pay for ChatGPT and enjoy working in code, a pipeline keeps the extra cost to the Mac minutes. If the Mac part is the only reason you'd pay for anything else, compare it with a builder before you commit.
Codex, Claude Code or a builder?
Codex and Claude Code are in the same position here: both write Swift anywhere and both need a Mac to build. Our guide to Claude Code on Windows covers the same question for Anthropic's tool, and Can ChatGPT make an iPhone app? covers the chat app. The choice comes down to what you want to spend your time on:
- Learning iOS development: a coding agent on a real or rented Mac, where you see every step.
- A codebase you own and automate: a coding agent plus a build pipeline.
- An app on your phone soon, without the plumbing: an AI app builder with its own Mac.
The bottom line
OpenAI Codex writes iPhone apps from Windows, from the cloud and from your phone, and OpenAI's documentation shows no way for it to build one without a Mac. Add a rented Mac, a build pipeline, or a builder that brings its own. To see an app running on an iPhone in your browser today, with no Mac, try Borel free.
Questions people ask
Can Codex build iOS apps on Windows?
Codex can write all of the Swift code on Windows, in the CLI or the ChatGPT desktop app. Building the iPhone app needs Xcode, which runs only on macOS, so the build happens on a Mac somewhere else.
Does Codex Cloud have Xcode?
OpenAI's documentation, read in November 2026, doesn't mention Xcode, macOS machines or iOS builds in Codex Cloud. Codex Cloud runs the repositories and tools set up in its environments.
Can I use Codex from my iPhone?
Yes, to start and approve tasks. OpenAI's docs describe Codex in the ChatGPT iPhone app, working on Cloud or on a Mac or Windows PC you connect.
Can Codex test an app in the iOS Simulator?
On a Mac, yes: OpenAI lists testing an iOS simulator flow as a good use of Computer Use. Without a Mac, Apple's Simulator isn't available, though Borel streams it to your browser.
Do I need an Apple Developer account to use Codex for iOS?
Not to write code. To put the app on TestFlight or the App Store, yes: Apple's Developer Program costs $99 a year.
Can Codex Cloud run my Swift tests?
For Swift code that doesn't depend on the iPhone's frameworks, it can if its environment has Swift installed. Tests that need the iOS Simulator or SwiftUI run on a Mac.
Can Codex upload my app to TestFlight?
Not from its own environments. A pipeline Codex writes can do it from a CI service's Mac with your App Store Connect API key, or an AI builder uploads from its own Mac.
Is Codex or an AI app builder better for a beginner?
For someone who doesn't code, an AI app builder with its own Mac is the shorter path: no Xcode, signing or pipeline to set up. Codex suits people who want to work in the code.
I use coding agents every day, and I built Borel for the part they leave out: the Mac, the Simulator and the trip to Apple. Tell me which route worked for you.
– Sigsten
Build your own reading tracker
Your idea is already written. Press the button, read it, change anything, and Borel builds it, free to start.
An app where I add the books I'm reading, log pages each evening, see how many days until I finish at my current pace, and keep a shelf of finished books with a one-line note on each.Build this app