eas-cli icon indicating copy to clipboard operation
eas-cli copied to clipboard

Error: There is no profile named production in eas.json

Open trevorallred opened this issue 5 years ago • 2 comments

Summary

After upgrading to 0.35 I'm getting the following error when trying to run eas submit

eas submit -p ios --latest
or 
eas submit -p ios --latest --profile=production

returns

    Error: There is no profile named "production" in eas.json

I was previously using 0.29.1, which worked correctly.

Environment

  EAS CLI 0.35.0 environment info:
    System:
      OS: macOS 11.6
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 12.22.5 - ~/.nvm/versions/node/v12.22.5/bin/node
      Yarn: 1.22.15 - ~/.yarn/bin/yarn
      npm: 6.14.15 - ~/.nvm/versions/node/v12.22.5/bin/npm
    Utilities:
      Git: 2.30.1 - /usr/bin/git
    npmPackages:
      expo: ^43.0.0 => 43.0.3
      react: 17.0.1 => 17.0.1
      react-dom: 17.0.1 => 17.0.1
      react-native: 0.64.3 => 0.64.3
      react-native-web: 0.17.1 => 0.17.1
    npmGlobalPackages:
      eas-cli: 0.35.0
      expo-cli: 4.13.0

Error output

% EXPO_DEBUG=true eas submit -p ios --latest
- Linking to project REDACTED
✔ Linked to project REDACTED
    Error: There is no profile named "production" in eas.json

Reproducible demo or steps to reproduce from a blank project

eas.json

{
  "build": {
    "release": {},
    "development": {
      "developmentClient": true,
      "releaseChannel": "dev",
      "distribution": "internal"
    },
    "production": {
      "developmentClient": false,
      "distribution": "store",
      "ios": {}
    }
  },
  "cli": { "requireCommit": true }
}

trevorallred avatar Nov 12 '21 22:11 trevorallred

I think you have to define the submit production section. EAS Submit

Try to add in your eas.json: { "submit": { "production": {} } }

timhbt avatar Nov 12 '21 23:11 timhbt

The error message should become more descriptive once we release https://github.com/expo/eas-cli/pull/761

dsokal avatar Nov 16 '21 11:11 dsokal