如何在iOS中安装以Flutter编写的应用程序? [英] How can I install the app written in Flutter in iOS?

查看:251
本文介绍了如何在iOS中安装以Flutter编写的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在iOS系统上安装flutter应用程序,该怎么办?

解决方案

flutter工具知道如何在iOS和Android上安装和运行应用程序(通过调用Xcode或Android Studio工具在幕后). >

Flutter提供了有关设置机器以进行iOS和Android开发的说明,包括将flutter工具添加到$ PATH中: https://flutter.io/setup/

还有一些说明将引导您完成创建和运行第一个Flutter应用的过程: https://flutter.io/getting-started/

flutter run --release可能是您要查找的命令,因为它将在连接的设备(iOS或Android)上安装并运行.app.

对于iOS,有时会出现签名失败或特定于计算机/帐户的配置错误,而flutter工具无法为您解决此问题,它会指导您在Flutter应用中打开ios/Runner.xcworkspace目录并在XCode中进行修改(或使用此处的构建/运行"按钮).

"Flutter应用程序"只是使用FlutterView的普通iOS和Android应用程序(其本身是iOS和android.UI上的普通UIView子类,而在Android上是普通的UIView子类),因此是普通的iOS和Android开发说明,尤其是在放置时设备上的应用通常会适用.

I want to install the flutter app on the ios system ,how can I do it ?

解决方案

The flutter tool knows how to install and run applications on iOS and Android (by calling out to Xcode or Android Studio tools under the covers).

Flutter has instructions on setting up your machine for iOS and Android development including adding the flutter tool to your $PATH: https://flutter.io/setup/

There are also instructions walking you through creating and running your first Flutter app: https://flutter.io/getting-started/

flutter run --release is probably the command you're looking for, as that will install and run the .app on an attached device (iOS or Android).

In the case of iOS, sometimes there are signing failures, or configuration errors specific to your machine/account which the flutter tool can't fix for you and it will direct you to open ios/Runner.xcworkspace in your Flutter app directory and make modifications inside XCode (or use the build/run buttons there).

"Flutter apps" are just normal iOS and Android apps which use a FlutterView (which itself is a normal UIView subclass on iOS and android.View subclass on Android), thus normal iOS and Android development instructions, particularly when pertaining to putting an App on the device generally apply.

这篇关于如何在iOS中安装以Flutter编写的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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