# EAS Submit, step by step: the credentials each store needs before your first upload

`eas submit` is the last command between an Expo build and the stores. When it fails, it's almost never the command. It's a missing key, a missing app record, or a store rule that the command can't work around. This post sets up both stores properly once, so every submit after that is one line.

## What EAS Submit does (and doesn't)

EAS Submit uploads a finished build to App Store Connect or Google Play Console. It does not:

- create your app's store listing, screenshots or description
- answer the review questionnaires (privacy, content rating, Data safety)
- press "Submit for review" on iOS, or roll out to production on Android unless you configure a track

So think of it as the upload step. Everything around it still happens in the store consoles.

## iOS: what you need

**1\. An Apple Developer Program membership** ($99 a year) and access to App Store Connect.

**2\. An app record in App Store Connect** with the same bundle identifier as `ios.bundleIdentifier` in your `app.json`. EAS can create it for you the first time if you sign in with your Apple ID during `eas submit`.

**3\. An App Store Connect API key.** This is the credential that lets EAS upload without your Apple ID password and 2FA every time. In App Store Connect → Users and Access → Integrations → App Store Connect API, create a key with at least App Manager access. You'll get:

- an **Issuer ID**
- a **Key ID**
- a `.p8` file, downloadable only once

EAS can store the key for you when you run `eas credentials`, so you don't need to commit it anywhere.

**4\. Your app's numeric Apple ID** (`ascAppId`), shown on the app record's App Information page. Put it in `eas.json` so submits don't stop to ask:

```json
{
  "submit": {
    "production": {
      "ios": { "ascAppId": "1234567890" }
    }
  }
}
```

Then:

```bash
eas build --platform ios --profile production
eas submit --platform ios --latest
```

The build lands in TestFlight after Apple finishes processing it, usually within the hour. Submitting it for review is still a button in App Store Connect.

## Android: what you need

**1\. A Google Play developer account** ($25 one-time).

**2\. An app created in Play Console** with the same package name as `android.package` in `app.json`.

**3\. One manual upload first.** Google's API can't create the very first release of an app, so upload your first `.aab` by hand in Play Console (an internal testing release is fine). After that, EAS can take over.

**4\. A Google service account key.** In Google Cloud, create a service account, create a JSON key for it, then in Play Console → Users and permissions invite the service account's email and give it release permissions for your app. Point EAS at the key (via `eas credentials`, or a path in `eas.json`):

```json
{
  "submit": {
    "production": {
      "android": {
        "serviceAccountKeyPath": "./google-service-account.json",
        "track": "internal"
      }
    }
  }
}
```

Keep that JSON file out of git. Add it to `.gitignore` before you do anything else.

Then:

```bash
eas build --platform android --profile production
eas submit --platform android --latest
```

Start with the `internal` track. Promote to closed, open or production testing from Play Console once you've checked the build on a real device.

## The Google Play rule EAS can't skip

If your Play developer account is a personal account created after November 2023, you can't publish to production until you've run a closed test with at least 12 testers opted in for 14 continuous days, then applied for production access. EAS will upload to testing tracks happily in the meantime, but plan the two weeks into your launch date.

## Common failures and what they mean

| Error you see | Usual cause |
| --- | --- |
| Bundle identifier or package not found | The store app record doesn't exist yet, or its ID doesn't match `app.json` |
| Version code or build number already used | Bump the number, or turn on `autoIncrement` in `eas.json` |
| Android: the caller does not have permission | The service account wasn't invited in Play Console, or lacks release permissions |
| Android: first upload rejected via API | No manual first upload yet |
| iOS: invalid or expired key | Wrong Key ID or Issuer ID, or the key was revoked |

## The one-line future

With the API key, the service account and `eas.json` set up, every release after the first is:

```bash
eas build --platform all --profile production --auto-submit
```

If you'd rather not set up any of this, [LetsDeployIt](https://letsdeploy.it/?utm_source=hashnode&utm_medium=content&utm_campaign=eas-submit-credentials) handles store accounts, credentials and submission for you.
