Moving from expo to eas

Hi,

I am trying to move from expo to eas for our existing expo workflow managed app,
but I’m stuck at the following error, when running: eas build -p ios:

Error: eas.json is not valid [ValidationError: "builds" is not allowed]

I did the follwing steps:

  1. I ran eas build -p ios:
  • here it asked me if I want to log into my apple account (like for expo build)
  • I logged into our apple account, got the verification code
  • Then got the Error: ```Build request failed. Make sure you are using the latest eas-cli version. If the problem persists, please report the issue.````
  1. Next I installed the eas-cli current version is: eas-cli/0.52.0 darwin-x64 node-v14.16.0.
    (I was on node v12.12.0 first and the installation of eas-cli required at least node 12.22.0 so I upgraded node to v14.16.0 with npm v6.14.11)

  2. Then, when i run eas build -p ios I’m getting the error like explained above…

Note: my eas.json file looks the following:

{
  "builds": {
    "android": {
      "release": {
        "workflow": "managed"
      }
    },
    "ios": {
      "release": {
        "workflow": "managed"
      }
    }
  }
}

Did I do something wrong or forgot a step?

Br

Hi @mksquad

Your eas.json is in the wrong format. I think you might have the old format that they moved away from a few months ago. But you don’t have anything special in there, so the easiest thing to do would be to just delete eas.json and let the eas build command create a new, default one for you automatically.

EDIT: The default eas.json looks like this:

{
  "cli": {
    "version": ">= 0.52.0"
  },
  "build": {
    "development": {
      "developmentClient": true,
      "distribution": "internal"
    },
    "preview": {
      "distribution": "internal"
    },
    "production": {}
  },
  "submit": {
    "production": {}
  }
}