Home/Without a Mac/How do I build an .ipa for an Expo project without a Mac?

How do I build an .ipa for an Expo project without a Mac?

Updated · airankrush

The short answer

You usually do not need to rent a Mac for this step: Expo's own EAS Build builds iOS apps in the cloud, and running eas build --platform ios on Windows or Linux gets you an .ipa. macOS is still needed for local builds (--local, npx expo run:ios) and when you have to open Xcode to investigate a native problem.

Which steps require macOS

The main flow, no Mac needed

Following Expo's EAS Build setup documentation, installing EAS CLI, signing in to your Expo account, generating eas.json and starting a build are all Node commands, and compilation happens on Expo's build machines. A store build requires Apple Developer Program membership; the signing certificate and provisioning profile can be created by EAS CLI after you sign in to your Apple account.

Cases that still need macOS

  • eas build --platform ios --local: runs the same build process as the cloud on your own machine. The official documentation says local builds support macOS and Linux but not Windows; and since an iOS build uses Xcode, in practice it only runs on a Mac, where you also have to install fastlane and CocoaPods yourself.
  • npx expo run:ios: in the documentation's words, it can only be run on a Mac and Xcode must be installed.
  • When a cloud build fails and the logs are not enough to find the cause, the troubleshooting method the official docs suggest is precisely a local build.
  • Company policy says code may not be handed to a third-party build service.

So the conclusion: use cloud builds first, and only prepare a Mac if you land in one of the cases above.

How to do it on a remote Mac

  1. Run a cloud build from your own computer first

    npm install --global eas-cli
    eas login
    eas build:configure
    eas build --platform ios

    The third command generates eas.json. The fourth prompts you to sign in to your Apple Developer account and takes care of signing. EAS Build is available on Expo's free plan as well; paid plans mainly differ in queue priority, concurrency and timeout limits, as stated on Expo's website.

  2. Move to a remote Mac only after confirming cloud builds are not enough

    Check against the list in the previous section. Typical signals: the same commit keeps failing in the cloud and the log stops at some Xcode step; or you added a library that modifies the native project and want to see the error in Xcode with your own eyes. That is the point to start using a remote Mac.

  3. Prepare the local build environment on the remote Mac

    Install Xcode, Node and the package manager your project uses, then install fastlane and CocoaPods yourself as the local builds documentation describes. Note the limitations it lists: fields in eas.json that pin versions of Node, CocoaPods and so on are ignored for local builds, and the versions actually installed on this Mac are used; caching is not supported; only one platform can be built at a time.

  4. Run the local build and keep the working directory

    eas login
    EAS_LOCAL_BUILD_SKIP_CLEANUP=1 EAS_LOCAL_BUILD_WORKINGDIR=$HOME/eas-work eas build --platform ios --local

    Both environment variables come from the official documentation: the first keeps the working directory after the build ends, the second sets where it is. With them set, the Xcode logs are in the logs subdirectory of the working directory, which is exactly the part you cannot fully see in the cloud.

  5. Generate the native directory when you need to look at the project

    Expo uses continuous native generation: the ios/ directory is produced by npx expo prebuild from the app config, and new projects add it to .gitignore by default. After running prebuild on the remote Mac, open the .xcworkspace under ios/ in Xcode to compile and read errors as with any native project. Do not treat hand edits made here as a long-term solution; changes belong back in the app config or a config plugin.

  6. Go back to cloud builds once it is fixed

    When the problem is located and fixed, commit the change and carry on with eas build on your own computer. Local builds are for troubleshooting and need not become the daily routine; whether to renew the remote Mac depends on whether you expect to hit this kind of problem again.

FAQ

Can I install the .ipa from a cloud build straight onto my phone?

Not a store build. The official documentation says it has to be uploaded to the store and installed from there, for example through TestFlight. To install onto specific devices you need an internal distribution build; see our Expo debugging page.

Can the app built by npx expo run:ios --configuration Release go on the App Store?

Not as it is. The official documentation states that an app compiled this way is not signed as App Store submission requires. To publish, use eas build or archive in Xcode.

Does a local build send my code to Expo?

According to the official documentation, a local build communicates with Expo's servers for only two things: confirming the project exists, and downloading credentials when you use ones kept by EAS.

I only use cloud builds. Do I still need your machine?

Most likely not; there is no need to rent a Mac just for packaging. Consider it when you need the iOS simulator, Xcode troubleshooting or local builds. Pricing and availability are on the plans page.

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · All no-Mac guides