# Release build

Goto for android: <https://flutter.io/android-release/>

Goto for ios: [https://flutter.io/ios-release/](https://flutter.io/android-release/)

#### Create a Keystore&#x20;

If you have an existing Keystore, skip to the next step. If not, create one by running the following at the command line:&#x20;

`keytool -genkey -v -keystore ~/key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key`

Set up for Preparing an Android App for Release [click here​](https://flutter.io/android-release/)\
Set up for Preparing an IOS App for Release [click here](https://flutter.io/ios-release/)

Generating the android release (APK or app bundle)&#x20;

```
$ flutter build apk --release
$ flutter build appbundle --target-platform android-arm,android-arm64,android-x64
```

### Generating the IOS release  <a href="#testing-the-release-build-of-your-app" id="testing-the-release-build-of-your-app"></a>

```
$ flutter build ios --release
```
