我创建了一个仅支持移动设备的Flutter应用:
flutter create --platforms=ios,android foo
我还有另一个Flutter项目,在Flutter支持Web之前就创建了,所以它只支持移动端。
现在,我想在Web和macOS上运行我的应用程序,但当我尝试使用flutter run -d macos
时,我收到以下错误:
Exception: No macOS desktop project configured. See https://flutter.dev/desktop#add-desktop-support-to-an-existing-app to learn about adding macOS support to a project.
flutter create
或flutter create --platforms web
时,我收到错误消息未指定输出目录选项。
如何解决这个问题? - Muhammad Qasim