The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SnabblePay, reference 1.1.2 (071bb3), with Swift 6.2 for Android on 21 Jun 2025 01:43:11 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/snabble/snabble-pay-ios-sdk.git
Reference: 1.1.2
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/snabble/snabble-pay-ios-sdk
 * tag               1.1.2      -> FETCH_HEAD
HEAD is now at 071bb32 set version to 1.1.2 build 13 (#52)
Cloned https://github.com/snabble/snabble-pay-ios-sdk.git
Revision (git rev-parse @):
071bb3283372ab1e75aad824e71c5304b854a4f2
SUCCESS checkout https://github.com/snabble/snabble-pay-ios-sdk.git at 1.1.2
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/snabble/snabble-pay-ios-sdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/pointfreeco/swift-tagged
Fetching https://github.com/apple/swift-log.git
[1/1162] Fetching swift-tagged
[1163/4998] Fetching swift-tagged, swift-log
Fetched https://github.com/pointfreeco/swift-tagged from cache (0.49s)
Fetched https://github.com/apple/swift-log.git from cache (0.49s)
Computing version for https://github.com/pointfreeco/swift-tagged
Computed https://github.com/pointfreeco/swift-tagged at 0.10.0 (1.08s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.46s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/pointfreeco/swift-tagged
Working copy of https://github.com/pointfreeco/swift-tagged resolved at 0.10.0
Building for debugging...
[0/7] Write sources
[6/7] Write swift-version-8C5A4AE7A8CE2BA.txt
[8/20] Emitting module Logging
[9/20] Compiling Logging MetadataProvider.swift
[10/20] Compiling Logging Locks.swift
[11/20] Compiling Logging Logging.swift
[12/20] Compiling Logging LogHandler.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/23] Emitting module TestHelper
/host/spi-builder-workspace/Tests/Helper/MockNetworking.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 8 | import Foundation
 9 |
10 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
11 |     public static var mockSession: URLSession {
12 |         let configuration: URLSessionConfiguration = .ephemeral
/host/spi-builder-workspace/Tests/Helper/MockURLProtocol.swift:12:41: error: cannot find type 'URLRequest' in scope
10 | public class MockURLProtocol: URLProtocol {
11 |     public static var error: Error?
12 |     public static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data))?
   |                                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     override public class func canInit(with request: URLRequest) -> Bool {
/host/spi-builder-workspace/Tests/Helper/MockURLProtocol.swift:14:54: error: cannot find type 'URLRequest' in scope
12 |     public static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data))?
13 |
14 |     override public class func canInit(with request: URLRequest) -> Bool {
   |                                                      `- error: cannot find type 'URLRequest' in scope
15 |         return true
16 |     }
/host/spi-builder-workspace/Tests/Helper/MockURLProtocol.swift:18:77: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                                             `- error: cannot find type 'URLRequest' in scope
19 |         return request
20 |     }
/host/spi-builder-workspace/Tests/Helper/MockURLProtocol.swift:18:62: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                              `- error: cannot find type 'URLRequest' in scope
19 |         return request
20 |     }
/host/spi-builder-workspace/Tests/Helper/MockURLProtocol.swift:22:26: error: method does not override any method from its superclass
20 |     }
21 |
22 |     override public func startLoading() {
   |                          `- error: method does not override any method from its superclass
23 |         if let error = MockURLProtocol.error {
24 |             client?.urlProtocol(self, didFailWithError: error)
/host/spi-builder-workspace/Tests/Helper/MockURLProtocol.swift:43:26: error: method does not override any method from its superclass
41 |     }
42 |
43 |     override public func stopLoading() {
   |                          `- error: method does not override any method from its superclass
44 |         // Not needed
45 |     }
/host/spi-builder-workspace/Tests/Helper/MockURLProtocol.swift:10:31: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 | import Foundation
 9 |
10 | public class MockURLProtocol: URLProtocol {
   |                               `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |     public static var error: Error?
12 |     public static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data))?
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[15/23] Compiling Tagged UUID.swift
[16/23] Compiling TestHelper TestingDefaults.swift
[17/23] Compiling TestHelper MockURLProtocol.swift
/host/spi-builder-workspace/Tests/Helper/MockURLProtocol.swift:12:41: error: cannot find type 'URLRequest' in scope
10 | public class MockURLProtocol: URLProtocol {
11 |     public static var error: Error?
12 |     public static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data))?
   |                                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     override public class func canInit(with request: URLRequest) -> Bool {
/host/spi-builder-workspace/Tests/Helper/MockURLProtocol.swift:14:54: error: cannot find type 'URLRequest' in scope
12 |     public static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data))?
13 |
14 |     override public class func canInit(with request: URLRequest) -> Bool {
   |                                                      `- error: cannot find type 'URLRequest' in scope
15 |         return true
16 |     }
/host/spi-builder-workspace/Tests/Helper/MockURLProtocol.swift:18:77: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                                             `- error: cannot find type 'URLRequest' in scope
19 |         return request
20 |     }
/host/spi-builder-workspace/Tests/Helper/MockURLProtocol.swift:18:62: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                              `- error: cannot find type 'URLRequest' in scope
19 |         return request
20 |     }
/host/spi-builder-workspace/Tests/Helper/MockURLProtocol.swift:22:26: error: method does not override any method from its superclass
20 |     }
21 |
22 |     override public func startLoading() {
   |                          `- error: method does not override any method from its superclass
