Skip to content

flutter attach fails to attach to macos app #183248

Description

@kenzieschmoll
  1. Create an app that runs on all platforms: flutter create some_app
  2. Run flutter attach from the some_app/ directory
  3. In another terminal, run flutter run -d macos from the some_app/ directory
  4. Observe, the flutter attach command times out waiting for the VM service connection
Image

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.

Image
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listplatform-iosiOS applications specificallyplatform-macosBuilding on or for macOS specificallyteam-macosOwned by the macOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-macosTriaged by the macOS platform team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions