Home/Without a Mac/How do I debug Expo on the iOS simulator and a real iPhone without a Mac?

How do I debug Expo on the iOS simulator and a real iPhone without a Mac?

Updated · airankrush

The short answer

Real-device debugging usually needs no Mac: Expo's development server is a Node program that runs on your own computer, and the iPhone installs a development build made in the cloud and connects to it over the local network. What needs macOS is the iOS simulator. Put the other way round, a remote Mac is suited to running the simulator and not to connecting the phone in your hand.

Which steps require macOS

No Mac needed: real device + your own computer

  • Make a development build in the cloud with EAS Build and install it on a registered iPhone through internal distribution. According to the official documentation, every build installed on an iPhone needs a paid Apple Developer account for signing.
  • Run npx expo start on your own computer. The Expo CLI documentation says the project is served over the local network by default, so the phone and this computer must be on the same network.

macOS needed: the simulator

  • The iOS simulator ships with Xcode. The documentation states that npx expo run:ios can only be run on a Mac.
  • A simulator build made in the cloud also needs a Mac before it can be installed into a simulator.

Limits of a remote Mac

Putting the development server on the remote Mac and having the phone in your hand connect to it is a route we do not recommend: the two are not on the same local network; Expo's --tunnel option relies on a third-party tunnel service to expose an address to the outside, while our machines do not allow customers to change the network configuration, and we do not recommend installing tools that expose ports to the outside. Drive the real device from your own computer and leave the simulator to the remote Mac.

How to do it on a remote Mac

  1. Real-device route: install the dev client library and register the device

    On your own computer:

    npx expo install expo-dev-client
    eas device:create

    The second command gives a link or QR code; open it on the iPhone to complete registration. Internal distribution uses an ad hoc provisioning profile, which contains an allowlist of device identifiers, and only devices already on the list at build time can install. The official documentation notes that the number of such devices is capped per year.

  2. Real-device route: make a development build and install it

    Confirm that the development profile in eas.json has "distribution": "internal", adding it yourself if it is missing, then:

    eas build --platform ios --profile development

    When the build finishes, open the build page on the phone to install, and enable Developer Mode in the iPhone's settings. Adding a device later requires a new build.

  3. Real-device route: start the development server

    npx expo start

    When the project has expo-dev-client installed, this command targets the development build and not Expo Go. Put the phone and the computer on the same Wi-Fi and open the development app on the phone to load the project. Up to this point, the whole real-device debugging chain has not used a Mac.

  4. Simulator route 1: make a simulator build in the cloud, install it on the remote Mac

    Add "ios": { "simulator": true } to a build profile in eas.json and run eas build -p ios --profile preview. Then on the remote Mac:

    eas build:run -p ios --latest

    The remote Mac must already have Xcode and EAS CLI installed and eas login done. This command downloads the most recent simulator build and installs it into the simulator. The official documentation says simulator builds do not need an Apple Developer account.

  5. Simulator route 2: compile locally on the remote Mac

    npx expo run:ios

    It runs prebuild first if needed to generate the ios/ directory, compiles a debug build, installs it into the simulator and starts the bundler. If a development server is already running, pressing i in the terminal also opens the iOS simulator, and Shift + I lets you pick the device model.

  6. How to split work between the two routes

    Day-to-day UI and logic changes: your own computer plus a real device. Comparing several screen sizes and OS versions, or taking App Store screenshots: the simulator on the remote Mac. Native-level errors that need the Xcode logs: the remote Mac.

FAQ

Why not just use Expo Go? Why a development build?

A project with no custom native code can start with Expo Go. As soon as you add a native library that Expo Go does not include, you need your own development build. The Expo documentation defines where each applies.

Can I install a development build on an iPhone without a paid developer account?

Per the Expo documentation, not with a cloud build. It says compiling on your own machine is the only way to get a development build onto an iPhone without a paid account, and that needs a Mac with the phone connected by cable, which a remote Mac cannot do.

Can a simulator build be installed on a real device?

No. The official documentation states that a simulator build can only be installed on a simulator; to support real devices as well you need a separate build profile.

Is the simulator laggy when viewed through remote desktop?

Smoothness depends on your own local network connection and the connection method you use; we have no measured figures. Try both UU Remote and RustDesk, described in the help center.

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

Back to home · All no-Mac guides