Build Information
Failed to build StreamSwiftTestHelpers, reference main (b7a09e
), with Swift 6.1 for Wasm on 28 May 2025 23:33:07 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
[17/37] Compiling SnapshotTesting UIImage.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:6:39: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension Snapshotting where Value == URLRequest, Format == String {
| `- error: cannot find type 'URLRequest' in scope
7 | /// A snapshot strategy for comparing requests based on raw equality.
8 | public static let raw = Snapshotting.raw(pretty: false)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:44:74: error: cannot find type 'URLRequest' in scope
42 |
43 | /// A snapshot strategy for comparing requests based on a cURL representation.
44 | public static let curl = SimplySnapshotting.lines.pullback { (request: URLRequest) in
| `- error: cannot find type 'URLRequest' in scope
45 |
46 | var components = ["curl"]
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:44:28: error: generic parameter 'Format' could not be inferred
42 |
43 | /// A snapshot strategy for comparing requests based on a cURL representation.
44 | public static let curl = SimplySnapshotting.lines.pullback { (request: URLRequest) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
45 |
46 | var components = ["curl"]
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
[18/37] Compiling SnapshotTesting UIView.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:6:39: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension Snapshotting where Value == URLRequest, Format == String {
| `- error: cannot find type 'URLRequest' in scope
7 | /// A snapshot strategy for comparing requests based on raw equality.
8 | public static let raw = Snapshotting.raw(pretty: false)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:44:74: error: cannot find type 'URLRequest' in scope
42 |
43 | /// A snapshot strategy for comparing requests based on a cURL representation.
44 | public static let curl = SimplySnapshotting.lines.pullback { (request: URLRequest) in
| `- error: cannot find type 'URLRequest' in scope
45 |
46 | var components = ["curl"]
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:44:28: error: generic parameter 'Format' could not be inferred
42 |
43 | /// A snapshot strategy for comparing requests based on a cURL representation.
44 | public static let curl = SimplySnapshotting.lines.pullback { (request: URLRequest) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
45 |
46 | var components = ["curl"]
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
[19/37] Compiling SnapshotTesting UIViewController.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:6:39: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension Snapshotting where Value == URLRequest, Format == String {
| `- error: cannot find type 'URLRequest' in scope
7 | /// A snapshot strategy for comparing requests based on raw equality.
8 | public static let raw = Snapshotting.raw(pretty: false)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:44:74: error: cannot find type 'URLRequest' in scope
42 |
43 | /// A snapshot strategy for comparing requests based on a cURL representation.
44 | public static let curl = SimplySnapshotting.lines.pullback { (request: URLRequest) in
| `- error: cannot find type 'URLRequest' in scope
45 |
46 | var components = ["curl"]
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:44:28: error: generic parameter 'Format' could not be inferred
42 |
43 | /// A snapshot strategy for comparing requests based on a cURL representation.
44 | public static let curl = SimplySnapshotting.lines.pullback { (request: URLRequest) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
45 |
46 | var components = ["curl"]
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
[20/37] Compiling SnapshotTesting URLRequest.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:6:39: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension Snapshotting where Value == URLRequest, Format == String {
| `- error: cannot find type 'URLRequest' in scope
7 | /// A snapshot strategy for comparing requests based on raw equality.
8 | public static let raw = Snapshotting.raw(pretty: false)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:44:74: error: cannot find type 'URLRequest' in scope
42 |
43 | /// A snapshot strategy for comparing requests based on a cURL representation.
44 | public static let curl = SimplySnapshotting.lines.pullback { (request: URLRequest) in
| `- error: cannot find type 'URLRequest' in scope
45 |
46 | var components = ["curl"]
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:44:28: error: generic parameter 'Format' could not be inferred
42 |
43 | /// A snapshot strategy for comparing requests based on a cURL representation.
44 | public static let curl = SimplySnapshotting.lines.pullback { (request: URLRequest) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
45 |
46 | var components = ["curl"]
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
[21/37] Compiling SnapshotTesting Diffing.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:13:48: error: cannot find type 'XCTAttachment' in scope
11 |
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts describing the failure.
13 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
14 |
15 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Extensions/Wait.swift:18:29: error: cannot find 'XCTestExpectation' in scope
16 | asyncSnapshot: { value in
17 | Async { callback in
18 | let expectation = XCTestExpectation(description: "Wait")
| `- error: cannot find 'XCTestExpectation' in scope
19 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
20 | expectation.fulfill()
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Extensions/Wait.swift:19:11: error: cannot find 'DispatchQueue' in scope
17 | Async { callback in
18 | let expectation = XCTestExpectation(description: "Wait")
19 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
| `- error: cannot find 'DispatchQueue' in scope
20 | expectation.fulfill()
21 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Extensions/Wait.swift:22:15: error: cannot find 'XCTWaiter' in scope
20 | expectation.fulfill()
21 | }
22 | _ = XCTWaiter.wait(for: [expectation], timeout: duration + 1)
| `- error: cannot find 'XCTWaiter' in scope
23 | strategy.snapshot(value).run(callback)
24 | }
[22/37] Compiling SnapshotTesting Wait.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:13:48: error: cannot find type 'XCTAttachment' in scope
11 |
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts describing the failure.
13 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
14 |
15 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Extensions/Wait.swift:18:29: error: cannot find 'XCTestExpectation' in scope
16 | asyncSnapshot: { value in
17 | Async { callback in
18 | let expectation = XCTestExpectation(description: "Wait")
| `- error: cannot find 'XCTestExpectation' in scope
19 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
20 | expectation.fulfill()
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Extensions/Wait.swift:19:11: error: cannot find 'DispatchQueue' in scope
17 | Async { callback in
18 | let expectation = XCTestExpectation(description: "Wait")
19 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
| `- error: cannot find 'DispatchQueue' in scope
20 | expectation.fulfill()
21 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Extensions/Wait.swift:22:15: error: cannot find 'XCTWaiter' in scope
20 | expectation.fulfill()
21 | }
22 | _ = XCTWaiter.wait(for: [expectation], timeout: duration + 1)
| `- error: cannot find 'XCTWaiter' in scope
23 | strategy.snapshot(value).run(callback)
24 | }
[23/37] Compiling SnapshotTesting SnapshotTestCase.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:13:48: error: cannot find type 'XCTAttachment' in scope
11 |
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts describing the failure.
13 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
14 |
15 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Extensions/Wait.swift:18:29: error: cannot find 'XCTestExpectation' in scope
16 | asyncSnapshot: { value in
17 | Async { callback in
18 | let expectation = XCTestExpectation(description: "Wait")
| `- error: cannot find 'XCTestExpectation' in scope
19 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
20 | expectation.fulfill()
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Extensions/Wait.swift:19:11: error: cannot find 'DispatchQueue' in scope
17 | Async { callback in
18 | let expectation = XCTestExpectation(description: "Wait")
19 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
| `- error: cannot find 'DispatchQueue' in scope
20 | expectation.fulfill()
21 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Extensions/Wait.swift:22:15: error: cannot find 'XCTWaiter' in scope
20 | expectation.fulfill()
21 | }
22 | _ = XCTWaiter.wait(for: [expectation], timeout: duration + 1)
| `- error: cannot find 'XCTWaiter' in scope
23 | strategy.snapshot(value).run(callback)
24 | }
[24/37] Compiling SnapshotTesting Snapshotting.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:13:48: error: cannot find type 'XCTAttachment' in scope
11 |
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts describing the failure.
13 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
14 |
15 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Extensions/Wait.swift:18:29: error: cannot find 'XCTestExpectation' in scope
16 | asyncSnapshot: { value in
17 | Async { callback in
18 | let expectation = XCTestExpectation(description: "Wait")
| `- error: cannot find 'XCTestExpectation' in scope
19 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
20 | expectation.fulfill()
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Extensions/Wait.swift:19:11: error: cannot find 'DispatchQueue' in scope
17 | Async { callback in
18 | let expectation = XCTestExpectation(description: "Wait")
19 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
| `- error: cannot find 'DispatchQueue' in scope
20 | expectation.fulfill()
21 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Extensions/Wait.swift:22:15: error: cannot find 'XCTWaiter' in scope
20 | expectation.fulfill()
21 | }
22 | _ = XCTWaiter.wait(for: [expectation], timeout: duration + 1)
| `- error: cannot find 'XCTWaiter' in scope
23 | strategy.snapshot(value).run(callback)
24 | }
[25/37] Compiling SnapshotTesting String+SpecialCharacters.swift
[26/37] Compiling SnapshotTesting View.swift
[27/37] Compiling SnapshotTesting XCTAttachment.swift
[28/37] Compiling SnapshotTesting Diff.swift
[29/37] Compiling SnapshotTesting AssertInlineSnapshot.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:76:26: error: cannot find 'XCTestExpectation' in scope
74 |
75 | do {
76 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
77 | var optionalDiffable: String?
78 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:82:20: error: cannot find 'XCTWaiter' in scope
80 | tookSnapshot.fulfill()
81 | }
82 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
83 | switch result {
84 | case .completed:
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:13:48: error: cannot find type 'XCTAttachment' in scope
11 |
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts describing the failure.
13 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
14 |
15 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:153:11: error: cannot find 'XCTContext' in scope
151 | #if !os(Linux) && !os(Windows)
152 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
153 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
154 | attachments.forEach {
155 | activity.add($0)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:165:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
163 | Snapshot does not match reference.
164 |
165 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
166 | """
167 |
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:335:28: error: cannot find 'DispatchQueue' in scope
333 | // MARK: - Private
334 |
335 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
| `- error: cannot find 'DispatchQueue' in scope
336 | private var counterMap: [URL: Int] = [:]
337 |
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:347:40: error: cannot find 'DispatchQueue' in scope
345 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
346 | private static var registered = false
347 | private static var registerQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.testObserver")
| `- error: cannot find 'DispatchQueue' in scope
348 |
349 | static func registerIfNeeded() {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:208:26: error: cannot find 'XCTestExpectation' in scope
206 | try fileManager.createDirectory(at: snapshotDirectoryUrl, withIntermediateDirectories: true)
207 |
208 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
209 | var optionalDiffable: Format?
210 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:214:20: error: cannot find 'XCTWaiter' in scope
212 | tookSnapshot.fulfill()
213 | }
214 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
215 | switch result {
216 | case .completed:
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:241:11: error: cannot find 'XCTContext' in scope
239 | #if !os(Linux) && !os(Windows)
240 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
241 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
| `- error: cannot find 'XCTContext' in scope
242 | let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
243 | activity.add(attachment)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:242:30: error: cannot find 'XCTAttachment' in scope
240 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
241 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
242 | let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
| `- error: cannot find 'XCTAttachment' in scope
243 | activity.add(attachment)
244 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:292:11: error: cannot find 'XCTContext' in scope
290 | #if !os(Linux) && !os(Windows)
291 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
292 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
293 | attachments.forEach {
294 | activity.add($0)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:326:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
324 | \(diffMessage)
325 |
326 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
327 | """
328 | } catch {
[30/37] Compiling SnapshotTesting AssertSnapshot.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:76:26: error: cannot find 'XCTestExpectation' in scope
74 |
75 | do {
76 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
77 | var optionalDiffable: String?
78 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:82:20: error: cannot find 'XCTWaiter' in scope
80 | tookSnapshot.fulfill()
81 | }
82 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
83 | switch result {
84 | case .completed:
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:13:48: error: cannot find type 'XCTAttachment' in scope
11 |
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts describing the failure.
13 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
14 |
15 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:153:11: error: cannot find 'XCTContext' in scope
151 | #if !os(Linux) && !os(Windows)
152 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
153 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
154 | attachments.forEach {
155 | activity.add($0)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:165:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
163 | Snapshot does not match reference.
164 |
165 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
166 | """
167 |
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:335:28: error: cannot find 'DispatchQueue' in scope
333 | // MARK: - Private
334 |
335 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
| `- error: cannot find 'DispatchQueue' in scope
336 | private var counterMap: [URL: Int] = [:]
337 |
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:347:40: error: cannot find 'DispatchQueue' in scope
345 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
346 | private static var registered = false
347 | private static var registerQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.testObserver")
| `- error: cannot find 'DispatchQueue' in scope
348 |
349 | static func registerIfNeeded() {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:208:26: error: cannot find 'XCTestExpectation' in scope
206 | try fileManager.createDirectory(at: snapshotDirectoryUrl, withIntermediateDirectories: true)
207 |
208 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
209 | var optionalDiffable: Format?
210 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:214:20: error: cannot find 'XCTWaiter' in scope
212 | tookSnapshot.fulfill()
213 | }
214 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
215 | switch result {
216 | case .completed:
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:241:11: error: cannot find 'XCTContext' in scope
239 | #if !os(Linux) && !os(Windows)
240 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
241 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
| `- error: cannot find 'XCTContext' in scope
242 | let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
243 | activity.add(attachment)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:242:30: error: cannot find 'XCTAttachment' in scope
240 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
241 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
242 | let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
| `- error: cannot find 'XCTAttachment' in scope
243 | activity.add(attachment)
244 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:292:11: error: cannot find 'XCTContext' in scope
290 | #if !os(Linux) && !os(Windows)
291 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
292 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
293 | attachments.forEach {
294 | activity.add($0)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:326:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
324 | \(diffMessage)
325 |
326 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
327 | """
328 | } catch {
[31/37] Compiling SnapshotTesting Async.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:76:26: error: cannot find 'XCTestExpectation' in scope
74 |
75 | do {
76 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
77 | var optionalDiffable: String?
78 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:82:20: error: cannot find 'XCTWaiter' in scope
80 | tookSnapshot.fulfill()
81 | }
82 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
83 | switch result {
84 | case .completed:
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:13:48: error: cannot find type 'XCTAttachment' in scope
11 |
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts describing the failure.
13 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
14 |
15 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:153:11: error: cannot find 'XCTContext' in scope
151 | #if !os(Linux) && !os(Windows)
152 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
153 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
154 | attachments.forEach {
155 | activity.add($0)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:165:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
163 | Snapshot does not match reference.
164 |
165 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
166 | """
167 |
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:335:28: error: cannot find 'DispatchQueue' in scope
333 | // MARK: - Private
334 |
335 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
| `- error: cannot find 'DispatchQueue' in scope
336 | private var counterMap: [URL: Int] = [:]
337 |
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:347:40: error: cannot find 'DispatchQueue' in scope
345 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
346 | private static var registered = false
347 | private static var registerQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.testObserver")
| `- error: cannot find 'DispatchQueue' in scope
348 |
349 | static func registerIfNeeded() {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:208:26: error: cannot find 'XCTestExpectation' in scope
206 | try fileManager.createDirectory(at: snapshotDirectoryUrl, withIntermediateDirectories: true)
207 |
208 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
209 | var optionalDiffable: Format?
210 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:214:20: error: cannot find 'XCTWaiter' in scope
212 | tookSnapshot.fulfill()
213 | }
214 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
215 | switch result {
216 | case .completed:
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:241:11: error: cannot find 'XCTContext' in scope
239 | #if !os(Linux) && !os(Windows)
240 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
241 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
| `- error: cannot find 'XCTContext' in scope
242 | let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
243 | activity.add(attachment)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:242:30: error: cannot find 'XCTAttachment' in scope
240 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
241 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
242 | let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
| `- error: cannot find 'XCTAttachment' in scope
243 | activity.add(attachment)
244 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:292:11: error: cannot find 'XCTContext' in scope
290 | #if !os(Linux) && !os(Windows)
291 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
292 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
293 | attachments.forEach {
294 | activity.add($0)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:326:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
324 | \(diffMessage)
325 |
326 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
327 | """
328 | } catch {
[32/37] Compiling SnapshotTesting Internal.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:76:26: error: cannot find 'XCTestExpectation' in scope
74 |
75 | do {
76 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
77 | var optionalDiffable: String?
78 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:82:20: error: cannot find 'XCTWaiter' in scope
80 | tookSnapshot.fulfill()
81 | }
82 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
83 | switch result {
84 | case .completed:
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:13:48: error: cannot find type 'XCTAttachment' in scope
11 |
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts describing the failure.
13 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
14 |
15 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:153:11: error: cannot find 'XCTContext' in scope
151 | #if !os(Linux) && !os(Windows)
152 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
153 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
154 | attachments.forEach {
155 | activity.add($0)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:165:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
163 | Snapshot does not match reference.
164 |
165 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
166 | """
167 |
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:335:28: error: cannot find 'DispatchQueue' in scope
333 | // MARK: - Private
334 |
335 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
| `- error: cannot find 'DispatchQueue' in scope
336 | private var counterMap: [URL: Int] = [:]
337 |
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:347:40: error: cannot find 'DispatchQueue' in scope
345 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
346 | private static var registered = false
347 | private static var registerQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.testObserver")
| `- error: cannot find 'DispatchQueue' in scope
348 |
349 | static func registerIfNeeded() {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:208:26: error: cannot find 'XCTestExpectation' in scope
206 | try fileManager.createDirectory(at: snapshotDirectoryUrl, withIntermediateDirectories: true)
207 |
208 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
209 | var optionalDiffable: Format?
210 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:214:20: error: cannot find 'XCTWaiter' in scope
212 | tookSnapshot.fulfill()
213 | }
214 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
215 | switch result {
216 | case .completed:
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:241:11: error: cannot find 'XCTContext' in scope
239 | #if !os(Linux) && !os(Windows)
240 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
241 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
| `- error: cannot find 'XCTContext' in scope
242 | let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
243 | activity.add(attachment)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:242:30: error: cannot find 'XCTAttachment' in scope
240 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
241 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
242 | let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
| `- error: cannot find 'XCTAttachment' in scope
243 | activity.add(attachment)
244 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:292:11: error: cannot find 'XCTContext' in scope
290 | #if !os(Linux) && !os(Windows)
291 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
292 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
293 | attachments.forEach {
294 | activity.add($0)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:326:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
324 | \(diffMessage)
325 |
326 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
327 | """
328 | } catch {
[33/37] Compiling SnapshotTesting PlistEncoder.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:76:26: error: cannot find 'XCTestExpectation' in scope
74 |
75 | do {
76 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
77 | var optionalDiffable: String?
78 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:82:20: error: cannot find 'XCTWaiter' in scope
80 | tookSnapshot.fulfill()
81 | }
82 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
83 | switch result {
84 | case .completed:
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:13:48: error: cannot find type 'XCTAttachment' in scope
11 |
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts describing the failure.
13 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
14 |
15 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:153:11: error: cannot find 'XCTContext' in scope
151 | #if !os(Linux) && !os(Windows)
152 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
153 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
154 | attachments.forEach {
155 | activity.add($0)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:165:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
163 | Snapshot does not match reference.
164 |
165 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
166 | """
167 |
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:335:28: error: cannot find 'DispatchQueue' in scope
333 | // MARK: - Private
334 |
335 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
| `- error: cannot find 'DispatchQueue' in scope
336 | private var counterMap: [URL: Int] = [:]
337 |
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:347:40: error: cannot find 'DispatchQueue' in scope
345 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
346 | private static var registered = false
347 | private static var registerQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.testObserver")
| `- error: cannot find 'DispatchQueue' in scope
348 |
349 | static func registerIfNeeded() {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:208:26: error: cannot find 'XCTestExpectation' in scope
206 | try fileManager.createDirectory(at: snapshotDirectoryUrl, withIntermediateDirectories: true)
207 |
208 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
209 | var optionalDiffable: Format?
210 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:214:20: error: cannot find 'XCTWaiter' in scope
212 | tookSnapshot.fulfill()
213 | }
214 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
215 | switch result {
216 | case .completed:
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:241:11: error: cannot find 'XCTContext' in scope
239 | #if !os(Linux) && !os(Windows)
240 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
241 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
| `- error: cannot find 'XCTContext' in scope
242 | let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
243 | activity.add(attachment)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:242:30: error: cannot find 'XCTAttachment' in scope
240 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
241 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
242 | let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
| `- error: cannot find 'XCTAttachment' in scope
243 | activity.add(attachment)
244 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:292:11: error: cannot find 'XCTContext' in scope
290 | #if !os(Linux) && !os(Windows)
291 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
292 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
293 | attachments.forEach {
294 | activity.add($0)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:326:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
324 | \(diffMessage)
325 |
326 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
327 | """
328 | } catch {
[34/37] Compiling SnapshotTesting Any.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Any.swift:6:12: error: generic parameter 'Format' could not be inferred
4 | /// A snapshot strategy for comparing any structure based on a sanitized text dump.
5 | public static var dump: Snapshotting {
6 | return SimplySnapshotting.lines.pullback { snap($0) }
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
7 | }
8 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Any.swift:19:24: error: generic parameter 'Format' could not be inferred
17 | ]
18 |
19 | 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
20 | try! String(decoding: JSONSerialization.data(withJSONObject: data,
21 | options: options), as: UTF8.self)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
[35/37] Compiling SnapshotTesting CALayer.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Any.swift:6:12: error: generic parameter 'Format' could not be inferred
4 | /// A snapshot strategy for comparing any structure based on a sanitized text dump.
5 | public static var dump: Snapshotting {
6 | return SimplySnapshotting.lines.pullback { snap($0) }
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
7 | }
8 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Any.swift:19:24: error: generic parameter 'Format' could not be inferred
17 | ]
18 |
19 | 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
20 | try! String(decoding: JSONSerialization.data(withJSONObject: data,
21 | options: options), as: UTF8.self)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
[36/37] Compiling SnapshotTesting CGPath.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Any.swift:6:12: error: generic parameter 'Format' could not be inferred
4 | /// A snapshot strategy for comparing any structure based on a sanitized text dump.
5 | public static var dump: Snapshotting {
6 | return SimplySnapshotting.lines.pullback { snap($0) }
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
7 | }
8 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Any.swift:19:24: error: generic parameter 'Format' could not be inferred
17 | ]
18 |
19 | 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
20 | try! String(decoding: JSONSerialization.data(withJSONObject: data,
21 | options: options), as: UTF8.self)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
[37/37] Compiling SnapshotTesting CaseIterable.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Any.swift:6:12: error: generic parameter 'Format' could not be inferred
4 | /// A snapshot strategy for comparing any structure based on a sanitized text dump.
5 | public static var dump: Snapshotting {
6 | return SimplySnapshotting.lines.pullback { snap($0) }
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
7 | }
8 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Any.swift:19:24: error: generic parameter 'Format' could not be inferred
17 | ]
18 |
19 | 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
20 | try! String(decoding: JSONSerialization.data(withJSONObject: data,
21 | options: options), as: UTF8.self)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" 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:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/31] Compiling SnapshotTesting NSImage.swift
[3/31] Compiling SnapshotTesting NSView.swift
[4/31] Compiling SnapshotTesting NSViewController.swift
[5/31] Compiling SnapshotTesting SceneKit.swift
[6/31] Compiling SnapshotTesting Diffing.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:13:48: error: cannot find type 'XCTAttachment' in scope
11 |
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts describing the failure.
13 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
14 |
15 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Extensions/Wait.swift:18:29: error: cannot find 'XCTestExpectation' in scope
16 | asyncSnapshot: { value in
17 | Async { callback in
18 | let expectation = XCTestExpectation(description: "Wait")
| `- error: cannot find 'XCTestExpectation' in scope
19 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
20 | expectation.fulfill()
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Extensions/Wait.swift:19:11: error: cannot find 'DispatchQueue' in scope
17 | Async { callback in
18 | let expectation = XCTestExpectation(description: "Wait")
19 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
| `- error: cannot find 'DispatchQueue' in scope
20 | expectation.fulfill()
21 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Extensions/Wait.swift:22:15: error: cannot find 'XCTWaiter' in scope
20 | expectation.fulfill()
21 | }
22 | _ = XCTWaiter.wait(for: [expectation], timeout: duration + 1)
| `- error: cannot find 'XCTWaiter' in scope
23 | strategy.snapshot(value).run(callback)
24 | }
[7/31] Compiling SnapshotTesting Wait.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:13:48: error: cannot find type 'XCTAttachment' in scope
11 |
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts describing the failure.
13 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
14 |
15 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Extensions/Wait.swift:18:29: error: cannot find 'XCTestExpectation' in scope
16 | asyncSnapshot: { value in
17 | Async { callback in
18 | let expectation = XCTestExpectation(description: "Wait")
| `- error: cannot find 'XCTestExpectation' in scope
19 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
20 | expectation.fulfill()
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Extensions/Wait.swift:19:11: error: cannot find 'DispatchQueue' in scope
17 | Async { callback in
18 | let expectation = XCTestExpectation(description: "Wait")
19 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
| `- error: cannot find 'DispatchQueue' in scope
20 | expectation.fulfill()
21 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Extensions/Wait.swift:22:15: error: cannot find 'XCTWaiter' in scope
20 | expectation.fulfill()
21 | }
22 | _ = XCTWaiter.wait(for: [expectation], timeout: duration + 1)
| `- error: cannot find 'XCTWaiter' in scope
23 | strategy.snapshot(value).run(callback)
24 | }
[8/31] Compiling SnapshotTesting SnapshotTestCase.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:13:48: error: cannot find type 'XCTAttachment' in scope
11 |
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts describing the failure.
13 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
14 |
15 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Extensions/Wait.swift:18:29: error: cannot find 'XCTestExpectation' in scope
16 | asyncSnapshot: { value in
17 | Async { callback in
18 | let expectation = XCTestExpectation(description: "Wait")
| `- error: cannot find 'XCTestExpectation' in scope
19 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
20 | expectation.fulfill()
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Extensions/Wait.swift:19:11: error: cannot find 'DispatchQueue' in scope
17 | Async { callback in
18 | let expectation = XCTestExpectation(description: "Wait")
19 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
| `- error: cannot find 'DispatchQueue' in scope
20 | expectation.fulfill()
21 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Extensions/Wait.swift:22:15: error: cannot find 'XCTWaiter' in scope
20 | expectation.fulfill()
21 | }
22 | _ = XCTWaiter.wait(for: [expectation], timeout: duration + 1)
| `- error: cannot find 'XCTWaiter' in scope
23 | strategy.snapshot(value).run(callback)
24 | }
[9/31] Compiling SnapshotTesting Snapshotting.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:13:48: error: cannot find type 'XCTAttachment' in scope
11 |
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts describing the failure.
13 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
14 |
15 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Extensions/Wait.swift:18:29: error: cannot find 'XCTestExpectation' in scope
16 | asyncSnapshot: { value in
17 | Async { callback in
18 | let expectation = XCTestExpectation(description: "Wait")
| `- error: cannot find 'XCTestExpectation' in scope
19 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
20 | expectation.fulfill()
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Extensions/Wait.swift:19:11: error: cannot find 'DispatchQueue' in scope
17 | Async { callback in
18 | let expectation = XCTestExpectation(description: "Wait")
19 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
| `- error: cannot find 'DispatchQueue' in scope
20 | expectation.fulfill()
21 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Extensions/Wait.swift:22:15: error: cannot find 'XCTWaiter' in scope
20 | expectation.fulfill()
21 | }
22 | _ = XCTWaiter.wait(for: [expectation], timeout: duration + 1)
| `- error: cannot find 'XCTWaiter' in scope
23 | strategy.snapshot(value).run(callback)
24 | }
[10/35] Compiling SnapshotTesting Codable.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Codable.swift:16:24: error: generic parameter 'Format' could not be inferred
14 | /// - Parameter encoder: A JSON encoder.
15 | public static func json(_ encoder: JSONEncoder) -> Snapshotting {
16 | 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
17 | try! String(decoding: encoder.encode(encodable), as: UTF8.self)
18 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Codable.swift:34:24: error: generic parameter 'Format' could not be inferred
32 | /// - Parameter encoder: A property list encoder.
33 | public static func plist(_ encoder: PropertyListEncoder) -> Snapshotting {
34 | 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
35 | try! String(decoding: encoder.encode(encodable), as: UTF8.self)
36 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Data.swift:9:40: error: 'nil' requires a contextual type
7 | pathExtension: nil,
8 | diffing: .init(toData: { $0 }, fromData: { $0 }) { old, new in
9 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
10 | let message = old.count == new.count
11 | ? "Expected data to match"
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Description.swift:5:12: error: generic parameter 'Format' could not be inferred
3 | /// initializer.
4 | public static var description: Snapshotting {
5 | 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
6 | }
7 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Description.swift:5:53: error: generic parameter 'Subject' could not be inferred
3 | /// initializer.
4 | public static var description: Snapshotting {
5 | return SimplySnapshotting.lines.pullback(String.init(describing:))
| `- error: generic parameter 'Subject' could not be inferred
6 | }
7 | }
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 |
[11/35] Compiling SnapshotTesting Data.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Codable.swift:16:24: error: generic parameter 'Format' could not be inferred
14 | /// - Parameter encoder: A JSON encoder.
15 | public static func json(_ encoder: JSONEncoder) -> Snapshotting {
16 | 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
17 | try! String(decoding: encoder.encode(encodable), as: UTF8.self)
18 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Codable.swift:34:24: error: generic parameter 'Format' could not be inferred
32 | /// - Parameter encoder: A property list encoder.
33 | public static func plist(_ encoder: PropertyListEncoder) -> Snapshotting {
34 | 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
35 | try! String(decoding: encoder.encode(encodable), as: UTF8.self)
36 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Data.swift:9:40: error: 'nil' requires a contextual type
7 | pathExtension: nil,
8 | diffing: .init(toData: { $0 }, fromData: { $0 }) { old, new in
9 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
10 | let message = old.count == new.count
11 | ? "Expected data to match"
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Description.swift:5:12: error: generic parameter 'Format' could not be inferred
3 | /// initializer.
4 | public static var description: Snapshotting {
5 | 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
6 | }
7 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Description.swift:5:53: error: generic parameter 'Subject' could not be inferred
3 | /// initializer.
4 | public static var description: Snapshotting {
5 | return SimplySnapshotting.lines.pullback(String.init(describing:))
| `- error: generic parameter 'Subject' could not be inferred
6 | }
7 | }
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 |
[12/35] Compiling SnapshotTesting Description.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Codable.swift:16:24: error: generic parameter 'Format' could not be inferred
14 | /// - Parameter encoder: A JSON encoder.
15 | public static func json(_ encoder: JSONEncoder) -> Snapshotting {
16 | 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
17 | try! String(decoding: encoder.encode(encodable), as: UTF8.self)
18 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Codable.swift:34:24: error: generic parameter 'Format' could not be inferred
32 | /// - Parameter encoder: A property list encoder.
33 | public static func plist(_ encoder: PropertyListEncoder) -> Snapshotting {
34 | 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
35 | try! String(decoding: encoder.encode(encodable), as: UTF8.self)
36 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Data.swift:9:40: error: 'nil' requires a contextual type
7 | pathExtension: nil,
8 | diffing: .init(toData: { $0 }, fromData: { $0 }) { old, new in
9 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
10 | let message = old.count == new.count
11 | ? "Expected data to match"
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Description.swift:5:12: error: generic parameter 'Format' could not be inferred
3 | /// initializer.
4 | public static var description: Snapshotting {
5 | 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
6 | }
7 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Description.swift:5:53: error: generic parameter 'Subject' could not be inferred
3 | /// initializer.
4 | public static var description: Snapshotting {
5 | return SimplySnapshotting.lines.pullback(String.init(describing:))
| `- error: generic parameter 'Subject' could not be inferred
6 | }
7 | }
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 |
[13/35] Compiling SnapshotTesting NSBezierPath.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Codable.swift:16:24: error: generic parameter 'Format' could not be inferred
14 | /// - Parameter encoder: A JSON encoder.
15 | public static func json(_ encoder: JSONEncoder) -> Snapshotting {
16 | 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
17 | try! String(decoding: encoder.encode(encodable), as: UTF8.self)
18 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Codable.swift:34:24: error: generic parameter 'Format' could not be inferred
32 | /// - Parameter encoder: A property list encoder.
33 | public static func plist(_ encoder: PropertyListEncoder) -> Snapshotting {
34 | 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
35 | try! String(decoding: encoder.encode(encodable), as: UTF8.self)
36 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Data.swift:9:40: error: 'nil' requires a contextual type
7 | pathExtension: nil,
8 | diffing: .init(toData: { $0 }, fromData: { $0 }) { old, new in
9 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
10 | let message = old.count == new.count
11 | ? "Expected data to match"
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Description.swift:5:12: error: generic parameter 'Format' could not be inferred
3 | /// initializer.
4 | public static var description: Snapshotting {
5 | 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
6 | }
7 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Description.swift:5:53: error: generic parameter 'Subject' could not be inferred
3 | /// initializer.
4 | public static var description: Snapshotting {
5 | return SimplySnapshotting.lines.pullback(String.init(describing:))
| `- error: generic parameter 'Subject' could not be inferred
6 | }
7 | }
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 |
[14/35] Compiling SnapshotTesting UIImage.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:6:39: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension Snapshotting where Value == URLRequest, Format == String {
| `- error: cannot find type 'URLRequest' in scope
7 | /// A snapshot strategy for comparing requests based on raw equality.
8 | public static let raw = Snapshotting.raw(pretty: false)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:44:74: error: cannot find type 'URLRequest' in scope
42 |
43 | /// A snapshot strategy for comparing requests based on a cURL representation.
44 | public static let curl = SimplySnapshotting.lines.pullback { (request: URLRequest) in
| `- error: cannot find type 'URLRequest' in scope
45 |
46 | var components = ["curl"]
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:44:28: error: generic parameter 'Format' could not be inferred
42 |
43 | /// A snapshot strategy for comparing requests based on a cURL representation.
44 | public static let curl = SimplySnapshotting.lines.pullback { (request: URLRequest) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
45 |
46 | var components = ["curl"]
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
[15/35] Compiling SnapshotTesting UIView.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:6:39: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension Snapshotting where Value == URLRequest, Format == String {
| `- error: cannot find type 'URLRequest' in scope
7 | /// A snapshot strategy for comparing requests based on raw equality.
8 | public static let raw = Snapshotting.raw(pretty: false)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:44:74: error: cannot find type 'URLRequest' in scope
42 |
43 | /// A snapshot strategy for comparing requests based on a cURL representation.
44 | public static let curl = SimplySnapshotting.lines.pullback { (request: URLRequest) in
| `- error: cannot find type 'URLRequest' in scope
45 |
46 | var components = ["curl"]
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:44:28: error: generic parameter 'Format' could not be inferred
42 |
43 | /// A snapshot strategy for comparing requests based on a cURL representation.
44 | public static let curl = SimplySnapshotting.lines.pullback { (request: URLRequest) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
45 |
46 | var components = ["curl"]
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
[16/35] Compiling SnapshotTesting UIViewController.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:6:39: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension Snapshotting where Value == URLRequest, Format == String {
| `- error: cannot find type 'URLRequest' in scope
7 | /// A snapshot strategy for comparing requests based on raw equality.
8 | public static let raw = Snapshotting.raw(pretty: false)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:44:74: error: cannot find type 'URLRequest' in scope
42 |
43 | /// A snapshot strategy for comparing requests based on a cURL representation.
44 | public static let curl = SimplySnapshotting.lines.pullback { (request: URLRequest) in
| `- error: cannot find type 'URLRequest' in scope
45 |
46 | var components = ["curl"]
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:44:28: error: generic parameter 'Format' could not be inferred
42 |
43 | /// A snapshot strategy for comparing requests based on a cURL representation.
44 | public static let curl = SimplySnapshotting.lines.pullback { (request: URLRequest) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
45 |
46 | var components = ["curl"]
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
[17/35] Compiling SnapshotTesting URLRequest.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:6:39: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension Snapshotting where Value == URLRequest, Format == String {
| `- error: cannot find type 'URLRequest' in scope
7 | /// A snapshot strategy for comparing requests based on raw equality.
8 | public static let raw = Snapshotting.raw(pretty: false)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:44:74: error: cannot find type 'URLRequest' in scope
42 |
43 | /// A snapshot strategy for comparing requests based on a cURL representation.
44 | public static let curl = SimplySnapshotting.lines.pullback { (request: URLRequest) in
| `- error: cannot find type 'URLRequest' in scope
45 |
46 | var components = ["curl"]
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:44:28: error: generic parameter 'Format' could not be inferred
42 |
43 | /// A snapshot strategy for comparing requests based on a cURL representation.
44 | public static let curl = SimplySnapshotting.lines.pullback { (request: URLRequest) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
45 |
46 | var components = ["curl"]
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[18/35] Emitting module SnapshotTesting
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:335:28: error: cannot find 'DispatchQueue' in scope
333 | // MARK: - Private
334 |
335 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
| `- error: cannot find 'DispatchQueue' in scope
336 | private var counterMap: [URL: Int] = [:]
337 |
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:347:40: error: cannot find 'DispatchQueue' in scope
345 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
346 | private static var registered = false
347 | private static var registerQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.testObserver")
| `- error: cannot find 'DispatchQueue' in scope
348 |
349 | static func registerIfNeeded() {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:13:48: error: cannot find type 'XCTAttachment' in scope
11 |
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts describing the failure.
13 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
14 |
15 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:6:39: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension Snapshotting where Value == URLRequest, Format == String {
| `- error: cannot find type 'URLRequest' in scope
7 | /// A snapshot strategy for comparing requests based on raw equality.
8 | public static let raw = Snapshotting.raw(pretty: false)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:44:74: error: cannot find type 'URLRequest' in scope
42 |
43 | /// A snapshot strategy for comparing requests based on a cURL representation.
44 | public static let curl = SimplySnapshotting.lines.pullback { (request: URLRequest) in
| `- error: cannot find type 'URLRequest' in scope
45 |
46 | var components = ["curl"]
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:44:28: error: generic parameter 'Format' could not be inferred
42 |
43 | /// A snapshot strategy for comparing requests based on a cURL representation.
44 | public static let curl = SimplySnapshotting.lines.pullback { (request: URLRequest) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
45 |
46 | var components = ["curl"]
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
[19/35] Compiling SnapshotTesting String+SpecialCharacters.swift
[20/35] Compiling SnapshotTesting View.swift
[21/35] Compiling SnapshotTesting XCTAttachment.swift
[22/35] Compiling SnapshotTesting Diff.swift
[23/35] Compiling SnapshotTesting Any.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Any.swift:6:12: error: generic parameter 'Format' could not be inferred
4 | /// A snapshot strategy for comparing any structure based on a sanitized text dump.
5 | public static var dump: Snapshotting {
6 | return SimplySnapshotting.lines.pullback { snap($0) }
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
7 | }
8 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Any.swift:19:24: error: generic parameter 'Format' could not be inferred
17 | ]
18 |
19 | 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
20 | try! String(decoding: JSONSerialization.data(withJSONObject: data,
21 | options: options), as: UTF8.self)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
[24/35] Compiling SnapshotTesting CALayer.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Any.swift:6:12: error: generic parameter 'Format' could not be inferred
4 | /// A snapshot strategy for comparing any structure based on a sanitized text dump.
5 | public static var dump: Snapshotting {
6 | return SimplySnapshotting.lines.pullback { snap($0) }
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
7 | }
8 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Any.swift:19:24: error: generic parameter 'Format' could not be inferred
17 | ]
18 |
19 | 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
20 | try! String(decoding: JSONSerialization.data(withJSONObject: data,
21 | options: options), as: UTF8.self)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
[25/35] Compiling SnapshotTesting CGPath.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Any.swift:6:12: error: generic parameter 'Format' could not be inferred
4 | /// A snapshot strategy for comparing any structure based on a sanitized text dump.
5 | public static var dump: Snapshotting {
6 | return SimplySnapshotting.lines.pullback { snap($0) }
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
7 | }
8 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Any.swift:19:24: error: generic parameter 'Format' could not be inferred
17 | ]
18 |
19 | 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
20 | try! String(decoding: JSONSerialization.data(withJSONObject: data,
21 | options: options), as: UTF8.self)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
[26/35] Compiling SnapshotTesting CaseIterable.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Any.swift:6:12: error: generic parameter 'Format' could not be inferred
4 | /// A snapshot strategy for comparing any structure based on a sanitized text dump.
5 | public static var dump: Snapshotting {
6 | return SimplySnapshotting.lines.pullback { snap($0) }
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
7 | }
8 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/Any.swift:19:24: error: generic parameter 'Format' could not be inferred
17 | ]
18 |
19 | 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
20 | try! String(decoding: JSONSerialization.data(withJSONObject: data,
21 | options: options), as: UTF8.self)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting.swift:96:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
94 |
95 | /// A snapshot strategy where the type being snapshot is also a diffable type.
96 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
97 |
98 | extension Snapshotting where Value == Format {
[27/35] Compiling SnapshotTesting SpriteKit.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
[28/35] Compiling SnapshotTesting String.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
[29/35] Compiling SnapshotTesting SwiftUIView.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
[30/35] Compiling SnapshotTesting UIBezierPath.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/String.swift:23:22: error: cannot find 'XCTAttachment' in scope
21 | .flatMap { [$0.patchMark] + $0.lines }
22 | .joined(separator: "\n")
23 | let attachment = XCTAttachment(data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
| `- error: cannot find 'XCTAttachment' in scope
24 | return (failure, [attachment])
25 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:63: error: cannot find type 'XCTAttachment' in scope
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:28:11: error: @escaping attribute only applies to function types
26 | toData: @escaping (_ value: Value) -> Data,
27 | fromData: @escaping (_ data: Data) -> Value,
28 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: @escaping attribute only applies to function types
29 | ) {
30 | self.toData = toData
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/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(diff: SnapshotTesting.diff(
17 | old.split(separator: "\n", omittingEmptySubsequences: false).map(String.init),
[31/35] Compiling SnapshotTesting AssertInlineSnapshot.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:76:26: error: cannot find 'XCTestExpectation' in scope
74 |
75 | do {
76 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
77 | var optionalDiffable: String?
78 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:82:20: error: cannot find 'XCTWaiter' in scope
80 | tookSnapshot.fulfill()
81 | }
82 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
83 | switch result {
84 | case .completed:
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:13:48: error: cannot find type 'XCTAttachment' in scope
11 |
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts describing the failure.
13 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
14 |
15 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:153:11: error: cannot find 'XCTContext' in scope
151 | #if !os(Linux) && !os(Windows)
152 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
153 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
154 | attachments.forEach {
155 | activity.add($0)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:165:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
163 | Snapshot does not match reference.
164 |
165 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
166 | """
167 |
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:335:28: error: cannot find 'DispatchQueue' in scope
333 | // MARK: - Private
334 |
335 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
| `- error: cannot find 'DispatchQueue' in scope
336 | private var counterMap: [URL: Int] = [:]
337 |
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:347:40: error: cannot find 'DispatchQueue' in scope
345 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
346 | private static var registered = false
347 | private static var registerQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.testObserver")
| `- error: cannot find 'DispatchQueue' in scope
348 |
349 | static func registerIfNeeded() {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:208:26: error: cannot find 'XCTestExpectation' in scope
206 | try fileManager.createDirectory(at: snapshotDirectoryUrl, withIntermediateDirectories: true)
207 |
208 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
209 | var optionalDiffable: Format?
210 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:214:20: error: cannot find 'XCTWaiter' in scope
212 | tookSnapshot.fulfill()
213 | }
214 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
215 | switch result {
216 | case .completed:
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:241:11: error: cannot find 'XCTContext' in scope
239 | #if !os(Linux) && !os(Windows)
240 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
241 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
| `- error: cannot find 'XCTContext' in scope
242 | let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
243 | activity.add(attachment)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:242:30: error: cannot find 'XCTAttachment' in scope
240 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
241 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
242 | let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
| `- error: cannot find 'XCTAttachment' in scope
243 | activity.add(attachment)
244 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:292:11: error: cannot find 'XCTContext' in scope
290 | #if !os(Linux) && !os(Windows)
291 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
292 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
293 | attachments.forEach {
294 | activity.add($0)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:326:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
324 | \(diffMessage)
325 |
326 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
327 | """
328 | } catch {
[32/35] Compiling SnapshotTesting AssertSnapshot.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:76:26: error: cannot find 'XCTestExpectation' in scope
74 |
75 | do {
76 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
77 | var optionalDiffable: String?
78 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:82:20: error: cannot find 'XCTWaiter' in scope
80 | tookSnapshot.fulfill()
81 | }
82 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
83 | switch result {
84 | case .completed:
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:13:48: error: cannot find type 'XCTAttachment' in scope
11 |
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts describing the failure.
13 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
14 |
15 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:153:11: error: cannot find 'XCTContext' in scope
151 | #if !os(Linux) && !os(Windows)
152 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
153 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
154 | attachments.forEach {
155 | activity.add($0)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:165:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
163 | Snapshot does not match reference.
164 |
165 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
166 | """
167 |
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:335:28: error: cannot find 'DispatchQueue' in scope
333 | // MARK: - Private
334 |
335 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
| `- error: cannot find 'DispatchQueue' in scope
336 | private var counterMap: [URL: Int] = [:]
337 |
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:347:40: error: cannot find 'DispatchQueue' in scope
345 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
346 | private static var registered = false
347 | private static var registerQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.testObserver")
| `- error: cannot find 'DispatchQueue' in scope
348 |
349 | static func registerIfNeeded() {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:208:26: error: cannot find 'XCTestExpectation' in scope
206 | try fileManager.createDirectory(at: snapshotDirectoryUrl, withIntermediateDirectories: true)
207 |
208 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
209 | var optionalDiffable: Format?
210 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:214:20: error: cannot find 'XCTWaiter' in scope
212 | tookSnapshot.fulfill()
213 | }
214 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
215 | switch result {
216 | case .completed:
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:241:11: error: cannot find 'XCTContext' in scope
239 | #if !os(Linux) && !os(Windows)
240 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
241 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
| `- error: cannot find 'XCTContext' in scope
242 | let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
243 | activity.add(attachment)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:242:30: error: cannot find 'XCTAttachment' in scope
240 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
241 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
242 | let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
| `- error: cannot find 'XCTAttachment' in scope
243 | activity.add(attachment)
244 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:292:11: error: cannot find 'XCTContext' in scope
290 | #if !os(Linux) && !os(Windows)
291 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
292 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
293 | attachments.forEach {
294 | activity.add($0)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:326:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
324 | \(diffMessage)
325 |
326 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
327 | """
328 | } catch {
[33/35] Compiling SnapshotTesting Async.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:76:26: error: cannot find 'XCTestExpectation' in scope
74 |
75 | do {
76 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
77 | var optionalDiffable: String?
78 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:82:20: error: cannot find 'XCTWaiter' in scope
80 | tookSnapshot.fulfill()
81 | }
82 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
83 | switch result {
84 | case .completed:
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:13:48: error: cannot find type 'XCTAttachment' in scope
11 |
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts describing the failure.
13 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
14 |
15 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:153:11: error: cannot find 'XCTContext' in scope
151 | #if !os(Linux) && !os(Windows)
152 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
153 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
154 | attachments.forEach {
155 | activity.add($0)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:165:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
163 | Snapshot does not match reference.
164 |
165 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
166 | """
167 |
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:335:28: error: cannot find 'DispatchQueue' in scope
333 | // MARK: - Private
334 |
335 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
| `- error: cannot find 'DispatchQueue' in scope
336 | private var counterMap: [URL: Int] = [:]
337 |
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:347:40: error: cannot find 'DispatchQueue' in scope
345 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
346 | private static var registered = false
347 | private static var registerQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.testObserver")
| `- error: cannot find 'DispatchQueue' in scope
348 |
349 | static func registerIfNeeded() {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:208:26: error: cannot find 'XCTestExpectation' in scope
206 | try fileManager.createDirectory(at: snapshotDirectoryUrl, withIntermediateDirectories: true)
207 |
208 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
209 | var optionalDiffable: Format?
210 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:214:20: error: cannot find 'XCTWaiter' in scope
212 | tookSnapshot.fulfill()
213 | }
214 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
215 | switch result {
216 | case .completed:
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:241:11: error: cannot find 'XCTContext' in scope
239 | #if !os(Linux) && !os(Windows)
240 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
241 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
| `- error: cannot find 'XCTContext' in scope
242 | let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
243 | activity.add(attachment)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:242:30: error: cannot find 'XCTAttachment' in scope
240 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
241 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
242 | let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
| `- error: cannot find 'XCTAttachment' in scope
243 | activity.add(attachment)
244 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:292:11: error: cannot find 'XCTContext' in scope
290 | #if !os(Linux) && !os(Windows)
291 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
292 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
293 | attachments.forEach {
294 | activity.add($0)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:326:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
324 | \(diffMessage)
325 |
326 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
327 | """
328 | } catch {
[34/35] Compiling SnapshotTesting Internal.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:76:26: error: cannot find 'XCTestExpectation' in scope
74 |
75 | do {
76 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
77 | var optionalDiffable: String?
78 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:82:20: error: cannot find 'XCTWaiter' in scope
80 | tookSnapshot.fulfill()
81 | }
82 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
83 | switch result {
84 | case .completed:
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:13:48: error: cannot find type 'XCTAttachment' in scope
11 |
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts describing the failure.
13 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
14 |
15 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:153:11: error: cannot find 'XCTContext' in scope
151 | #if !os(Linux) && !os(Windows)
152 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
153 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
154 | attachments.forEach {
155 | activity.add($0)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:165:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
163 | Snapshot does not match reference.
164 |
165 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
166 | """
167 |
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:335:28: error: cannot find 'DispatchQueue' in scope
333 | // MARK: - Private
334 |
335 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
| `- error: cannot find 'DispatchQueue' in scope
336 | private var counterMap: [URL: Int] = [:]
337 |
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:347:40: error: cannot find 'DispatchQueue' in scope
345 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
346 | private static var registered = false
347 | private static var registerQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.testObserver")
| `- error: cannot find 'DispatchQueue' in scope
348 |
349 | static func registerIfNeeded() {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:208:26: error: cannot find 'XCTestExpectation' in scope
206 | try fileManager.createDirectory(at: snapshotDirectoryUrl, withIntermediateDirectories: true)
207 |
208 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
209 | var optionalDiffable: Format?
210 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:214:20: error: cannot find 'XCTWaiter' in scope
212 | tookSnapshot.fulfill()
213 | }
214 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
215 | switch result {
216 | case .completed:
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:241:11: error: cannot find 'XCTContext' in scope
239 | #if !os(Linux) && !os(Windows)
240 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
241 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
| `- error: cannot find 'XCTContext' in scope
242 | let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
243 | activity.add(attachment)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:242:30: error: cannot find 'XCTAttachment' in scope
240 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
241 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
242 | let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
| `- error: cannot find 'XCTAttachment' in scope
243 | activity.add(attachment)
244 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:292:11: error: cannot find 'XCTContext' in scope
290 | #if !os(Linux) && !os(Windows)
291 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
292 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
293 | attachments.forEach {
294 | activity.add($0)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:326:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
324 | \(diffMessage)
325 |
326 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
327 | """
328 | } catch {
[35/35] Compiling SnapshotTesting PlistEncoder.swift
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:76:26: error: cannot find 'XCTestExpectation' in scope
74 |
75 | do {
76 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
77 | var optionalDiffable: String?
78 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:82:20: error: cannot find 'XCTWaiter' in scope
80 | tookSnapshot.fulfill()
81 | }
82 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
83 | switch result {
84 | case .completed:
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Diffing.swift:13:48: error: cannot find type 'XCTAttachment' in scope
11 |
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts describing the failure.
13 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
14 |
15 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:153:11: error: cannot find 'XCTContext' in scope
151 | #if !os(Linux) && !os(Windows)
152 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
153 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
154 | attachments.forEach {
155 | activity.add($0)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertInlineSnapshot.swift:165:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
163 | Snapshot does not match reference.
164 |
165 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
166 | """
167 |
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:335:28: error: cannot find 'DispatchQueue' in scope
333 | // MARK: - Private
334 |
335 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
| `- error: cannot find 'DispatchQueue' in scope
336 | private var counterMap: [URL: Int] = [:]
337 |
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:347:40: error: cannot find 'DispatchQueue' in scope
345 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
346 | private static var registered = false
347 | private static var registerQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.testObserver")
| `- error: cannot find 'DispatchQueue' in scope
348 |
349 | static func registerIfNeeded() {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:208:26: error: cannot find 'XCTestExpectation' in scope
206 | try fileManager.createDirectory(at: snapshotDirectoryUrl, withIntermediateDirectories: true)
207 |
208 | let tookSnapshot = XCTestExpectation(description: "Took snapshot")
| `- error: cannot find 'XCTestExpectation' in scope
209 | var optionalDiffable: Format?
210 | snapshotting.snapshot(try value()).run { b in
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:214:20: error: cannot find 'XCTWaiter' in scope
212 | tookSnapshot.fulfill()
213 | }
214 | let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
| `- error: cannot find 'XCTWaiter' in scope
215 | switch result {
216 | case .completed:
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:241:11: error: cannot find 'XCTContext' in scope
239 | #if !os(Linux) && !os(Windows)
240 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
241 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
| `- error: cannot find 'XCTContext' in scope
242 | let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
243 | activity.add(attachment)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:242:30: error: cannot find 'XCTAttachment' in scope
240 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
241 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
242 | let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
| `- error: cannot find 'XCTAttachment' in scope
243 | activity.add(attachment)
244 | }
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:292:11: error: cannot find 'XCTContext' in scope
290 | #if !os(Linux) && !os(Windows)
291 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
292 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
293 | attachments.forEach {
294 | activity.add($0)
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:326:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
324 | \(diffMessage)
325 |
326 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
327 | """
328 | } catch {
BUILD FAILURE 6.1 wasm