如何从flutter获取.apk和.ipa文件? [英] How to get .apk and .ipa file from flutter?

查看:35
本文介绍了如何从flutter获取.apk和.ipa文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Flutter 编程的新手,我创建了一个演示应用程序,它在 android 和 iOS 设备上运行良好.我想在颤振中看到 .apk 和 .ipa 文件.谁能帮我从 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.

推荐答案

对于 Android,每次构建应用程序时都会生成一个 APK,例如使用 flutter run.您会在 /build/app/outputs/apk/debug/app-debug.apk 下的项目文件夹中找到它.如果您想要发布版 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.

我不是 iOS 人,所以我不确定在开发过程中是否会像在 android 中一样生成 IPA.但是查看 these docs 似乎您可以按照 xcode 上的标准步骤来获取它,如图所示此处.

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.

这篇关于如何从flutter获取.apk和.ipa文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