Build Information
Failed to build StreamSwiftTestHelpers, reference 0.4.1 (b7a09e
), with Swift 6.2 (beta) for Android on 20 Jun 2025 18:27:48 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/GetStream/stream-chat-swift-test-helpers.git
Reference: 0.4.1
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/GetStream/stream-chat-swift-test-helpers
* tag 0.4.1 -> FETCH_HEAD
HEAD is now at b7a09e5 Remove Difference
Cloned https://github.com/GetStream/stream-chat-swift-test-helpers.git
Revision (git rev-parse @):
b7a09e53a6647df94c02a67770ec876faa707f9d
SUCCESS checkout https://github.com/GetStream/stream-chat-swift-test-helpers.git at 0.4.1
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/GetStream/stream-chat-swift-test-helpers.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/pointfreeco/swift-snapshot-testing
[1/13227] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (1.67s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.11.1 (2.13s)
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-8C5A4AE7A8CE2BA.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/33] Compiling SnapshotTesting String+SpecialCharacters.swift
[5/33] Compiling SnapshotTesting View.swift
[6/33] Compiling SnapshotTesting XCTAttachment.swift
[7/33] Compiling SnapshotTesting Diff.swift
[8/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 {
[9/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),
[10/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),
[11/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),
[12/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),
[13/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 {
[14/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 {
[15/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 {
[16/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 {
[17/37] Compiling SnapshotTesting NSImage.swift
[18/37] Compiling SnapshotTesting NSView.swift
[19/37] Compiling SnapshotTesting NSViewController.swift
[20/37] Compiling SnapshotTesting SceneKit.swift
[21/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 {
[22/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 {
[23/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 {
[24/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 {
[25/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 {
[26/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 {
[27/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 {
[28/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 {
[29/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 {
[30/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 |
[31/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 |
[32/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 |
[33/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 |
[34/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
[35/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
[36/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
[37/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
BUILD FAILURE 6.2 android