---
title: "Recipe: build iOS with EAS"
description: "Use the native CI preparation: add the separate Expo config, EAS profile and .ci/prepare-native.sh."
modificationDate: "2026-11-12"
---

> ## 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: build iOS with EAS

<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/eas-ios: <what was wrong or missing>"`

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

</AgentInstructions>

Use the [native CI preparation](https://exact.expo.dev/reference/developer/run-an-app-from-a-terminal-on-macos.md#native-ci-preparation):
add the separate Expo config, EAS profile and `.ci/prepare-native.sh`.
Add [`.ci/sign-ios.sh`](https://exact.expo.dev/reference/developer/run-an-app-from-a-terminal-on-macos.md#import-an-ios-signing-identity-on-a-ci-worker)
and its certificate/profile secrets. These are app-owned workflow files;
Exact uses its ordinary archive command (LLP 1030.003 D6, D8).

The app needs `host.ios`, its registered bundle id, and a square icon of at
least 1024 px in `icons` or `host.ios.icon`. Xcode must provide iPhoneOS
27.1 or newer; `DEVELOPER_DIR` selects it when several Xcodes are installed.
No simulator or phone is needed for an app without native-view probes.

Create `.eas/build/eas-ios.yml`:

```prompt Build my iOS app with EAS
Set up EAS Build for the Exact app in this folder, so that an EAS worker makes its signed `.ipa`. Use https://github.com/expo/exact/blob/main/docs/recipes/eas-ios.md as the source for each step. The Exact checkout has the same page at docs/recipes/eas-ios.md.

1. If this folder is not an Exact app (it has no exact.mjs and app.contract), stop and tell me. Find the Exact checkout (the folder with scripts/exact.mjs); if you cannot find it, ask me where it is.
2. Ask me for the EAS project id, the version, and my export compliance answer (`true` or `false`). Ask me to create, in the EAS production environment, the secret file variables `CI_IOS_P12` (a distribution certificate with its private key) and `EXACT_PROFILE` (its App Store provisioning profile), and the secret string `CI_IOS_P12_PASSWORD`. Never write one of them into a file in this folder.
3. Follow the native CI preparation (`bun exact.mjs docs native ci preparation`): add `app.config.js` with only Expo's configuration, `eas.json` with the `exact` profile, and `.ci/prepare-native.sh`. Set `ios.bundleIdentifier` to `app.id`, `EXACT_REF` to the full Exact commit the app uses, `EXACT_VERSION` in the EAS profile, and `EXACT_NON_EXEMPT_ENCRYPTION` to my answer. Run `bun add --dev expo-modules-autolinking` and `bun add --dev --exact eas-cli`.
4. Add `.ci/sign-ios.sh` as the reference writes it (`bun exact.mjs docs import an ios signing identity on a ci worker`), and `.eas/build/eas-ios.yml` as the recipe writes it. Do not turn on shell tracing around credentials.
5. The app needs `host.ios`, a registered bundle id, and a square icon of at least 1024 px in `icons` or `host.ios.icon`: if one is missing, ask me. With an update store, the build needs `EXACT_UPDATE_RECEIPT`, or `EXACT_UPDATE_GENESIS=1` for a new stream: ask me which.
6. On a Mac, check the packaging first: `bun exact.mjs ios --device --archive .exact/app.ipa --unsigned --json`. Ask me before you start a build on my EAS account. When I say that the credentials and the build counter are ready, run `bunx eas build --platform ios --profile exact --non-interactive` until the build succeeds. Report any build failure that predates your changes or persists after three rounds of fixes, and record it as in step 7.
7. 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.
8. Tell me each file you added, and what the build and `artifact.json` reported. Store records, capabilities, credentials and submission are still mine: an upload, a submission and a start on a device have not been run with these steps.
```

```yaml
build:
  name: Exact iOS
  steps:
    - eas/checkout
    - run:
        name: Prepare Exact
        command: sh .ci/prepare-native.sh ios
    - eas/install_node_modules
    - eas/resolve_build_config
    - run:
        name: Archive
        command: |
          set -eu
          bun "$EXACT/scripts/exact.mjs" setup --check --platform ios --device
          export EXACT_BUILD_NUMBER="${ eas.job.version.buildNumber }"
          . .ci/sign-ios.sh
          bun exact.mjs ios --device --archive out.ipa --json > artifact.json
    - eas/upload_artifact:
        inputs:
          type: application-archive
          path: out.ipa
```

Set `EXACT_VERSION` in the EAS profile; it becomes
`CFBundleShortVersionString`, while the resolved build number becomes
`CFBundleVersion`. Set `EXACT_NON_EXEMPT_ENCRYPTION` to your app's `true`
or `false` answer for export compliance. If the app uses an Exact update
store, supply its `EXACT_UPDATE_RECEIPT`, or `EXACT_UPDATE_GENESIS=1` for a
new stream. With `deploy.store.ios: "0"`, no receipt is needed.

After linking the EAS project, installing credentials and initializing its
build counter, submit with `bunx eas build --platform ios --profile exact
--non-interactive`. `out.ipa` is relative to the app directory;
`artifact.json` reports its absolute path, production trust and signing
identity. Build logs go to stderr. Missing inputs fail rather than prompt.
Keep credentials out of caches; the [cache guidance](https://exact.expo.dev/reference/developer/run-an-app-from-a-terminal-on-macos.md#native-ci-preparation)
says when a restored `target/` spares compiling Exact again.

To check packaging locally without Apple credentials, omit the signing
step and add `--unsigned`. That archive has an ad-hoc signature and must
be re-signed before distribution. It is not a store submission.

On an EAS worker these steps have built an `.ipa` signed with EAS-managed
credentials, with the build number from EAS's counter. An upload, a store
submission and a start on a device have not been run with them. Store
records, capabilities, credentials and submission remain the publisher's
work.
