iOS EAS build fails when building for simulator

EAS build fails on “Run fastlane” step when building for the simulator (iOS).

Error: The workspace named “FooDev” does not contain a scheme named “Foo”.

Workflow: Expo managed

Contents of eas.json:

{
  "builds": {
    "android": {
      "release": {
        "buildType": "app-bundle"
      },
      "preview": {
        "buildType": "apk",
        "distribution": "internal"
      },
      "development": {
        "buildType": "development-client",
        "distribution": "internal"
      }
    },
    "ios": {
      "release": {
        "buildType": "release"
      },
      "development": {
        "buildType": "development-client",
        "distribution": "simulator"
      }
    }
  }
}

All other builds are successful.

I see in your build logs that you are setting env isDevelopmentClient=true, make sure to also set that env locally, name field in app.json affects name of the scheme

1 Like

Thanks for the answer, @wkozyra. The issue was that I was setting different name in app.json for dev client.