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
Run a cloud build from your own computer first
npm install --global eas-cli eas login eas build:configure eas build --platform iosThe 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.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.
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.jsonthat 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.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 --localBoth 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
logssubdirectory of the working directory, which is exactly the part you cannot fully see in the cloud.Generate the native directory when you need to look at the project
Expo uses continuous native generation: the
ios/directory is produced bynpx expo prebuildfrom the app config, and new projects add it to.gitignoreby default. After running prebuild on the remote Mac, open the.xcworkspaceunderios/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.Go back to cloud builds once it is fixed
When the problem is located and fixed, commit the change and carry on with
eas buildon 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.
Related
- How do I handle iOS certificates and signing for Expo without a Mac?
- How do I upload an Expo app to TestFlight and the App Store without a Mac?
- How do I debug Expo on the iOS simulator and a real iPhone without a Mac?
- Remote Mac vs GitHub Actions macOS runner or Codemagic: which should I use?
- iOS without a Mac: a remote Mac mini can build, sign and upload, but not debug on a real device
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support