简体   繁体   English

在 iOS 模拟器上启动 Flutter 应用程序时出错:“检索线程信息时出错:(ipc/send)无效的目标端口”

[英]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.

相关问题 (ipc/send) 无效的目标端口 - 在 iOS 应用程序上使用 Flutter(已解决) - (ipc/send) invalid destination port - on iOS app with Flutter (Solved) 在 iOS 模拟器上启动 Flutter 应用程序时出错,应用程序崩溃 - Error Launching Flutter App on iOS Simulator, App Crashes 启动应用程序时出错 - Flutter - iOS - Error Launching Application - Flutter - iOS 使用 flutter_downloader 在模拟器上启动应用程序时出现连接丢失错误 IOS - lost connection error when launching the application on the emulator IOS when using flutter_downloader Flutter 应用程序出现错误且无法启动 - Flutter app has error and isn't launching 如何使用应用程序扩展中的 IPC 将信息异步发送到 iOS 上的包含应用程序? - How can I use IPC from an app extension to asynchronously send information to the containing app on iOS? iOS WatchKit-启动手表应用“ SPErrorInvalidBundleNoGizmoBinaryMessage”时出错 - iOS WatchKit - Error launching watch app “SPErrorInvalidBundleNoGizmoBinaryMessage” Flutter 构建 iOS 错误:在 iOS 设备中构建 Flutter 应用程序时遇到错误 - Flutter build iOS error : Encountering error while build flutter app in iOS device 在 mac 模拟器上运行 flutter app 时出错 - Error when running flutter app on mac emulator 从flutter构建iOS应用程序时出错 - Getting error while building iOS app from flutter
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM