Setting up a machine
The exact prerequisites for building and testing Seed Exact, the first run step by step, how to check a machine with setup --check, and the common failures.

A machine needs four things to work on the mobile app: the pinned Bun, a Rust toolchain manager, Xcode, and an Exact checkout at the pinned commit. This page lists them precisely and walks through a first run on a Mac.

Prerequisites

Tool

Version

Where the pin lives

Needed for

Bun

exactly 1.4.2

packageManager in package.json; exact.mjs calls ensureBun('1.4.2')

everything

Exact checkout

commit 94b8671f70fe2e25b307a40e7fce66dc27c9f802

exact.rev

everything except plain bun test

rustup

any

checked by Exact's setup

compiling Exact's compiler and hosts

Rust

stable 1.97.0, components rustfmt and clippy, target wasm32-unknown-unknown

Exact's rust-toolchain.toml

installed by setup

Rust nightly for the web

nightly-2026-08-21 with rust-src

Exact's reference

installed by setup

Xcode

a full Xcode selected by xcode-select, with an iOS simulator runtime

Exact's setup report

iOS builds

Hermes bundles

Ibex release 260318099.0.4, for the host and the iOS targets

Exact's README; installed under ~/.cargo/hermes-lean-sys/

the data module on iOS

Chrome or Chromium

any, or CHROME set

Exact's setup report

web test drives

mise and Node

any

scripts/mobile

only the root pnpm mobile* wrappers

Not needed: npm, pnpm (for the app), Metro, CocoaPods, EAS. The simulator needs no signing credentials. TestFlight signing lives only on the delivery Mac, see Signing and credentials.

First run

From frontend/apps/mobile-exact, as in the app's README.md:

    Clone Exact beside the Seed repository, so that ../../../../exact from the app directory resolves to it: git clone https://github.com/expo/exact.git.

    Point the launcher at it and pin it:

    export EXACT2="$(cd ../../../../exact && pwd)" git -C "$EXACT2" checkout --detach "$(cat exact.rev)"

    Install Exact's own dependencies and toolchains, once per machine:

    (cd "$EXACT2" && bun install --frozen-lockfile && bun scripts/exact.mjs setup)

    setup installs the pinned stable and nightly Rust toolchains, wasm-bindgen, Binaryen, the Hermes bundles for this Mac and its iOS targets, and fetches the locked crates so later builds resolve offline (setup).

    Install the app's dependencies: bun install --frozen-lockfile.

    Run the unit tests: bun run test. See Bun unit tests.

    Build and launch on a simulator: bun exact.mjs ios --sim 'iPhone 18 Pro' --run. The first native build takes ten to fifteen minutes. Later ones take a minute or two.

    Optional: bun exact.mjs web for the browser loop, see The web host for development.

The one-command path

From the repository root, pnpm mobile:install runs scripts/mobile install. It clones Exact to EXACT2 (default ../../../../exact) if missing and checks out exact.rev, refuses to continue when an existing checkout is at another commit ("Seed expects Exact <rev>. Set EXACT2 to a checkout at that revision."), installs the app's packages with the pinned Bun through mise, installs Playwright's Chromium and exports CHROME when it is unset, then runs Exact's bun install and setup.

Checking a machine

bun "$EXACT2/scripts/exact.mjs" setup --check

setup --check changes nothing. It prints one row per prerequisite with what is installed, what is wanted and the fix, then fails if a required row is missing (sdkReport). Rows that matter here: rustup, Rust, Bun, node_modules, Chrome, Xcode, and the Hermes bundle rows for the host and the iOS simulator.

Common failures

Symptom

Cause and fix

no exact2 at … (no scripts/app-cli.mjs): EXACT2 names the checkout

The checkout is not where exact.mjs looks. Set EXACT2 to its absolute path

Bun version refused

A different Bun is first on PATH. Install 1.4.2 beside it: curl -fsSL https://bun.sh/install | BUN_INSTALL=~/.bun-1.4.2 bash -s bun-v1.4.2

Build errors after pulling main

exact.rev moved. Check out the new commit, rerun step 3, then bun exact.mjs update only if you are the one moving the pin

A Hermes bundle "not installed or invalid"

Rerun setup. Ordinary builds are offline and never download an engine

cargo +1.97.0 not found

rustup's proxy is not on PATH. scripts/mobile prepends ~/.cargo/bin for this reason

iOS verb "refuses to guess" a simulator

Several simulators are booted. Pass --sim or set EXACT_SIM, see Simulators and devices

Web drive finds no browser

Install Playwright's Chromium or set CHROME

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime