Skip to content

[Xcode 26 beta 3] Compiling the engine on macOS fails with plugin for module 'TestingMacros' not found #172155

Closed

Description

@danagbemava-nc

Steps to reproduce

  1. Clone the flutter repo
  2. Follow the steps to compile the engine for the host (in this case macOS), i.e, ./flutter/tools/gn --unoptimized
  3. Run ninja -C out/host_debug_unopt

Expected results

Compiling for the host is successful.

Actual results

Compiling for the host fails with the error in the logs section below.

When I compile with Xcode 26 beta 2, I do not get the same error and it appears that the compilation is successful (I don't see this message ninja: build stopped: subcommand failed.) save for some warnings that are generated (captured below)

compilation on Xcode 26 beta 2
ninja: Entering directory `out/host_debug_unopt'
[5753/5754] SWIFT obj/flutter/shell/platform/darwin/macos/flutter_desktop_darwin_swift_unittests/flutter_desktop_darwin_swift_unittests.swiftmodule
/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/macos/framework/Source/ResizeSynchronizerTest.swift:26:7: warning: capture of 'synchronizer' with non-sendable type 'ResizeSynchronizer' in a '@Sendable' closure [#SendableClosureCaptures]
 24 |     // Call performCommit from raster thread during frame present.
 25 |     Thread.detachNewThread {
 26 |       synchronizer.performCommit(forSize: CGSize(width: 100, height: 100), afterDelay: 0) {
    |       `- warning: capture of 'synchronizer' with non-sendable type 'ResizeSynchronizer' in a '@Sendable' closure [#SendableClosureCaptures]
 27 |         didReceiveFrame = true
 28 |       }

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/macos/framework/Source/ResizeSynchronizer.swift:44:20: note: class 'ResizeSynchronizer' does not conform to the 'Sendable' protocol
 42 | ///     actions between the platform thread and the raster thread.
 43 | @objc(FlutterResizeSynchronizer)
 44 | public final class ResizeSynchronizer: NSObject {
    |                    `- note: class 'ResizeSynchronizer' does not conform to the 'Sendable' protocol
 45 |   private static let invalidSize = CGSize(width: -1, height: -1)
 46 |

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/macos/framework/Source/ResizeSynchronizerTest.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'InternalFlutterSwift'
  3 | // found in the LICENSE file.
  4 |
  5 | import InternalFlutterSwift
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'InternalFlutterSwift'
  6 | import Testing
  7 |

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/macos/framework/Source/ResizeSynchronizerTest.swift:71:7: warning: capture of 'synchronizer' with non-sendable type 'ResizeSynchronizer' in a '@Sendable' closure [#SendableClosureCaptures]
 69 |
 70 |       // First commit size DOES NOT match that passed to beginResize.
 71 |       synchronizer.performCommit(forSize: CGSize(width: 50, height: 100), afterDelay: 0) {
    |       `- warning: capture of 'synchronizer' with non-sendable type 'ResizeSynchronizer' in a '@Sendable' closure [#SendableClosureCaptures]
 72 |         commit1 = true
 73 |       }

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/macos/framework/Source/ResizeSynchronizer.swift:44:20: note: class 'ResizeSynchronizer' does not conform to the 'Sendable' protocol
 42 | ///     actions between the platform thread and the raster thread.
 43 | @objc(FlutterResizeSynchronizer)
 44 | public final class ResizeSynchronizer: NSObject {
    |                    `- note: class 'ResizeSynchronizer' does not conform to the 'Sendable' protocol
 45 |   private static let invalidSize = CGSize(width: -1, height: -1)
 46 |

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/macos/framework/Source/ResizeSynchronizerTest.swift:128:7: warning: capture of 'synchronizer' with non-sendable type 'ResizeSynchronizer' in a '@Sendable' closure [#SendableClosureCaptures]
126 |
127 |       // First commit size DOES NOT match that passed to beginResize.
128 |       synchronizer.performCommit(forSize: CGSize(width: 50, height: 100), afterDelay: 0) {
    |       `- warning: capture of 'synchronizer' with non-sendable type 'ResizeSynchronizer' in a '@Sendable' closure [#SendableClosureCaptures]
129 |         didReceiveFrame = true
130 |       }

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/macos/framework/Source/ResizeSynchronizer.swift:44:20: note: class 'ResizeSynchronizer' does not conform to the 'Sendable' protocol
 42 | ///     actions between the platform thread and the raster thread.
 43 | @objc(FlutterResizeSynchronizer)
 44 | public final class ResizeSynchronizer: NSObject {
    |                    `- note: class 'ResizeSynchronizer' does not conform to the 'Sendable' protocol
 45 |   private static let invalidSize = CGSize(width: -1, height: -1)
 46 |

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/macos/framework/Source/ResizeSynchronizerTest.swift:175:7: warning: capture of 'synchronizer' with non-sendable type 'ResizeSynchronizer' in a '@Sendable' closure [#SendableClosureCaptures]
173 |       latch.wait()
174 |
175 |       synchronizer.shutDown()
    |       `- warning: capture of 'synchronizer' with non-sendable type 'ResizeSynchronizer' in a '@Sendable' closure [#SendableClosureCaptures]
176 |     }
177 |

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/macos/framework/Source/ResizeSynchronizer.swift:44:20: note: class 'ResizeSynchronizer' does not conform to the 'Sendable' protocol
 42 | ///     actions between the platform thread and the raster thread.
 43 | @objc(FlutterResizeSynchronizer)
 44 | public final class ResizeSynchronizer: NSObject {
    |                    `- note: class 'ResizeSynchronizer' does not conform to the 'Sendable' protocol
 45 |   private static let invalidSize = CGSize(width: -1, height: -1)
 46 |

[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[5754/5754] LINK ./flutter_desktop_darwin_swift_unittests

Code sample

N/A

Screenshots or Video

N/A

Logs

Logs
ninja: Entering directory `out/host_debug_unopt'
[3699/9366] SWIFT obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests.swiftmodule
FAILED: gen/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests.h obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests-OutputFileMap.json obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests.SwiftFileList obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests.abi.json obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests.d obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests.dia obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests.swiftdoc obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests.swiftmodule obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests.swiftsourceinfo obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests.swiftconstvalues obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests.swiftdeps obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests/LoggerTest.o
TOOL_VERSION=1752562401 JSON_VERSION=1752562401 vpython3 ../../build/toolchain/darwin/swiftc.py --module-name framework_common_swift_unittests --header-path gen/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests.h --target-out-dir obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests --const-gather-protocols-file ../../build/toolchain/darwin/swift_const_gather_protocols.json --depfile-path obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests.d --src-dir ../../ --gen-dir gen --bridge-header "" -I../.. -Igen -I../../flutter/third_party/libcxxabi/include -I../../flutter/build/secondary/flutter/third_party/libcxx/config -Igen/flutter/shell/platform/darwin/common -I../../flutter/prebuilts/Platforms/MacOSX.platform/Developer/usr/lib -I../../flutter -I../../flutter/shell/platform/darwin/common/framework/Headers -Iobj/flutter/shell/platform/darwin/common/InternalFlutterSwiftCommon -Iobj/flutter/shell/platform/darwin/common/swift_testing_main -Iobj/flutter/shell/platform/darwin/common/test_utils_swift -sdk /Users/nexus/dev/sdks/flutter/engine/src/flutter/prebuilts/SDKs/MacOSX26.0.sdk -target x86_64-apple-macos10.15.0 -swift-version 5 -g -enable-testing -F/Users/nexus/dev/sdks/flutter/engine/src/flutter/prebuilts/Platforms/MacOSX.platform/Developer/Library/Frameworks -enable-testing ../../flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift --whole-module-optimization --fix-generated-header
/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:11:15: error: external macro implementation type 'TestingMacros.SuiteDeclarationMacro' could not be found for macro 'Suite'; plugin for module 'TestingMacros' not found
 9 | import test_utils_swift
10 |
11 | @Suite struct LoggerTest {
   |               `- error: external macro implementation type 'TestingMacros.SuiteDeclarationMacro' could not be found for macro 'Suite'; plugin for module 'TestingMacros' not found
12 |
13 |   @Test func testInitialization() {

Testing.Suite:1:48: note: 'Suite' declared here
1 | @attached(member) @attached(peer) public macro Suite(_ traits: any SuiteTrait...) = #externalMacro(module: "TestingMacros", type: "SuiteDeclarationMacro")
  |                                                `- note: 'Suite' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:11:15: error: external macro implementation type 'TestingMacros.SuiteDeclarationMacro' could not be found for macro 'Suite'; plugin for module 'TestingMacros' not found
 9 | import test_utils_swift
10 |
11 | @Suite struct LoggerTest {
   |               `- error: external macro implementation type 'TestingMacros.SuiteDeclarationMacro' could not be found for macro 'Suite'; plugin for module 'TestingMacros' not found
12 |
13 |   @Test func testInitialization() {

Testing.Suite:1:48: note: 'Suite' declared here
1 | @attached(member) @attached(peer) public macro Suite(_ traits: any SuiteTrait...) = #externalMacro(module: "TestingMacros", type: "SuiteDeclarationMacro")
  |                                                `- note: 'Suite' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:13:14: error: external macro implementation type 'TestingMacros.TestDeclarationMacro' could not be found for macro 'Test'; plugin for module 'TestingMacros' not found
11 | @Suite struct LoggerTest {
12 |
13 |   @Test func testInitialization() {
   |              `- error: external macro implementation type 'TestingMacros.TestDeclarationMacro' could not be found for macro 'Test'; plugin for module 'TestingMacros' not found
14 |     let writer = StringOutputWriter()
15 |     let logger = Logger(outputWriter: writer, logLevel: .info)

Testing.Test:1:30: note: 'Test' declared here
1 | @attached(peer) public macro Test(_ traits: any TestTrait...) = #externalMacro(module: "TestingMacros", type: "TestDeclarationMacro")
  |                              `- note: 'Test' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:19:14: error: external macro implementation type 'TestingMacros.TestDeclarationMacro' could not be found for macro 'Test'; plugin for module 'TestingMacros' not found
17 |   }
18 |
19 |   @Test func testDoesNotLogMessageBelowLogLevel() {
   |              `- error: external macro implementation type 'TestingMacros.TestDeclarationMacro' could not be found for macro 'Test'; plugin for module 'TestingMacros' not found
20 |     let writer = StringOutputWriter()
21 |     let logger = Logger(outputWriter: writer, logLevel: .warning)

Testing.Test:1:30: note: 'Test' declared here
1 | @attached(peer) public macro Test(_ traits: any TestTrait...) = #externalMacro(module: "TestingMacros", type: "TestDeclarationMacro")
  |                              `- note: 'Test' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:27:14: error: external macro implementation type 'TestingMacros.TestDeclarationMacro' could not be found for macro 'Test'; plugin for module 'TestingMacros' not found
25 |   }
26 |
27 |   @Test func testLogsMessageAtLogLevel() {
   |              `- error: external macro implementation type 'TestingMacros.TestDeclarationMacro' could not be found for macro 'Test'; plugin for module 'TestingMacros' not found
28 |     let writer = StringOutputWriter()
29 |     let logger = Logger(outputWriter: writer, logLevel: .info)

Testing.Test:1:30: note: 'Test' declared here
1 | @attached(peer) public macro Test(_ traits: any TestTrait...) = #externalMacro(module: "TestingMacros", type: "TestDeclarationMacro")
  |                              `- note: 'Test' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:37:14: error: external macro implementation type 'TestingMacros.TestDeclarationMacro' could not be found for macro 'Test'; plugin for module 'TestingMacros' not found
35 |   }
36 |
37 |   @Test func testLogsMessageAboveLevel() {
   |              `- error: external macro implementation type 'TestingMacros.TestDeclarationMacro' could not be found for macro 'Test'; plugin for module 'TestingMacros' not found
38 |     let writer = StringOutputWriter()
39 |     let logger = Logger(outputWriter: writer, logLevel: .info)

Testing.Test:1:30: note: 'Test' declared here
1 | @attached(peer) public macro Test(_ traits: any TestTrait...) = #externalMacro(module: "TestingMacros", type: "TestDeclarationMacro")
  |                              `- note: 'Test' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:48:14: error: external macro implementation type 'TestingMacros.TestDeclarationMacro' could not be found for macro 'Test'; plugin for module 'TestingMacros' not found
46 |
47 |   // Verify that important messages are logged, even if log level is set to error.
48 |   @Test func testLogsImportant() {
   |              `- error: external macro implementation type 'TestingMacros.TestDeclarationMacro' could not be found for macro 'Test'; plugin for module 'TestingMacros' not found
49 |     let writer = StringOutputWriter()
50 |     let logger = Logger(outputWriter: writer, logLevel: .error)

Testing.Test:1:30: note: 'Test' declared here
1 | @attached(peer) public macro Test(_ traits: any TestTrait...) = #externalMacro(module: "TestingMacros", type: "TestDeclarationMacro")
  |                              `- note: 'Test' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:16:5: error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
14 |     let writer = StringOutputWriter()
15 |     let logger = Logger(outputWriter: writer, logLevel: .info)
16 |     #expect(logger.logLevel == .info)
   |     `- error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
17 |   }
18 |

Testing.expect:1:40: note: 'expect(_:_:sourceLocation:)' declared here
1 | @freestanding(expression) public macro expect(_ condition: Bool, _ comment: @autoclosure () -> Comment? = nil, sourceLocation: SourceLocation = #_sourceLocation) = #externalMacro(module: "TestingMacros", type: "ExpectMacro")
  |                                        `- note: 'expect(_:_:sourceLocation:)' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:16:12: error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
`- /Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:16:12: note: expanded code originates here
14 |     let writer = StringOutputWriter()
15 |     let logger = Logger(outputWriter: writer, logLevel: .info)
16 |     #expect(logger.logLevel == .info)
   +--- /Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift
   |14 |
   |15 |
   |16 |            #_sourceLocation
   |   |            `- error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
   +--------------------------------------------------------------------------------------------------------------------
17 |   }
18 |

Testing._sourceLocation:1:40: note: '_sourceLocation()' declared here
1 | @freestanding(expression) public macro _sourceLocation() -> SourceLocation = #externalMacro(module: "TestingMacros", type: "SourceLocationMacro")
  |                                        `- note: '_sourceLocation()' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:24:5: error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
22 |
23 |     logger.log(level: .info, "Hello world")
24 |     #expect(!writer.didLog)
   |     `- error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
25 |   }
26 |

Testing.expect:1:40: note: 'expect(_:_:sourceLocation:)' declared here
1 | @freestanding(expression) public macro expect(_ condition: Bool, _ comment: @autoclosure () -> Comment? = nil, sourceLocation: SourceLocation = #_sourceLocation) = #externalMacro(module: "TestingMacros", type: "ExpectMacro")
  |                                        `- note: 'expect(_:_:sourceLocation:)' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:24:12: error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
`- /Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:24:12: note: expanded code originates here
22 |
23 |     logger.log(level: .info, "Hello world")
24 |     #expect(!writer.didLog)
   +--- /Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift
   |22 |
   |23 |
   |24 |            #_sourceLocation
   |   |            `- error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
   +--------------------------------------------------------------------------------------------------------------------
25 |   }
26 |

Testing._sourceLocation:1:40: note: '_sourceLocation()' declared here
1 | @freestanding(expression) public macro _sourceLocation() -> SourceLocation = #externalMacro(module: "TestingMacros", type: "SourceLocationMacro")
  |                                        `- note: '_sourceLocation()' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:32:5: error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
30 |
31 |     logger.log(level: .info, "Hello world")
32 |     #expect(writer.didLog)
   |     `- error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
33 |     #expect(writer.lastLevel == .info)
34 |     #expect(writer.lastLine == "Hello world")

Testing.expect:1:40: note: 'expect(_:_:sourceLocation:)' declared here
1 | @freestanding(expression) public macro expect(_ condition: Bool, _ comment: @autoclosure () -> Comment? = nil, sourceLocation: SourceLocation = #_sourceLocation) = #externalMacro(module: "TestingMacros", type: "ExpectMacro")
  |                                        `- note: 'expect(_:_:sourceLocation:)' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:33:5: error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
31 |     logger.log(level: .info, "Hello world")
32 |     #expect(writer.didLog)
33 |     #expect(writer.lastLevel == .info)
   |     `- error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
34 |     #expect(writer.lastLine == "Hello world")
35 |   }

Testing.expect:1:40: note: 'expect(_:_:sourceLocation:)' declared here
1 | @freestanding(expression) public macro expect(_ condition: Bool, _ comment: @autoclosure () -> Comment? = nil, sourceLocation: SourceLocation = #_sourceLocation) = #externalMacro(module: "TestingMacros", type: "ExpectMacro")
  |                                        `- note: 'expect(_:_:sourceLocation:)' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:34:5: error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
32 |     #expect(writer.didLog)
33 |     #expect(writer.lastLevel == .info)
34 |     #expect(writer.lastLine == "Hello world")
   |     `- error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
35 |   }
36 |

Testing.expect:1:40: note: 'expect(_:_:sourceLocation:)' declared here
1 | @freestanding(expression) public macro expect(_ condition: Bool, _ comment: @autoclosure () -> Comment? = nil, sourceLocation: SourceLocation = #_sourceLocation) = #externalMacro(module: "TestingMacros", type: "ExpectMacro")
  |                                        `- note: 'expect(_:_:sourceLocation:)' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:32:12: error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
`- /Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:32:12: note: expanded code originates here
30 |
31 |     logger.log(level: .info, "Hello world")
32 |     #expect(writer.didLog)
   +--- /Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift
   |30 |
   |31 |
   |32 |            #_sourceLocation
   |   |            `- error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
   +--------------------------------------------------------------------------------------------------------------------
33 |     #expect(writer.lastLevel == .info)
34 |     #expect(writer.lastLine == "Hello world")

Testing._sourceLocation:1:40: note: '_sourceLocation()' declared here
1 | @freestanding(expression) public macro _sourceLocation() -> SourceLocation = #externalMacro(module: "TestingMacros", type: "SourceLocationMacro")
  |                                        `- note: '_sourceLocation()' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:33:12: error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
`- /Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:33:12: note: expanded code originates here
31 |     logger.log(level: .info, "Hello world")
32 |     #expect(writer.didLog)
33 |     #expect(writer.lastLevel == .info)
   +--- /Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift
   |31 |
   |32 |
   |33 |            #_sourceLocation
   |   |            `- error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
   +--------------------------------------------------------------------------------------------------------------------
34 |     #expect(writer.lastLine == "Hello world")
35 |   }

Testing._sourceLocation:1:40: note: '_sourceLocation()' declared here
1 | @freestanding(expression) public macro _sourceLocation() -> SourceLocation = #externalMacro(module: "TestingMacros", type: "SourceLocationMacro")
  |                                        `- note: '_sourceLocation()' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:34:12: error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
`- /Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:34:12: note: expanded code originates here
32 |     #expect(writer.didLog)
33 |     #expect(writer.lastLevel == .info)
34 |     #expect(writer.lastLine == "Hello world")
   +--- /Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift
   |32 |
   |33 |
   |34 |            #_sourceLocation
   |   |            `- error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
   +--------------------------------------------------------------------------------------------------------------------
35 |   }
36 |

Testing._sourceLocation:1:40: note: '_sourceLocation()' declared here
1 | @freestanding(expression) public macro _sourceLocation() -> SourceLocation = #externalMacro(module: "TestingMacros", type: "SourceLocationMacro")
  |                                        `- note: '_sourceLocation()' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:42:5: error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
40 |
41 |     logger.log(level: .warning, "Hello world")
42 |     #expect(writer.didLog)
   |     `- error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
43 |     #expect(writer.lastLevel == .warning)
44 |     #expect(writer.lastLine == "Hello world")

Testing.expect:1:40: note: 'expect(_:_:sourceLocation:)' declared here
1 | @freestanding(expression) public macro expect(_ condition: Bool, _ comment: @autoclosure () -> Comment? = nil, sourceLocation: SourceLocation = #_sourceLocation) = #externalMacro(module: "TestingMacros", type: "ExpectMacro")
  |                                        `- note: 'expect(_:_:sourceLocation:)' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:43:5: error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
41 |     logger.log(level: .warning, "Hello world")
42 |     #expect(writer.didLog)
43 |     #expect(writer.lastLevel == .warning)
   |     `- error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
44 |     #expect(writer.lastLine == "Hello world")
45 |   }

Testing.expect:1:40: note: 'expect(_:_:sourceLocation:)' declared here
1 | @freestanding(expression) public macro expect(_ condition: Bool, _ comment: @autoclosure () -> Comment? = nil, sourceLocation: SourceLocation = #_sourceLocation) = #externalMacro(module: "TestingMacros", type: "ExpectMacro")
  |                                        `- note: 'expect(_:_:sourceLocation:)' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:44:5: error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
42 |     #expect(writer.didLog)
43 |     #expect(writer.lastLevel == .warning)
44 |     #expect(writer.lastLine == "Hello world")
   |     `- error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
45 |   }
46 |

Testing.expect:1:40: note: 'expect(_:_:sourceLocation:)' declared here
1 | @freestanding(expression) public macro expect(_ condition: Bool, _ comment: @autoclosure () -> Comment? = nil, sourceLocation: SourceLocation = #_sourceLocation) = #externalMacro(module: "TestingMacros", type: "ExpectMacro")
  |                                        `- note: 'expect(_:_:sourceLocation:)' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:42:12: error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
`- /Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:42:12: note: expanded code originates here
40 |
41 |     logger.log(level: .warning, "Hello world")
42 |     #expect(writer.didLog)
   +--- /Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift
   |40 |
   |41 |
   |42 |            #_sourceLocation
   |   |            `- error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
   +--------------------------------------------------------------------------------------------------------------------
43 |     #expect(writer.lastLevel == .warning)
44 |     #expect(writer.lastLine == "Hello world")

Testing._sourceLocation:1:40: note: '_sourceLocation()' declared here
1 | @freestanding(expression) public macro _sourceLocation() -> SourceLocation = #externalMacro(module: "TestingMacros", type: "SourceLocationMacro")
  |                                        `- note: '_sourceLocation()' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:43:12: error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
`- /Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:43:12: note: expanded code originates here
41 |     logger.log(level: .warning, "Hello world")
42 |     #expect(writer.didLog)
43 |     #expect(writer.lastLevel == .warning)
   +--- /Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift
   |41 |
   |42 |
   |43 |            #_sourceLocation
   |   |            `- error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
   +--------------------------------------------------------------------------------------------------------------------
44 |     #expect(writer.lastLine == "Hello world")
45 |   }

Testing._sourceLocation:1:40: note: '_sourceLocation()' declared here
1 | @freestanding(expression) public macro _sourceLocation() -> SourceLocation = #externalMacro(module: "TestingMacros", type: "SourceLocationMacro")
  |                                        `- note: '_sourceLocation()' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:44:12: error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
`- /Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:44:12: note: expanded code originates here
42 |     #expect(writer.didLog)
43 |     #expect(writer.lastLevel == .warning)
44 |     #expect(writer.lastLine == "Hello world")
   +--- /Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift
   |42 |
   |43 |
   |44 |            #_sourceLocation
   |   |            `- error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
   +--------------------------------------------------------------------------------------------------------------------
45 |   }
46 |

Testing._sourceLocation:1:40: note: '_sourceLocation()' declared here
1 | @freestanding(expression) public macro _sourceLocation() -> SourceLocation = #externalMacro(module: "TestingMacros", type: "SourceLocationMacro")
  |                                        `- note: '_sourceLocation()' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:53:5: error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
51 |
52 |     logger.log(level: .important, "Hello world")
53 |     #expect(writer.didLog)
   |     `- error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
54 |     #expect(writer.lastLevel == .important)
55 |     #expect(writer.lastLine == "Hello world")

Testing.expect:1:40: note: 'expect(_:_:sourceLocation:)' declared here
1 | @freestanding(expression) public macro expect(_ condition: Bool, _ comment: @autoclosure () -> Comment? = nil, sourceLocation: SourceLocation = #_sourceLocation) = #externalMacro(module: "TestingMacros", type: "ExpectMacro")
  |                                        `- note: 'expect(_:_:sourceLocation:)' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:54:5: error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
52 |     logger.log(level: .important, "Hello world")
53 |     #expect(writer.didLog)
54 |     #expect(writer.lastLevel == .important)
   |     `- error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
55 |     #expect(writer.lastLine == "Hello world")
56 |   }

Testing.expect:1:40: note: 'expect(_:_:sourceLocation:)' declared here
1 | @freestanding(expression) public macro expect(_ condition: Bool, _ comment: @autoclosure () -> Comment? = nil, sourceLocation: SourceLocation = #_sourceLocation) = #externalMacro(module: "TestingMacros", type: "ExpectMacro")
  |                                        `- note: 'expect(_:_:sourceLocation:)' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:55:5: error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
53 |     #expect(writer.didLog)
54 |     #expect(writer.lastLevel == .important)
55 |     #expect(writer.lastLine == "Hello world")
   |     `- error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
56 |   }
57 |

Testing.expect:1:40: note: 'expect(_:_:sourceLocation:)' declared here
1 | @freestanding(expression) public macro expect(_ condition: Bool, _ comment: @autoclosure () -> Comment? = nil, sourceLocation: SourceLocation = #_sourceLocation) = #externalMacro(module: "TestingMacros", type: "ExpectMacro")
  |                                        `- note: 'expect(_:_:sourceLocation:)' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:53:12: error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
`- /Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:53:12: note: expanded code originates here
51 |
52 |     logger.log(level: .important, "Hello world")
53 |     #expect(writer.didLog)
   +--- /Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift
   |51 |
   |52 |
   |53 |            #_sourceLocation
   |   |            `- error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
   +--------------------------------------------------------------------------------------------------------------------
54 |     #expect(writer.lastLevel == .important)
55 |     #expect(writer.lastLine == "Hello world")

Testing._sourceLocation:1:40: note: '_sourceLocation()' declared here
1 | @freestanding(expression) public macro _sourceLocation() -> SourceLocation = #externalMacro(module: "TestingMacros", type: "SourceLocationMacro")
  |                                        `- note: '_sourceLocation()' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:54:12: error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
`- /Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:54:12: note: expanded code originates here
52 |     logger.log(level: .important, "Hello world")
53 |     #expect(writer.didLog)
54 |     #expect(writer.lastLevel == .important)
   +--- /Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift
   |52 |
   |53 |
   |54 |            #_sourceLocation
   |   |            `- error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
   +--------------------------------------------------------------------------------------------------------------------
55 |     #expect(writer.lastLine == "Hello world")
56 |   }

Testing._sourceLocation:1:40: note: '_sourceLocation()' declared here
1 | @freestanding(expression) public macro _sourceLocation() -> SourceLocation = #externalMacro(module: "TestingMacros", type: "SourceLocationMacro")
  |                                        `- note: '_sourceLocation()' declared here

/Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:55:12: error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
`- /Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:55:12: note: expanded code originates here
53 |     #expect(writer.didLog)
54 |     #expect(writer.lastLevel == .important)
55 |     #expect(writer.lastLine == "Hello world")
   +--- /Users/nexus/dev/sdks/flutter/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift
   |53 |
   |54 |
   |55 |            #_sourceLocation
   |   |            `- error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
   +--------------------------------------------------------------------------------------------------------------------
56 |   }
57 |

Testing._sourceLocation:1:40: note: '_sourceLocation()' declared here
1 | @freestanding(expression) public macro _sourceLocation() -> SourceLocation = #externalMacro(module: "TestingMacros", type: "SourceLocationMacro")
  |                                        `- note: '_sourceLocation()' declared here
[3708/9366] ACTION //flutter/lib/snapshot:strong_platform(//build/toolchain/mac:clang_x64)
ninja: build stopped: subcommand failed.

Flutter Doctor output

Doctor output
[✓] Flutter (Channel master, 3.33.0-1.0.pre-970, on macOS 15.5 24F74 darwin-arm64, locale en-GH) [3.8s]
    • Flutter version 3.33.0-1.0.pre-970 on channel master at /Users/nexus/dev/sdks/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ec9e07d9b9 (8 hours ago), 2025-07-14 18:00:38 -0700
    • Engine revision ec9e07d9b9
    • Dart version 3.9.0 (build 3.9.0-333.0.dev)
    • DevTools version 2.48.0
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets

[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [6.6s]
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Emulator version 35.5.10.0 (build_id 13402964) (CL:N/A)
    • Platform android-36, build-tools 36.0.0
    • ANDROID_HOME = /Users/nexus/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13368085-b895.109)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 26.0) [1,184ms]
    • Xcode at /Applications/Xcode-26.0.0-Beta.3.app/Contents/Developer
    • Build 17A5276g
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [83ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.3) [83ms]
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13368085-b895.109)

[✓] Android Studio (version 2023.3) [81ms]
    • Android Studio at /Users/nexus/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)

[✓] Android Studio (version 2024.3) [81ms]
    • Android Studio at /Users/nexus/Applications/Android Studio Meerkat Feature Drop 2024.3.2 Patch 1.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13368085-b895.109)

[✓] IntelliJ IDEA Ultimate Edition (version 2025.1.2) [81ms]
    • IntelliJ at /Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 86.0.2
    • Dart plugin version 251.25410.28

[✓] VS Code (version 1.101.2) [5ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.114.0

[✓] Connected device (3 available) [6.1s]
    • iPhone 16 Pro (mobile) • 35EB9616-6F92-47CD-B25F-1E2E84FD448A • 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 138.0.7204.101

[✓] Network resources [1,713ms]
    • All expected network resources are available.

• No issues found!

Activity

  1. added
    engineflutter/engine related. See also e: labels.
    platform-macosBuilding on or for macOS specifically
    has reproducible stepsThe issue has been confirmed reproducible and is ready to work on
    from: manual-qaIssue caught from manual QA process
    team-macosOwned by the macOS platform team
    on Jul 15, 2025
  2. hellohuanlin commented on Jul 20, 2025

    @hellohuanlin
    Contributor

    This is host build for both iOS and macOS. Updating the label.

  3. added
    platform-iosiOS applications specifically
    team-iosOwned by iOS platform team
    and removed
    team-macosOwned by the macOS platform team
    on Jul 20, 2025
  4. hellohuanlin commented on Jul 21, 2025

    @hellohuanlin
    Contributor

    I did this quick/hacky workaround and it worked: swiftlang/swift-package-manager#8362 (comment)

  5. cbracken commented on Jul 21, 2025

    @cbracken
    Member

    Swift lib paths are declared here:

    if (ios_swift_lib_paths == []) {
    ios_swift_lib_paths += [ rebase_path("$ios_sdk_path/usr/lib/swift") ]
    if (use_ios_simulator) {
    ios_swift_lib_paths += [ rebase_path(
    "$mac_host_toolchain_path/usr/lib/swift/iphonesimulator") ]
    } else {
    ios_swift_lib_paths +=
    [ rebase_path("$mac_host_toolchain_path/usr/lib/swift/iphoneos") ]
    }
    }

    Swift libs that need to be added for common test deps are declared here:

    config("swift_testing_config") {
    if (is_ios) {
    _platform_path = ios_platform_path
    } else if (is_mac) {
    _platform_path = mac_platform_path
    }
    _platform_framework_path =
    rebase_path("$_platform_path/Developer/Library/Frameworks", root_out_dir)
    ldflags = [
    "-F$_platform_framework_path",
    "-Wl,-rpath,@executable_path/$_platform_framework_path",
    ]
    frameworks = [ "Testing.framework" ]
    }

    Non-swift libs that need to be added for common test deps are declared here:

    config("test_config") {
    configs = [ ":config" ]
    # Add platform frameworks directory to search path for test frameworks.
    # Add platform lib to search path for test libraries/Swift modules.
    cflags = [ "-fvisibility=default" ]
    if (is_ios) {
    _platform_path = ios_platform_path
    } else if (is_mac) {
    _platform_path = mac_platform_path
    cflags += [ "-mmacosx-version-min=$mac_testing_deployment_target" ]
    ldflags = [ "-mmacosx-version-min=$mac_testing_deployment_target" ]
    }
    cflags += [ "-F$_platform_path/Developer/Library/Frameworks" ]
    swiftflags = [ "-F$_platform_path/Developer/Library/Frameworks" ]
    include_dirs = [ "$_platform_path/Developer/usr/lib" ]
    framework_dirs = [ "$_platform_path/Developer/Library/Frameworks" ]
    lib_dirs = [ "$_platform_path/Developer/usr/lib" ]
    }

    Swift libs that need to be added for iOS test deps are declared here:

    source_set("ios_test_flutter_swift") {
    testonly = true
    visibility = [ ":*" ]
    configs += [ "//flutter/shell/platform/darwin/common:test_config" ]
    sources = [
    "framework/Source/ConnectionCollectionTest.swift",
    "framework/Source/FakeUIPressProxy.swift",
    ]
    frameworks = [ "XCTest.framework" ]
    deps = [ ":flutter_framework_source" ]
    }

    Swift libs that need to be added for macOS test deps are declared here:

    Make sure libTestingMacros.dylib is added to the deps there.

  6. 2 remaining items

  7. hellohuanlin commented on Sep 2, 2025

    @hellohuanlin
    Contributor

    @danagbemava-nc Hi could you help testing if #174723 works on macOS 26 + Xcode 26? I am having issue with my test mac. Thank you!

  8. danagbemava-nc commented on Sep 3, 2025

    @danagbemava-nc
    MemberAuthor

    Hi @hellohuanlin, I ended up testing on macOS 15 rather (it worked with the patch), I will setup on my macOS 26 Mac and run the test there as well and provide an update

  9. danagbemava-nc commented on Sep 4, 2025

    @danagbemava-nc
    MemberAuthor

    Hi @hellohuanlin, I've tested on macOS 26, the patch seems to work. Below I have logs that show the compilation before and after applying the patch (I had to restart because I forgot to download the metal toolchain 😅)

    deanli@Deans-MacBook-Pro master % gclient sync -D
    WARNING: Your metrics.cfg file was invalid or nonexistent. A new one will be created.
    Syncing projects: 100% (103/103), done.
    Running hooks:  76% (10/13) Setup githooks
    ________ running 'python3 engine/src/flutter/tools/githooks/setup.py' in '/Users/deanli/dev/master'
    Installing Git Hooks
    Running hooks: 100% (13/13), done.
    deanli@Deans-MacBook-Pro master % ls
    analysis_benchmark.json CODE_OF_CONDUCT.md      docs                    PATENT_GRANT
    analysis_options.yaml   CODEOWNERS              engine                  pubspec.lock
    AUTHORS                 CONTRIBUTING.md         examples                pubspec.yaml
    bin                     dartdoc_options.yaml    flutter_console.bat     README.md
    buildtools              DEPS                    LICENSE                 TESTOWNERS
    CHANGELOG.md            dev                     packages                third_party
    deanli@Deans-MacBook-Pro master % cd engine/src
    deanli@Deans-MacBook-Pro src % ls
    AUTHORS         build_overrides flutter         README.md
    build           BUILD.gn        LICENSE         tools
    deanli@Deans-MacBook-Pro src % ./flutter/tools/gn --unoptimized
    Using prebuilt Dart SDK binary. If you are editing Dart sources and wish to compile the Dart SDK, set `--no-prebuilt-dart-sdk`.
    Generating GN files in: out/host_debug_unopt
    Generating Xcode projects took 112ms
    Generating compile_commands took 46ms
    Done. Made 1628 targets from 412 files in 647ms
    deanli@Deans-MacBook-Pro src % ninja -C out/host_debug_unopt
    ninja: Entering directory `out/host_debug_unopt'
    [5709/9386] SWIFT obj/flutter/shell/platform/dar...sts/framework_common_swift_unittests.swiftmodul
    FAILED: gen/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests.h obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests-OutputFileMap.json obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests.SwiftFileList obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests.abi.json obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests.d obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests.dia obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests.swiftdoc obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests.swiftmodule obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests.swiftsourceinfo obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests.swiftconstvalues obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests.swiftdeps obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests/LoggerTest.o
    TOOL_VERSION=1751444911 JSON_VERSION=1751444911 vpython3 ../../build/toolchain/darwin/swiftc.py --module-name framework_common_swift_unittests --header-path gen/flutter/shell/platform/darwin/common/framework_common_swift_unittests/framework_common_swift_unittests.h --target-out-dir obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests --const-gather-protocols-file ../../build/toolchain/darwin/swift_const_gather_protocols.json --depfile-path obj/flutter/shell/platform/darwin/common/framework_common_swift_unittests.d --src-dir ../../ --gen-dir gen --bridge-header "" -I../.. -Igen -I../../flutter/third_party/libcxxabi/include -I../../flutter/build/secondary/flutter/third_party/libcxx/config -Igen/flutter/shell/platform/darwin/common -I../../flutter/prebuilts/Platforms/MacOSX.platform/Developer/usr/lib -I../../flutter -I../../flutter/shell/platform/darwin/common/framework/Headers -Iobj/flutter/shell/platform/darwin/common/InternalFlutterSwiftCommon -Iobj/flutter/shell/platform/darwin/common/swift_testing_main -Iobj/flutter/shell/platform/darwin/common/test_utils_swift -sdk /Users/deanli/dev/master/engine/src/flutter/prebuilts/SDKs/MacOSX26.0.sdk -target x86_64-apple-macos10.15.0 -swift-version 5 -g -enable-testing -F/Users/deanli/dev/master/engine/src/flutter/prebuilts/Platforms/MacOSX.platform/Developer/Library/Frameworks -enable-testing ../../flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift --whole-module-optimization --fix-generated-header
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:11:15: error: external macro implementation type 'TestingMacros.SuiteDeclarationMacro' could not be found for macro 'Suite'; plugin for module 'TestingMacros' not found
     9 | import test_utils_swift
    10 |
    11 | @Suite struct LoggerTest {
       |               `- error: external macro implementation type 'TestingMacros.SuiteDeclarationMacro' could not be found for macro 'Suite'; plugin for module 'TestingMacros' not found
    12 |
    13 |   @Test func testInitialization() {
    
    Testing.Suite:1:48: note: 'Suite' declared here
    1 | @attached(member) @attached(peer) public macro Suite(_ traits: any SuiteTrait...) = #externalMacro(module: "TestingMacros", type: "SuiteDeclarationMacro")
      |                                                `- note: 'Suite' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:11:15: error: external macro implementation type 'TestingMacros.SuiteDeclarationMacro' could not be found for macro 'Suite'; plugin for module 'TestingMacros' not found
     9 | import test_utils_swift
    10 |
    11 | @Suite struct LoggerTest {
       |               `- error: external macro implementation type 'TestingMacros.SuiteDeclarationMacro' could not be found for macro 'Suite'; plugin for module 'TestingMacros' not found
    12 |
    13 |   @Test func testInitialization() {
    
    Testing.Suite:1:48: note: 'Suite' declared here
    1 | @attached(member) @attached(peer) public macro Suite(_ traits: any SuiteTrait...) = #externalMacro(module: "TestingMacros", type: "SuiteDeclarationMacro")
      |                                                `- note: 'Suite' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:13:14: error: external macro implementation type 'TestingMacros.TestDeclarationMacro' could not be found for macro 'Test'; plugin for module 'TestingMacros' not found
    11 | @Suite struct LoggerTest {
    12 |
    13 |   @Test func testInitialization() {
       |              `- error: external macro implementation type 'TestingMacros.TestDeclarationMacro' could not be found for macro 'Test'; plugin for module 'TestingMacros' not found
    14 |     let writer = StringOutputWriter()
    15 |     let logger = Logger(outputWriter: writer, logLevel: .info)
    
    Testing.Test:1:30: note: 'Test' declared here
    1 | @attached(peer) public macro Test(_ traits: any TestTrait...) = #externalMacro(module: "TestingMacros", type: "TestDeclarationMacro")
      |                              `- note: 'Test' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:19:14: error: external macro implementation type 'TestingMacros.TestDeclarationMacro' could not be found for macro 'Test'; plugin for module 'TestingMacros' not found
    17 |   }
    18 |
    19 |   @Test func testDoesNotLogMessageBelowLogLevel() {
       |              `- error: external macro implementation type 'TestingMacros.TestDeclarationMacro' could not be found for macro 'Test'; plugin for module 'TestingMacros' not found
    20 |     let writer = StringOutputWriter()
    21 |     let logger = Logger(outputWriter: writer, logLevel: .warning)
    
    Testing.Test:1:30: note: 'Test' declared here
    1 | @attached(peer) public macro Test(_ traits: any TestTrait...) = #externalMacro(module: "TestingMacros", type: "TestDeclarationMacro")
      |                              `- note: 'Test' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:27:14: error: external macro implementation type 'TestingMacros.TestDeclarationMacro' could not be found for macro 'Test'; plugin for module 'TestingMacros' not found
    25 |   }
    26 |
    27 |   @Test func testLogsMessageAtLogLevel() {
       |              `- error: external macro implementation type 'TestingMacros.TestDeclarationMacro' could not be found for macro 'Test'; plugin for module 'TestingMacros' not found
    28 |     let writer = StringOutputWriter()
    29 |     let logger = Logger(outputWriter: writer, logLevel: .info)
    
    Testing.Test:1:30: note: 'Test' declared here
    1 | @attached(peer) public macro Test(_ traits: any TestTrait...) = #externalMacro(module: "TestingMacros", type: "TestDeclarationMacro")
      |                              `- note: 'Test' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:37:14: error: external macro implementation type 'TestingMacros.TestDeclarationMacro' could not be found for macro 'Test'; plugin for module 'TestingMacros' not found
    35 |   }
    36 |
    37 |   @Test func testLogsMessageAboveLevel() {
       |              `- error: external macro implementation type 'TestingMacros.TestDeclarationMacro' could not be found for macro 'Test'; plugin for module 'TestingMacros' not found
    38 |     let writer = StringOutputWriter()
    39 |     let logger = Logger(outputWriter: writer, logLevel: .info)
    
    Testing.Test:1:30: note: 'Test' declared here
    1 | @attached(peer) public macro Test(_ traits: any TestTrait...) = #externalMacro(module: "TestingMacros", type: "TestDeclarationMacro")
      |                              `- note: 'Test' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:48:14: error: external macro implementation type 'TestingMacros.TestDeclarationMacro' could not be found for macro 'Test'; plugin for module 'TestingMacros' not found
    46 |
    47 |   // Verify that important messages are logged, even if log level is set to error.
    48 |   @Test func testLogsImportant() {
       |              `- error: external macro implementation type 'TestingMacros.TestDeclarationMacro' could not be found for macro 'Test'; plugin for module 'TestingMacros' not found
    49 |     let writer = StringOutputWriter()
    50 |     let logger = Logger(outputWriter: writer, logLevel: .error)
    
    Testing.Test:1:30: note: 'Test' declared here
    1 | @attached(peer) public macro Test(_ traits: any TestTrait...) = #externalMacro(module: "TestingMacros", type: "TestDeclarationMacro")
      |                              `- note: 'Test' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:16:5: error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
    14 |     let writer = StringOutputWriter()
    15 |     let logger = Logger(outputWriter: writer, logLevel: .info)
    16 |     #expect(logger.logLevel == .info)
       |     `- error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
    17 |   }
    18 |
    
    Testing.expect:1:40: note: 'expect(_:_:sourceLocation:)' declared here
    1 | @freestanding(expression) public macro expect(_ condition: Bool, _ comment: @autoclosure () -> Comment? = nil, sourceLocation: SourceLocation = #_sourceLocation) = #externalMacro(module: "TestingMacros", type: "ExpectMacro")
      |                                        `- note: 'expect(_:_:sourceLocation:)' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:16:12: error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
    `- /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:16:12: note: expanded code originates here
    14 |     let writer = StringOutputWriter()
    15 |     let logger = Logger(outputWriter: writer, logLevel: .info)
    16 |     #expect(logger.logLevel == .info)
       +--- /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift
       |14 |
       |15 |
       |16 |            #_sourceLocation
       |   |            `- error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
       +---------------------------------------------------------------------------------------------------------------
    17 |   }
    18 |
    
    Testing._sourceLocation:1:40: note: '_sourceLocation()' declared here
    1 | @freestanding(expression) public macro _sourceLocation() -> SourceLocation = #externalMacro(module: "TestingMacros", type: "SourceLocationMacro")
      |                                        `- note: '_sourceLocation()' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:24:5: error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
    22 |
    23 |     logger.log(level: .info, "Hello world")
    24 |     #expect(!writer.didLog)
       |     `- error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
    25 |   }
    26 |
    
    Testing.expect:1:40: note: 'expect(_:_:sourceLocation:)' declared here
    1 | @freestanding(expression) public macro expect(_ condition: Bool, _ comment: @autoclosure () -> Comment? = nil, sourceLocation: SourceLocation = #_sourceLocation) = #externalMacro(module: "TestingMacros", type: "ExpectMacro")
      |                                        `- note: 'expect(_:_:sourceLocation:)' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:24:12: error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
    `- /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:24:12: note: expanded code originates here
    22 |
    23 |     logger.log(level: .info, "Hello world")
    24 |     #expect(!writer.didLog)
       +--- /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift
       |22 |
       |23 |
       |24 |            #_sourceLocation
       |   |            `- error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
       +---------------------------------------------------------------------------------------------------------------
    25 |   }
    26 |
    
    Testing._sourceLocation:1:40: note: '_sourceLocation()' declared here
    1 | @freestanding(expression) public macro _sourceLocation() -> SourceLocation = #externalMacro(module: "TestingMacros", type: "SourceLocationMacro")
      |                                        `- note: '_sourceLocation()' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:32:5: error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
    30 |
    31 |     logger.log(level: .info, "Hello world")
    32 |     #expect(writer.didLog)
       |     `- error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
    33 |     #expect(writer.lastLevel == .info)
    34 |     #expect(writer.lastLine == "Hello world")
    
    Testing.expect:1:40: note: 'expect(_:_:sourceLocation:)' declared here
    1 | @freestanding(expression) public macro expect(_ condition: Bool, _ comment: @autoclosure () -> Comment? = nil, sourceLocation: SourceLocation = #_sourceLocation) = #externalMacro(module: "TestingMacros", type: "ExpectMacro")
      |                                        `- note: 'expect(_:_:sourceLocation:)' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:33:5: error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
    31 |     logger.log(level: .info, "Hello world")
    32 |     #expect(writer.didLog)
    33 |     #expect(writer.lastLevel == .info)
       |     `- error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
    34 |     #expect(writer.lastLine == "Hello world")
    35 |   }
    
    Testing.expect:1:40: note: 'expect(_:_:sourceLocation:)' declared here
    1 | @freestanding(expression) public macro expect(_ condition: Bool, _ comment: @autoclosure () -> Comment? = nil, sourceLocation: SourceLocation = #_sourceLocation) = #externalMacro(module: "TestingMacros", type: "ExpectMacro")
      |                                        `- note: 'expect(_:_:sourceLocation:)' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:34:5: error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
    32 |     #expect(writer.didLog)
    33 |     #expect(writer.lastLevel == .info)
    34 |     #expect(writer.lastLine == "Hello world")
       |     `- error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
    35 |   }
    36 |
    
    Testing.expect:1:40: note: 'expect(_:_:sourceLocation:)' declared here
    1 | @freestanding(expression) public macro expect(_ condition: Bool, _ comment: @autoclosure () -> Comment? = nil, sourceLocation: SourceLocation = #_sourceLocation) = #externalMacro(module: "TestingMacros", type: "ExpectMacro")
      |                                        `- note: 'expect(_:_:sourceLocation:)' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:32:12: error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
    `- /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:32:12: note: expanded code originates here
    30 |
    31 |     logger.log(level: .info, "Hello world")
    32 |     #expect(writer.didLog)
       +--- /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift
       |30 |
       |31 |
       |32 |            #_sourceLocation
       |   |            `- error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
       +---------------------------------------------------------------------------------------------------------------
    33 |     #expect(writer.lastLevel == .info)
    34 |     #expect(writer.lastLine == "Hello world")
    
    Testing._sourceLocation:1:40: note: '_sourceLocation()' declared here
    1 | @freestanding(expression) public macro _sourceLocation() -> SourceLocation = #externalMacro(module: "TestingMacros", type: "SourceLocationMacro")
      |                                        `- note: '_sourceLocation()' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:33:12: error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
    `- /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:33:12: note: expanded code originates here
    31 |     logger.log(level: .info, "Hello world")
    32 |     #expect(writer.didLog)
    33 |     #expect(writer.lastLevel == .info)
       +--- /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift
       |31 |
       |32 |
       |33 |            #_sourceLocation
       |   |            `- error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
       +---------------------------------------------------------------------------------------------------------------
    34 |     #expect(writer.lastLine == "Hello world")
    35 |   }
    
    Testing._sourceLocation:1:40: note: '_sourceLocation()' declared here
    1 | @freestanding(expression) public macro _sourceLocation() -> SourceLocation = #externalMacro(module: "TestingMacros", type: "SourceLocationMacro")
      |                                        `- note: '_sourceLocation()' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:34:12: error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
    `- /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:34:12: note: expanded code originates here
    32 |     #expect(writer.didLog)
    33 |     #expect(writer.lastLevel == .info)
    34 |     #expect(writer.lastLine == "Hello world")
       +--- /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift
       |32 |
       |33 |
       |34 |            #_sourceLocation
       |   |            `- error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
       +---------------------------------------------------------------------------------------------------------------
    35 |   }
    36 |
    
    Testing._sourceLocation:1:40: note: '_sourceLocation()' declared here
    1 | @freestanding(expression) public macro _sourceLocation() -> SourceLocation = #externalMacro(module: "TestingMacros", type: "SourceLocationMacro")
      |                                        `- note: '_sourceLocation()' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:42:5: error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
    40 |
    41 |     logger.log(level: .warning, "Hello world")
    42 |     #expect(writer.didLog)
       |     `- error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
    43 |     #expect(writer.lastLevel == .warning)
    44 |     #expect(writer.lastLine == "Hello world")
    
    Testing.expect:1:40: note: 'expect(_:_:sourceLocation:)' declared here
    1 | @freestanding(expression) public macro expect(_ condition: Bool, _ comment: @autoclosure () -> Comment? = nil, sourceLocation: SourceLocation = #_sourceLocation) = #externalMacro(module: "TestingMacros", type: "ExpectMacro")
      |                                        `- note: 'expect(_:_:sourceLocation:)' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:43:5: error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
    41 |     logger.log(level: .warning, "Hello world")
    42 |     #expect(writer.didLog)
    43 |     #expect(writer.lastLevel == .warning)
       |     `- error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
    44 |     #expect(writer.lastLine == "Hello world")
    45 |   }
    
    Testing.expect:1:40: note: 'expect(_:_:sourceLocation:)' declared here
    1 | @freestanding(expression) public macro expect(_ condition: Bool, _ comment: @autoclosure () -> Comment? = nil, sourceLocation: SourceLocation = #_sourceLocation) = #externalMacro(module: "TestingMacros", type: "ExpectMacro")
      |                                        `- note: 'expect(_:_:sourceLocation:)' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:44:5: error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
    42 |     #expect(writer.didLog)
    43 |     #expect(writer.lastLevel == .warning)
    44 |     #expect(writer.lastLine == "Hello world")
       |     `- error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
    45 |   }
    46 |
    
    Testing.expect:1:40: note: 'expect(_:_:sourceLocation:)' declared here
    1 | @freestanding(expression) public macro expect(_ condition: Bool, _ comment: @autoclosure () -> Comment? = nil, sourceLocation: SourceLocation = #_sourceLocation) = #externalMacro(module: "TestingMacros", type: "ExpectMacro")
      |                                        `- note: 'expect(_:_:sourceLocation:)' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:42:12: error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
    `- /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:42:12: note: expanded code originates here
    40 |
    41 |     logger.log(level: .warning, "Hello world")
    42 |     #expect(writer.didLog)
       +--- /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift
       |40 |
       |41 |
       |42 |            #_sourceLocation
       |   |            `- error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
       +---------------------------------------------------------------------------------------------------------------
    43 |     #expect(writer.lastLevel == .warning)
    44 |     #expect(writer.lastLine == "Hello world")
    
    Testing._sourceLocation:1:40: note: '_sourceLocation()' declared here
    1 | @freestanding(expression) public macro _sourceLocation() -> SourceLocation = #externalMacro(module: "TestingMacros", type: "SourceLocationMacro")
      |                                        `- note: '_sourceLocation()' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:43:12: error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
    `- /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:43:12: note: expanded code originates here
    41 |     logger.log(level: .warning, "Hello world")
    42 |     #expect(writer.didLog)
    43 |     #expect(writer.lastLevel == .warning)
       +--- /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift
       |41 |
       |42 |
       |43 |            #_sourceLocation
       |   |            `- error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
       +---------------------------------------------------------------------------------------------------------------
    44 |     #expect(writer.lastLine == "Hello world")
    45 |   }
    
    Testing._sourceLocation:1:40: note: '_sourceLocation()' declared here
    1 | @freestanding(expression) public macro _sourceLocation() -> SourceLocation = #externalMacro(module: "TestingMacros", type: "SourceLocationMacro")
      |                                        `- note: '_sourceLocation()' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:44:12: error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
    `- /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:44:12: note: expanded code originates here
    42 |     #expect(writer.didLog)
    43 |     #expect(writer.lastLevel == .warning)
    44 |     #expect(writer.lastLine == "Hello world")
       +--- /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift
       |42 |
       |43 |
       |44 |            #_sourceLocation
       |   |            `- error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
       +---------------------------------------------------------------------------------------------------------------
    45 |   }
    46 |
    
    Testing._sourceLocation:1:40: note: '_sourceLocation()' declared here
    1 | @freestanding(expression) public macro _sourceLocation() -> SourceLocation = #externalMacro(module: "TestingMacros", type: "SourceLocationMacro")
      |                                        `- note: '_sourceLocation()' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:53:5: error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
    51 |
    52 |     logger.log(level: .important, "Hello world")
    53 |     #expect(writer.didLog)
       |     `- error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
    54 |     #expect(writer.lastLevel == .important)
    55 |     #expect(writer.lastLine == "Hello world")
    
    Testing.expect:1:40: note: 'expect(_:_:sourceLocation:)' declared here
    1 | @freestanding(expression) public macro expect(_ condition: Bool, _ comment: @autoclosure () -> Comment? = nil, sourceLocation: SourceLocation = #_sourceLocation) = #externalMacro(module: "TestingMacros", type: "ExpectMacro")
      |                                        `- note: 'expect(_:_:sourceLocation:)' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:54:5: error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
    52 |     logger.log(level: .important, "Hello world")
    53 |     #expect(writer.didLog)
    54 |     #expect(writer.lastLevel == .important)
       |     `- error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
    55 |     #expect(writer.lastLine == "Hello world")
    56 |   }
    
    Testing.expect:1:40: note: 'expect(_:_:sourceLocation:)' declared here
    1 | @freestanding(expression) public macro expect(_ condition: Bool, _ comment: @autoclosure () -> Comment? = nil, sourceLocation: SourceLocation = #_sourceLocation) = #externalMacro(module: "TestingMacros", type: "ExpectMacro")
      |                                        `- note: 'expect(_:_:sourceLocation:)' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:55:5: error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
    53 |     #expect(writer.didLog)
    54 |     #expect(writer.lastLevel == .important)
    55 |     #expect(writer.lastLine == "Hello world")
       |     `- error: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:_:sourceLocation:)'; plugin for module 'TestingMacros' not found
    56 |   }
    57 |
    
    Testing.expect:1:40: note: 'expect(_:_:sourceLocation:)' declared here
    1 | @freestanding(expression) public macro expect(_ condition: Bool, _ comment: @autoclosure () -> Comment? = nil, sourceLocation: SourceLocation = #_sourceLocation) = #externalMacro(module: "TestingMacros", type: "ExpectMacro")
      |                                        `- note: 'expect(_:_:sourceLocation:)' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:53:12: error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
    `- /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:53:12: note: expanded code originates here
    51 |
    52 |     logger.log(level: .important, "Hello world")
    53 |     #expect(writer.didLog)
       +--- /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift
       |51 |
       |52 |
       |53 |            #_sourceLocation
       |   |            `- error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
       +---------------------------------------------------------------------------------------------------------------
    54 |     #expect(writer.lastLevel == .important)
    55 |     #expect(writer.lastLine == "Hello world")
    
    Testing._sourceLocation:1:40: note: '_sourceLocation()' declared here
    1 | @freestanding(expression) public macro _sourceLocation() -> SourceLocation = #externalMacro(module: "TestingMacros", type: "SourceLocationMacro")
      |                                        `- note: '_sourceLocation()' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:54:12: error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
    `- /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:54:12: note: expanded code originates here
    52 |     logger.log(level: .important, "Hello world")
    53 |     #expect(writer.didLog)
    54 |     #expect(writer.lastLevel == .important)
       +--- /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift
       |52 |
       |53 |
       |54 |            #_sourceLocation
       |   |            `- error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
       +---------------------------------------------------------------------------------------------------------------
    55 |     #expect(writer.lastLine == "Hello world")
    56 |   }
    
    Testing._sourceLocation:1:40: note: '_sourceLocation()' declared here
    1 | @freestanding(expression) public macro _sourceLocation() -> SourceLocation = #externalMacro(module: "TestingMacros", type: "SourceLocationMacro")
      |                                        `- note: '_sourceLocation()' declared here
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:55:12: error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
    `- /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift:55:12: note: expanded code originates here
    53 |     #expect(writer.didLog)
    54 |     #expect(writer.lastLevel == .important)
    55 |     #expect(writer.lastLine == "Hello world")
       +--- /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTest.swift
       |53 |
       |54 |
       |55 |            #_sourceLocation
       |   |            `- error: external macro implementation type 'TestingMacros.SourceLocationMacro' could not be found for macro '_sourceLocation()'; plugin for module 'TestingMacros' not found
       +---------------------------------------------------------------------------------------------------------------
    56 |   }
    57 |
    
    Testing._sourceLocation:1:40: note: '_sourceLocation()' declared here
    1 | @freestanding(expression) public macro _sourceLocation() -> SourceLocation = #externalMacro(module: "TestingMacros", type: "SourceLocationMacro")
      |                                        `- note: '_sourceLocation()' declared here
    [5718/9386] ACTION //flutter/lib/snapshot:strong_platform(//build/toolchain/mac:clang_x64)
    ninja: build stopped: subcommand failed.
    deanli@Deans-MacBook-Pro src % cd ../..
    deanli@Deans-MacBook-Pro master % ls
    analysis_benchmark.json CODE_OF_CONDUCT.md      docs                    PATENT_GRANT
    analysis_options.yaml   CODEOWNERS              engine                  pubspec.lock
    AUTHORS                 CONTRIBUTING.md         examples                pubspec.yaml
    bin                     dartdoc_options.yaml    flutter_console.bat     README.md
    buildtools              DEPS                    LICENSE                 TESTOWNERS
    CHANGELOG.md            dev                     packages                third_party
    deanli@Deans-MacBook-Pro master % curl -L "https://github.com/flutter/flutter/commit/41b9849338f41a929694630a081469de7957d5f3.patch" | git apply
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  2374  100  2374    0     0   2747      0 --:--:-- --:--:-- --:--:--  2747
    deanli@Deans-MacBook-Pro master % gclient sync -D
    Syncing projects: 100% (103/103), done.
    Running hooks:  76% (10/13) Setup githooks
    ________ running 'python3 engine/src/flutter/tools/githooks/setup.py' in '/Users/deanli/dev/master'
    Installing Git Hooks
    Running hooks: 100% (13/13), done.
    deanli@Deans-MacBook-Pro master % cd engine/src
    deanli@Deans-MacBook-Pro src % rm -rf out/host_debug_unopt
    deanli@Deans-MacBook-Pro src % ./flutter/tools/gn --unoptimized
    Using prebuilt Dart SDK binary. If you are editing Dart sources and wish to compile the Dart SDK, set `--no-prebuilt-dart-sdk`.
    Generating GN files in: out/host_debug_unopt
    Generating Xcode projects took 111ms
    Generating compile_commands took 38ms
    Done. Made 1628 targets from 412 files in 621ms
    deanli@Deans-MacBook-Pro src % ninja -C out/host_debug_unopt
    ninja: Entering directory `out/host_debug_unopt'
    [7787/9386] ACTION //flutter/impeller/entity:genlib_mtl_entity_shaders(//build/toolchain/mac:clang_x64)
    FAILED: shaders/entity.metallib shaders/entity.metallibsym
    vpython3 ../../flutter/impeller/tools/metal_library.py --output shaders/entity.metallib --depfile /Users/deanli/dev/master/engine/src/out/host_debug_unopt/gen/flutter/impeller/entity/mtl/entity.depfile --metal-version=1.2 --platform=mac --source gen/flutter/impeller/entity/advanced_blend.vert.metal --source gen/flutter/impeller/entity/advanced_blend.frag.metal --source gen/flutter/impeller/entity/clip.frag.metal --source gen/flutter/impeller/entity/clip.vert.metal --source gen/flutter/impeller/entity/glyph_atlas.frag.metal --source gen/flutter/impeller/entity/glyph_atlas.vert.metal --source gen/flutter/impeller/entity/gradient_fill.vert.metal --source gen/flutter/impeller/entity/conical_gradient_fill_conical.frag.metal --source gen/flutter/impeller/entity/conical_gradient_fill_strip.frag.metal --source gen/flutter/impeller/entity/conical_gradient_fill_radial.frag.metal --source gen/flutter/impeller/entity/conical_gradient_fill_strip_radial.frag.metal --source gen/flutter/impeller/entity/conical_gradient_uniform_fill_conical.frag.metal --source gen/flutter/impeller/entity/conical_gradient_uniform_fill_strip.frag.metal --source gen/flutter/impeller/entity/conical_gradient_uniform_fill_radial.frag.metal --source gen/flutter/impeller/entity/conical_gradient_uniform_fill_strip_radial.frag.metal --source gen/flutter/impeller/entity/linear_gradient_fill.frag.metal --source gen/flutter/impeller/entity/linear_gradient_uniform_fill.frag.metal --source gen/flutter/impeller/entity/radial_gradient_fill.frag.metal --source gen/flutter/impeller/entity/radial_gradient_uniform_fill.frag.metal --source gen/flutter/impeller/entity/sweep_gradient_fill.frag.metal --source gen/flutter/impeller/entity/sweep_gradient_uniform_fill.frag.metal --source gen/flutter/impeller/entity/line.frag.metal --source gen/flutter/impeller/entity/line.vert.metal --source gen/flutter/impeller/entity/rrect_blur.frag.metal --source gen/flutter/impeller/entity/rrect_like_blur.vert.metal --source gen/flutter/impeller/entity/rsuperellipse_blur.frag.metal --source gen/flutter/impeller/entity/runtime_effect.vert.metal --source gen/flutter/impeller/entity/solid_fill.frag.metal --source gen/flutter/impeller/entity/solid_fill.vert.metal --source gen/flutter/impeller/entity/texture_fill.frag.metal --source gen/flutter/impeller/entity/texture_fill.vert.metal --source gen/flutter/impeller/entity/texture_uv_fill.vert.metal --source gen/flutter/impeller/entity/tiled_texture_fill.frag.metal --source gen/flutter/impeller/entity/tiled_texture_fill_external.frag.metal --source gen/flutter/impeller/entity/texture_fill_strict_src.frag.metal --source gen/flutter/impeller/entity/porter_duff_blend.frag.metal --source gen/flutter/impeller/entity/porter_duff_blend.vert.metal --source gen/flutter/impeller/entity/border_mask_blur.frag.metal --source gen/flutter/impeller/entity/color_matrix_color_filter.frag.metal --source gen/flutter/impeller/entity/filter_position.vert.metal --source gen/flutter/impeller/entity/filter_position_uv.vert.metal --source gen/flutter/impeller/entity/gaussian.frag.metal --source gen/flutter/impeller/entity/yuv_to_rgb_filter.frag.metal --source gen/flutter/impeller/entity/srgb_to_linear_filter.frag.metal --source gen/flutter/impeller/entity/linear_to_srgb_filter.frag.metal --source gen/flutter/impeller/entity/morphology_filter.frag.metal --source gen/flutter/impeller/entity/vertices_uber_1.frag.metal --source gen/flutter/impeller/entity/vertices_uber_2.frag.metal --source gen/flutter/impeller/entity/fast_gradient.vert.metal --source gen/flutter/impeller/entity/fast_gradient.frag.metal --source gen/flutter/impeller/entity/texture_downsample.frag.metal --source gen/flutter/impeller/entity/texture_downsample_gles.frag.metal
    error: error: cannot execute tool 'metal' due to missing Metal Toolchain; use: xcodebuild -downloadComponent MetalToolchain
    
    [7790/9386] ACTION //flutter/impeller/entity:genli...nd_entity_shaders(//build/toolchain/mac:clang_x64)
    FAILED: shaders/framebuffer_blend.metallib shaders/framebuffer_blend.metallibsym
    vpython3 ../../flutter/impeller/tools/metal_library.py --output shaders/framebuffer_blend.metallib --depfile /Users/deanli/dev/master/engine/src/out/host_debug_unopt/gen/flutter/impeller/entity/mtl/framebuffer_blend.depfile --metal-version=2.3 --platform=mac --source gen/flutter/impeller/entity/framebuffer_blend.vert.metal --source gen/flutter/impeller/entity/framebuffer_blend.frag.metal
    error: error: cannot execute tool 'metal' due to missing Metal Toolchain; use: xcodebuild -downloadComponent MetalToolchain
    
    [7796/9386] IMPELLERC_VULKAN //flutter/impeller/en...vk_entity_shaders(//build/toolchain/mac:clang_x64)
    ninja: build stopped: subcommand failed.
    deanli@Deans-MacBook-Pro src % rm -rf out/host_debug_unopt
    deanli@Deans-MacBook-Pro src % ./flutter/tools/gn --unoptimized
    Using prebuilt Dart SDK binary. If you are editing Dart sources and wish to compile the Dart SDK, set `--no-prebuilt-dart-sdk`.
    Generating GN files in: out/host_debug_unopt
    Generating Xcode projects took 112ms
    Generating compile_commands took 38ms
    Done. Made 1628 targets from 412 files in 630ms
    deanli@Deans-MacBook-Pro src % ninja -C out/host_debug_unopt
    ninja: Entering directory `out/host_debug_unopt'
    [9385/9386] SWIFT obj/flutter/shell/platform/darwi...flutter_desktop_darwin_swift_unittests.swiftmodule
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/macos/framework/Source/ResizeSynchronizerTest.swift:26:7: warning: capture of 'synchronizer' with non-Sendable type 'ResizeSynchronizer' in a '@Sendable' closure [#SendableClosureCaptures]
     24 |     // Call performCommit from raster thread during frame present.
     25 |     Thread.detachNewThread {
     26 |       synchronizer.performCommit(forSize: CGSize(width: 100, height: 100), afterDelay: 0) {
        |       `- warning: capture of 'synchronizer' with non-Sendable type 'ResizeSynchronizer' in a '@Sendable' closure [#SendableClosureCaptures]
     27 |         didReceiveFrame = true
     28 |       }
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/macos/framework/Source/ResizeSynchronizer.swift:44:20: note: class 'ResizeSynchronizer' does not conform to the 'Sendable' protocol
     42 | ///     actions between the platform thread and the raster thread.
     43 | @objc(FlutterResizeSynchronizer)
     44 | public final class ResizeSynchronizer: NSObject {
        |                    `- note: class 'ResizeSynchronizer' does not conform to the 'Sendable' protocol
     45 |   private static let invalidSize = CGSize(width: -1, height: -1)
     46 |
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/macos/framework/Source/ResizeSynchronizerTest.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'InternalFlutterSwift'
      3 | // found in the LICENSE file.
      4 |
      5 | import InternalFlutterSwift
        | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'InternalFlutterSwift'
      6 | import Testing
      7 |
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/macos/framework/Source/ResizeSynchronizerTest.swift:71:7: warning: capture of 'synchronizer' with non-Sendable type 'ResizeSynchronizer' in a '@Sendable' closure [#SendableClosureCaptures]
     69 |
     70 |       // First commit size DOES NOT match that passed to beginResize.
     71 |       synchronizer.performCommit(forSize: CGSize(width: 50, height: 100), afterDelay: 0) {
        |       `- warning: capture of 'synchronizer' with non-Sendable type 'ResizeSynchronizer' in a '@Sendable' closure [#SendableClosureCaptures]
     72 |         commit1 = true
     73 |       }
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/macos/framework/Source/ResizeSynchronizer.swift:44:20: note: class 'ResizeSynchronizer' does not conform to the 'Sendable' protocol
     42 | ///     actions between the platform thread and the raster thread.
     43 | @objc(FlutterResizeSynchronizer)
     44 | public final class ResizeSynchronizer: NSObject {
        |                    `- note: class 'ResizeSynchronizer' does not conform to the 'Sendable' protocol
     45 |   private static let invalidSize = CGSize(width: -1, height: -1)
     46 |
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/macos/framework/Source/ResizeSynchronizerTest.swift:128:7: warning: capture of 'synchronizer' with non-Sendable type 'ResizeSynchronizer' in a '@Sendable' closure [#SendableClosureCaptures]
    126 |
    127 |       // First commit size DOES NOT match that passed to beginResize.
    128 |       synchronizer.performCommit(forSize: CGSize(width: 50, height: 100), afterDelay: 0) {
        |       `- warning: capture of 'synchronizer' with non-Sendable type 'ResizeSynchronizer' in a '@Sendable' closure [#SendableClosureCaptures]
    129 |         didReceiveFrame = true
    130 |       }
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/macos/framework/Source/ResizeSynchronizer.swift:44:20: note: class 'ResizeSynchronizer' does not conform to the 'Sendable' protocol
     42 | ///     actions between the platform thread and the raster thread.
     43 | @objc(FlutterResizeSynchronizer)
     44 | public final class ResizeSynchronizer: NSObject {
        |                    `- note: class 'ResizeSynchronizer' does not conform to the 'Sendable' protocol
     45 |   private static let invalidSize = CGSize(width: -1, height: -1)
     46 |
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/macos/framework/Source/ResizeSynchronizerTest.swift:175:7: warning: capture of 'synchronizer' with non-Sendable type 'ResizeSynchronizer' in a '@Sendable' closure [#SendableClosureCaptures]
    173 |       latch.wait()
    174 |
    175 |       synchronizer.shutDown()
        |       `- warning: capture of 'synchronizer' with non-Sendable type 'ResizeSynchronizer' in a '@Sendable' closure [#SendableClosureCaptures]
    176 |     }
    177 |
    
    /Users/deanli/dev/master/engine/src/flutter/shell/platform/darwin/macos/framework/Source/ResizeSynchronizer.swift:44:20: note: class 'ResizeSynchronizer' does not conform to the 'Sendable' protocol
     42 | ///     actions between the platform thread and the raster thread.
     43 | @objc(FlutterResizeSynchronizer)
     44 | public final class ResizeSynchronizer: NSObject {
        |                    `- note: class 'ResizeSynchronizer' does not conform to the 'Sendable' protocol
     45 |   private static let invalidSize = CGSize(width: -1, height: -1)
     46 |
    
    [#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
    [9386/9386] LINK ./flutter_desktop_darwin_swift_unittests
    [!] Flutter (Channel master, 3.36.0-1.0.pre-412, on macOS 26.0 25A5351b darwin-arm64, locale en-US) [4.6s]
        • Flutter version 3.36.0-1.0.pre-412 on channel master at /Users/deanli/dev/master
        ! Warning: `flutter` on your path resolves to /Users/deanli/dev/stable/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/deanli/dev/master. Consider adding /Users/deanli/dev/master/bin to the front of your path.
        ! Warning: `dart` on your path resolves to /Users/deanli/dev/stable/bin/dart, which is not inside your current Flutter SDK checkout at /Users/deanli/dev/master. Consider adding /Users/deanli/dev/master/bin to the front of your path.
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 251f4a8d5b (7 hours ago), 2025-09-03 18:32:32 -0700
        • Engine revision 251f4a8d5b
        • Dart version 3.10.0 (build 3.10.0-162.1.beta)
        • DevTools version 2.50.0
        • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, omit-legacy-version-file, enable-lldb-debugging
        • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 36.1.0-rc1) [5.5s]
        • Android SDK at /Users/deanli/Library/Android/sdk
        • Emulator version 36.1.9.0 (build_id 13823996) (CL:N/A)
        • Platform android-Baklava-ext19, build-tools 36.1.0-rc1
        • Java binary at: /Users/deanli/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
          This is the JDK bundled with the latest Android Studio installation on this machine.
          To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
        • Java version OpenJDK Runtime Environment (build 21.0.7+-13880790-b1038.58)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS (Xcode 26.0) [4.4s]
        • Xcode at /Applications/Xcode-26.0.0-beta.7.app/Contents/Developer
        • Build 17A5305k
        • CocoaPods version 1.16.2
    
    [✓] Chrome - develop for the web [5ms]
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Connected device (5 available) [8.1s]
        • iPhone 16 Pro Max (wireless) (mobile) • 00008140-00194CC23A68801C • ios            • iOS 26.0 23A5336a
        • Nexus (wireless) (mobile)             • 00008020-001875E83A38002E • ios            • iOS 18.6.2 22G100
        • Dean’s iPad (wireless) (mobile)       • 00008103-000825C811E3401E • ios            • iOS 26.0 23A5336a
        • macOS (desktop)                       • macos                     • darwin-arm64   • macOS 26.0 25A5351b darwin-arm64
        • Chrome (web)                          • chrome                    • web-javascript • Google Chrome 139.0.7258.155
        ! 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)
    
    [✓] Network resources [1,894ms]
        • All expected network resources are available.
    
    ! Doctor found issues in 1 category.
    
  10. hellohuanlin commented on Sep 4, 2025

    @hellohuanlin
    Contributor

    @danagbemava-nc thank you!

  11. added
    r: fixedIssue is closed as already fixed in a newer version
    on Sep 8, 2025
  12. github-actions commented on Sep 22, 2025

    @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.

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

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listengineflutter/engine related. See also e: labels.found in release: 3.33Found to occur in 3.33from: manual-qaIssue caught from manual QA processhas reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyplatform-macosBuilding on or for macOS specificallyr: fixedIssue is closed as already fixed in a newer versionteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions