-
Notifications
You must be signed in to change notification settings - Fork 29.5k
Closed
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 3.33Found to occur in 3.33Found to occur in 3.33from: manual-qaIssue caught from manual QA processIssue caught from manual QA processhas reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyiOS applications specificallyplatform-macBuilding on or for macOS specificallyBuilding on or for macOS specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Description
Steps to reproduce
- Clone the flutter repo
- Follow the steps to compile the engine for the host (in this case macOS), i.e,
./flutter/tools/gn --unoptimized - 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!Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 3.33Found to occur in 3.33Found to occur in 3.33from: manual-qaIssue caught from manual QA processIssue caught from manual QA processhas reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyiOS applications specificallyplatform-macBuilding on or for macOS specificallyBuilding on or for macOS specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Type
Projects
Status
Done