Skip to main content

Build Expo iOS Apps Locally on Windows Without EAS Build

Prebuild generates ios/ automatically. Build and install the native side on Windows while Metro runs the JavaScript as usual.

Last updated

Create an Expo project in VS Code on Windows, press F5 to run it on an iPhone, see Fast Refresh apply on save, and build a Release .ipa.
Show steps for

Build Expo iOS apps locally on Windows without waiting in the EAS Build queue: if the project has no ios/ folder, doctor runs expo prebuild to create it. KXBuild builds and installs the native side, Metro runs the JS as usual, and native code gets breakpoints in VS Code. A Release build bundles the JS into the app and writes an .ipa in the ios folder, signed with your own certificate and ready for App Store Connect.

How do I set up Expo on Windows and generate the ios/ project?

1. Set up Expo

Install Node.js as described on the Expo website. Open a new terminal and check that this prints a version.

> node --version

2. Create a project

To use an existing project, open its root folder in VS Code with File > Open Folder…, or drag the folder into VS Code.

If you don't have a project yet, create one.

Run KXBuild: New Project from the Command Palette and pick the Expo App template.

Keep the parent path short, because the dependency folders nest deeply.

> kxbuild project create -t expo_app -n expohello -o D:\work

3. Run doctor

Do this first whenever you open a project for the first time. Doctor checks your Expo setup, then generates and prepares the iOS project.

In the title bar of the KXBuild view, open the ··· menu and run Doctor (fix environment).

> kxbuild doctor D:\work\expohello

After doctor, install the native dependencies in the ios folder. See CocoaPods. Run it again after adding a native module or config plugin; for common errors see Expo native module iOS build errors.

ios> pod install

How do I debug an Expo app on an iPhone?

4. Write code

Write JS and TypeScript in VS Code as usual, and Metro reloads when you save. KXBuild provides completion and go to definition for the native code under ios/.

5. Debug

Select your device and press F5. KXBuild starts Metro for you, and the app loads its JS over the USB cable. Debug native breakpoints in VS Code; they work independently of JS debugging.

Build, install and launch in one command. KXBuild starts Metro for you, and the app loads its JS over the USB cable:

> kxbuild run .\ios\expohello.xcworkspace

Debug JS breakpoints in the Metro / Hermes debugger.

Before you connect a phone for the first time, install and open Apple Devices from the Microsoft Store to get the USB driver on Windows. On iOS 16 and later, turn on Developer Mode in Settings > Privacy & Security and let the phone restart. See connect an iPhone to Windows for the full steps.

How do I build an Expo iOS .ipa without EAS?

6. Release

Build with the Release configuration. The JS is bundled into the app, and the .ipa is written to the ios folder. To upload it to App Store Connect, see publish to the App Store from Windows.

Run KXBuild: Build for App Store (.ipa) from the Command Palette or the project's context menu.

> kxbuild build .\ios\expohello.xcworkspace -c Release --export app-store

An App Store .ipa must be signed with an Apple Distribution certificate. Put your own .p12 certificate and .mobileprovision profile in a keychain/ folder and every build signs automatically; see sign iOS apps on Windows. Upload with kxstore (kxstore build upload, on Windows, Linux or macOS), then handle TestFlight and review on App Store Connect. That way you build Expo iOS apps locally on Windows, debug them on a real iPhone and upload them from your own computer. For community CLI projects without Expo, see build React Native iOS apps on Windows.

Next steps

Don't see your framework?

kxbuild is a general-purpose build toolchain, so if your framework produces an Xcode project, KXBuild can build it. The list above covers common cases only. Tell us about your setup.