使用Flutter在Windows环境中为iOS设备开发 [英] Developing for iOS device in Windows environment with Flutter

查看:2261
本文介绍了使用Flutter在Windows环境中为iOS设备开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Flutter的新手,只是想知道是否有可能。

I'm new to Flutter, was just wondering if it's possible.

我尝试使用带给定指令的intellij构建演示代码( https://flutter.io/setup/ )。它可以在android设备上很好地运行,但是找不到在我的iOS设备上编译和运行的选项。

I've tried building the demo code using intellij with given instruction (https://flutter.io/setup/). It runs well on android device, but can't find the option to compile and run on my iOS device.

推荐答案

使用Android Studio或Visual Studio Code在Linux或Windows上进行主要开发。然后使用git将代码移至macOS,以便在iOS模拟器/设备上使用Xcode对其进行测试并将其部署到App Store。

You can do your main development on Linux or Windows with Android Studio or Visual Studio Code. Then use git to move the code to macOS to test it with Xcode on an iOS simulator/device and deploy it to the App Store.

您可以在macOS上进行所有开发,但可以不能在Linux或Windows上进行所有开发。我对Apple生产价格过高的机器然后强迫我们购买它们感到不满意。由于我买不起一台快速的Apple计算机,因此我打算在Linux上进行大部分开发,然后在痛苦极慢的Mac Mini上进行测试和部署。

You could do all development on macOS but you can't do all development on Linux or Windows. I'm not too pleased with Apple for making overpriced machines and then forcing us to buy them. Since I can't afford a fast Apple computer, I am planning to do most of my development on Linux and then just do testing and deployment on my painfully slow Mac Mini.

更新

现在似乎还有更多可能性。阅读以下文章:

It seems like there are more possibilities now. Read the following articles:

  • Build an iOS app without a Mac or iPhone using Flutter
  • How to develop and distribute iOS apps without Mac with Flutter & Codemagic
  • How to sign Flutter apps for iOS automatically without a Mac
  • Developing and debugging Flutter apps for iOS without a Mac

我个人最终以太多的钱购买了MacBook Pro。我必须承认这很方便,但是到目前为止,我确实做得很少。我正在Android Studio中进行所有的学习和开发,并且通常使用Android模拟器。我时不时地启动iOS模拟器,但并没有要求这样做。

Personally, I ended up buying a MacBook Pro for way too much money. I have to admit that it is convenient, but I have done very little up to this point that really required it. I'm doing all of my learning and development in Android Studio and usually use the Android emulator. Every now and then I fire up the iOS simulator, but I haven't been required to.

我的建议是,只要您一直使用当前系统(Windows或Linux),正在学习,甚至在开发第一个Flutter应用程序时。最终,您可能会喜欢将iOS Simulator和Xcode安装在同一台计算机上的便利,但是肯定不会着急。

My advice is to keep using your current system (Windows or Linux) for as long as you are learning and even while you are developing your first Flutter apps. Eventually you may appreciate the convenience of having the iOS Simulator and Xcode on the same machine, but there is certainly no rush.

这篇关于使用Flutter在Windows环境中为iOS设备开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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