简体   繁体   English

如何在 Windows 上测试和调试 IOS Flutter 应用程序?

[英]how to test and debug IOS Flutter app on Windows?

I'm making app for IOS with Flutter but I'm on Windows.我正在使用 Flutter 为 IOS 制作应用程序,但我在 Windows 上。 How can I test and debug my app on Windows?如何在 Windows 上测试和调试我的应用程序? Is it possible?可能吗? Thanks谢谢

It's not possible to test it directly from Windows.无法直接从 Windows 对其进行测试。 To build and test an iOS app you have to have a Mac.要构建和测试 iOS 应用程序,您必须拥有 Mac。

Nonetheless, there are workarounds.尽管如此,还是有一些解决方法。 For example, you could use a tool like Appollo ( https://github.com/Appollo-CLI/Appollo ) to build and test iOS apps on Windows.例如,您可以使用 Appollo( https://github.com/Appollo-CLI/Appollo )之类的工具在 Windows 上构建和测试 iOS 应用程序。

Install the tool through your terminal通过终端安装该工具

pip install appollo

Configure Appollo to work with your Apple Developer Account: https://appollo.readthedocs.io/en/master/tutorial/2_configure_app_store_connect.html配置 Appollo 以使用您的 Apple 开发者帐户: https://appollo.readthedocs.io/en/master/tutorial/2_configure_app_store_connect.html

And then you can either start a build in configuration to access your remote Mac and configure XCode or test your app in the iOS simulator.然后您可以开始构建配置以访问您的远程 Mac 并配置 XCode 或在 iOS 模拟器中测试您的应用程序。

appollo build start --build-type configuration

Or build an IPA to test on your local device或者构建一个 IPA 以在您的本地设备上进行测试

appollo build start --build-type ad-hoc

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM