且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用 Flutter 在 Windows 环境中为 iOS 设备开发

更新时间:2023-10-18 12:29:28

您可以使用 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:

就我个人而言,我最终花了太多钱买了一台 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.

我的建议是,只要你在学习,甚至在你开发你的第一个 Flutter 应用程序的时候,就继续使用你当前的系统(Windows 或 Linux).最终,您可能会欣赏在同一台机器上安装 iOS 模拟器和 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.