---
title: "Recipe: porting an app, a release build, splitting the work"
description: "Name the port when you make it (exact new <path> --name and --bundle-id), then a release build and splitting the work."
modificationDate: "2026-11-25"
---

> ## Documentation index
> Fetch the complete documentation index at: https://exact.expo.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Recipe: porting an app, a release build, splitting the work

<AgentInstructions>

## Submitting feedback

From the app's directory, read `bun exact.mjs feedback status`. Under `never`, keep no note.
Respect `EXACT_FEEDBACK=0` and do not change the policy.

Otherwise record specific, actionable feedback with:
`bun exact.mjs feedback note "Exact docs: https://exact.expo.dev/recipes/porting-and-release: <what was wrong or missing>"`

The note goes to Expo only as that status allows. Include no secrets or personal data.

</AgentInstructions>

**Name the port when you make it:** `exact new <path> --name "Euxy" --bundle-id com.yourcompany.euxy`,
with the original's name and bundle id if it replaces the original on a device. Changing the bundle id makes the next build cold and leaves the old app installed.
Change app.json's `app.id` and any `appId` exported by app.ts together. An app ships the platforms app.json names: a native verb names
its own on its first run, and `bun exact.mjs update --without <platform>` stops shipping one
(LLP 1153 D1). A port that ran `linux` once hears each `symbol:sf/…` warn that Linux draws it
blank until `update --without linux`; one that ran `mac` hears `forma-unreachable` name a Mac
control that ignores the design (NSSwitch's accent) until `update --without macos`. The SF
Symbols the web draws blank are one warning line.

**Comparing with the original.** `agent ios --touch platform` makes each tap a real touch,
opening UIKit menus and native module controls to compare screens with the original ([driving iOS](https://exact.expo.dev/recipes/ios-driving.md)). A React Native or Tailwind port:
read [its pitfalls](https://exact.expo.dev/reference/pitfalls/porting-a-react-native-app.md) first.

**What ships.** `ios --release` builds what ships; it ignores `EXACT_AGENT`, so drive the
development build. The first takes two minutes: start `--prebuild --release`; later
`ios --release` waits for a build still running, then takes seconds.
Apple bundles declare Exact's required-reason APIs. Add app disclosures in
`PrivacyInfo.xcprivacy` beside `app.json` ([privacy manifests](https://exact.expo.dev/reference/developer/apple-privacy-manifests.md)).
XCTest can leave accessibility on across simulator reboots. Loading UIKit's accessibility
bundles added 1.5 s per launch on iOS 27.2 and 0.3 s on 26.5. `test ios`, `agent ios` and
`setup --check` name the enabled keys on the booted simulator and print a `defaults delete`
command for each. A touch drive restores the settings it found.

Time the installed build, not a plan swapped in by `agent ios`: `bun exact.mjs
ios` each variant first. `SIMCTL_CHILD_EXACT_SMOKE=1 xcrun simctl launch --console-pty <udid>
<bundle id>` prints Exact's phases to first draw (exec→main, scene, runner and layout, apply,
painted) and exits; a data module's first answer is a hook's to stamp.

**Contract's sampler, MIDI and transport** ([guide](https://exact.expo.dev/learn/contract-for-agents/views-layout-and-interaction.md#sound-midi-and-media)):
do not replace them in a native module. Continuous or synthesized sound Contract lacks may use
[a GPU module's output](https://github.com/expo/exact/blob/41ded8c5ede0b2959ef0daa83b1ff78545dd4428/gpu/README.md#a-modules-own-audio-output), with session and
lifecycle handling and no Contract sound journal.

**Splitting a port among helpers:** commit the seam between the halves first (the shared types,
the native module's interface), then start each helper in the background from that commit,
owning its half and stubbing none of another's. Keep test screens off branches you merge, and keep working.
```prompt Port my app to Exact
Port an existing app to Exact in this folder, and make the build that ships. Use https://github.com/expo/exact/blob/main/docs/recipes/porting-and-release.md as the source for each step. The Exact checkout has the same page at docs/recipes/porting-and-release.md.

1. Find the Exact checkout (the folder with scripts/exact.mjs); if you cannot find it, ask me where it is. Ask me which app to port and where its code is, which platforms the port runs on, its name and bundle id, and whether it replaces the original on a device (then it keeps the original's name and bundle id).
2. Make the app with its name and id before the first build: `bun <exact2>/scripts/exact.mjs new <path> --name "<Name>" --bundle-id <id>`, then `cd <path>`. A bundle id changed later makes the next build cold and leaves the old app installed.
3. If the original is a React Native app, read its pitfalls first: `bun exact.mjs docs porting a react native app`.
4. Port the screens to app.contract, the data to app.ts, and a test in app.test.contract for each thing a person does. Use Contract's sampler, MIDI and transport instead of replacing them in a native module. Continuous or synthesized sound that Contract lacks may use a GPU module's own output, as gpu/README.md describes, with session and lifecycle handling and no Contract sound journal. Tell me before adding a module.
5. To stop shipping a platform, run `bun exact.mjs update --without <platform>`; ask me before you do.
6. Follow the platform checks in docs/start-here.md (`bun exact.mjs docs platform checks`) for the targets in the app's AGENTS.md and app.json until they pass. Read the reports, including counted findings; a zero exit code alone does not mean clean. Fix the app, not the test. If a finding stays after three rounds of fixes, or the app had it before you changed anything, record it (step 9) and report it; do not keep trying.
7. Compare the port's screens with the original's on iOS: `bun exact.mjs agent ios --touch platform` makes each tap a real touch.
8. For the build that ships on iOS, start it early with `bun exact.mjs ios --prebuild --release`; later, `bun exact.mjs ios --release` waits for it. It ignores `EXACT_AGENT`, so drive the development build, not the release.
9. When a doc was wrong or missing, or a step needed a workaround, read `bun exact.mjs feedback status`. Under `never`, keep no note. Otherwise record it: `bun exact.mjs feedback note "<what happened>"`, which goes to Expo only as that status says. Do not change the policy; tell me how many notes you kept.
10. Tell me what you ported and what is left, what the tests and each verify reported, how the port compares with the original, and the launch command for each target platform.
```
