Skip to content

Mac_ios ios_debug_workflow failing after https://github.com/flutter/flutter/pull/189993 #191138

Closed

Activity

  1. self-assigned this
    on Aug 14, 2026
  2. vashworth commented on Aug 14, 2026

    @vashworth
    ContributorAuthor
    [2026-08-14 09:13:14.153615] [STDOUT] stdout: [+5672 ms] [lldb]: 1 location added to breakpoint 1
    [2026-08-14 09:13:14.154125] [STDOUT] stdout: [   +1 ms] Application launched on the device. Waiting for Dart VM Service url.
    [2026-08-14 09:13:14.159554] [STDOUT] stdout: [   +5 ms] Checking for advertised Dart VM Services...
    [2026-08-14 09:13:14.175670] [STDOUT] stdout: [  +16 ms] Running 5 shutdown hooks
    [2026-08-14 09:13:14.182360] [STDOUT] stdout: [   +6 ms] executing: xcrun devicectl device process terminate --device 00008030-001439910C2B402E --pid 1046 --kill --json-output /opt/s/w/ir/x/t/flutter_tools.bkfhrw/core_devices.d3u5pw/terminate_results.json
    [2026-08-14 09:13:14.189342] [STDOUT] stdout: [   +7 ms] lldb exited with code -15
    [2026-08-14 09:13:14.224648] [STDOUT] stdout: [  +35 ms] #0      _NativeSocket.send (dart:io-patch/socket_patch.dart:1545:34)
    [2026-08-14 09:13:14.224706] [STDOUT] stdout:            #1      _RawDatagramSocket.send (dart:io-patch/socket_patch.dart:3069:15)
    [2026-08-14 09:13:14.224786] [STDOUT] stdout:            #2      MDnsClient.lookup (package:multicast_dns/multicast_dns.dart:230:22)
    [2026-08-14 09:13:14.224838] [STDOUT] stdout:            #3      MDnsVmServiceDiscovery._doPollingVmService (package:flutter_tools/src/mdns_discovery.dart:308:66)
    [2026-08-14 09:13:14.225095] [STDOUT] stdout:            <asynchronous suspension>
    [2026-08-14 09:13:14.225132] [STDOUT] stdout:            #4      MDnsVmServiceDiscovery._pollingVmService.<anonymous closure> (package:flutter_tools/src/mdns_discovery.dart:241:62)
    [2026-08-14 09:13:14.225154] [STDOUT] stdout:            <asynchronous suspension>
    [2026-08-14 09:13:14.225209] [STDOUT] stdout: 
    [2026-08-14 09:13:14.229460] [STDOUT] stderr: [   +2 ms] Flutter could not access the local network.
    [2026-08-14 09:13:14.229509] [STDOUT] stderr: 
    [2026-08-14 09:13:14.229528] [STDOUT] stderr:            Please ensure your IDE or terminal app has permission to access devices on the local network. This allows Flutter to connect to the Dart VM.
    [2026-08-14 09:13:14.229546] [STDOUT] stderr: 
    [2026-08-14 09:13:14.229610] [STDOUT] stderr:            You can grant this permission in System Settings > Privacy & Security > Local Network.
    [2026-08-14 09:13:14.229632] [STDOUT] stderr: 
    [2026-08-14 09:13:14.229647] [STDOUT] stderr:            SocketException: Send failed (OS Error: No route to host, errno = 65), address = 0.0.0.0, port = 5353
    [2026-08-14 09:13:14.229662] [STDOUT] stderr: 
    [2026-08-14 09:13:14.231931] [STDOUT] stdout: [   +4 ms] mDNS query failed. Checking for an interface with a ipv4 link local address.
    [2026-08-14 09:13:14.235522] [STDOUT] stdout: [   +3 ms] Found interface "en0":
    [2026-08-14 09:13:14.236049] [STDOUT] stdout: [        ] 	Bound address: "100.127.108.54" 
    [2026-08-14 09:13:14.236197] [STDOUT] stdout: [        ] Found interface "en6":
    [2026-08-14 09:13:14.236398] [STDOUT] stdout: [        ] 	Bound address: "169.254.222.181" link local
    [2026-08-14 09:13:14.237109] [STDOUT] stdout: [        ] An interface with an ipv4 link local address was found.
    [2026-08-14 09:13:14.240430] [STDOUT] stdout: [   +3 ms] Installing and launching... (completed in 15.3s)
    [2026-08-14 09:13:14.259636] [STDOUT] stderr: [  +19 ms] Error launching application on iPhone 11.
    [2026-08-14 09:13:14.261901] [STDOUT] stdout: [   +2 ms] "flutter run" took 103,236ms.
    [2026-08-14 09:13:14.266095] [STDOUT] stderr: [   +3 ms] 
    [2026-08-14 09:13:14.266147] [STDOUT] stderr:            #0      throwToolExit (package:flutter_tools/src/base/common.dart:34:3)
    [2026-08-14 09:13:14.266171] [STDOUT] stderr:            #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:946:9)
    [2026-08-14 09:13:14.266189] [STDOUT] stderr:            <asynchronous suspension>
    [2026-08-14 09:13:14.266204] [STDOUT] stderr:            #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1680:27)
    [2026-08-14 09:13:14.266270] [STDOUT] stderr:            <asynchronous suspension>
    [2026-08-14 09:13:14.266291] [STDOUT] stderr:            #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:19)
    [2026-08-14 09:13:14.266309] [STDOUT] stderr:            <asynchronous suspension>
    [2026-08-14 09:13:14.266395] [STDOUT] stderr:            #4      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
    [2026-08-14 09:13:14.266481] [STDOUT] stderr:            <asynchronous suspension>
    [2026-08-14 09:13:14.266501] [STDOUT] stderr:            #5      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:496:9)
    [2026-08-14 09:13:14.266556] [STDOUT] stderr:            <asynchronous suspension>
    [2026-08-14 09:13:14.266640] [STDOUT] stderr:            #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:19)
    [2026-08-14 09:13:14.266743] [STDOUT] stderr:            <asynchronous suspension>
    [2026-08-14 09:13:14.266935] [STDOUT] stderr:            #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:431:5)
    [2026-08-14 09:13:14.266958] [STDOUT] stderr:            <asynchronous suspension>
    [2026-08-14 09:13:14.266996] [STDOUT] stderr:            #8      FlutterCommandRunner.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:307:33)
    [2026-08-14 09:13:14.267012] [STDOUT] stderr:            <asynchronous suspension>
    [2026-08-14 09:13:14.267125] [STDOUT] stderr:            #9      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:104:11)
    [2026-08-14 09:13:14.267152] [STDOUT] stderr:            <asynchronous suspension>
    [2026-08-14 09:13:14.267175] [STDOUT] stderr:            #10     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:19)
    [2026-08-14 09:13:14.267205] [STDOUT] stderr:            <asynchronous suspension>
    [2026-08-14 09:13:14.267257] [STDOUT] stderr:            #11     main (package:flutter_tools/executable.dart:103:3)
    [2026-08-14 09:13:14.267272] [STDOUT] stderr:            <asynchronous suspension>
    [2026-08-14 09:13:14.267282] [STDOUT] stderr: 
    [2026-08-14 09:13:14.267313] [STDOUT] stderr: 
    [2026-08-14 09:13:14.267532] [STDOUT] stdout: [        ] exiting with code 1
    [2026-08-14 09:13:14.278898] [STDOUT] Flutter run returned non-zero exit code: 1.
    

    Okay so the test is failing because we're now killing lldb and devicectl on shutdown:

    // Kill LLDB and devicectl if the CLI shuts down so they do not hang in the background.
    shutdownHooks.addShutdownHook(() async {
    try {
    await stopApp(deviceId: deviceId, processId: processId);
    } on Exception {
    // ignore any failures
    }
    });

    And because mDNS doesn't work in CI, the Dart VM discovery stuff ends immediately:

    final discoveryOptions = <Future<Uri?>>[
    vmUrlFromMDns,
    // vmServiceDiscovery uses device logs (`idevicesyslog`), which doesn't work
    // on wireless devices.
    if (discoverVMUrlFromLogs) vmServiceDiscovery.uri,
    ];

    And returns a failure:

    if (localUri == null) {
    await iosDeployDebugger?.stopAndDumpBacktrace();
    await dispose();
    _analytics.send(
    Event.appleUsageEvent(
    workflow: 'ios-physical-deployment',
    parameter: deploymentMethod.name,
    result: 'debugging failed',
    ),
    );
    return LaunchResult.failed();

    Which causes a non-zero exit code. Since we're killing the process, I don't think the exit code really matters. Technically yeah, the app failed to launch because the test kills it on purpose.

    Actually, we should just remove this test since lldb/devicectl is the default now.

  3. jtmcdole commented on Aug 18, 2026

    @jtmcdole
    Member

    Note to self: even though the test was removed, the closing of this bug un-spressed it (yay, it works):

    "Automatic unsuppression: issue #191138 was closed."

  4. github-actions commented on Sep 1, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  5. locked as resolved and limited conversation to collaborators on Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions