[英]Error while launching Flutter app on iOS emulator: “Error retrieving thread information: (ipc/send) invalid destination port”
On macOS Big Sur (Macbook Air with M1 chipset), I installed Android Studio and the Flutter and Dart plugins.在 macOS Big Sur(带有 M1 芯片组的 Macbook Air)上,我安装了 Android Studio 以及 Flutter 和 Dart 插件。
I created a brand new Flutter project with nothing in it, and just launched it on an iPhone emulator.我创建了一个全新的 Flutter 项目,其中没有任何内容,然后在 iPhone 模拟器上启动它。 It works fine, but I have the following log that appears multiple times per second:它工作正常,但我有以下日志每秒出现多次:
[VERBOSE-2:profiler_metrics_ios_mm(184)] Error retrieving thread information: (ipc/send) invalid destination port
It looks like it's a known bug, but I can't find any fix for that.看起来这是一个已知的错误,但我找不到任何解决方法。
Does anyone knows how to get rid of that log?有谁知道如何摆脱该日志?
Thanks.谢谢。
This issue related to new MacBook with M1 processor just try to run the app with this command until flutter fix this problem on stable version此问题与具有 M1 处理器的新 MacBook 相关,只需尝试使用此命令运行应用程序,直到 flutter 在稳定版本上修复此问题
flutter run | grep -v "Error retrieving thread information"
Updating to Flutter 2 by doing flutter upgrade
solved the problem.通过执行flutter upgrade
更新到 Flutter 2 解决了该问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.