Build Information
Failed to build swift-snapshot-testing, reference 1.17.5 (7b0bbb), with Swift 6.3 for Android on 10 Apr 2026 13:14:34 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tdrhq/swift-snapshot-testing.git
Reference: 1.17.5
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/tdrhq/swift-snapshot-testing
* tag 1.17.5 -> FETCH_HEAD
HEAD is now at 7b0bbba Add an NB to @_implementationOnly import.
Cloned https://github.com/tdrhq/swift-snapshot-testing.git
Revision (git rev-parse @):
7b0bbbae90c41f848f90ac7b4df6c4f50068256d
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/tdrhq/swift-snapshot-testing.git at 1.17.5
========================================
Build
========================================
Selected platform: android
Swift version: 6.3
Building package at path: $PWD
https://github.com/tdrhq/swift-snapshot-testing.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
Fetching https://github.com/swiftlang/swift-syntax
[1/74937] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (6.25s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (6.89s)
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 600.0.1
Building for debugging...
[0/13] Write sources
[11/13] Compiling _SwiftSyntaxCShims dummy.c
[12/13] Write swift-version--4F562202D5529B1.txt
[14/50] Emitting module SwiftSyntax510
[15/50] Compiling SwiftSyntax510 Empty.swift
[17/51] Emitting module SwiftSyntax509
[18/51] Compiling SwiftSyntax509 Empty.swift
[19/52] Emitting module SwiftSyntax600
[20/52] Compiling SwiftSyntax600 Empty.swift
[23/117] Compiling SwiftSyntax RawSyntaxNodesC.swift
[24/117] Compiling SwiftSyntax SyntaxNodeFactory.swift
[25/117] Compiling SwiftSyntax SyntaxNodeStructure.swift
[26/117] Compiling SwiftSyntax SyntaxProtocol.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[27/121] Emitting module SnapshotTesting
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/RecordIssue.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:4:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
2 | // NB: We are importing only the implementation of Testing because that framework is not available
3 | // in Xcode UI test targets.
4 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
5 |
6 | @_spi(Experimental)
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: '@escaping' only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: '@escaping' only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:7:13: warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
5 |
6 | @_spi(Experimental)
7 | extension Trait where Self == _SnapshotsTestTrait {
| `- warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
8 | /// Configure snapshot testing in a suite or test.
9 | ///
Testing.Trait:1:17: note: protocol declared here
1 | public protocol Trait : Sendable {
| `- note: protocol declared here
2 | func prepare(for test: Test) async throws
3 | var comments: [Comment] { get }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:38: warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.SuiteTrait:1:17: note: protocol declared here
1 | public protocol SuiteTrait : Trait {
| `- note: protocol declared here
2 | var isRecursive: Bool { get }
3 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:50: warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.TestTrait:1:17: note: protocol declared here
1 | public protocol TestTrait : Trait {
| `- note: protocol declared here
2 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:17: error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| |- error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
| `- note: in associated type 'Self.TestScopeProvider' (inferred as 'Never')
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:168:5: warning: non-'@objc' property declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
166 | }
167 | #else
168 | open var snapshotDescription: String {
| `- warning: non-'@objc' property declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
169 | return purgePointers(self.debugDescription)
170 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:78:30: error: generic parameter 'Format' could not be inferred
76 | // "https://www.pointfree.co/subscribe"
77 | // ```
78 | 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
79 |
80 | var components = ["curl"]
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
[#ImplementationOnlyDeprecated]: <https://docs.swift.org/compiler/documentation/diagnostics/implementation-only-deprecated>
[28/121] Compiling SwiftSyntax AbsolutePosition.swift
[29/121] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[30/121] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[31/121] Compiling SwiftSyntax Assert.swift
[32/121] Compiling SwiftSyntax BumpPtrAllocator.swift
[33/121] Compiling SwiftSyntax CommonAncestor.swift
[34/121] Compiling SwiftSyntax Convenience.swift
[35/121] Compiling SwiftSyntax CustomTraits.swift
[36/121] Compiling SwiftSyntax Identifier.swift
[37/121] Compiling SwiftSyntax MemoryLayout.swift
[38/121] Compiling SwiftSyntax MissingNodeInitializers.swift
[39/121] Compiling SwiftSyntax RawSyntax.swift
[40/121] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[41/121] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[42/121] Compiling SwiftSyntax RawSyntaxTokenView.swift
[43/121] Compiling SwiftSyntax SourceEdit.swift
[44/121] Compiling SwiftSyntax SourceLength.swift
[45/121] Compiling SwiftSyntax SourceLocation.swift
[46/121] Compiling SwiftSyntax TokenKind.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: '@escaping' only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: '@escaping' only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
[47/121] Compiling SwiftSyntax Tokens.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: '@escaping' only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: '@escaping' only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
[48/121] Compiling SwiftSyntax TriviaPieces.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: '@escaping' only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: '@escaping' only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
[49/121] Compiling SwiftSyntax RawSyntaxNodesAB.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: '@escaping' only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: '@escaping' only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
[50/121] Compiling SwiftSyntax SyntaxKind.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: '@escaping' only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: '@escaping' only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Data.swift:10:40: error: 'nil' requires a contextual type
8 | pathExtension: nil,
9 | diffing: .init(toData: { $0 }, fromData: { $0 }) { old, new in
10 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
11 | let message =
12 | old.count == new.count
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Encodable.swift:30:24: error: generic parameter 'Format' could not be inferred
28 | /// - Parameter encoder: A JSON encoder.
29 | public static func json(_ encoder: JSONEncoder) -> Snapshotting {
30 | var snapshotting = SimplySnapshotting.lines.pullback { (encodable: Value) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
31 | try! String(decoding: encoder.encode(encodable), as: UTF8.self)
32 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Encodable.swift:72:24: error: generic parameter 'Format' could not be inferred
70 | /// - Parameter encoder: A property list encoder.
71 | public static func plist(_ encoder: PropertyListEncoder) -> Snapshotting {
72 | var snapshotting = SimplySnapshotting.lines.pullback { (encodable: Value) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
73 | try! String(decoding: encoder.encode(encodable), as: UTF8.self)
74 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
[51/121] Compiling SwiftSyntax SyntaxRewriter.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: '@escaping' only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: '@escaping' only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Data.swift:10:40: error: 'nil' requires a contextual type
8 | pathExtension: nil,
9 | diffing: .init(toData: { $0 }, fromData: { $0 }) { old, new in
10 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
11 | let message =
12 | old.count == new.count
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Encodable.swift:30:24: error: generic parameter 'Format' could not be inferred
28 | /// - Parameter encoder: A JSON encoder.
29 | public static func json(_ encoder: JSONEncoder) -> Snapshotting {
30 | var snapshotting = SimplySnapshotting.lines.pullback { (encodable: Value) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
31 | try! String(decoding: encoder.encode(encodable), as: UTF8.self)
32 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Encodable.swift:72:24: error: generic parameter 'Format' could not be inferred
70 | /// - Parameter encoder: A property list encoder.
71 | public static func plist(_ encoder: PropertyListEncoder) -> Snapshotting {
72 | var snapshotting = SimplySnapshotting.lines.pullback { (encodable: Value) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
73 | try! String(decoding: encoder.encode(encodable), as: UTF8.self)
74 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
[52/121] Compiling SwiftSyntax SyntaxTraits.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: '@escaping' only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: '@escaping' only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Data.swift:10:40: error: 'nil' requires a contextual type
8 | pathExtension: nil,
9 | diffing: .init(toData: { $0 }, fromData: { $0 }) { old, new in
10 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
11 | let message =
12 | old.count == new.count
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Encodable.swift:30:24: error: generic parameter 'Format' could not be inferred
28 | /// - Parameter encoder: A JSON encoder.
29 | public static func json(_ encoder: JSONEncoder) -> Snapshotting {
30 | var snapshotting = SimplySnapshotting.lines.pullback { (encodable: Value) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
31 | try! String(decoding: encoder.encode(encodable), as: UTF8.self)
32 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Encodable.swift:72:24: error: generic parameter 'Format' could not be inferred
70 | /// - Parameter encoder: A property list encoder.
71 | public static func plist(_ encoder: PropertyListEncoder) -> Snapshotting {
72 | var snapshotting = SimplySnapshotting.lines.pullback { (encodable: Value) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
73 | try! String(decoding: encoder.encode(encodable), as: UTF8.self)
74 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
[53/121] Compiling SwiftSyntax SyntaxVisitor.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: '@escaping' only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: '@escaping' only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Data.swift:10:40: error: 'nil' requires a contextual type
8 | pathExtension: nil,
9 | diffing: .init(toData: { $0 }, fromData: { $0 }) { old, new in
10 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
11 | let message =
12 | old.count == new.count
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Encodable.swift:30:24: error: generic parameter 'Format' could not be inferred
28 | /// - Parameter encoder: A JSON encoder.
29 | public static func json(_ encoder: JSONEncoder) -> Snapshotting {
30 | var snapshotting = SimplySnapshotting.lines.pullback { (encodable: Value) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
31 | try! String(decoding: encoder.encode(encodable), as: UTF8.self)
32 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Encodable.swift:72:24: error: generic parameter 'Format' could not be inferred
70 | /// - Parameter encoder: A property list encoder.
71 | public static func plist(_ encoder: PropertyListEncoder) -> Snapshotting {
72 | var snapshotting = SimplySnapshotting.lines.pullback { (encodable: Value) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
73 | try! String(decoding: encoder.encode(encodable), as: UTF8.self)
74 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
[57/121] Compiling SnapshotTesting UIImage.swift
[58/121] Compiling SnapshotTesting UIView.swift
[59/121] Compiling SnapshotTesting UIViewController.swift
[60/121] Compiling SnapshotTesting URLRequest.swift
[61/121] Compiling SwiftSyntax TokenSyntax.swift
[62/121] Compiling SwiftSyntax Trivia.swift
[63/121] Compiling SwiftSyntax SourcePresence.swift
[64/121] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[65/121] Compiling SwiftSyntax Syntax.swift
[66/121] Compiling SwiftSyntax SyntaxArena.swift
[67/121] Compiling SwiftSyntax SyntaxArenaAllocatedBuffer.swift
[68/121] Compiling SwiftSyntax SyntaxChildren.swift
[69/121] Compiling SwiftSyntax SyntaxCollection.swift
[70/121] Compiling SwiftSyntax SyntaxHashable.swift
[71/121] Compiling SwiftSyntax SyntaxIdentifier.swift
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: '@escaping' only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: '@escaping' only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:78:30: error: generic parameter 'Format' could not be inferred
76 | // "https://www.pointfree.co/subscribe"
77 | // ```
78 | 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
79 |
80 | var components = ["curl"]
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:29:14: error: generic parameter 'Format' could not be inferred
27 | /// - Parameter pretty: Attempts to pretty print the body of the request (supports JSON).
28 | public static func raw(pretty: Bool) -> Snapshotting {
29 | 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
30 | let method =
31 | "\(request.httpMethod ?? "GET") \(request.url?.sortingQueryItems()?.absoluteString ?? "(null)")"
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: '@escaping' only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: '@escaping' only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:78:30: error: generic parameter 'Format' could not be inferred
76 | // "https://www.pointfree.co/subscribe"
77 | // ```
78 | 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
79 |
80 | var components = ["curl"]
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:29:14: error: generic parameter 'Format' could not be inferred
27 | /// - Parameter pretty: Attempts to pretty print the body of the request (supports JSON).
28 | public static func raw(pretty: Bool) -> Snapshotting {
29 | 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
30 | let method =
31 | "\(request.httpMethod ?? "GET") \(request.url?.sortingQueryItems()?.absoluteString ?? "(null)")"
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: '@escaping' only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: '@escaping' only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:78:30: error: generic parameter 'Format' could not be inferred
76 | // "https://www.pointfree.co/subscribe"
77 | // ```
78 | 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
79 |
80 | var components = ["curl"]
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:29:14: error: generic parameter 'Format' could not be inferred
27 | /// - Parameter pretty: Attempts to pretty print the body of the request (supports JSON).
28 | public static func raw(pretty: Bool) -> Snapshotting {
29 | 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
30 | let method =
31 | "\(request.httpMethod ?? "GET") \(request.url?.sortingQueryItems()?.absoluteString ?? "(null)")"
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: '@escaping' only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: '@escaping' only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:78:30: error: generic parameter 'Format' could not be inferred
76 | // "https://www.pointfree.co/subscribe"
77 | // ```
78 | 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
79 |
80 | var components = ["curl"]
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:29:14: error: generic parameter 'Format' could not be inferred
27 | /// - Parameter pretty: Attempts to pretty print the body of the request (supports JSON).
28 | public static func raw(pretty: Bool) -> Snapshotting {
29 | 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
30 | let method =
31 | "\(request.httpMethod ?? "GET") \(request.url?.sortingQueryItems()?.absoluteString ?? "(null)")"
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:168:5: warning: non-'@objc' property declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
166 | }
167 | #else
168 | open var snapshotDescription: String {
| `- warning: non-'@objc' property declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
169 | return purgePointers(self.debugDescription)
170 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: '@escaping' only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: '@escaping' only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:17:12: error: generic parameter 'Format' could not be inferred
15 | /// ```
16 | public static var description: Snapshotting {
17 | return SimplySnapshotting.lines.pullback(String.init(describing:))
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
18 | }
19 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:17:53: error: generic parameter 'Subject' could not be inferred
15 | /// ```
16 | public static var description: Snapshotting {
17 | return SimplySnapshotting.lines.pullback(String.init(describing:))
| `- error: generic parameter 'Subject' could not be inferred
18 | }
19 | }
Swift.String.init:2:19: note: in call to initializer
1 | struct String {
2 | @inlinable public init<Subject>(describing instance: Subject) where Subject : CustomStringConvertible, Subject : TextOutputStreamable}
| `- note: in call to initializer
3 |
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:45:12: error: generic parameter 'Format' could not be inferred
43 | /// ```
44 | public static var dump: Snapshotting {
45 | return SimplySnapshotting.lines.pullback { snap($0) }
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
46 | }
47 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:58:24: error: generic parameter 'Format' could not be inferred
56 | ]
57 |
58 | var snapshotting = SimplySnapshotting.lines.pullback { (data: Value) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
59 | try! String(
60 | decoding: JSONSerialization.data(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:168:5: warning: non-'@objc' property declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
166 | }
167 | #else
168 | open var snapshotDescription: String {
| `- warning: non-'@objc' property declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
169 | return purgePointers(self.debugDescription)
170 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: '@escaping' only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: '@escaping' only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:17:12: error: generic parameter 'Format' could not be inferred
15 | /// ```
16 | public static var description: Snapshotting {
17 | return SimplySnapshotting.lines.pullback(String.init(describing:))
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
18 | }
19 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:17:53: error: generic parameter 'Subject' could not be inferred
15 | /// ```
16 | public static var description: Snapshotting {
17 | return SimplySnapshotting.lines.pullback(String.init(describing:))
| `- error: generic parameter 'Subject' could not be inferred
18 | }
19 | }
Swift.String.init:2:19: note: in call to initializer
1 | struct String {
2 | @inlinable public init<Subject>(describing instance: Subject) where Subject : CustomStringConvertible, Subject : TextOutputStreamable}
| `- note: in call to initializer
3 |
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:45:12: error: generic parameter 'Format' could not be inferred
43 | /// ```
44 | public static var dump: Snapshotting {
45 | return SimplySnapshotting.lines.pullback { snap($0) }
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
46 | }
47 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:58:24: error: generic parameter 'Format' could not be inferred
56 | ]
57 |
58 | var snapshotting = SimplySnapshotting.lines.pullback { (data: Value) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
59 | try! String(
60 | decoding: JSONSerialization.data(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:168:5: warning: non-'@objc' property declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
166 | }
167 | #else
168 | open var snapshotDescription: String {
| `- warning: non-'@objc' property declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
169 | return purgePointers(self.debugDescription)
170 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: '@escaping' only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: '@escaping' only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:17:12: error: generic parameter 'Format' could not be inferred
15 | /// ```
16 | public static var description: Snapshotting {
17 | return SimplySnapshotting.lines.pullback(String.init(describing:))
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
18 | }
19 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:17:53: error: generic parameter 'Subject' could not be inferred
15 | /// ```
16 | public static var description: Snapshotting {
17 | return SimplySnapshotting.lines.pullback(String.init(describing:))
| `- error: generic parameter 'Subject' could not be inferred
18 | }
19 | }
Swift.String.init:2:19: note: in call to initializer
1 | struct String {
2 | @inlinable public init<Subject>(describing instance: Subject) where Subject : CustomStringConvertible, Subject : TextOutputStreamable}
| `- note: in call to initializer
3 |
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:45:12: error: generic parameter 'Format' could not be inferred
43 | /// ```
44 | public static var dump: Snapshotting {
45 | return SimplySnapshotting.lines.pullback { snap($0) }
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
46 | }
47 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:58:24: error: generic parameter 'Format' could not be inferred
56 | ]
57 |
58 | var snapshotting = SimplySnapshotting.lines.pullback { (data: Value) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
59 | try! String(
60 | decoding: JSONSerialization.data(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:168:5: warning: non-'@objc' property declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
166 | }
167 | #else
168 | open var snapshotDescription: String {
| `- warning: non-'@objc' property declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
169 | return purgePointers(self.debugDescription)
170 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:25:22: error: cannot find 'XCTAttachment' in scope
23 | .flatMap { [$0.patchMark] + $0.lines }
24 | .joined(separator: "\n")
25 | let attachment = XCTAttachment(
| `- error: cannot find 'XCTAttachment' in scope
26 | data: Data(failure.utf8), uniformTypeIdentifier: "public.patch-file")
27 | return (failure, [attachment])
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: '@escaping' only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: '@escaping' only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:15:36: error: 'nil' requires a contextual type
13 | fromData: { String(decoding: $0, as: UTF8.self) }
14 | ) { old, new in
15 | guard old != new else { return nil }
| `- error: 'nil' requires a contextual type
16 | let hunks = chunk(
17 | diff: SnapshotTesting.diff(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:17:12: error: generic parameter 'Format' could not be inferred
15 | /// ```
16 | public static var description: Snapshotting {
17 | return SimplySnapshotting.lines.pullback(String.init(describing:))
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
18 | }
19 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:17:53: error: generic parameter 'Subject' could not be inferred
15 | /// ```
16 | public static var description: Snapshotting {
17 | return SimplySnapshotting.lines.pullback(String.init(describing:))
| `- error: generic parameter 'Subject' could not be inferred
18 | }
19 | }
Swift.String.init:2:19: note: in call to initializer
1 | struct String {
2 | @inlinable public init<Subject>(describing instance: Subject) where Subject : CustomStringConvertible, Subject : TextOutputStreamable}
| `- note: in call to initializer
3 |
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:45:12: error: generic parameter 'Format' could not be inferred
43 | /// ```
44 | public static var dump: Snapshotting {
45 | return SimplySnapshotting.lines.pullback { snap($0) }
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
46 | }
47 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift:58:24: error: generic parameter 'Format' could not be inferred
56 | ]
57 |
58 | var snapshotting = SimplySnapshotting.lines.pullback { (data: Value) in
| |- error: generic parameter 'Format' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
59 | try! String(
60 | decoding: JSONSerialization.data(
/host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:112:37: note: 'Format' declared as parameter to type 'SimplySnapshotting'
110 |
111 | /// A snapshot strategy where the type being snapshot is also a diffable type.
112 | public typealias SimplySnapshotting<Format> = Snapshotting<Format, Format>
| `- note: 'Format' declared as parameter to type 'SimplySnapshotting'
113 |
114 | extension Snapshotting where Value == Format {
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/RecordIssue.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:4:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
2 | // NB: We are importing only the implementation of Testing because that framework is not available
3 | // in Xcode UI test targets.
4 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
5 |
6 | @_spi(Experimental)
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:141:11: error: cannot find 'XCTContext' in scope
139 | #if !os(Linux) && !os(Windows)
140 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
141 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
142 | attachments.forEach {
143 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:153:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
151 | Snapshot does not match reference.
152 |
153 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
154 | """
155 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:7:13: warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
5 |
6 | @_spi(Experimental)
7 | extension Trait where Self == _SnapshotsTestTrait {
| `- warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
8 | /// Configure snapshot testing in a suite or test.
9 | ///
Testing.Trait:1:17: note: protocol declared here
1 | public protocol Trait : Sendable {
| `- note: protocol declared here
2 | func prepare(for test: Test) async throws
3 | var comments: [Comment] { get }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:38: warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.SuiteTrait:1:17: note: protocol declared here
1 | public protocol SuiteTrait : Trait {
| `- note: protocol declared here
2 | var isRecursive: Bool { get }
3 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:50: warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.TestTrait:1:17: note: protocol declared here
1 | public protocol TestTrait : Trait {
| `- note: protocol declared here
2 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:17: error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| |- error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
| `- note: in associated type 'Self.TestScopeProvider' (inferred as 'Never')
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
[#ImplementationOnlyDeprecated]: <https://docs.swift.org/compiler/documentation/diagnostics/implementation-only-deprecated>
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/RecordIssue.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:4:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
2 | // NB: We are importing only the implementation of Testing because that framework is not available
3 | // in Xcode UI test targets.
4 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
5 |
6 | @_spi(Experimental)
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:141:11: error: cannot find 'XCTContext' in scope
139 | #if !os(Linux) && !os(Windows)
140 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
141 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
142 | attachments.forEach {
143 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:153:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
151 | Snapshot does not match reference.
152 |
153 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
154 | """
155 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:7:13: warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
5 |
6 | @_spi(Experimental)
7 | extension Trait where Self == _SnapshotsTestTrait {
| `- warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
8 | /// Configure snapshot testing in a suite or test.
9 | ///
Testing.Trait:1:17: note: protocol declared here
1 | public protocol Trait : Sendable {
| `- note: protocol declared here
2 | func prepare(for test: Test) async throws
3 | var comments: [Comment] { get }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:38: warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.SuiteTrait:1:17: note: protocol declared here
1 | public protocol SuiteTrait : Trait {
| `- note: protocol declared here
2 | var isRecursive: Bool { get }
3 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:50: warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.TestTrait:1:17: note: protocol declared here
1 | public protocol TestTrait : Trait {
| `- note: protocol declared here
2 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:17: error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| |- error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
| `- note: in associated type 'Self.TestScopeProvider' (inferred as 'Never')
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
[#ImplementationOnlyDeprecated]: <https://docs.swift.org/compiler/documentation/diagnostics/implementation-only-deprecated>
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/RecordIssue.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:4:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
2 | // NB: We are importing only the implementation of Testing because that framework is not available
3 | // in Xcode UI test targets.
4 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
5 |
6 | @_spi(Experimental)
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:141:11: error: cannot find 'XCTContext' in scope
139 | #if !os(Linux) && !os(Windows)
140 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
141 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
142 | attachments.forEach {
143 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:153:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
151 | Snapshot does not match reference.
152 |
153 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
154 | """
155 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:7:13: warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
5 |
6 | @_spi(Experimental)
7 | extension Trait where Self == _SnapshotsTestTrait {
| `- warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
8 | /// Configure snapshot testing in a suite or test.
9 | ///
Testing.Trait:1:17: note: protocol declared here
1 | public protocol Trait : Sendable {
| `- note: protocol declared here
2 | func prepare(for test: Test) async throws
3 | var comments: [Comment] { get }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:38: warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.SuiteTrait:1:17: note: protocol declared here
1 | public protocol SuiteTrait : Trait {
| `- note: protocol declared here
2 | var isRecursive: Bool { get }
3 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:50: warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.TestTrait:1:17: note: protocol declared here
1 | public protocol TestTrait : Trait {
| `- note: protocol declared here
2 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:17: error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| |- error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
| `- note: in associated type 'Self.TestScopeProvider' (inferred as 'Never')
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
[#ImplementationOnlyDeprecated]: <https://docs.swift.org/compiler/documentation/diagnostics/implementation-only-deprecated>
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/RecordIssue.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:4:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
2 | // NB: We are importing only the implementation of Testing because that framework is not available
3 | // in Xcode UI test targets.
4 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
5 |
6 | @_spi(Experimental)
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:141:11: error: cannot find 'XCTContext' in scope
139 | #if !os(Linux) && !os(Windows)
140 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
141 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
142 | attachments.forEach {
143 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:153:41: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
151 | Snapshot does not match reference.
152 |
153 | \(failure.trimmingCharacters(in: .whitespacesAndNewlines))
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
154 | """
155 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:7:13: warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
5 |
6 | @_spi(Experimental)
7 | extension Trait where Self == _SnapshotsTestTrait {
| `- warning: cannot use protocol 'Trait' in an extension with public or '@usableFromInline' members; 'Testing' has been imported as implementation-only
8 | /// Configure snapshot testing in a suite or test.
9 | ///
Testing.Trait:1:17: note: protocol declared here
1 | public protocol Trait : Sendable {
| `- note: protocol declared here
2 | func prepare(for test: Test) async throws
3 | var comments: [Comment] { get }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:38: warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'SuiteTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.SuiteTrait:1:17: note: protocol declared here
1 | public protocol SuiteTrait : Trait {
| `- note: protocol declared here
2 | var isRecursive: Bool { get }
3 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:50: warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| `- warning: cannot use protocol 'TestTrait' in a public or '@usableFromInline' conformance; 'Testing' has been imported as implementation-only
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
Testing.TestTrait:1:17: note: protocol declared here
1 | public protocol TestTrait : Trait {
| `- note: protocol declared here
2 | }
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:37:17: error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
35 | /// A type representing the configuration of snapshot testing.
36 | @_spi(Experimental)
37 | public struct _SnapshotsTestTrait: SuiteTrait, TestTrait {
| |- error: cannot use conformance of 'Never' to 'TestScoping' here; 'Testing' has been imported as implementation-only
| `- note: in associated type 'Self.TestScopeProvider' (inferred as 'Never')
38 | public let isRecursive = true
39 | let configuration: SnapshotTestingConfiguration
[#ImplementationOnlyDeprecated]: <https://docs.swift.org/compiler/documentation/diagnostics/implementation-only-deprecated>
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: '@escaping' only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: '@escaping' only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: '@escaping' only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: '@escaping' only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: '@escaping' only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: '@escaping' only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: '@escaping' only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: '@escaping' only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:63: error: cannot find type 'XCTAttachment' in scope
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:25:11: error: '@escaping' only applies to function types
23 | toData: @escaping (_ value: Value) -> Data,
24 | fromData: @escaping (_ data: Data) -> Value,
25 | diff: @escaping (_ lhs: Value, _ rhs: Value) -> (String, [XCTAttachment])?
| `- error: '@escaping' only applies to function types
26 | ) {
27 | self.toData = toData
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:425:13: error: cannot find 'XCTContext' in scope
423 | #if !os(Linux) && !os(Windows)
424 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
425 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
426 | attachments.forEach {
427 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
[#ImplementationOnlyDeprecated]: <https://docs.swift.org/compiler/documentation/diagnostics/implementation-only-deprecated>
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:425:13: error: cannot find 'XCTContext' in scope
423 | #if !os(Linux) && !os(Windows)
424 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
425 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
426 | attachments.forEach {
427 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
[#ImplementationOnlyDeprecated]: <https://docs.swift.org/compiler/documentation/diagnostics/implementation-only-deprecated>
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:425:13: error: cannot find 'XCTContext' in scope
423 | #if !os(Linux) && !os(Windows)
424 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
425 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
426 | attachments.forEach {
427 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
[#ImplementationOnlyDeprecated]: <https://docs.swift.org/compiler/documentation/diagnostics/implementation-only-deprecated>
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:425:13: error: cannot find 'XCTContext' in scope
423 | #if !os(Linux) && !os(Windows)
424 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
425 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
426 | attachments.forEach {
427 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
[#ImplementationOnlyDeprecated]: <https://docs.swift.org/compiler/documentation/diagnostics/implementation-only-deprecated>
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:6:24: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
4 | // NB: We are importing only the implementation of Testing because that framework is not available
5 | // in Xcode UI test targets.
6 | @_implementationOnly import Testing
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshotTesting' may lead to instability during execution [#ImplementationOnlyDeprecated]
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:425:13: error: cannot find 'XCTContext' in scope
423 | #if !os(Linux) && !os(Windows)
424 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
425 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- error: cannot find 'XCTContext' in scope
426 | attachments.forEach {
427 | activity.add($0)
/host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:14:48: error: cannot find type 'XCTAttachment' in scope
12 | /// Compares two values. If the values do not match, returns a failure message and artifacts
13 | /// describing the failure.
14 | public var diff: (Value, Value) -> (String, [XCTAttachment])?
| `- error: cannot find type 'XCTAttachment' in scope
15 |
16 | /// Creates a new `Diffing` on `Value`.
[#ImplementationOnlyDeprecated]: <https://docs.swift.org/compiler/documentation/diagnostics/implementation-only-deprecated>
BUILD FAILURE 6.3 android