# How do you build a React Native iOS app on a cloud Mac?

> Set up Node, CocoaPods and Xcode on a rented Mac mini and archive a React Native iOS app, from $139 a month. Monero, no KYC.

- URL: https://rentcloudmac.com/guides/how-to-build-react-native-ios-app-on-a-cloud-mac/
- Last updated: 2026-12-03
- Publisher: RentCloudMac (https://rentcloudmac.com)

React Native's JavaScript runs anywhere; its iOS shell is a normal Xcode project. A remote Mac builds it, runs it in the Simulator and archives it for the App Store.

**Quick answer — How do you build a React Native iOS app on a cloud Mac?**

Install Xcode, Node, Watchman and a Ruby with Bundler, run `bundle exec pod install` in the ios folder, then `xcodebuild archive` on the workspace. **RentCloudMac** rents the Mac for this from $92 a month, paid in Monero or Bitcoin; Ship's 24 GB suits Metro, Xcode and a Simulator together.

**In brief**

- **Tools**: Xcode, Node LTS, Watchman, Ruby with Bundler for CocoaPods.
- **New project**: `npx @react-native-community/cli init`; the old `npx react-native init` is retired.
- **Pods**: `bundle install` then `bundle exec pod install` inside `ios/`.
- **Run**: `npx react-native run-ios` on the Simulator; **ship**: `xcodebuild archive` on the `.xcworkspace`.
- **Expo**: `eas build --platform ios --local` builds on your own Mac instead of Expo's servers.

## Which steps produce a React Native iOS build?

1. **Install Xcode and its platform** — Select Xcode, accept the licence, download the iOS platform.
2. **Install Node and Watchman** — brew install node watchman, or a Node version manager if projects need different versions.
3. **Get the project** — Clone your repository, or create one with npx @react-native-community/cli init.
4. **Install JavaScript and native dependencies** — npm ci at the root, then bundle install and bundle exec pod install inside ios.
5. **Run on the Simulator** — npx react-native run-ios starts Metro and the app; watch it through Screen Sharing.
6. **Archive for release** — xcodebuild archive on ios/MyApp.xcworkspace with the Release configuration, then export and upload.

*Toolchain and first run*

```bash
brew install node watchman
npx @react-native-community/cli@latest init MyApp
cd MyApp
npm ci
cd ios && bundle install && bundle exec pod install && cd ..
npx react-native run-ios
```

*Release archive*

```bash
xcodebuild -workspace ios/MyApp.xcworkspace -scheme MyApp \
  -configuration Release -destination 'generic/platform=iOS' \
  -archivePath build/MyApp.xcarchive archive
```

## Why does React Native need Bundler for CocoaPods?

**The template ships a Gemfile that pins the CocoaPods version, so `bundle exec pod install` gives every machine the same native dependency resolution.** Using the system `pod` or a different version is a common source of "works on my laptop, fails on the Mac" errors. Install a user-level Ruby with rbenv or Homebrew rather than relying on the macOS system Ruby.

The New Architecture is the default in current React Native releases; if a native module has not caught up, the pod install or the build will say so, and you fix it in the module, not on the Mac.

## Which route fits which React Native project?

*React Native iOS build routes on a rented Mac, by project type*

| Project | Command on the Mac | Needs the desktop? |
| --- | --- | --- |
| Bare React Native | xcodebuild archive on the workspace | Only for the Simulator |
| Expo with prebuild | npx expo prebuild, then xcodebuild | Only for the Simulator |
| Expo with EAS | eas build --platform ios --local | No |
| CI on every push | A self-hosted runner calling the same commands | No |

## Can Expo projects build on a rented Mac?

**Yes: `eas build --platform ios --local` runs the EAS build steps on your own Mac, so no build credit is used on Expo's servers.** You still need the EAS CLI (`npm install -g eas-cli`), a logged-in Expo account and Fastlane plus CocoaPods on the Mac, as Expo's local build documentation lists. Alternatively, `npx expo prebuild` generates the ios folder and you build it like a bare project.

To run the same thing on every push, register the Mac as described in [React Native iOS builds](https://rentcloudmac.com/use-cases/react-native-ios-builds/ "React Native iOS builds on a cloud Mac").

## Which Mac size fits React Native work?

**Ship is the comfortable minimum once Metro, Xcode, a Simulator and a browser run together.** node_modules, Pods and DerivedData each take real disk space, and every branch you build adds more. RentCloudMac compared prices on 3 December 2026: the lowest-priced 24 GB M4 found was $129.00 at MyRemoteMac, by card only; Ship at $139 sits +8% above it and is the only one of that size paid in crypto among the sellers read. Sizing detail is in [how much RAM for Xcode](https://rentcloudmac.com/how-much-ram-for-xcode/ "How much RAM for Xcode"); Simulator tips in [run the iOS Simulator on a remote Mac](https://rentcloudmac.com/guides/how-to-run-ios-simulator-on-a-remote-mac/ "How to run the iOS Simulator on a remote Mac").

## What questions do React Native developers ask?

### Can Metro run on my PC while the app runs on the remote Simulator?

It can, but it is simpler to run Metro on the Mac itself and edit code there with VS Code Remote - SSH.

### Do I need a Mac for Android builds too?

No. Android builds run on Windows or Linux; the Mac is only needed for the iOS side.

### pod install fails with a Ruby error. What now?

Use bundle exec pod install with the Gemfile of the project, and a Ruby from rbenv or Homebrew rather than the system one.

### How do I upload the archive?

Export with an ExportOptions.plist whose destination is upload, or use Fastlane; both are shown in the signing guide.

### Does RentCloudMac preinstall Node or Xcode?

No. Xcode is not preinstalled: it installs from the Mac App Store or with the xcodes tool, or the team installs it with the Xcode and Fastlane setup option ($79 once). Node and the rest come from Homebrew in a few minutes.

**Verdict**

- Node, Watchman, Bundler-managed CocoaPods and Xcode make a complete React Native iOS machine.
- Archive the `.xcworkspace`, not the `.xcodeproj`, once pods are installed.
- Expo teams can build locally with EAS on the same Mac. Plans are on [pricing](https://rentcloudmac.com/pricing/ "RentCloudMac pricing").

**A Mac for your React Native iOS builds** Ship: M4 · 24 GB · 512 GB, ready within 24 hours, paid in crypto with no KYC. [Rent Ship — $139/mo](https://rentcloudmac.com/app/checkout/?plan=ship&from=guides-how-to-build-react-native-ios-app-on-a-cloud-mac&lang=en)

## Sources

1. [Set up your environment](https://reactnative.dev/docs/set-up-your-environment) — React Native
2. [Publishing to Apple App Store](https://reactnative.dev/docs/publishing-to-app-store) — React Native
3. [Run builds locally or on your own infrastructure](https://docs.expo.dev/build-reference/local-builds/) — Expo

---

RentCloudMac: RentCloudMac rents whole Apple Mac minis (M4 and M4 Pro) in data centres for building, signing and testing iOS and macOS apps, reached over SSH and Screen Sharing. Five Macs cost $92 to $299 a month, paid in Monero, Bitcoin, USDT or 4 other coins, with no KYC and delivery within 24 hours.
