Build Information
Failed to build swift-snapshot-testing, reference 1.17.5 (7b0bbb), with Swift 6.1 for Wasm on 9 Feb 2026 21:58:17 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:22:29: error: cannot find 'XCTestExpectation' in scope
20 | asyncSnapshot: { value in
21 | Async { callback in
22 | let expectation = XCTestExpectation(description: "Wait")
| `- error: cannot find 'XCTestExpectation' in scope
23 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
24 | expectation.fulfill()
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:23:11: error: cannot find 'DispatchQueue' in scope
21 | Async { callback in
22 | let expectation = XCTestExpectation(description: "Wait")
23 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
| `- error: cannot find 'DispatchQueue' in scope
24 | expectation.fulfill()
25 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:26:15: error: cannot find 'XCTWaiter' in scope
24 | expectation.fulfill()
25 | }
26 | _ = XCTWaiter.wait(for: [expectation], timeout: duration + 1)
| `- error: cannot find 'XCTWaiter' in scope
27 | strategy.snapshot(value).run(callback)
28 | }
[45/121] Compiling SwiftSyntax Convenience.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: @escaping attribute only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:22:29: error: cannot find 'XCTestExpectation' in scope
20 | asyncSnapshot: { value in
21 | Async { callback in
22 | let expectation = XCTestExpectation(description: "Wait")
| `- error: cannot find 'XCTestExpectation' in scope
23 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
24 | expectation.fulfill()
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:23:11: error: cannot find 'DispatchQueue' in scope
21 | Async { callback in
22 | let expectation = XCTestExpectation(description: "Wait")
23 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
| `- error: cannot find 'DispatchQueue' in scope
24 | expectation.fulfill()
25 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:26:15: error: cannot find 'XCTWaiter' in scope
24 | expectation.fulfill()
25 | }
26 | _ = XCTWaiter.wait(for: [expectation], timeout: duration + 1)
| `- error: cannot find 'XCTWaiter' in scope
27 | strategy.snapshot(value).run(callback)
28 | }
[46/121] Compiling SwiftSyntax CustomTraits.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: @escaping attribute only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:22:29: error: cannot find 'XCTestExpectation' in scope
20 | asyncSnapshot: { value in
21 | Async { callback in
22 | let expectation = XCTestExpectation(description: "Wait")
| `- error: cannot find 'XCTestExpectation' in scope
23 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
24 | expectation.fulfill()
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:23:11: error: cannot find 'DispatchQueue' in scope
21 | Async { callback in
22 | let expectation = XCTestExpectation(description: "Wait")
23 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
| `- error: cannot find 'DispatchQueue' in scope
24 | expectation.fulfill()
25 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:26:15: error: cannot find 'XCTWaiter' in scope
24 | expectation.fulfill()
25 | }
26 | _ = XCTWaiter.wait(for: [expectation], timeout: duration + 1)
| `- error: cannot find 'XCTWaiter' in scope
27 | strategy.snapshot(value).run(callback)
28 | }
[47/121] Compiling SwiftSyntax Identifier.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: @escaping attribute only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:22:29: error: cannot find 'XCTestExpectation' in scope
20 | asyncSnapshot: { value in
21 | Async { callback in
22 | let expectation = XCTestExpectation(description: "Wait")
| `- error: cannot find 'XCTestExpectation' in scope
23 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
24 | expectation.fulfill()
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:23:11: error: cannot find 'DispatchQueue' in scope
21 | Async { callback in
22 | let expectation = XCTestExpectation(description: "Wait")
23 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
| `- error: cannot find 'DispatchQueue' in scope
24 | expectation.fulfill()
25 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:26:15: error: cannot find 'XCTWaiter' in scope
24 | expectation.fulfill()
25 | }
26 | _ = XCTWaiter.wait(for: [expectation], timeout: duration + 1)
| `- error: cannot find 'XCTWaiter' in scope
27 | strategy.snapshot(value).run(callback)
28 | }
[48/121] Compiling SwiftSyntax MemoryLayout.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: @escaping attribute only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:22:29: error: cannot find 'XCTestExpectation' in scope
20 | asyncSnapshot: { value in
21 | Async { callback in
22 | let expectation = XCTestExpectation(description: "Wait")
| `- error: cannot find 'XCTestExpectation' in scope
23 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
24 | expectation.fulfill()
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:23:11: error: cannot find 'DispatchQueue' in scope
21 | Async { callback in
22 | let expectation = XCTestExpectation(description: "Wait")
23 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
| `- error: cannot find 'DispatchQueue' in scope
24 | expectation.fulfill()
25 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:26:15: error: cannot find 'XCTWaiter' in scope
24 | expectation.fulfill()
25 | }
26 | _ = XCTWaiter.wait(for: [expectation], timeout: duration + 1)
| `- error: cannot find 'XCTWaiter' in scope
27 | strategy.snapshot(value).run(callback)
28 | }
[49/121] Compiling SwiftSyntax MissingNodeInitializers.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/RecordIssue.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:4:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
2 | // NB: We are importing only the implementation of Testing because that framework is not available
3 | // in Xcode UI test targets.
4 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
5 |
6 | @_spi(Experimental)
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:321:13: warning: var 'recordings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
319 | // accurate. With the FileRecording values we keep track of we modify the files so we can adjust
320 | // line numbers.
321 | private var recordings: Recordings = [:]
| |- warning: var 'recordings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'recordings' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'recordings' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
322 |
323 | // Deprecated after 1.11.1:
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:63:24: error: cannot find 'XCTestExpectation' in scope
61 |
62 | do {
63 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
64 | var optionalDiffable: String?
65 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:69:18: error: cannot find 'XCTWaiter' in scope
67 | tookSnapshot.fulfill()
68 | }
69 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
70 | switch result {
71 | case .completed:
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:141:11: error: cannot find 'XCTContext' in scope
139 | #if !os(Linux) && !os(Windows)
140 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
141 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
142 | attachments.forEach {
143 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:153:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
151 | Snapshot does not match reference.
152 |
153 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
154 | """
155 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:7:13: warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
5 |
6 | @_spi(Experimental)
7 | extension Trait where Self == _SnapshotsTestTrait {
| `- warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
8 | /// Configure snapshot testing in a suite or test.
9 | ///
Testing.Trait:1:17: note: protocol declared here
1 | public protocol Trait : Sendable {
| `- note: protocol declared here
2 | func prepare(for test: Test) async throws
3 | var comments: [Comment] { get }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:38: warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.SuiteTrait:1:17: note: protocol declared here
1 | public protocol SuiteTrait : Trait {
| `- note: protocol declared here
2 | var isRecursive: Bool { get }
3 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:50: warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.TestTrait:1:17: note: protocol declared here
1 | public protocol TestTrait : Trait {
| `- note: protocol declared here
2 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:17: error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| |- error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
| `- note: in associated type 'Self.TestScopeProvider' (inferred as 'Never')
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
[50/121] Compiling SwiftSyntax RawSyntax.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/RecordIssue.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:4:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
2 | // NB: We are importing only the implementation of Testing because that framework is not available
3 | // in Xcode UI test targets.
4 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
5 |
6 | @_spi(Experimental)
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:321:13: warning: var 'recordings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
319 | // accurate. With the FileRecording values we keep track of we modify the files so we can adjust
320 | // line numbers.
321 | private var recordings: Recordings = [:]
| |- warning: var 'recordings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'recordings' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'recordings' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
322 |
323 | // Deprecated after 1.11.1:
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:63:24: error: cannot find 'XCTestExpectation' in scope
61 |
62 | do {
63 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
64 | var optionalDiffable: String?
65 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:69:18: error: cannot find 'XCTWaiter' in scope
67 | tookSnapshot.fulfill()
68 | }
69 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
70 | switch result {
71 | case .completed:
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:141:11: error: cannot find 'XCTContext' in scope
139 | #if !os(Linux) && !os(Windows)
140 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
141 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
142 | attachments.forEach {
143 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:153:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
151 | Snapshot does not match reference.
152 |
153 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
154 | """
155 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:7:13: warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
5 |
6 | @_spi(Experimental)
7 | extension Trait where Self == _SnapshotsTestTrait {
| `- warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
8 | /// Configure snapshot testing in a suite or test.
9 | ///
Testing.Trait:1:17: note: protocol declared here
1 | public protocol Trait : Sendable {
| `- note: protocol declared here
2 | func prepare(for test: Test) async throws
3 | var comments: [Comment] { get }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:38: warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.SuiteTrait:1:17: note: protocol declared here
1 | public protocol SuiteTrait : Trait {
| `- note: protocol declared here
2 | var isRecursive: Bool { get }
3 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:50: warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.TestTrait:1:17: note: protocol declared here
1 | public protocol TestTrait : Trait {
| `- note: protocol declared here
2 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:17: error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| |- error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
| `- note: in associated type 'Self.TestScopeProvider' (inferred as 'Never')
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
[51/121] Compiling SwiftSyntax RawSyntaxLayoutView.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/RecordIssue.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:4:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
2 | // NB: We are importing only the implementation of Testing because that framework is not available
3 | // in Xcode UI test targets.
4 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
5 |
6 | @_spi(Experimental)
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:321:13: warning: var 'recordings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
319 | // accurate. With the FileRecording values we keep track of we modify the files so we can adjust
320 | // line numbers.
321 | private var recordings: Recordings = [:]
| |- warning: var 'recordings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'recordings' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'recordings' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
322 |
323 | // Deprecated after 1.11.1:
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:63:24: error: cannot find 'XCTestExpectation' in scope
61 |
62 | do {
63 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
64 | var optionalDiffable: String?
65 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:69:18: error: cannot find 'XCTWaiter' in scope
67 | tookSnapshot.fulfill()
68 | }
69 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
70 | switch result {
71 | case .completed:
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:141:11: error: cannot find 'XCTContext' in scope
139 | #if !os(Linux) && !os(Windows)
140 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
141 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
142 | attachments.forEach {
143 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:153:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
151 | Snapshot does not match reference.
152 |
153 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
154 | """
155 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:7:13: warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
5 |
6 | @_spi(Experimental)
7 | extension Trait where Self == _SnapshotsTestTrait {
| `- warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
8 | /// Configure snapshot testing in a suite or test.
9 | ///
Testing.Trait:1:17: note: protocol declared here
1 | public protocol Trait : Sendable {
| `- note: protocol declared here
2 | func prepare(for test: Test) async throws
3 | var comments: [Comment] { get }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:38: warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.SuiteTrait:1:17: note: protocol declared here
1 | public protocol SuiteTrait : Trait {
| `- note: protocol declared here
2 | var isRecursive: Bool { get }
3 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:50: warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.TestTrait:1:17: note: protocol declared here
1 | public protocol TestTrait : Trait {
| `- note: protocol declared here
2 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:17: error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| |- error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
| `- note: in associated type 'Self.TestScopeProvider' (inferred as 'Never')
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
[52/121] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/RecordIssue.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:4:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
2 | // NB: We are importing only the implementation of Testing because that framework is not available
3 | // in Xcode UI test targets.
4 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
5 |
6 | @_spi(Experimental)
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:321:13: warning: var 'recordings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
319 | // accurate. With the FileRecording values we keep track of we modify the files so we can adjust
320 | // line numbers.
321 | private var recordings: Recordings = [:]
| |- warning: var 'recordings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'recordings' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'recordings' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
322 |
323 | // Deprecated after 1.11.1:
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:63:24: error: cannot find 'XCTestExpectation' in scope
61 |
62 | do {
63 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
64 | var optionalDiffable: String?
65 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:69:18: error: cannot find 'XCTWaiter' in scope
67 | tookSnapshot.fulfill()
68 | }
69 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
70 | switch result {
71 | case .completed:
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:141:11: error: cannot find 'XCTContext' in scope
139 | #if !os(Linux) && !os(Windows)
140 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
141 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
142 | attachments.forEach {
143 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:153:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
151 | Snapshot does not match reference.
152 |
153 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
154 | """
155 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:7:13: warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
5 |
6 | @_spi(Experimental)
7 | extension Trait where Self == _SnapshotsTestTrait {
| `- warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
8 | /// Configure snapshot testing in a suite or test.
9 | ///
Testing.Trait:1:17: note: protocol declared here
1 | public protocol Trait : Sendable {
| `- note: protocol declared here
2 | func prepare(for test: Test) async throws
3 | var comments: [Comment] { get }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:38: warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.SuiteTrait:1:17: note: protocol declared here
1 | public protocol SuiteTrait : Trait {
| `- note: protocol declared here
2 | var isRecursive: Bool { get }
3 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:50: warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.TestTrait:1:17: note: protocol declared here
1 | public protocol TestTrait : Trait {
| `- note: protocol declared here
2 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:17: error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| |- error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
| `- note: in associated type 'Self.TestScopeProvider' (inferred as 'Never')
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
[53/121] Compiling SwiftSyntax AbsolutePosition.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:44:12: warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 |
43 | @_spi(Internals)
44 | public var __diffTool: SnapshotTestingConfiguration.DiffTool = .default
| |- warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__diffTool' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '__diffTool' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | /// Whether or not to record all new references.
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:77:12: warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
75 |
76 | @_spi(Internals)
77 | public var __record: SnapshotTestingConfiguration.Record = {
| |- warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__record' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '__record' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
78 | if let value = ProcessInfo.processInfo.environment["SNAPSHOT_TESTING_RECORD"],
79 | let record = SnapshotTestingConfiguration.Record(rawValue: value)
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:466:28: error: cannot find 'DispatchQueue' in scope
464 | // MARK: - Private
465 |
466 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
| `- error: cannot find 'DispatchQueue' in scope
467 | private var counterMap: [URL: Int] = [:]
468 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:467:13: warning: var 'counterMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
465 |
466 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
467 | private var counterMap: [URL: Int] = [:]
| |- warning: var 'counterMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'counterMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'counterMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
468 |
469 | func sanitizePathComponent(_ string: String) -> String {
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:478:22: warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
476 | // We need to clean counter between tests executions in order to support test-iterations.
477 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
478 | private static var registered = false
| |- warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'registered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'registered' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
479 |
480 | static func registerIfNeeded() {
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:328:26: error: cannot find 'XCTestExpectation' in scope
326 | try fileManager.createDirectory(at: snapshotDirectoryUrl, withIntermediateDirectories: true)
327 |
328 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
329 | var optionalDiffable: Format?
330 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:334:20: error: cannot find 'XCTWaiter' in scope
332 | tookSnapshot.fulfill()
333 | }
334 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
335 | switch result {
336 | case .completed:
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:425:13: error: cannot find 'XCTContext' in scope
423 | #if !os(Linux) && !os(Windows)
424 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
425 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
426 | attachments.forEach {
427 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:481:8: error: cannot find 'Thread' in scope
479 |
480 | static func registerIfNeeded() {
481 | if Thread.isMainThread {
| `- error: cannot find 'Thread' in scope
482 | doRegisterIfNeeded()
483 | } else {
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:484:7: error: cannot find 'DispatchQueue' in scope
482 | doRegisterIfNeeded()
483 | } else {
484 | DispatchQueue.main.sync {
| `- error: cannot find 'DispatchQueue' in scope
485 | doRegisterIfNeeded()
486 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Common/PlistEncoder.swift:2245:13: warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
2243 | // Since plists do not support null values by default, we will encode them as "$null".
2244 | private let _plistNull = "$null"
2245 | private let _plistNullNSString = NSString(string: _plistNull)
| |- warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let '_plistNullNSString' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2246 |
2247 | //===----------------------------------------------------------------------===//
Foundation.NSString:1:12: note: class 'NSString' does not conform to the 'Sendable' protocol
1 | open class NSString : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, NSCoding {
| `- note: class 'NSString' does not conform to the 'Sendable' protocol
2 | open var length: Int { get }
3 | open func character(at index: Int) -> unichar
[54/121] Compiling SwiftSyntax AbsoluteRawSyntax.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:44:12: warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 |
43 | @_spi(Internals)
44 | public var __diffTool: SnapshotTestingConfiguration.DiffTool = .default
| |- warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__diffTool' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '__diffTool' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | /// Whether or not to record all new references.
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:77:12: warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
75 |
76 | @_spi(Internals)
77 | public var __record: SnapshotTestingConfiguration.Record = {
| |- warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__record' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '__record' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
78 | if let value = ProcessInfo.processInfo.environment["SNAPSHOT_TESTING_RECORD"],
79 | let record = SnapshotTestingConfiguration.Record(rawValue: value)
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:466:28: error: cannot find 'DispatchQueue' in scope
464 | // MARK: - Private
465 |
466 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
| `- error: cannot find 'DispatchQueue' in scope
467 | private var counterMap: [URL: Int] = [:]
468 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:467:13: warning: var 'counterMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
465 |
466 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
467 | private var counterMap: [URL: Int] = [:]
| |- warning: var 'counterMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'counterMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'counterMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
468 |
469 | func sanitizePathComponent(_ string: String) -> String {
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:478:22: warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
476 | // We need to clean counter between tests executions in order to support test-iterations.
477 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
478 | private static var registered = false
| |- warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'registered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'registered' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
479 |
480 | static func registerIfNeeded() {
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:328:26: error: cannot find 'XCTestExpectation' in scope
326 | try fileManager.createDirectory(at: snapshotDirectoryUrl, withIntermediateDirectories: true)
327 |
328 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
329 | var optionalDiffable: Format?
330 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:334:20: error: cannot find 'XCTWaiter' in scope
332 | tookSnapshot.fulfill()
333 | }
334 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
335 | switch result {
336 | case .completed:
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:425:13: error: cannot find 'XCTContext' in scope
423 | #if !os(Linux) && !os(Windows)
424 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
425 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
426 | attachments.forEach {
427 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:481:8: error: cannot find 'Thread' in scope
479 |
480 | static func registerIfNeeded() {
481 | if Thread.isMainThread {
| `- error: cannot find 'Thread' in scope
482 | doRegisterIfNeeded()
483 | } else {
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:484:7: error: cannot find 'DispatchQueue' in scope
482 | doRegisterIfNeeded()
483 | } else {
484 | DispatchQueue.main.sync {
| `- error: cannot find 'DispatchQueue' in scope
485 | doRegisterIfNeeded()
486 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Common/PlistEncoder.swift:2245:13: warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
2243 | // Since plists do not support null values by default, we will encode them as "$null".
2244 | private let _plistNull = "$null"
2245 | private let _plistNullNSString = NSString(string: _plistNull)
| |- warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let '_plistNullNSString' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2246 |
2247 | //===----------------------------------------------------------------------===//
Foundation.NSString:1:12: note: class 'NSString' does not conform to the 'Sendable' protocol
1 | open class NSString : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, NSCoding {
| `- note: class 'NSString' does not conform to the 'Sendable' protocol
2 | open var length: Int { get }
3 | open func character(at index: Int) -> unichar
[55/121] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:44:12: warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 |
43 | @_spi(Internals)
44 | public var __diffTool: SnapshotTestingConfiguration.DiffTool = .default
| |- warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__diffTool' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '__diffTool' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | /// Whether or not to record all new references.
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:77:12: warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
75 |
76 | @_spi(Internals)
77 | public var __record: SnapshotTestingConfiguration.Record = {
| |- warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__record' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '__record' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
78 | if let value = ProcessInfo.processInfo.environment["SNAPSHOT_TESTING_RECORD"],
79 | let record = SnapshotTestingConfiguration.Record(rawValue: value)
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:466:28: error: cannot find 'DispatchQueue' in scope
464 | // MARK: - Private
465 |
466 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
| `- error: cannot find 'DispatchQueue' in scope
467 | private var counterMap: [URL: Int] = [:]
468 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:467:13: warning: var 'counterMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
465 |
466 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
467 | private var counterMap: [URL: Int] = [:]
| |- warning: var 'counterMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'counterMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'counterMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
468 |
469 | func sanitizePathComponent(_ string: String) -> String {
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:478:22: warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
476 | // We need to clean counter between tests executions in order to support test-iterations.
477 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
478 | private static var registered = false
| |- warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'registered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'registered' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
479 |
480 | static func registerIfNeeded() {
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:328:26: error: cannot find 'XCTestExpectation' in scope
326 | try fileManager.createDirectory(at: snapshotDirectoryUrl, withIntermediateDirectories: true)
327 |
328 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
329 | var optionalDiffable: Format?
330 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:334:20: error: cannot find 'XCTWaiter' in scope
332 | tookSnapshot.fulfill()
333 | }
334 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
335 | switch result {
336 | case .completed:
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:425:13: error: cannot find 'XCTContext' in scope
423 | #if !os(Linux) && !os(Windows)
424 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
425 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
426 | attachments.forEach {
427 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:481:8: error: cannot find 'Thread' in scope
479 |
480 | static func registerIfNeeded() {
481 | if Thread.isMainThread {
| `- error: cannot find 'Thread' in scope
482 | doRegisterIfNeeded()
483 | } else {
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:484:7: error: cannot find 'DispatchQueue' in scope
482 | doRegisterIfNeeded()
483 | } else {
484 | DispatchQueue.main.sync {
| `- error: cannot find 'DispatchQueue' in scope
485 | doRegisterIfNeeded()
486 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Common/PlistEncoder.swift:2245:13: warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
2243 | // Since plists do not support null values by default, we will encode them as "$null".
2244 | private let _plistNull = "$null"
2245 | private let _plistNullNSString = NSString(string: _plistNull)
| |- warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let '_plistNullNSString' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2246 |
2247 | //===----------------------------------------------------------------------===//
Foundation.NSString:1:12: note: class 'NSString' does not conform to the 'Sendable' protocol
1 | open class NSString : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, NSCoding {
| `- note: class 'NSString' does not conform to the 'Sendable' protocol
2 | open var length: Int { get }
3 | open func character(at index: Int) -> unichar
[56/121] Compiling SwiftSyntax Assert.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:44:12: warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 |
43 | @_spi(Internals)
44 | public var __diffTool: SnapshotTestingConfiguration.DiffTool = .default
| |- warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__diffTool' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '__diffTool' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | /// Whether or not to record all new references.
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:77:12: warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
75 |
76 | @_spi(Internals)
77 | public var __record: SnapshotTestingConfiguration.Record = {
| |- warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__record' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '__record' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
78 | if let value = ProcessInfo.processInfo.environment["SNAPSHOT_TESTING_RECORD"],
79 | let record = SnapshotTestingConfiguration.Record(rawValue: value)
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:466:28: error: cannot find 'DispatchQueue' in scope
464 | // MARK: - Private
465 |
466 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
| `- error: cannot find 'DispatchQueue' in scope
467 | private var counterMap: [URL: Int] = [:]
468 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:467:13: warning: var 'counterMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
465 |
466 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
467 | private var counterMap: [URL: Int] = [:]
| |- warning: var 'counterMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'counterMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'counterMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
468 |
469 | func sanitizePathComponent(_ string: String) -> String {
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:478:22: warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
476 | // We need to clean counter between tests executions in order to support test-iterations.
477 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
478 | private static var registered = false
| |- warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'registered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'registered' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
479 |
480 | static func registerIfNeeded() {
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:328:26: error: cannot find 'XCTestExpectation' in scope
326 | try fileManager.createDirectory(at: snapshotDirectoryUrl, withIntermediateDirectories: true)
327 |
328 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
329 | var optionalDiffable: Format?
330 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:334:20: error: cannot find 'XCTWaiter' in scope
332 | tookSnapshot.fulfill()
333 | }
334 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
335 | switch result {
336 | case .completed:
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:425:13: error: cannot find 'XCTContext' in scope
423 | #if !os(Linux) && !os(Windows)
424 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
425 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
426 | attachments.forEach {
427 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:481:8: error: cannot find 'Thread' in scope
479 |
480 | static func registerIfNeeded() {
481 | if Thread.isMainThread {
| `- error: cannot find 'Thread' in scope
482 | doRegisterIfNeeded()
483 | } else {
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:484:7: error: cannot find 'DispatchQueue' in scope
482 | doRegisterIfNeeded()
483 | } else {
484 | DispatchQueue.main.sync {
| `- error: cannot find 'DispatchQueue' in scope
485 | doRegisterIfNeeded()
486 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Common/PlistEncoder.swift:2245:13: warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
2243 | // Since plists do not support null values by default, we will encode them as "$null".
2244 | private let _plistNull = "$null"
2245 | private let _plistNullNSString = NSString(string: _plistNull)
| |- warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let '_plistNullNSString' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2246 |
2247 | //===----------------------------------------------------------------------===//
Foundation.NSString:1:12: note: class 'NSString' does not conform to the 'Sendable' protocol
1 | open class NSString : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, NSCoding {
| `- note: class 'NSString' does not conform to the 'Sendable' protocol
2 | open var length: Int { get }
3 | open func character(at index: Int) -> unichar
[57/121] Compiling SwiftSyntax BumpPtrAllocator.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:44:12: warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 |
43 | @_spi(Internals)
44 | public var __diffTool: SnapshotTestingConfiguration.DiffTool = .default
| |- warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__diffTool' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '__diffTool' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | /// Whether or not to record all new references.
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:77:12: warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
75 |
76 | @_spi(Internals)
77 | public var __record: SnapshotTestingConfiguration.Record = {
| |- warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__record' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '__record' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
78 | if let value = ProcessInfo.processInfo.environment["SNAPSHOT_TESTING_RECORD"],
79 | let record = SnapshotTestingConfiguration.Record(rawValue: value)
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:466:28: error: cannot find 'DispatchQueue' in scope
464 | // MARK: - Private
465 |
466 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
| `- error: cannot find 'DispatchQueue' in scope
467 | private var counterMap: [URL: Int] = [:]
468 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:467:13: warning: var 'counterMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
465 |
466 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
467 | private var counterMap: [URL: Int] = [:]
| |- warning: var 'counterMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'counterMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'counterMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
468 |
469 | func sanitizePathComponent(_ string: String) -> String {
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:478:22: warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
476 | // We need to clean counter between tests executions in order to support test-iterations.
477 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
478 | private static var registered = false
| |- warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'registered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'registered' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
479 |
480 | static func registerIfNeeded() {
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:328:26: error: cannot find 'XCTestExpectation' in scope
326 | try fileManager.createDirectory(at: snapshotDirectoryUrl, withIntermediateDirectories: true)
327 |
328 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
329 | var optionalDiffable: Format?
330 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:334:20: error: cannot find 'XCTWaiter' in scope
332 | tookSnapshot.fulfill()
333 | }
334 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
335 | switch result {
336 | case .completed:
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:425:13: error: cannot find 'XCTContext' in scope
423 | #if !os(Linux) && !os(Windows)
424 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
425 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
426 | attachments.forEach {
427 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:481:8: error: cannot find 'Thread' in scope
479 |
480 | static func registerIfNeeded() {
481 | if Thread.isMainThread {
| `- error: cannot find 'Thread' in scope
482 | doRegisterIfNeeded()
483 | } else {
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:484:7: error: cannot find 'DispatchQueue' in scope
482 | doRegisterIfNeeded()
483 | } else {
484 | DispatchQueue.main.sync {
| `- error: cannot find 'DispatchQueue' in scope
485 | doRegisterIfNeeded()
486 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Common/PlistEncoder.swift:2245:13: warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
2243 | // Since plists do not support null values by default, we will encode them as "$null".
2244 | private let _plistNull = "$null"
2245 | private let _plistNullNSString = NSString(string: _plistNull)
| |- warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let '_plistNullNSString' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2246 |
2247 | //===----------------------------------------------------------------------===//
Foundation.NSString:1:12: note: class 'NSString' does not conform to the 'Sendable' protocol
1 | open class NSString : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, NSCoding {
| `- note: class 'NSString' does not conform to the 'Sendable' protocol
2 | open var length: Int { get }
3 | open func character(at index: Int) -> unichar
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:58b971189c4d3c564696bb40c86e07506670ed096ab7351a005c7c449525017a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Tests/InlineSnapshotTestingTests/InlineSnapshotTesting.xctestplan
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/7] Emitting module SwiftSyntax600
[3/8] Compiling SwiftSyntax510 Empty.swift
[4/13] Emitting module SwiftSyntax510
[5/13] Compiling SwiftSyntax600 Empty.swift
[6/40] Compiling SwiftSyntax509 Empty.swift
[7/40] Emitting module SwiftSyntax509
[10/41] Compiling SnapshotTesting NSImage.swift
[11/41] Compiling SnapshotTesting NSView.swift
[12/41] Compiling SnapshotTesting NSViewController.swift
[13/41] Compiling SnapshotTesting SceneKit.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/45] Emitting module SnapshotTesting
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/RecordIssue.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:4:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
2 | // NB: We are importing only the implementation of Testing because that framework is not available
3 | // in Xcode UI test targets.
4 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
5 |
6 | @_spi(Experimental)
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:466:28: error: cannot find 'DispatchQueue' in scope
464 | // MARK: - Private
465 |
466 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
| `- error: cannot find 'DispatchQueue' in scope
467 | private var counterMap: [URL: Int] = [:]
468 |
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: @escaping attribute only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:7:13: warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
5 |
6 | @_spi(Experimental)
7 | extension Trait where Self == _SnapshotsTestTrait {
| `- warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
8 | /// Configure snapshot testing in a suite or test.
9 | ///
Testing.Trait:1:17: note: protocol declared here
1 | public protocol Trait : Sendable {
| `- note: protocol declared here
2 | func prepare(for test: Test) async throws
3 | var comments: [Comment] { get }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:38: warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.SuiteTrait:1:17: note: protocol declared here
1 | public protocol SuiteTrait : Trait {
| `- note: protocol declared here
2 | var isRecursive: Bool { get }
3 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:50: warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.TestTrait:1:17: note: protocol declared here
1 | public protocol TestTrait : Trait {
| `- note: protocol declared here
2 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:17: error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| |- error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
| `- note: in associated type 'Self.TestScopeProvider' (inferred as 'Never')
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:168:5: warning: non-'@objc' property in extensions cannot be overridden; use 'public' instead
166 | }
167 | #else
168 | open var snapshotDescription: String {
| `- warning: non-'@objc' property in extensions cannot be overridden; use 'public' instead
169 | return purgePointers(self.debugDescription)
170 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
[16/45] Compiling SnapshotTesting View.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: @escaping attribute only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:22:29: error: cannot find 'XCTestExpectation' in scope
20 | asyncSnapshot: { value in
21 | Async { callback in
22 | let expectation = XCTestExpectation(description: "Wait")
| `- error: cannot find 'XCTestExpectation' in scope
23 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
24 | expectation.fulfill()
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:23:11: error: cannot find 'DispatchQueue' in scope
21 | Async { callback in
22 | let expectation = XCTestExpectation(description: "Wait")
23 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
| `- error: cannot find 'DispatchQueue' in scope
24 | expectation.fulfill()
25 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:26:15: error: cannot find 'XCTWaiter' in scope
24 | expectation.fulfill()
25 | }
26 | _ = XCTWaiter.wait(for: [expectation], timeout: duration + 1)
| `- error: cannot find 'XCTWaiter' in scope
27 | strategy.snapshot(value).run(callback)
28 | }
[17/45] Compiling SnapshotTesting XCTAttachment.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: @escaping attribute only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:22:29: error: cannot find 'XCTestExpectation' in scope
20 | asyncSnapshot: { value in
21 | Async { callback in
22 | let expectation = XCTestExpectation(description: "Wait")
| `- error: cannot find 'XCTestExpectation' in scope
23 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
24 | expectation.fulfill()
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:23:11: error: cannot find 'DispatchQueue' in scope
21 | Async { callback in
22 | let expectation = XCTestExpectation(description: "Wait")
23 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
| `- error: cannot find 'DispatchQueue' in scope
24 | expectation.fulfill()
25 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:26:15: error: cannot find 'XCTWaiter' in scope
24 | expectation.fulfill()
25 | }
26 | _ = XCTWaiter.wait(for: [expectation], timeout: duration + 1)
| `- error: cannot find 'XCTWaiter' in scope
27 | strategy.snapshot(value).run(callback)
28 | }
[18/45] Compiling SnapshotTesting Diff.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: @escaping attribute only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:22:29: error: cannot find 'XCTestExpectation' in scope
20 | asyncSnapshot: { value in
21 | Async { callback in
22 | let expectation = XCTestExpectation(description: "Wait")
| `- error: cannot find 'XCTestExpectation' in scope
23 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
24 | expectation.fulfill()
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:23:11: error: cannot find 'DispatchQueue' in scope
21 | Async { callback in
22 | let expectation = XCTestExpectation(description: "Wait")
23 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
| `- error: cannot find 'DispatchQueue' in scope
24 | expectation.fulfill()
25 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:26:15: error: cannot find 'XCTWaiter' in scope
24 | expectation.fulfill()
25 | }
26 | _ = XCTWaiter.wait(for: [expectation], timeout: duration + 1)
| `- error: cannot find 'XCTWaiter' in scope
27 | strategy.snapshot(value).run(callback)
28 | }
[19/45] Compiling SnapshotTesting Diffing.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: @escaping attribute only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:22:29: error: cannot find 'XCTestExpectation' in scope
20 | asyncSnapshot: { value in
21 | Async { callback in
22 | let expectation = XCTestExpectation(description: "Wait")
| `- error: cannot find 'XCTestExpectation' in scope
23 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
24 | expectation.fulfill()
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:23:11: error: cannot find 'DispatchQueue' in scope
21 | Async { callback in
22 | let expectation = XCTestExpectation(description: "Wait")
23 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
| `- error: cannot find 'DispatchQueue' in scope
24 | expectation.fulfill()
25 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:26:15: error: cannot find 'XCTWaiter' in scope
24 | expectation.fulfill()
25 | }
26 | _ = XCTWaiter.wait(for: [expectation], timeout: duration + 1)
| `- error: cannot find 'XCTWaiter' in scope
27 | strategy.snapshot(value).run(callback)
28 | }
[20/45] Compiling SnapshotTesting Wait.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: @escaping attribute only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:22:29: error: cannot find 'XCTestExpectation' in scope
20 | asyncSnapshot: { value in
21 | Async { callback in
22 | let expectation = XCTestExpectation(description: "Wait")
| `- error: cannot find 'XCTestExpectation' in scope
23 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
24 | expectation.fulfill()
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:23:11: error: cannot find 'DispatchQueue' in scope
21 | Async { callback in
22 | let expectation = XCTestExpectation(description: "Wait")
23 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
| `- error: cannot find 'DispatchQueue' in scope
24 | expectation.fulfill()
25 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift:26:15: error: cannot find 'XCTWaiter' in scope
24 | expectation.fulfill()
25 | }
26 | _ = XCTWaiter.wait(for: [expectation], timeout: duration + 1)
| `- error: cannot find 'XCTWaiter' in scope
27 | strategy.snapshot(value).run(callback)
28 | }
[21/45] Compiling SnapshotTesting SpriteKit.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: @escaping attribute only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
[22/45] Compiling SnapshotTesting String.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: @escaping attribute only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
[23/45] Compiling SnapshotTesting SwiftUIView.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: @escaping attribute only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
[24/45] Compiling SnapshotTesting UIBezierPath.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: @escaping attribute only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
[25/45] Compiling SnapshotTesting CaseIterable.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: @escaping attribute only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Data.swift:10:40: error: 'nil' requires a contextual type
8 | pathExtension: nil,
9 | diffing: .init(toData: { $0 }, fromData: { $0 }) { old, new in
10 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
11 | let message =
12 | old.count == new.count
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Encodable.swift:30:24: error: generic parameter 'Format' could not be inferred
28 | /// - Parameter encoder: A JSON encoder.
29 | public static func json(_ encoder: JSONEncoder) -> Snapshotting {
30 | var snapshotting = SimplySnapshotting.lines.pullback { (encodable: Value) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
31 | try! String(decoding: encoder.encode(encodable), as: UTF8.self)
32 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Encodable.swift:72:24: error: generic parameter 'Format' could not be inferred
70 | /// - Parameter encoder: A property list encoder.
71 | public static func plist(_ encoder: PropertyListEncoder) -> Snapshotting {
72 | var snapshotting = SimplySnapshotting.lines.pullback { (encodable: Value) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
73 | try! String(decoding: encoder.encode(encodable), as: UTF8.self)
74 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
[26/45] Compiling SnapshotTesting Data.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: @escaping attribute only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Data.swift:10:40: error: 'nil' requires a contextual type
8 | pathExtension: nil,
9 | diffing: .init(toData: { $0 }, fromData: { $0 }) { old, new in
10 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
11 | let message =
12 | old.count == new.count
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Encodable.swift:30:24: error: generic parameter 'Format' could not be inferred
28 | /// - Parameter encoder: A JSON encoder.
29 | public static func json(_ encoder: JSONEncoder) -> Snapshotting {
30 | var snapshotting = SimplySnapshotting.lines.pullback { (encodable: Value) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
31 | try! String(decoding: encoder.encode(encodable), as: UTF8.self)
32 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Encodable.swift:72:24: error: generic parameter 'Format' could not be inferred
70 | /// - Parameter encoder: A property list encoder.
71 | public static func plist(_ encoder: PropertyListEncoder) -> Snapshotting {
72 | var snapshotting = SimplySnapshotting.lines.pullback { (encodable: Value) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
73 | try! String(decoding: encoder.encode(encodable), as: UTF8.self)
74 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
[27/45] Compiling SnapshotTesting Encodable.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: @escaping attribute only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Data.swift:10:40: error: 'nil' requires a contextual type
8 | pathExtension: nil,
9 | diffing: .init(toData: { $0 }, fromData: { $0 }) { old, new in
10 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
11 | let message =
12 | old.count == new.count
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Encodable.swift:30:24: error: generic parameter 'Format' could not be inferred
28 | /// - Parameter encoder: A JSON encoder.
29 | public static func json(_ encoder: JSONEncoder) -> Snapshotting {
30 | var snapshotting = SimplySnapshotting.lines.pullback { (encodable: Value) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
31 | try! String(decoding: encoder.encode(encodable), as: UTF8.self)
32 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Encodable.swift:72:24: error: generic parameter 'Format' could not be inferred
70 | /// - Parameter encoder: A property list encoder.
71 | public static func plist(_ encoder: PropertyListEncoder) -> Snapshotting {
72 | var snapshotting = SimplySnapshotting.lines.pullback { (encodable: Value) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
73 | try! String(decoding: encoder.encode(encodable), as: UTF8.self)
74 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
[28/45] Compiling SnapshotTesting NSBezierPath.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: @escaping attribute only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Data.swift:10:40: error: 'nil' requires a contextual type
8 | pathExtension: nil,
9 | diffing: .init(toData: { $0 }, fromData: { $0 }) { old, new in
10 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
11 | let message =
12 | old.count == new.count
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Encodable.swift:30:24: error: generic parameter 'Format' could not be inferred
28 | /// - Parameter encoder: A JSON encoder.
29 | public static func json(_ encoder: JSONEncoder) -> Snapshotting {
30 | var snapshotting = SimplySnapshotting.lines.pullback { (encodable: Value) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
31 | try! String(decoding: encoder.encode(encodable), as: UTF8.self)
32 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Encodable.swift:72:24: error: generic parameter 'Format' could not be inferred
70 | /// - Parameter encoder: A property list encoder.
71 | public static func plist(_ encoder: PropertyListEncoder) -> Snapshotting {
72 | var snapshotting = SimplySnapshotting.lines.pullback { (encodable: Value) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
73 | try! String(decoding: encoder.encode(encodable), as: UTF8.self)
74 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
[29/45] Compiling SnapshotTesting UIImage.swift
[30/45] Compiling SnapshotTesting UIView.swift
[31/45] Compiling SnapshotTesting UIViewController.swift
[32/45] Compiling SnapshotTesting URLRequest.swift
[33/45] Compiling SnapshotTesting Deprecations.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/RecordIssue.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:4:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
2 | // NB: We are importing only the implementation of Testing because that framework is not available
3 | // in Xcode UI test targets.
4 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
5 |
6 | @_spi(Experimental)
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:63:24: error: cannot find 'XCTestExpectation' in scope
61 |
62 | do {
63 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
64 | var optionalDiffable: String?
65 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:69:18: error: cannot find 'XCTWaiter' in scope
67 | tookSnapshot.fulfill()
68 | }
69 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
70 | switch result {
71 | case .completed:
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:141:11: error: cannot find 'XCTContext' in scope
139 | #if !os(Linux) && !os(Windows)
140 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
141 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
142 | attachments.forEach {
143 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:153:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
151 | Snapshot does not match reference.
152 |
153 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
154 | """
155 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:7:13: warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
5 |
6 | @_spi(Experimental)
7 | extension Trait where Self == _SnapshotsTestTrait {
| `- warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
8 | /// Configure snapshot testing in a suite or test.
9 | ///
Testing.Trait:1:17: note: protocol declared here
1 | public protocol Trait : Sendable {
| `- note: protocol declared here
2 | func prepare(for test: Test) async throws
3 | var comments: [Comment] { get }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:38: warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.SuiteTrait:1:17: note: protocol declared here
1 | public protocol SuiteTrait : Trait {
| `- note: protocol declared here
2 | var isRecursive: Bool { get }
3 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:50: warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.TestTrait:1:17: note: protocol declared here
1 | public protocol TestTrait : Trait {
| `- note: protocol declared here
2 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:17: error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| |- error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
| `- note: in associated type 'Self.TestScopeProvider' (inferred as 'Never')
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
[34/45] Compiling SnapshotTesting RecordIssue.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/RecordIssue.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:4:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
2 | // NB: We are importing only the implementation of Testing because that framework is not available
3 | // in Xcode UI test targets.
4 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
5 |
6 | @_spi(Experimental)
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:63:24: error: cannot find 'XCTestExpectation' in scope
61 |
62 | do {
63 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
64 | var optionalDiffable: String?
65 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:69:18: error: cannot find 'XCTWaiter' in scope
67 | tookSnapshot.fulfill()
68 | }
69 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
70 | switch result {
71 | case .completed:
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:141:11: error: cannot find 'XCTContext' in scope
139 | #if !os(Linux) && !os(Windows)
140 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
141 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
142 | attachments.forEach {
143 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:153:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
151 | Snapshot does not match reference.
152 |
153 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
154 | """
155 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:7:13: warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
5 |
6 | @_spi(Experimental)
7 | extension Trait where Self == _SnapshotsTestTrait {
| `- warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
8 | /// Configure snapshot testing in a suite or test.
9 | ///
Testing.Trait:1:17: note: protocol declared here
1 | public protocol Trait : Sendable {
| `- note: protocol declared here
2 | func prepare(for test: Test) async throws
3 | var comments: [Comment] { get }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:38: warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.SuiteTrait:1:17: note: protocol declared here
1 | public protocol SuiteTrait : Trait {
| `- note: protocol declared here
2 | var isRecursive: Bool { get }
3 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:50: warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.TestTrait:1:17: note: protocol declared here
1 | public protocol TestTrait : Trait {
| `- note: protocol declared here
2 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:17: error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| |- error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
| `- note: in associated type 'Self.TestScopeProvider' (inferred as 'Never')
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
[35/45] Compiling SnapshotTesting SnapshotTestingConfiguration.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/RecordIssue.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:4:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
2 | // NB: We are importing only the implementation of Testing because that framework is not available
3 | // in Xcode UI test targets.
4 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
5 |
6 | @_spi(Experimental)
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:63:24: error: cannot find 'XCTestExpectation' in scope
61 |
62 | do {
63 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
64 | var optionalDiffable: String?
65 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:69:18: error: cannot find 'XCTWaiter' in scope
67 | tookSnapshot.fulfill()
68 | }
69 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
70 | switch result {
71 | case .completed:
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:141:11: error: cannot find 'XCTContext' in scope
139 | #if !os(Linux) && !os(Windows)
140 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
141 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
142 | attachments.forEach {
143 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:153:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
151 | Snapshot does not match reference.
152 |
153 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
154 | """
155 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:7:13: warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
5 |
6 | @_spi(Experimental)
7 | extension Trait where Self == _SnapshotsTestTrait {
| `- warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
8 | /// Configure snapshot testing in a suite or test.
9 | ///
Testing.Trait:1:17: note: protocol declared here
1 | public protocol Trait : Sendable {
| `- note: protocol declared here
2 | func prepare(for test: Test) async throws
3 | var comments: [Comment] { get }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:38: warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.SuiteTrait:1:17: note: protocol declared here
1 | public protocol SuiteTrait : Trait {
| `- note: protocol declared here
2 | var isRecursive: Bool { get }
3 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:50: warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.TestTrait:1:17: note: protocol declared here
1 | public protocol TestTrait : Trait {
| `- note: protocol declared here
2 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:17: error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| |- error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
| `- note: in associated type 'Self.TestScopeProvider' (inferred as 'Never')
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
[36/45] Compiling SnapshotTesting SnapshotsTestTrait.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/RecordIssue.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:4:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
2 | // NB: We are importing only the implementation of Testing because that framework is not available
3 | // in Xcode UI test targets.
4 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
5 |
6 | @_spi(Experimental)
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:63:24: error: cannot find 'XCTestExpectation' in scope
61 |
62 | do {
63 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
64 | var optionalDiffable: String?
65 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:69:18: error: cannot find 'XCTWaiter' in scope
67 | tookSnapshot.fulfill()
68 | }
69 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
70 | switch result {
71 | case .completed:
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:141:11: error: cannot find 'XCTContext' in scope
139 | #if !os(Linux) && !os(Windows)
140 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
141 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
142 | attachments.forEach {
143 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:153:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
151 | Snapshot does not match reference.
152 |
153 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
154 | """
155 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:7:13: warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
5 |
6 | @_spi(Experimental)
7 | extension Trait where Self == _SnapshotsTestTrait {
| `- warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
8 | /// Configure snapshot testing in a suite or test.
9 | ///
Testing.Trait:1:17: note: protocol declared here
1 | public protocol Trait : Sendable {
| `- note: protocol declared here
2 | func prepare(for test: Test) async throws
3 | var comments: [Comment] { get }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:38: warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.SuiteTrait:1:17: note: protocol declared here
1 | public protocol SuiteTrait : Trait {
| `- note: protocol declared here
2 | var isRecursive: Bool { get }
3 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:50: warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.TestTrait:1:17: note: protocol declared here
1 | public protocol TestTrait : Trait {
| `- note: protocol declared here
2 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:17: error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| |- error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
| `- note: in associated type 'Self.TestScopeProvider' (inferred as 'Never')
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
[37/109] Compiling SwiftSyntax Trivia.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:168:5: warning: non-'@objc' property in extensions cannot be overridden; use 'public' instead
166 | }
167 | #else
168 | open var snapshotDescription: String {
| `- warning: non-'@objc' property in extensions cannot be overridden; use 'public' instead
169 | return purgePointers(self.debugDescription)
170 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: @escaping attribute only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:17:12: error: generic parameter 'Format' could not be inferred
15 | /// ```
16 | public static var description: Snapshotting {
17 | return SimplySnapshotting.lines.pullback(String.init(describing:))
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
18 | }
19 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:17:53: error: generic parameter 'Subject' could not be inferred
15 | /// ```
16 | public static var description: Snapshotting {
17 | return SimplySnapshotting.lines.pullback(String.init(describing:))
| `- error: generic parameter 'Subject' could not be inferred
18 | }
19 | }
Swift.String.init:2:19: note: in call to initializer
1 | struct String {
2 | @inlinable public init<Subject>(describing instance: Subject) where Subject : CustomStringConvertible, Subject : TextOutputStreamable}
| `- note: in call to initializer
3 |
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:45:12: error: generic parameter 'Format' could not be inferred
43 | /// ```
44 | public static var dump: Snapshotting {
45 | return SimplySnapshotting.lines.pullback { snap($0) }
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
46 | }
47 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:58:24: error: generic parameter 'Format' could not be inferred
56 | ]
57 |
58 | var snapshotting = SimplySnapshotting.lines.pullback { (data: Value) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
59 | try! String(
60 | decoding: JSONSerialization.data(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
[38/109] Compiling SwiftSyntax SourcePresence.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:168:5: warning: non-'@objc' property in extensions cannot be overridden; use 'public' instead
166 | }
167 | #else
168 | open var snapshotDescription: String {
| `- warning: non-'@objc' property in extensions cannot be overridden; use 'public' instead
169 | return purgePointers(self.debugDescription)
170 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: @escaping attribute only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:17:12: error: generic parameter 'Format' could not be inferred
15 | /// ```
16 | public static var description: Snapshotting {
17 | return SimplySnapshotting.lines.pullback(String.init(describing:))
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
18 | }
19 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:17:53: error: generic parameter 'Subject' could not be inferred
15 | /// ```
16 | public static var description: Snapshotting {
17 | return SimplySnapshotting.lines.pullback(String.init(describing:))
| `- error: generic parameter 'Subject' could not be inferred
18 | }
19 | }
Swift.String.init:2:19: note: in call to initializer
1 | struct String {
2 | @inlinable public init<Subject>(describing instance: Subject) where Subject : CustomStringConvertible, Subject : TextOutputStreamable}
| `- note: in call to initializer
3 |
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:45:12: error: generic parameter 'Format' could not be inferred
43 | /// ```
44 | public static var dump: Snapshotting {
45 | return SimplySnapshotting.lines.pullback { snap($0) }
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
46 | }
47 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:58:24: error: generic parameter 'Format' could not be inferred
56 | ]
57 |
58 | var snapshotting = SimplySnapshotting.lines.pullback { (data: Value) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
59 | try! String(
60 | decoding: JSONSerialization.data(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
[39/109] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:168:5: warning: non-'@objc' property in extensions cannot be overridden; use 'public' instead
166 | }
167 | #else
168 | open var snapshotDescription: String {
| `- warning: non-'@objc' property in extensions cannot be overridden; use 'public' instead
169 | return purgePointers(self.debugDescription)
170 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: @escaping attribute only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:17:12: error: generic parameter 'Format' could not be inferred
15 | /// ```
16 | public static var description: Snapshotting {
17 | return SimplySnapshotting.lines.pullback(String.init(describing:))
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
18 | }
19 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:17:53: error: generic parameter 'Subject' could not be inferred
15 | /// ```
16 | public static var description: Snapshotting {
17 | return SimplySnapshotting.lines.pullback(String.init(describing:))
| `- error: generic parameter 'Subject' could not be inferred
18 | }
19 | }
Swift.String.init:2:19: note: in call to initializer
1 | struct String {
2 | @inlinable public init<Subject>(describing instance: Subject) where Subject : CustomStringConvertible, Subject : TextOutputStreamable}
| `- note: in call to initializer
3 |
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:45:12: error: generic parameter 'Format' could not be inferred
43 | /// ```
44 | public static var dump: Snapshotting {
45 | return SimplySnapshotting.lines.pullback { snap($0) }
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
46 | }
47 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:58:24: error: generic parameter 'Format' could not be inferred
56 | ]
57 |
58 | var snapshotting = SimplySnapshotting.lines.pullback { (data: Value) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
59 | try! String(
60 | decoding: JSONSerialization.data(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
[40/109] Compiling SwiftSyntax Syntax.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:168:5: warning: non-'@objc' property in extensions cannot be overridden; use 'public' instead
166 | }
167 | #else
168 | open var snapshotDescription: String {
| `- warning: non-'@objc' property in extensions cannot be overridden; use 'public' instead
169 | return purgePointers(self.debugDescription)
170 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: @escaping attribute only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:17:12: error: generic parameter 'Format' could not be inferred
15 | /// ```
16 | public static var description: Snapshotting {
17 | return SimplySnapshotting.lines.pullback(String.init(describing:))
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
18 | }
19 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:17:53: error: generic parameter 'Subject' could not be inferred
15 | /// ```
16 | public static var description: Snapshotting {
17 | return SimplySnapshotting.lines.pullback(String.init(describing:))
| `- error: generic parameter 'Subject' could not be inferred
18 | }
19 | }
Swift.String.init:2:19: note: in call to initializer
1 | struct String {
2 | @inlinable public init<Subject>(describing instance: Subject) where Subject : CustomStringConvertible, Subject : TextOutputStreamable}
| `- note: in call to initializer
3 |
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:45:12: error: generic parameter 'Format' could not be inferred
43 | /// ```
44 | public static var dump: Snapshotting {
45 | return SimplySnapshotting.lines.pullback { snap($0) }
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
46 | }
47 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:58:24: error: generic parameter 'Format' could not be inferred
56 | ]
57 |
58 | var snapshotting = SimplySnapshotting.lines.pullback { (data: Value) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
59 | try! String(
60 | decoding: JSONSerialization.data(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
[41/109] Compiling SwiftSyntax AbsolutePosition.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:466:28: error: cannot find 'DispatchQueue' in scope
464 | // MARK: - Private
465 |
466 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
| `- error: cannot find 'DispatchQueue' in scope
467 | private var counterMap: [URL: Int] = [:]
468 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:328:26: error: cannot find 'XCTestExpectation' in scope
326 | try fileManager.createDirectory(at: snapshotDirectoryUrl, withIntermediateDirectories: true)
327 |
328 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
329 | var optionalDiffable: Format?
330 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:334:20: error: cannot find 'XCTWaiter' in scope
332 | tookSnapshot.fulfill()
333 | }
334 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
335 | switch result {
336 | case .completed:
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:425:13: error: cannot find 'XCTContext' in scope
423 | #if !os(Linux) && !os(Windows)
424 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
425 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
426 | attachments.forEach {
427 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:481:8: error: cannot find 'Thread' in scope
479 |
480 | static func registerIfNeeded() {
481 | if Thread.isMainThread {
| `- error: cannot find 'Thread' in scope
482 | doRegisterIfNeeded()
483 | } else {
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:484:7: error: cannot find 'DispatchQueue' in scope
482 | doRegisterIfNeeded()
483 | } else {
484 | DispatchQueue.main.sync {
| `- error: cannot find 'DispatchQueue' in scope
485 | doRegisterIfNeeded()
486 | }
[42/109] Compiling SwiftSyntax AbsoluteRawSyntax.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:466:28: error: cannot find 'DispatchQueue' in scope
464 | // MARK: - Private
465 |
466 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
| `- error: cannot find 'DispatchQueue' in scope
467 | private var counterMap: [URL: Int] = [:]
468 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:328:26: error: cannot find 'XCTestExpectation' in scope
326 | try fileManager.createDirectory(at: snapshotDirectoryUrl, withIntermediateDirectories: true)
327 |
328 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
329 | var optionalDiffable: Format?
330 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:334:20: error: cannot find 'XCTWaiter' in scope
332 | tookSnapshot.fulfill()
333 | }
334 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
335 | switch result {
336 | case .completed:
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:425:13: error: cannot find 'XCTContext' in scope
423 | #if !os(Linux) && !os(Windows)
424 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
425 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
426 | attachments.forEach {
427 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:481:8: error: cannot find 'Thread' in scope
479 |
480 | static func registerIfNeeded() {
481 | if Thread.isMainThread {
| `- error: cannot find 'Thread' in scope
482 | doRegisterIfNeeded()
483 | } else {
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:484:7: error: cannot find 'DispatchQueue' in scope
482 | doRegisterIfNeeded()
483 | } else {
484 | DispatchQueue.main.sync {
| `- error: cannot find 'DispatchQueue' in scope
485 | doRegisterIfNeeded()
486 | }
[43/109] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:466:28: error: cannot find 'DispatchQueue' in scope
464 | // MARK: - Private
465 |
466 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
| `- error: cannot find 'DispatchQueue' in scope
467 | private var counterMap: [URL: Int] = [:]
468 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:328:26: error: cannot find 'XCTestExpectation' in scope
326 | try fileManager.createDirectory(at: snapshotDirectoryUrl, withIntermediateDirectories: true)
327 |
328 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
329 | var optionalDiffable: Format?
330 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:334:20: error: cannot find 'XCTWaiter' in scope
332 | tookSnapshot.fulfill()
333 | }
334 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
335 | switch result {
336 | case .completed:
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:425:13: error: cannot find 'XCTContext' in scope
423 | #if !os(Linux) && !os(Windows)
424 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
425 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
426 | attachments.forEach {
427 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:481:8: error: cannot find 'Thread' in scope
479 |
480 | static func registerIfNeeded() {
481 | if Thread.isMainThread {
| `- error: cannot find 'Thread' in scope
482 | doRegisterIfNeeded()
483 | } else {
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:484:7: error: cannot find 'DispatchQueue' in scope
482 | doRegisterIfNeeded()
483 | } else {
484 | DispatchQueue.main.sync {
| `- error: cannot find 'DispatchQueue' in scope
485 | doRegisterIfNeeded()
486 | }
[44/109] Compiling SwiftSyntax Assert.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:466:28: error: cannot find 'DispatchQueue' in scope
464 | // MARK: - Private
465 |
466 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
| `- error: cannot find 'DispatchQueue' in scope
467 | private var counterMap: [URL: Int] = [:]
468 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:328:26: error: cannot find 'XCTestExpectation' in scope
326 | try fileManager.createDirectory(at: snapshotDirectoryUrl, withIntermediateDirectories: true)
327 |
328 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
329 | var optionalDiffable: Format?
330 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:334:20: error: cannot find 'XCTWaiter' in scope
332 | tookSnapshot.fulfill()
333 | }
334 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
335 | switch result {
336 | case .completed:
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:425:13: error: cannot find 'XCTContext' in scope
423 | #if !os(Linux) && !os(Windows)
424 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
425 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
426 | attachments.forEach {
427 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:481:8: error: cannot find 'Thread' in scope
479 |
480 | static func registerIfNeeded() {
481 | if Thread.isMainThread {
| `- error: cannot find 'Thread' in scope
482 | doRegisterIfNeeded()
483 | } else {
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:484:7: error: cannot find 'DispatchQueue' in scope
482 | doRegisterIfNeeded()
483 | } else {
484 | DispatchQueue.main.sync {
| `- error: cannot find 'DispatchQueue' in scope
485 | doRegisterIfNeeded()
486 | }
[45/109] Compiling SwiftSyntax BumpPtrAllocator.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:466:28: error: cannot find 'DispatchQueue' in scope
464 | // MARK: - Private
465 |
466 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
| `- error: cannot find 'DispatchQueue' in scope
467 | private var counterMap: [URL: Int] = [:]
468 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:328:26: error: cannot find 'XCTestExpectation' in scope
326 | try fileManager.createDirectory(at: snapshotDirectoryUrl, withIntermediateDirectories: true)
327 |
328 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
329 | var optionalDiffable: Format?
330 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:334:20: error: cannot find 'XCTWaiter' in scope
332 | tookSnapshot.fulfill()
333 | }
334 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
335 | switch result {
336 | case .completed:
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:425:13: error: cannot find 'XCTContext' in scope
423 | #if !os(Linux) && !os(Windows)
424 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
425 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
426 | attachments.forEach {
427 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:481:8: error: cannot find 'Thread' in scope
479 |
480 | static func registerIfNeeded() {
481 | if Thread.isMainThread {
| `- error: cannot find 'Thread' in scope
482 | doRegisterIfNeeded()
483 | } else {
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:484:7: error: cannot find 'DispatchQueue' in scope
482 | doRegisterIfNeeded()
483 | } else {
484 | DispatchQueue.main.sync {
| `- error: cannot find 'DispatchQueue' in scope
485 | doRegisterIfNeeded()
486 | }
BUILD FAILURE 6.1 wasm