Are you looking to publish your Expo app on the Apple App Store and Google Play? In this article, we'll take you through the process of creating builds for your app using the Expo Application Service (EAS). We'll cover everything from setting up your EAS account to configuring your app for local or cloud-based builds.

To get started, create an EAS account by logging in at [eas login expo](https://expo.io/learn/easy-login). Once you've set up your account, install the EAS CLI on your machine using the command npm install -g eas-cli. This will allow you to configure and manage your app builds.

Next, log in to your EAS account using the terminal with the command eas login. This will enable you to start configuring your app for build purposes. The first step is to run the command eas build:configure, which will prompt you to choose between building for all platforms or individual ones. Select your preferred option, and you'll be taken to a configuration file called eas.json.

In this file, you can organize your builds by profiles, such as production (for publishing on app stores) and preview (for testing). Here's an example template that you can use:

`json

{

"cli": {

"version": ">= 16.6.1",

"appVersionSource": "remote"

},

"build": {

"development": {

"developmentClient": true,

"distribution": "internal"

},

"preview": {

"android": {

"distribution": "internal",

"image": "ubuntu-22.04-jdk-17-ndk-r26b",

"autoIncrement": "versionCode"

},

"ios": {

"simulator": true,

"autoIncrement": "buildNumber"

}

},

"production": {

"android": {

"autoIncrement": "versionCode",

"image": "ubuntu-22.04-jdk-17-ndk-r26b"

}

}

},

"submit": {

"production": {}

}

}

`

Now that you have your eas.json file set up, you can create builds for your app using the EAS CLI. You can choose to build on the cloud or locally on your machine. For example, to create a production build for iOS, use the command:

`bash

eas build -p iOS --profile production

`

Or, if you want to create a build for both Android and iOS at once, use the command:

`bash

eas build -p all --profile production

`

To create a local build, simply add the --local flag to your command. For example:

`bash

eas build -p android --profile production --local

`

That's it! With these steps, you should now have a solid understanding of how to use the EAS for swift app development and create builds for your Expo app.