Build Information
Failed to build StreamSwiftTestHelpers, reference main (b7a09e
), with Swift 6.1 for Android on 28 May 2025 23:33:07 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
Build Log
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/pointfreeco/swift-snapshot-testing
[1/13189] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (3.17s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.11.1 (4.30s)
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.11.1
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/33] Emitting module SnapshotTesting
/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: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 {
[5/37] 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 |
[6/37] 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 |
[7/37] 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 |
[8/37] 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 |
[9/37] Compiling SnapshotTesting NSImage.swift
[10/37] Compiling SnapshotTesting NSView.swift
[11/37] Compiling SnapshotTesting NSViewController.swift
[12/37] Compiling SnapshotTesting SceneKit.swift
[13/37] 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),
[14/37] 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),
[15/37] 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),
[16/37] 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),
[17/37] Compiling SnapshotTesting UIImage.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/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 {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:14:12: error: generic parameter 'Format' could not be inferred
12 | /// - Parameter pretty: Attempts to pretty print the body of the request (supports JSON).
13 | public static func raw(pretty: Bool) -> Snapshotting {
14 | return SimplySnapshotting.lines.pullback { (request: URLRequest) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
15 | let method = "\(request.httpMethod ?? "GET") \(request.url?.sortingQueryItems()?.absoluteString ?? "(null)")"
16 |
/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/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: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 {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:14:12: error: generic parameter 'Format' could not be inferred
12 | /// - Parameter pretty: Attempts to pretty print the body of the request (supports JSON).
13 | public static func raw(pretty: Bool) -> Snapshotting {
14 | return SimplySnapshotting.lines.pullback { (request: URLRequest) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
15 | let method = "\(request.httpMethod ?? "GET") \(request.url?.sortingQueryItems()?.absoluteString ?? "(null)")"
16 |
/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/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: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 {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:14:12: error: generic parameter 'Format' could not be inferred
12 | /// - Parameter pretty: Attempts to pretty print the body of the request (supports JSON).
13 | public static func raw(pretty: Bool) -> Snapshotting {
14 | return SimplySnapshotting.lines.pullback { (request: URLRequest) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
15 | let method = "\(request.httpMethod ?? "GET") \(request.url?.sortingQueryItems()?.absoluteString ?? "(null)")"
16 |
/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/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: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 {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:14:12: error: generic parameter 'Format' could not be inferred
12 | /// - Parameter pretty: Attempts to pretty print the body of the request (supports JSON).
13 | public static func raw(pretty: Bool) -> Snapshotting {
14 | return SimplySnapshotting.lines.pullback { (request: URLRequest) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
15 | let method = "\(request.httpMethod ?? "GET") \(request.url?.sortingQueryItems()?.absoluteString ?? "(null)")"
16 |
/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 String+SpecialCharacters.swift
[22/37] Compiling SnapshotTesting View.swift
[23/37] Compiling SnapshotTesting XCTAttachment.swift
[24/37] Compiling SnapshotTesting Diff.swift
[25/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
[26/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
[27/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
[28/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
[29/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 {
[30/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 {
[31/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 {
[32/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 {
[33/37] Compiling SnapshotTesting AssertInlineSnapshot.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/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: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 AssertSnapshot.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/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: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/37] Compiling SnapshotTesting Async.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/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: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 {
[36/37] Compiling SnapshotTesting Internal.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/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: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 {
[37/37] Compiling SnapshotTesting PlistEncoder.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/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: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 {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/31] Emitting module SnapshotTesting
/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: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 {
[3/31] Compiling SnapshotTesting String+SpecialCharacters.swift
[4/31] Compiling SnapshotTesting View.swift
[5/31] Compiling SnapshotTesting XCTAttachment.swift
[6/31] Compiling SnapshotTesting Diff.swift
[7/31] 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),
[8/31] 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),
[9/31] 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),
[10/31] 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),
[11/35] Compiling SnapshotTesting NSImage.swift
[12/35] Compiling SnapshotTesting NSView.swift
[13/35] Compiling SnapshotTesting NSViewController.swift
[14/35] Compiling SnapshotTesting SceneKit.swift
[15/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 {
[16/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 {
[17/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 {
[18/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 {
[19/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 |
[20/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 |
[21/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 |
[22/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 |
[23/35] 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
[24/35] 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
[25/35] 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
[26/35] 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
[27/35] Compiling SnapshotTesting UIImage.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/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 {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:14:12: error: generic parameter 'Format' could not be inferred
12 | /// - Parameter pretty: Attempts to pretty print the body of the request (supports JSON).
13 | public static func raw(pretty: Bool) -> Snapshotting {
14 | return SimplySnapshotting.lines.pullback { (request: URLRequest) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
15 | let method = "\(request.httpMethod ?? "GET") \(request.url?.sortingQueryItems()?.absoluteString ?? "(null)")"
16 |
/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 {
[28/35] Compiling SnapshotTesting UIView.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/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 {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:14:12: error: generic parameter 'Format' could not be inferred
12 | /// - Parameter pretty: Attempts to pretty print the body of the request (supports JSON).
13 | public static func raw(pretty: Bool) -> Snapshotting {
14 | return SimplySnapshotting.lines.pullback { (request: URLRequest) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
15 | let method = "\(request.httpMethod ?? "GET") \(request.url?.sortingQueryItems()?.absoluteString ?? "(null)")"
16 |
/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 {
[29/35] Compiling SnapshotTesting UIViewController.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/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 {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:14:12: error: generic parameter 'Format' could not be inferred
12 | /// - Parameter pretty: Attempts to pretty print the body of the request (supports JSON).
13 | public static func raw(pretty: Bool) -> Snapshotting {
14 | return SimplySnapshotting.lines.pullback { (request: URLRequest) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
15 | let method = "\(request.httpMethod ?? "GET") \(request.url?.sortingQueryItems()?.absoluteString ?? "(null)")"
16 |
/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 {
[30/35] Compiling SnapshotTesting URLRequest.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/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 {
/host/spi-builder-workspace/.build/checkouts/swift-snapshot-testing/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:14:12: error: generic parameter 'Format' could not be inferred
12 | /// - Parameter pretty: Attempts to pretty print the body of the request (supports JSON).
13 | public static func raw(pretty: Bool) -> Snapshotting {
14 | return SimplySnapshotting.lines.pullback { (request: URLRequest) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
15 | let method = "\(request.httpMethod ?? "GET") \(request.url?.sortingQueryItems()?.absoluteString ?? "(null)")"
16 |
/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 {
[31/35] Compiling SnapshotTesting AssertInlineSnapshot.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/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: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/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: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/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: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/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: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/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: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 android