ios - 在 iOS 模拟器上启动 Flutter 应用程序时出错 : "Error retrieving thread information: (ipc/send) invalid destination port"

标签 ios flutter

在 macOS Big Sur(带有 M1 芯片组的 Macbook Air)上,我安装了 Android Studio 以及 Flutter 和 Dart 插件。
我创建了一个全新的 Flutter 项目,其中没有任何内容,然后在 iPhone 模拟器上启动它。它工作正常,但我有以下日志每秒出现多次:

[VERBOSE-2:profiler_metrics_ios_mm(184)] Error retrieving thread information: (ipc/send) invalid destination port
看起来这是一个已知的错误,但我找不到任何解决方法。
有谁知道如何摆脱该日志?
谢谢。

最佳答案

此问题与带有 Flutter 1 的 M1 处理器的新 MacBook 有关,只需尝试使用此命令运行应用程序将有助于在 Flutter #1 中运行应用程序

flutter run | grep -v "Error retrieving thread information"
或者您可以使用以下命令升级到 Flutter #2 并修复问题
flutter upgrade

关于ios - 在 iOS 模拟器上启动 Flutter 应用程序时出错 : "Error retrieving thread information: (ipc/send) invalid destination port",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65006195/

相关文章:

gradle - Flutter 安装 Gradle 问题

flutter - 如何将内联函数分配给 Dart 中的值?

performance - 有一种简单的方法可以在Flutter中尽可能多地添加Const吗?

flutter - flutter 朔迷离的Firestore Query Snaphot是否永远为空?

ios - iOS 中 SQLite 的 ORM

java - 如何将 newItem 设置为 JOptionPane?

ios - 我如何在 Quickblox iOS 代码中实现贴纸

ios - uiscrollview 中的低分辨率图像,直到出现在屏幕上或返回一/加一

flutter - 如何在 flutter 中返回 <Widget>[ ]?

ios - 在 UITableView 中的 UITableViewCell 上向左滑动后,如何以编程方式关闭滑动?