Skip to content

flutter attach to a simulator on iOS 26 beta 1 does not connect #170315

Closed as duplicate of#166333
@jmagman

Description

@jmagman

Steps to reproduce

  1. Open Xcode and run a Flutter app on an iOS 26 simulator
  2. From the command line run flutter attach -d <device id>

Expected results

flutter attach attaches to the app running in the simulator.

Actual results

The Dart VM Service was not discovered after 30 seconds. This may be due to limited mDNS support in the iOS Simulator.

Click "Allow" to the prompt on your device asking if you would like to find and connect devices on your local network. If you selected "Don't Allow", you can turn it on in Settings > Your App Name > Local Network. If you don't see your app in the Settings, uninstall the app and rerun to see the prompt again.

If you do not receive a prompt, either run "flutter attach" before starting the app or use the Dart VM service URL from the Xcode console with "flutter attach --debug-url=<URL>".

"This may be due to limited mDNS support in the iOS Simulator."?

Flutter Doctor output

Doctor output
$ flutter doctor -v
[!] Flutter (Channel main, 3.33.0-1.0.pre.426, on macOS 15.5 24F74 darwin-arm64, locale en-US) [8.0s]
    • Flutter version 3.33.0-1.0.pre.426 on channel main at /Users/m/Projects/flutter
    ! Upstream repository [email protected]:jmagman/flutter.git is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to [email protected]:jmagman/flutter.git to dismiss this error.
    • Framework revision b086fe7b79 (86 minutes ago), 2025-06-10 09:38:08 +0800
    • Engine revision b086fe7b79
    • Dart version 3.9.0 (build 3.9.0-211.0.dev)
    • DevTools version 2.48.0-dev.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Xcode - develop for iOS and macOS (Xcode 26.0) [2.9s]
    • Xcode at /Users/m/Applications/Xcode-26_beta1.app/Contents/Developer
    • Build 17A5241e
    • CocoaPods version 1.16.2

[✓] Connected device (4 available) [6.4s]
    • iPhone 12 Pro (mobile)     • 00008101-001E60261491003A            • ios            • iOS 26.0 23A5260n
    • iPhone 16 Pro Max (mobile) • 5008EF1C-7FFB-4BCA-BB82-AF9C0CFAB6CC • ios            • com.apple.CoreSimulator.SimRuntime.iOS-26-0 (simulator)
    • macOS (desktop)            • macos                                • darwin-arm64   • macOS 15.5 24F74 darwin-arm64
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 137.0.7151.69
    ! Error: Browsing on the local area network for iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

Metadata

Metadata

Assignees

No one assigned

    Labels

    e: OS-version specificAffects only some versions of the relevant operating systemt: xcode"xcodebuild" on iOS and general Xcode project managementteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions