我需要在各种设备上截取我的Flutter应用程序的屏幕截图。由于我没有多种物理设备,所以我需要使用模拟器。但是,我无法弄清如何以非调试模式运行我的应用程序--我始终会看到右上角的“Debug”横幅。我如何在iOS模拟器中运行Release版本构建?
当我尝试:flutter run --release
时,它会显示:“发行版模式不支持模拟器。”
当我尝试:flutter install
时,它会说:
[ +108 ms] An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
[ +12 ms] "flutter install" took 4,601ms.
Install failed
我可以在不显示调试标语的情况下运行调试版本吗?