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

后端 未结 11 1130
自闭症患者
自闭症患者 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:29

    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)

      5. After finishing the process - Click the "Distribute App" button on right panel

      6. Then follow the below steps

        • Step 1

        • Step 2

        • Step 3

        • Step 4

        • Step 5

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

提交回复
热议问题