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

后端 未结 11 1062
自闭症患者
自闭症患者 2020-12-12 18:51

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

11条回答
  •  自闭症患者
    2020-12-12 19:46

    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-abc
    

    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

提交回复
热议问题