The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SnabblePay, reference 1.1.2 (071bb3), with Swift 6.1 for Wasm on 29 May 2025 03:26:33 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
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:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/snabble/snabble-pay-ios-sdk.git
https://github.com/snabble/snabble-pay-ios-sdk.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "default_localization" : "en",
  "dependencies" : [
    {
      "identity" : "swift-tagged",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.10.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/pointfreeco/swift-tagged"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.5.3",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    }
  ],
  "manifest_display_name" : "SnabblePay",
  "name" : "SnabblePay",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "SnabblePay",
      "targets" : [
        "SnabblePay"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TestHelper",
      "module_type" : "SwiftTarget",
      "name" : "TestHelper",
      "path" : "Tests/Helper",
      "sources" : [
        "MockNetworking.swift",
        "MockURLProtocol.swift",
        "Resource.swift",
        "TestingDefaults.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SnabblePayNetworkTests",
      "module_type" : "SwiftTarget",
      "name" : "SnabblePayNetworkTests",
      "path" : "Tests/Network",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/Network/Resources/account-check.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Network/Resources/account-id.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Network/Resources/accounts-empty.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Network/Resources/accounts-many.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Network/Resources/accounts-one.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Network/Resources/customer-null.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Network/Resources/customer.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Network/Resources/error-unknown.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Network/Resources/mandate-accepted-otherId.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Network/Resources/mandate-accepted.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Network/Resources/mandate-declined.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Network/Resources/mandate-pending.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Network/Resources/register.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Network/Resources/sessions-get.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Network/Resources/sessions-post-error-declined.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Network/Resources/sessions-post-error-unknown.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Network/Resources/sessions-post.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Network/Resources/sessions.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Network/Resources/token.json",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Core/EndpointTests.swift",
        "Core/EnvironmentTests.swift",
        "Core/HTTPMethodTests.swift",
        "Core/NetworkManagerTests.swift",
        "Core/SequencePathSortedTests.swift",
        "Core/URL+StringLiteralTests.swift",
        "Core/URLSessionEndpointTests.swift",
        "Endpoints/AccountsEndpointTests.swift",
        "Endpoints/CustomerEndpointTests.swift",
        "Endpoints/MandateEndpointTests.swift",
        "Endpoints/RegisterEndpointTests.swift",
        "Endpoints/SessionEndpointTests.swift",
        "Endpoints/TokenEndpointTests.swift"
      ],
      "target_dependencies" : [
        "SnabblePayNetwork",
        "TestHelper"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SnabblePayNetwork",
      "module_type" : "SwiftTarget",
      "name" : "SnabblePayNetwork",
      "path" : "Sources/Network",
      "product_memberships" : [
        "SnabblePay"
      ],
      "sources" : [
        "Core/APIError.swift",
        "Core/Authenticator.swift",
        "Core/Endpoint+Error.swift",
        "Core/Endpoint.swift",
        "Core/Environment.swift",
        "Core/HTTPError.swift",
        "Core/HTTPMethod.swift",
        "Core/HTTPStatusCode.swift",
        "Core/NetworkManager.swift",
        "Core/URL+StringLliteral.swift",
        "Core/URLSession+Endpoint.swift",
        "Endpoints/AccountsEndpoint.swift",
        "Endpoints/CustomerEndpoint.swift",
        "Endpoints/MandateEndpoint.swift",
        "Endpoints/RegisterEndpoint.swift",
        "Endpoints/SessionEndpoint.swift",
        "Endpoints/TokenEndpoint.swift",
        "Helper/Publisher+RetryWhenDoBefore.swift",
        "Helper/Sequence+KeyPathSorted.swift",
        "Models/Account.swift",
        "Models/AccountCheck.swift",
        "Models/Credentials.swift",
        "Models/Customer.swift",
        "Models/Mandate.swift",
        "Models/Session.swift",
        "Models/Token.swift",
        "Models/Transaction.swift"
      ],
      "target_dependencies" : [
        "SnabbleLogger"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SnabblePayCoreTests",
      "module_type" : "SwiftTarget",
      "name" : "SnabblePayCoreTests",
      "path" : "Tests/Core",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/Core/Resources/account-check.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Core/Resources/account-id.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Core/Resources/accounts-empty.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Core/Resources/accounts-many.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Core/Resources/accounts-one.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Core/Resources/mandate-accepted-otherId.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Core/Resources/mandate-accepted.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Core/Resources/mandate-declined.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Core/Resources/mandate-pending.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Core/Resources/register.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Core/Resources/sessions-get.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Core/Resources/sessions-post-error-declined.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Core/Resources/sessions-post-error-unknown.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Core/Resources/sessions-post.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Core/Resources/sessions.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Core/Resources/token.json",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Models/MandateTests.swift",
        "SnabblePayTests.swift"
      ],
      "target_dependencies" : [
        "SnabblePay",
        "TestHelper"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SnabblePay",
      "module_type" : "SwiftTarget",
      "name" : "SnabblePay",
      "path" : "Sources/Core",
      "product_dependencies" : [
        "Tagged"
      ],
      "product_memberships" : [
        "SnabblePay"
      ],
      "sources" : [
        "Models/Account.swift",
        "Models/AccountCheck.swift",
        "Models/Credentials.swift",
        "Models/Customer.swift",
        "Models/Mandate.swift",
        "Models/Protocols/DataTransferObject.swift",
        "Models/Session.swift",
        "Models/Transaction.swift",
        "SnabblePay+CompletionHandler.swift",
        "SnabblePay+Error.swift",
        "SnabblePay+NetworkManagerDelegate.swift",
        "SnabblePay.swift"
      ],
      "target_dependencies" : [
        "SnabblePayNetwork",
        "SnabbleLogger"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SnabbleLogger",
      "module_type" : "SwiftTarget",
      "name" : "SnabbleLogger",
      "path" : "Sources/Logger",
      "product_dependencies" : [
        "Logging"
      ],
      "product_memberships" : [
        "SnabblePay"
      ],
      "sources" : [
        "Logger+Snabble.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-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.30s)
[2149/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.45s)
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.51s)
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-24593BA9C3E375BF.txt
[8/20] Emitting module Logging
[9/20] Compiling Logging LogHandler.swift
[10/20] Compiling TestHelper MockURLProtocol.swift
/host/spi-builder-workspace/Tests/Helper/MockURLProtocol.swift:11:23: warning: static property 'error' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | public class MockURLProtocol: URLProtocol {
11 |     public static var error: Error?
   |                       |- warning: static property 'error' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'error' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'error' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     public static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data))?
13 |
/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:12:23: warning: static property 'requestHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | public class MockURLProtocol: URLProtocol {
11 |     public static var error: Error?
12 |     public static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data))?
   |                       |- warning: static property 'requestHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'requestHandler' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'requestHandler' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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 |     }
[11/20] Compiling TestHelper MockNetworking.swift
/host/spi-builder-workspace/Tests/Helper/MockNetworking.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 8 | import Foundation
 9 |
10 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
11 |     public static var mockSession: URLSession {
12 |         let configuration: URLSessionConfiguration = .ephemeral
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/20] Emitting module TestHelper
/host/spi-builder-workspace/Tests/Helper/MockNetworking.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 8 | import Foundation
 9 |
10 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
11 |     public static var mockSession: URLSession {
12 |         let configuration: URLSessionConfiguration = .ephemeral
/host/spi-builder-workspace/Tests/Helper/MockURLProtocol.swift:11:23: warning: static property 'error' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | public class MockURLProtocol: URLProtocol {
11 |     public static var error: Error?
   |                       |- warning: static property 'error' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'error' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'error' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     public static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data))?
13 |
/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:12:23: warning: static property 'requestHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | public class MockURLProtocol: URLProtocol {
11 |     public static var error: Error?
12 |     public static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data))?
   |                       |- warning: static property 'requestHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'requestHandler' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'requestHandler' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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/TestingDefaults.swift:11:23: warning: static property 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | public enum TestingDefaults {