23 |         if let error = MockURLProtocol.error {
24 |             client?.urlProtocol(self, didFailWithError: error)
/host/spi-builder-workspace/Tests/Helper/MockURLProtocol.swift:43:26: error: method does not override any method from its superclass
41 |     }
42 |
43 |     override public func stopLoading() {
   |                          `- error: method does not override any method from its superclass
44 |         // Not needed
45 |     }
/host/spi-builder-workspace/Tests/Helper/MockURLProtocol.swift:10:31: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 | import Foundation
 9 |
10 | public class MockURLProtocol: URLProtocol {
   |                               `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |     public static var error: Error?
12 |     public static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data))?
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Tests/Helper/MockURLProtocol.swift:24:13: error: cannot find 'client' in scope
22 |     override public func startLoading() {
23 |         if let error = MockURLProtocol.error {
24 |             client?.urlProtocol(self, didFailWithError: error)
   |             `- error: cannot find 'client' in scope
25 |             return
26 |         }
/host/spi-builder-workspace/Tests/Helper/MockURLProtocol.swift:34:48: error: cannot find 'request' in scope
32 |
33 |         do {
34 |             let (response, data) = try handler(request)
   |                                                `- error: cannot find 'request' in scope
35 |             client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
36 |             client?.urlProtocol(self, didLoad: data)
/host/spi-builder-workspace/Tests/Helper/MockURLProtocol.swift:35:13: error: cannot find 'client' in scope
33 |         do {
34 |             let (response, data) = try handler(request)
35 |             client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
   |             `- error: cannot find 'client' in scope
36 |             client?.urlProtocol(self, didLoad: data)
37 |             client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Tests/Helper/MockURLProtocol.swift:35:82: error: cannot infer contextual base in reference to member 'notAllowed'
33 |         do {
34 |             let (response, data) = try handler(request)
35 |             client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
   |                                                                                  `- error: cannot infer contextual base in reference to member 'notAllowed'
36 |             client?.urlProtocol(self, didLoad: data)
37 |             client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Tests/Helper/MockURLProtocol.swift:36:13: error: cannot find 'client' in scope
34 |             let (response, data) = try handler(request)
35 |             client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
36 |             client?.urlProtocol(self, didLoad: data)
   |             `- error: cannot find 'client' in scope
37 |             client?.urlProtocolDidFinishLoading(self)
38 |         } catch {
/host/spi-builder-workspace/Tests/Helper/MockURLProtocol.swift:37:13: error: cannot find 'client' in scope
35 |             client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
36 |             client?.urlProtocol(self, didLoad: data)
37 |             client?.urlProtocolDidFinishLoading(self)
   |             `- error: cannot find 'client' in scope
38 |         } catch {
39 |             client?.urlProtocol(self, didFailWithError: error)
/host/spi-builder-workspace/Tests/Helper/MockURLProtocol.swift:39:13: error: cannot find 'client' in scope
37 |             client?.urlProtocolDidFinishLoading(self)
38 |         } catch {
39 |             client?.urlProtocol(self, didFailWithError: error)
   |             `- error: cannot find 'client' in scope
40 |         }
41 |     }
[18/23] Compiling TestHelper MockNetworking.swift
/host/spi-builder-workspace/Tests/Helper/MockNetworking.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 8 | import Foundation
 9 |
10 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
11 |     public static var mockSession: URLSession {
12 |         let configuration: URLSessionConfiguration = .ephemeral
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[19/23] Compiling TestHelper Resource.swift
[20/23] Compiling SnabbleLogger Logger+Snabble.swift
[21/23] Emitting module SnabbleLogger
[22/24] Emitting module Tagged
BUILD FAILURE 6.2 android