Flutter桌面嵌入

问题描述 投票:0回答:1

跟随these instructions

我尝试使用Android Studio在macOS(桌面)上运行新项目。

我收到以下错误:

在发行版的macOS上启动lib / main.dart ...完成错误:无法获取Xcode项目信息:xcodebuild:错误:目录/Users/current.user/Work/Playground/testout/flutter_app2/macos确实不包含Xcode项目,工作区或包。

如果在终端flutter run --release -d macOS中运行,也会遇到相同的问题

在模拟器/设备上运行,工作正常。

macos flutter dart
1个回答
2
投票

听起来不像您遵循了the instructions for running a project other than the FDE example。新创建的Flutter项目不支持在桌面上运行。您需要添加它。

关于台式机的flutter.dev/desktop#createcreate的状态,另请参见run。>>

© www.soinside.com 2019 - 2024. All rights reserved.