正如@cbracken所建议的
如果在 flutter create 中创建,用户可以直接从 xcode 启动应用程序。
+1,因为我犯了同样的错误。 在调用flutter run
之前,我尝试在 xcode 中运行该应用程序。 我有以下错误: /bin/sh: /packages/flutter_tools/bin/xcode_backend.sh: No such file or directory
简单的解决方案是调用flutter run
然后从 xcode 运行应用程序。
由 #8125 修复
我遇到了同样的错误,但不能使用 flutter run 我收到错误,说没有找到 pubspec.yaml 文件。 并且此命令应该从 Flutter 项目的根目录运行。 不要从 Flutter 的 git clone 的根目录运行此命令。
最有用的评论
+1,因为我犯了同样的错误。 在调用
flutter run
之前,我尝试在 xcode 中运行该应用程序。 我有以下错误:/bin/sh: /packages/flutter_tools/bin/xcode_backend.sh: No such file or directory
简单的解决方案是调用
flutter run
然后从 xcode 运行应用程序。