The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-snapshot-testing, reference 1.17.5 (7b0bbb), with Swift 6.4 for Android on 16 Sep 2026 01:25:18 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.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.4
Building package at path:  $PWD
https://github.com/tdrhq/swift-snapshot-testing.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:abadcff584c273feba50641b454858d377ba30b35ea7287a94f45ebd8afd0ea0
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Fetching https://github.com/swiftlang/swift-syntax
[1/79910] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax (3.12s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (3.43s)
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 600.0.1
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Tests/InlineSnapshotTestingTests/InlineSnapshotTesting.xctestplan
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 418]
[Planning deferred tasks]
[86 / 166]
[106 / 181] SwiftSyntax510
[113 / 181] SwiftSyntax509
[117 / 183] SwiftSyntax510
[120 / 183] SwiftSyntax510
error: SwiftCompile normal aarch64 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:6:24: warning: safely use '@_implementationOnly' without library evolution by setting '-enable-experimental-feature CheckImplementationOnly' for 'SnapshotTesting' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/implementation-only-deprecated\ImplementationOnlyDeprecated]8;;\]
  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: safely use '@_implementationOnly' without library evolution by setting '-enable-experimental-feature CheckImplementationOnly' for 'SnapshotTesting' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/implementation-only-deprecated\ImplementationOnlyDeprecated]8;;\]
  7 | #endif
  8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/Internal/RecordIssue.swift:6:24: warning: safely use '@_implementationOnly' without library evolution by setting '-enable-experimental-feature CheckImplementationOnly' for 'SnapshotTesting' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/implementation-only-deprecated\ImplementationOnlyDeprecated]8;;\]
 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: safely use '@_implementationOnly' without library evolution by setting '-enable-experimental-feature CheckImplementationOnly' for 'SnapshotTesting' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/implementation-only-deprecated\ImplementationOnlyDeprecated]8;;\]
 7 | #endif
 8 |
/host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift:4:24: warning: safely use '@_implementationOnly' without library evolution by setting '-enable-experimental-feature CheckImplementationOnly' for 'SnapshotTesting' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/implementation-only-deprecated\ImplementationOnlyDeprecated]8;;\]
 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: safely use '@_implementationOnly' without library evolution by setting '-enable-experimental-feature CheckImplementationOnly' for 'SnapshotTesting' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/implementation-only-deprecated\ImplementationOnlyDeprecated]8;;\]
 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/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>
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Async.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Common/Internal.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Common/PlistEncoder.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Common/String+SpecialCharacters.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Common/XCTAttachment.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Diff.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Extensions/Wait.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Internal/RecordIssue.swift /host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotTestingConfiguration.swift /host/spi-builder-workspace/Sources/SnapshotTesting/SnapshotsTestTrait.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Any.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/CALayer.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/CGPath.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/CaseIterable.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Data.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/Encodable.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSBezierPath.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSImage.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSView.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSViewController.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SceneKit.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SpriteKit.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SwiftUIView.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/UIBezierPath.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/UIImage.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/UIView.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/UIViewController.swift /host/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/URLRequest.swift -target aarch64-unknown-linux-android28 -Xllvm -aarch64-use-tbi -disable-objc-interop -sdk /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -sysroot /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I /host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins/testing\#/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_android.artifactbundle/swift-android/swift-resources/usr/lib/swift-aarch64 -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/18 -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-snapshot-testing.build/Debug-android-aarch64/SnapshotTesting-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-snapshot-testing.build/Debug-android-aarch64/SnapshotTesting-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-snapshot-testing.build/Debug-android-aarch64/SnapshotTesting-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SnapshotTesting -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-snapshot-testing.build/Debug-android-aarch64/SnapshotTesting-t.build/Objects-normal/aarch64/SnapshotTesting_const_extract_protocols.json -in-process-plugin-server-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-snapshot-testing.build/Debug-android-aarch64/SnapshotTesting-t.build/Objects-normal/aarch64/Modules/SnapshotTesting.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-snapshot-testing.build/Debug-android-aarch64/SnapshotTesting-t.build/Objects-normal/aarch64/Modules/SnapshotTesting.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-snapshot-testing.build/Debug-android-aarch64/SnapshotTesting-t.build/Objects-normal/aarch64/SnapshotTesting-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-snapshot-testing.build/Debug-android-aarch64/SnapshotTesting-t.build/Objects-normal/aarch64/SnapshotTesting-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-snapshot-testing.build/Debug-android-aarch64/SnapshotTesting-t.build/Objects-normal/aarch64/SnapshotTesting-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-snapshot-testing.build/Debug-android-aarch64/SnapshotTesting-t.build/Objects-normal/aarch64/Modules/SnapshotTesting.swiftmodule
error: Build failed
BUILD FAILURE 6.4 android