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

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

    For iOS:

    Step 1: open terminal and type cd "your flutter sdk path"

    Step 2: cd export PATH=/Users/yourname/Downloads/flutter/bin:$PATH

    Step 3: cd your project path

    Step 4: flutter build ios --release

    run step 1 to 4 in terminal.

    After that open android studio and go to iOS folder path and open project.pbxproj file with ios module and in xcode you need to choose generic ios device and select archive, it will generate ipa build for you.

提交回复
热议问题