How to get .apk and .ipa file from flutter?

For apk (Android) you need to run the command :

flutter build apk --release

If you want to split the apks per abi (Split Apk) then run

flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi

For ipa (iOS) you need to run the command :

flutter build ios --release

From the console

P.S. --release is optional as it is by default if you need debug build, just replace --release with --debug

you can find the released APK or IPA files form

build/app/outputs/flutter-apk/app-release.apk

For Android an APK is generated every time you build the app, e.g. with flutter run. You will find that in your project folder under <project>/build/app/outputs/apk/debug/app-debug.apk. If you want a release APK, have a look at the docs.

I'm not an iOS person, so I'm not sure an IPA is generated during development as in android. But looking at these docs it seems you can follow the standard steps on xcode to get it, as shown here.


For apk (Android) run the command :

flutter build apk --release

For ipa (iOS) run the command :

flutter build ios --release

Then to get actual .ipa file, open xcode -> Product -> archive -> Distribute App -> Ad Hoc -> Export

You can then save the .ipa(which is inside the Runner folder) file in any location


Building .apk

Although app bundles are preferred over APKs, there are stores that don’t yet support app bundles. In this case, build a release APK for each target ABI (Application Binary Interface).

From the command line:

  • Run flutter build apk --split-per-abi

    (The flutter build command defaults to --release.)

Building .ipa

To create a .ipa file, Build and release an iOS app

  1. Register your app on App Store Connect

    • Register a Bundle ID, see the Register a Bundle ID
    • Create an application record on App Store Connect, see the Create an application record on App Store
  2. Review Xcode project settings, see the Xcode project settings

  3. Create a build archive

    In Xcode, configure the app version and build:

    1. In Xcode, open Runner.xcworkspace in your app’s ios folder.

    2. Select Product > Scheme > Runner.

    3. Select Product > Destination > Generic iOS Device.

    4. Select Product > Archive. (This process will take a little longer)

      enter image description here

    5. After finishing the process - Click the "Distribute App" button on right panel enter image description here

    6. Then follow the below steps

      • Step 1

        enter image description here

      • Step 2 enter image description here

      • Step 3

        enter image description here

      • Step 4 enter image description here

      • Step 5 enter image description here

      • Step 6 (Finally select the place you want to save the .ipa file ) enter image description here