- Create an app that runs on all platforms:
flutter create some_app
- Run
flutter attach from the some_app/ directory
- In another terminal, run
flutter run -d macos from the some_app/ directory
- Observe, the
flutter attach command times out waiting for the VM service connection
If you happen to have a simulator open, and then repeat steps 2 & 3, flutter attach assumes it is waiting for a connection on the iOS simulator even though the app I'm trying to connect to was ran on the macos target.
Flutter 3.41.0-1.0.pre-861 • channel [user-branch] • unknown source
Framework • revision d3dd7744e8 (3 hours ago) • 2026-03-04 11:32:22 -0600
Engine • hash f6413c9a1d1e846b1efca8e6918b7144f74cbec7 (revision eb0b756f6e) (7 hours ago) • 2026-03-04
12:29:36.000Z
Tools • Dart 3.12.0 (build 3.12.0-201.0.dev) • DevTools 2.55.0
CC @bkonyi @vashworth
flutter create some_appflutter attachfrom thesome_app/directoryflutter run -d macosfrom thesome_app/directoryflutter attachcommand times out waiting for the VM service connectionIf you happen to have a simulator open, and then repeat steps 2 & 3,
flutter attachassumes it is waiting for a connection on the iOS simulator even though the app I'm trying to connect to was ran on themacostarget.CC @bkonyi @vashworth