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 |
| everything |
Exact checkout | commit | everything except plain | |
rustup | any | checked by Exact's | compiling Exact's compiler and hosts |
Rust | stable | Exact's | installed by |
Rust nightly for the web |
| Exact's reference | installed by |
Xcode | a full Xcode selected by | Exact's setup report | iOS builds |
Hermes bundles | Ibex release | Exact's README; installed under | the data module on iOS |
Chrome or Chromium | any, or | Exact's setup report | web test drives |
| any | only the root |
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 --checksetup --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 |
|---|---|
| The checkout is not where |
Bun version refused | A different Bun is first on |
Build errors after pulling main |
|
A Hermes bundle "not installed or invalid" | Rerun |
| rustup's proxy is not on |
iOS verb "refuses to guess" a simulator | Several simulators are booted. Pass |
Web drive finds no browser | Install Playwright's Chromium or set |
User stories
The code described here exists to deliver these stories. Each story lists this page in its Trace (traceability).
US-TEAM-03 Set up a machine and run the app: Prerequisites, the first run step by step, setup --check and common failures
US-TEAM-05 Add a story and see it shipped: The dedicated checkout a change starts from
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime