iOS Simulator Build error "unknown platform undefined"

  • Eas version: eas-cli/0.33.1 darwin-x64 node-v14.15.1
  • Bare workflow

Using the documentation found here I am running
eas build --platform ios --profile preview and getting Error: Unknown platform undefined

here is my eas.json:

{
    "build": {
        "development": {
            "distribution": "internal",
            "android": {
                "gradleCommand": ":app:assembleDebug"
            },
            "ios": {
                "buildConfiguration": "Debug"
            }
        },
        "preview": {
            "ios": {
                "distribution": "internal",
                "simulator": true
            }
        },
        "production": {}
    },
    "submit": {
        "production": {}
    }
}

solved in discord: fixed by uninstalling eas-cli (yarn) and reinstalling with npm.