11 |     public static var dateFormatter = {
   |                       |- warning: static property 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'dateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'dateFormatter' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |         let dateFormatter = ISO8601DateFormatter()
13 |         return dateFormatter
/host/spi-builder-workspace/Tests/Helper/TestingDefaults.swift:16:23: warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |     }()
15 |
16 |     public static var jsonDecoder = {
   |                       |- warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'jsonDecoder' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'jsonDecoder' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |         let decoder = JSONDecoder()
18 |         decoder.dateDecodingStrategy = .iso8601
[13/20] Compiling TestHelper Resource.swift
[14/20] Compiling TestHelper TestingDefaults.swift
/host/spi-builder-workspace/Tests/Helper/TestingDefaults.swift:11:23: warning: static property 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | public enum TestingDefaults {
11 |     public static var dateFormatter = {
   |                       |- warning: static property 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'dateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'dateFormatter' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |         let dateFormatter = ISO8601DateFormatter()
13 |         return dateFormatter
/host/spi-builder-workspace/Tests/Helper/TestingDefaults.swift:16:23: warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |     }()
15 |
16 |     public static var jsonDecoder = {
   |                       |- warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'jsonDecoder' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'jsonDecoder' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |         let decoder = JSONDecoder()
18 |         decoder.dateDecodingStrategy = .iso8601
[15/20] Compiling Logging Locks.swift
[16/20] Compiling Logging MetadataProvider.swift
[17/20] Compiling Logging Logging.swift
[18/20] Compiling Tagged UUID.swift
[19/21] Emitting module Tagged
[20/21] Compiling Tagged Tagged.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/14] Compiling TestHelper MockNetworking.swift
/host/spi-builder-workspace/Tests/Helper/MockNetworking.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 8 | import Foundation
 9 |
10 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
11 |     public static var mockSession: URLSession {
12 |         let configuration: URLSessionConfiguration = .ephemeral
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/14] Emitting module TestHelper
/host/spi-builder-workspace/Tests/Helper/MockNetworking.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 8 | import Foundation
 9 |
10 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[4/14] Compiling TestHelper TestingDefaults.swift
[5/14] Emitting module Logging
[6/14] Compiling Logging MetadataProvider.swift
[7/14] Compiling TestHelper Resource.swift
[8/14] 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 |     }
[9/14] Compiling Tagged UUID.swift
[10/14] Emitting module Tagged
[11/14] Compiling Tagged Tagged.swift
[13/15] Compiling Logging Locks.swift
[14/15] Compiling Logging LogHandler.swift
[15/15] Compiling Logging Logging.swift
BUILD FAILURE 6.1 wasm