Setting up EAS.json

Managed workflow
Newest Eas CLI Version

I just updated and now I cannot submit to the app stores. I read the eas submit documentation and changed my eas.json to the code below. I am now rebuilding and will try to submit but if someone could look at my eas.json and let me know what’s wrong I would appreciate it.

{
  "build": {
    "base": {
      "node": "12.13.0",
      "yarn": "1.22.5",
      "env": {
        "EXAMPLE_ENV": "example value"
      },
      "android": {
        "image": "default",
        "env": {
          "PLATFORM": "android"
        }
      },
      "ios": {
        "image": "latest",
        "env": {
          "PLATFORM": "ios"
        }
      }
    },
    "development": {
      "extends": "base",
      "developmentClient": true,
      "env": {
        "ENVIRONMENT": "development"
      },
      "android": {
        "distribution": "store",
        "withoutCredentials": true
      },
      "ios": {
        "simulator": true
      }
    },
    "staging": {
      "extends": "base",
      "env": {
        "ENVIRONMENT": "staging"
      },
      "distribution": "store",
      "android": {
        "buildType": "apk"
      }
    },
    "production": {
      "extends": "base",
      "env": {
        "ENVIRONMENT": "production"
      }
    }
  }
}

What’s the error you got when submitting?

No errors but I had to update some things. Here is the final code.

{
	"build": {
		"base": {
			"env": {
				"EXAMPLE_ENV": "example value"
			},
			"android": {
				"image": "default",
				"env": {
					"PLATFORM": "android"
				}
			},
			"ios": {
				"image": "latest",
				"env": {
					"PLATFORM": "ios"
				}
			}
		},
		"development": {
			"extends": "base",
			"developmentClient": true,
			"env": {
				"ENVIRONMENT": "development"
			},
			"android": {
				"distribution": "store",
				"withoutCredentials": true
			},
			"ios": {
				"simulator": true
			}
		},
		"staging": {
			"extends": "base",
			"env": {
				"ENVIRONMENT": "staging"
			},
			"distribution": "store",
			"android": {
				"buildType": "apk"
			}
		},
		"production": {
			"extends": "base",
			"env": {
				"ENVIRONMENT": "production"
			}
		}
	},
	"submit": {
		"production": {
			"android": {
				"serviceAccountKeyPath": "./assets/jsonFileforAndroid.json",
				"track": "internal"
			},
			"ios": {
				"appleId": "test@testgmail.com",
				"ascAppId": "1111111111111",
				"appleTeamId": "4asdfsdaf232"
			}
		}
	}
}

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.