Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I am new to flutter programming and I've created a demo app, its running fine on both android and iOS devices. I want to see .apk and .ipa file in flutter. Can anyone help me to get these files from Flutter? Where can I see these files in folders or is there any other solution.

like image 532
Ammy Kang Avatar asked Jun 01 '18 14:06

Ammy Kang


People also ask

How can I generate .IPA file in flutter in Android Studio?

You can create new IPAs with the same options without launching Xcode by running flutter build ipa --export-options-plist=path/to/ExportOptions.plist . See xcodebuild -h for details about the keys in this property list.

Is IPA same as APK?

In simple words, it is a file that can be installed on iOS devices and used as an application. Just like an APK (Android Application Package) file can be installed on Android devices, an IPA file can be used for testing iOS applications. You can even push it to the app stores to publish your app.

Where is the release APK stored in flutter?

The release bundle for your app is created in the project directory- [project_name]/build/app/outputs/bundle/release/app.


2 Answers

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 
like image 152
Jaswant Singh Avatar answered Sep 18 '22 08:09

Jaswant Singh


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.

like image 38
Edman Avatar answered Sep 20 '22 08:09

Edman