The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build swift-libs, reference main (fca5e0), with Swift 6.1 for Wasm on 28 May 2025 18:23:06 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/rock-n-code/swift-libs.git
Reference: main
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/rock-n-code/swift-libs
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at fca5e03 [Bugfix] Reference to Coordination library amended (#25)
Cloned https://github.com/rock-n-code/swift-libs.git
Revision (git rev-parse @):
fca5e034d60bafeb450c9f23ab70c0712acc0c97
SUCCESS checkout https://github.com/rock-n-code/swift-libs.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/rock-n-code/swift-libs.git
https://github.com/rock-n-code/swift-libs.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "default_localization" : "en",
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "swift-libs",
  "name" : "swift-libs",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftLibs",
      "targets" : [
        "SwiftLibsCommunication",
        "SwiftLibsCoordination",
        "SwiftLibsFoundation",
        "SwiftLibsDependency"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftLibsFoundationTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLibsFoundationTests",
      "path" : "Tests/Foundation",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/Foundation/Resources/en.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "en"
            }
          }
        }
      ],
      "sources" : [
        "Cases/Extensions/Bool+InitTests.swift",
        "Cases/Extensions/Bundle+LocalisationBundleTests.swift",
        "Cases/Extensions/Collection+EmptyTests.swift",
        "Cases/Extensions/Optional+NilTests.swift",
        "Cases/Extensions/String+EmptyTests.swift",
        "Cases/Extensions/String+LocalisationTests.swift",
        "Cases/Extensions/TimeZone+ZoneTests.swift",
        "Cases/Property Wrappers/LossyCodableList+DecodableTests.swift",
        "Cases/Property Wrappers/LossyCodableList+EncodableTests.swift",
        "Helpers/Extensions/Data+Result.swift",
        "Helpers/Extensions/Data+Seed.swift",
        "Helpers/Extensions/String+Result.swift",
        "Helpers/Extensions/String+Seed.swift",
        "Helpers/Models/TestCodable.swift",
        "Helpers/Models/TestCodableList.swift"
      ],
      "target_dependencies" : [
        "SwiftLibsFoundation"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftLibsFoundation",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLibsFoundation",
      "path" : "Libraries/Foundation",
      "product_memberships" : [
        "SwiftLibs"
      ],
      "sources" : [
        "Errors/BundleError.swift",
        "Extensions/Bool+Init.swift",
        "Extensions/Bundle+LocalisationBundle.swift",
        "Extensions/Collection+Empty.swift",
        "Extensions/Optional+Nil.swift",
        "Extensions/String+Empty.swift",
        "Extensions/String+Localisation.swift",
        "Extensions/TimeZone+Zone.swift",
        "Property Wrappers/LossyCodableList.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftLibsDependencyTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLibsDependencyTests",
      "path" : "Tests/Dependency",
      "sources" : [
        "Cases/Property Wrappers/DependencyTests.swift",
        "Cases/Services/DependencyServiceTests.swift",
        "Helpers/TestServices.swift"
      ],
      "target_dependencies" : [
        "SwiftLibsDependency"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftLibsDependency",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLibsDependency",
      "path" : "Libraries/Dependency",
      "product_memberships" : [
        "SwiftLibs"
      ],
      "sources" : [
        "Property Wrappers/Dependency.swift",
        "Protocols/DependencyKey.swift",
        "Services/DependencyService.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftLibsCoordinationTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLibsCoordinationTests",
      "path" : "Tests/Coordination",
      "sources" : [
        "Cases/Protocols/CoordinatorTests.swift",
        "Helpers/TestCoordinators.swift"
      ],
      "target_dependencies" : [
        "SwiftLibsCoordination"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftLibsCoordination",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLibsCoordination",
      "path" : "Libraries/Coordination",
      "product_memberships" : [
        "SwiftLibs"
      ],
      "sources" : [
        "Protocols/Coordinator.swift",
        "Protocols/Router.swift",
        "Routers/BaseNavigationRouter.swift",
        "Routers/ModalNavigationRouter.swift",
        "Routers/PushNavigationRouter.swift",
        "Routers/WindowRouter.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftLibsCommunicationTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLibsCommunicationTests",
      "path" : "Tests/Communication",
      "sources" : [
        "Cases/Use Cases/MakeURLRequestUseCaseTests.swift",
        "Helpers/Endpoints/TestEndpoint.swift"
      ],
      "target_dependencies" : [
        "SwiftLibsCommunication"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftLibsCommunication",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLibsCommunication",
      "path" : "Libraries/Communication",
      "product_memberships" : [
        "SwiftLibs"
      ],
      "sources" : [
        "Classes/MockURLProtocol.swift",
        "Enumerations/HTTPRequestMethod.swift",
        "Enumerations/HTTPResponseCode.swift",
        "Errors/MakeURLRequestError.swift",
        "Protocols/Client.swift",
        "Protocols/Endpoint.swift",
        "Use Cases/MakeURLRequestUseCase.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/apple/swift-docc-plugin
[1/2049] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.88s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (2.09s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3391] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.99s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (2.23s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.3
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/7] Write sources
[6/7] Write swift-version-24593BA9C3E375BF.txt
[8/35] Emitting module SwiftLibsFoundation
[9/36] Compiling SwiftLibsCoordination Router.swift
[10/36] Emitting module SwiftLibsCoordination
[11/36] Compiling SwiftLibsCoordination Coordinator.swift
[12/36] Compiling SwiftLibsFoundation LossyCodableList.swift
[13/36] Compiling SwiftLibsFoundation Optional+Nil.swift
[14/36] Compiling SwiftLibsCoordination PushNavigationRouter.swift
[15/36] Compiling SwiftLibsCoordination WindowRouter.swift
[16/36] Compiling SwiftLibsDependency DependencyService.swift
/host/spi-builder-workspace/Libraries/Dependency/Services/DependencyService.swift:18:24: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |     // MARK: Properties
17 |
18 |     private static var current = DependencyService()
   |                        |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 |     // MARK: Subscripts
[17/36] Compiling SwiftLibsDependency DependencyKey.swift
[18/36] Compiling SwiftLibsFoundation Collection+Empty.swift
[19/36] Compiling SwiftLibsCoordination ModalNavigationRouter.swift
[20/36] Compiling SwiftLibsCoordination BaseNavigationRouter.swift
[21/37] Emitting module SwiftLibsDependency
/host/spi-builder-workspace/Libraries/Dependency/Services/DependencyService.swift:18:24: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |     // MARK: Properties
17 |
18 |     private static var current = DependencyService()
   |                        |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 |     // MARK: Subscripts
[22/37] Compiling SwiftLibsDependency Dependency.swift
[25/38] Compiling SwiftLibsFoundation BundleError.swift
[26/38] Compiling SwiftLibsFoundation Bool+Init.swift
[27/38] Compiling SwiftLibsFoundation Bundle+LocalisationBundle.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[28/38] Compiling SwiftLibsCommunication MakeURLRequestError.swift
[29/38] Compiling SwiftLibsCommunication HTTPRequestMethod.swift
[30/38] Compiling SwiftLibsCommunication HTTPResponseCode.swift
[31/38] Compiling SwiftLibsCommunication Client.swift
[32/38] Emitting module SwiftLibsCommunication
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:25:23: warning: static property 'mockData' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 23 |
 24 |     /// The dictionary in which the mock requests with its respective mock responses will be injected.
 25 |     public static var mockData: [MockURLRequest: MockURLResponse] = [:]
    |                       |- warning: static property 'mockData' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'mockData' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'mockData' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 26 |
 27 |     // MARK: Functions
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:29:51: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |     // MARK: Functions
 28 |
 29 |     public override class func canInit(with task: URLSessionTask) -> Bool {
    |                                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |         true
 31 |     }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:29:32: error: method does not override any method from its superclass
 27 |     // MARK: Functions
 28 |
 29 |     public override class func canInit(with task: URLSessionTask) -> Bool {
    |                                `- error: method does not override any method from its superclass
 30 |         true
 31 |     }
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:33:54: error: cannot find type 'URLRequest' in scope
 31 |     }
 32 |
 33 |     public override class func canInit(with request: URLRequest) -> Bool {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 34 |         true
 35 |     }
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:37:77: error: cannot find type 'URLRequest' in scope
 35 |     }
 36 |
 37 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
 38 |         request
 39 |     }
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:37:62: error: cannot find type 'URLRequest' in scope
 35 |     }
 36 |
 37 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
 38 |         request
 39 |     }
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:41:26: error: method does not override any method from its superclass
 39 |     }
 40 |
 41 |     public override func startLoading() {
    |                          `- error: method does not override any method from its superclass
 42 |         guard
 43 |             let httpMethod = request.httpMethod,
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:75:26: error: method does not override any method from its superclass
 73 |     }
 74 |
 75 |     public override func stopLoading() {}
    |                          `- error: method does not override any method from its superclass
 76 |
 77 | }
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:20:31: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |
 19 | /// This class overrides the `URLProtocol` protocol used by the `URLSession` to handle the loading of protocol-specific URL data so it is possible to mock URL response for testing purposes.
 20 | public class MockURLProtocol: URLProtocol {
    |                               `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |
 22 |     // MARK: Properties
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/Libraries/Communication/Use Cases/MakeURLRequestUseCase.swift:31:67: error: cannot find type 'URLRequest' in scope
29 |     /// - Parameter endpoint: An endpoint which is used to generate a `URLRequest` instance from.
30 |     /// - Returns: A `URLRequest` instance filled with data provided by the given endpoint.
31 |     public func callAsFunction(endpoint: some Endpoint) throws -> URLRequest {
   |                                                                   `- error: cannot find type 'URLRequest' in scope
32 |         var urlComponents = URLComponents()
33 |
[33/38] Compiling SwiftLibsCommunication MockURLProtocol.swift
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:25:23: warning: static property 'mockData' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 23 |
 24 |     /// The dictionary in which the mock requests with its respective mock responses will be injected.
 25 |     public static var mockData: [MockURLRequest: MockURLResponse] = [:]
    |                       |- warning: static property 'mockData' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'mockData' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'mockData' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 26 |
 27 |     // MARK: Functions
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:29:51: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |     // MARK: Functions
 28 |
 29 |     public override class func canInit(with task: URLSessionTask) -> Bool {
    |                                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |         true
 31 |     }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:29:32: error: method does not override any method from its superclass
 27 |     // MARK: Functions
 28 |
 29 |     public override class func canInit(with task: URLSessionTask) -> Bool {
    |                                `- error: method does not override any method from its superclass
 30 |         true
 31 |     }
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:33:54: error: cannot find type 'URLRequest' in scope
 31 |     }
 32 |
 33 |     public override class func canInit(with request: URLRequest) -> Bool {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 34 |         true
 35 |     }
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:37:77: error: cannot find type 'URLRequest' in scope
 35 |     }
 36 |
 37 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
 38 |         request
 39 |     }
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:37:62: error: cannot find type 'URLRequest' in scope
 35 |     }
 36 |
 37 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
 38 |         request
 39 |     }
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:41:26: error: method does not override any method from its superclass
 39 |     }
 40 |
 41 |     public override func startLoading() {
    |                          `- error: method does not override any method from its superclass
 42 |         guard
 43 |             let httpMethod = request.httpMethod,
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:75:26: error: method does not override any method from its superclass
 73 |     }
 74 |
 75 |     public override func stopLoading() {}
    |                          `- error: method does not override any method from its superclass
 76 |
 77 | }
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:20:31: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |
 19 | /// This class overrides the `URLProtocol` protocol used by the `URLSession` to handle the loading of protocol-specific URL data so it is possible to mock URL response for testing purposes.
 20 | public class MockURLProtocol: URLProtocol {
    |                               `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |
 22 |     // MARK: Properties
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/Libraries/Communication/Classes/MockURLProtocol.swift:43:30: error: cannot find 'request' in scope
 41 |     public override func startLoading() {
 42 |         guard
 43 |             let httpMethod = request.httpMethod,
    |                              `- error: cannot find 'request' in scope
 44 |             let method = HTTPRequestMethod(rawValue: httpMethod),
 45 |             let url = request.url,
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:45:23: error: cannot find 'request' in scope
 43 |             let httpMethod = request.httpMethod,
 44 |             let method = HTTPRequestMethod(rawValue: httpMethod),
 45 |             let url = request.url,
    |                       `- error: cannot find 'request' in scope
 46 |             let response = Self.mockData[.init(
 47 |                 method: method,
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:51:13: error: cannot find 'client' in scope
 49 |             )]
 50 |         else {
 51 |             client?.urlProtocolDidFinishLoading(self)
    |             `- error: cannot find 'client' in scope
 52 |             return
 53 |         }
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:56:13: error: cannot find 'client' in scope
 54 |
 55 |         if let data = response.data {
 56 |             client?.urlProtocol(self, didLoad: data)
    |             `- error: cannot find 'client' in scope
 57 |         }
 58 |
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:59:31: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 57 |         }
 58 |
 59 |         if let httpResponse = HTTPURLResponse(
    |                               `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 60 |             url: url,
 61 |             statusCode: response.status.rawValue,
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:62:26: error: 'nil' requires a contextual type
 60 |             url: url,
 61 |             statusCode: response.status.rawValue,
 62 |             httpVersion: nil,
    |                          `- error: 'nil' requires a contextual type
 63 |             headerFields: response.headers
 64 |         ) {
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:65:13: error: cannot find 'client' in scope
 63 |             headerFields: response.headers
 64 |         ) {
 65 |             client?.urlProtocol(
    |             `- error: cannot find 'client' in scope
 66 |                 self,
 67 |                 didReceive: httpResponse,
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:68:38: error: cannot infer contextual base in reference to member 'allowedInMemoryOnly'
 66 |                 self,
 67 |                 didReceive: httpResponse,
 68 |                 cacheStoragePolicy: .allowedInMemoryOnly
    |                                      `- error: cannot infer contextual base in reference to member 'allowedInMemoryOnly'
 69 |             )
 70 |         }
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:72:9: error: cannot find 'client' in scope
 70 |         }
 71 |
 72 |         client?.urlProtocolDidFinishLoading(self)
    |         `- error: cannot find 'client' in scope
 73 |     }
 74 |
[34/38] Compiling SwiftLibsFoundation String+Empty.swift
[35/38] Compiling SwiftLibsFoundation String+Localisation.swift
[36/38] Compiling SwiftLibsFoundation TimeZone+Zone.swift
[37/39] Compiling SwiftLibsCommunication MakeURLRequestUseCase.swift
/host/spi-builder-workspace/Libraries/Communication/Use Cases/MakeURLRequestUseCase.swift:31:67: error: cannot find type 'URLRequest' in scope
29 |     /// - Parameter endpoint: An endpoint which is used to generate a `URLRequest` instance from.
30 |     /// - Returns: A `URLRequest` instance filled with data provided by the given endpoint.
31 |     public func callAsFunction(endpoint: some Endpoint) throws -> URLRequest {
   |                                                                   `- error: cannot find type 'URLRequest' in scope
32 |         var urlComponents = URLComponents()
33 |
/host/spi-builder-workspace/Libraries/Communication/Use Cases/MakeURLRequestUseCase.swift:52:26: error: cannot find 'URLRequest' in scope
50 |         }
51 |
52 |         var urlRequest = URLRequest(url: url)
   |                          `- error: cannot find 'URLRequest' in scope
53 |
54 |         urlRequest.httpMethod = endpoint.method.rawValue
[39/39] Compiling SwiftLibsCommunication Endpoint.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/31] Compiling SwiftLibsFoundation BundleError.swift
[5/31] Compiling SwiftLibsFoundation Bool+Init.swift
[6/32] Emitting module SwiftLibsFoundation
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/32] Emitting module SwiftLibsCommunication
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:29:51: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |     // MARK: Functions
 28 |
 29 |     public override class func canInit(with task: URLSessionTask) -> Bool {
    |                                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |         true
 31 |     }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:29:32: error: method does not override any method from its superclass
 27 |     // MARK: Functions
 28 |
 29 |     public override class func canInit(with task: URLSessionTask) -> Bool {
    |                                `- error: method does not override any method from its superclass
 30 |         true
 31 |     }
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:33:54: error: cannot find type 'URLRequest' in scope
 31 |     }
 32 |
 33 |     public override class func canInit(with request: URLRequest) -> Bool {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 34 |         true
 35 |     }
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:37:77: error: cannot find type 'URLRequest' in scope
 35 |     }
 36 |
 37 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
 38 |         request
 39 |     }
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:37:62: error: cannot find type 'URLRequest' in scope
 35 |     }
 36 |
 37 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
 38 |         request
 39 |     }
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:41:26: error: method does not override any method from its superclass
 39 |     }
 40 |
 41 |     public override func startLoading() {
    |                          `- error: method does not override any method from its superclass
 42 |         guard
 43 |             let httpMethod = request.httpMethod,
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:75:26: error: method does not override any method from its superclass
 73 |     }
 74 |
 75 |     public override func stopLoading() {}
    |                          `- error: method does not override any method from its superclass
 76 |
 77 | }
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:20:31: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |
 19 | /// This class overrides the `URLProtocol` protocol used by the `URLSession` to handle the loading of protocol-specific URL data so it is possible to mock URL response for testing purposes.
 20 | public class MockURLProtocol: URLProtocol {
    |                               `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |
 22 |     // MARK: Properties
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/Libraries/Communication/Use Cases/MakeURLRequestUseCase.swift:31:67: error: cannot find type 'URLRequest' in scope
29 |     /// - Parameter endpoint: An endpoint which is used to generate a `URLRequest` instance from.
30 |     /// - Returns: A `URLRequest` instance filled with data provided by the given endpoint.
31 |     public func callAsFunction(endpoint: some Endpoint) throws -> URLRequest {
   |                                                                   `- error: cannot find type 'URLRequest' in scope
32 |         var urlComponents = URLComponents()
33 |
[8/32] Compiling SwiftLibsCoordination WindowRouter.swift
[9/32] Compiling SwiftLibsCoordination PushNavigationRouter.swift
[10/32] Compiling SwiftLibsCommunication HTTPRequestMethod.swift
[11/32] Compiling SwiftLibsCommunication MakeURLRequestUseCase.swift
/host/spi-builder-workspace/Libraries/Communication/Use Cases/MakeURLRequestUseCase.swift:31:67: error: cannot find type 'URLRequest' in scope
29 |     /// - Parameter endpoint: An endpoint which is used to generate a `URLRequest` instance from.
30 |     /// - Returns: A `URLRequest` instance filled with data provided by the given endpoint.
31 |     public func callAsFunction(endpoint: some Endpoint) throws -> URLRequest {
   |                                                                   `- error: cannot find type 'URLRequest' in scope
32 |         var urlComponents = URLComponents()
33 |
/host/spi-builder-workspace/Libraries/Communication/Use Cases/MakeURLRequestUseCase.swift:52:26: error: cannot find 'URLRequest' in scope
50 |         }
51 |
52 |         var urlRequest = URLRequest(url: url)
   |                          `- error: cannot find 'URLRequest' in scope
53 |
54 |         urlRequest.httpMethod = endpoint.method.rawValue
[12/32] Compiling SwiftLibsFoundation LossyCodableList.swift
[13/32] Compiling SwiftLibsCoordination BaseNavigationRouter.swift
[14/32] Compiling SwiftLibsCoordination Router.swift
[15/32] Compiling SwiftLibsCoordination ModalNavigationRouter.swift
[16/32] Compiling SwiftLibsDependency Dependency.swift
[17/32] Compiling SwiftLibsCommunication Client.swift
[18/32] Compiling SwiftLibsCommunication Endpoint.swift
[19/32] Compiling SwiftLibsCommunication MakeURLRequestError.swift
[20/32] Compiling SwiftLibsFoundation Collection+Empty.swift
[21/32] Compiling SwiftLibsCommunication MockURLProtocol.swift
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:29:51: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |     // MARK: Functions
 28 |
 29 |     public override class func canInit(with task: URLSessionTask) -> Bool {
    |                                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |         true
 31 |     }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:29:32: error: method does not override any method from its superclass
 27 |     // MARK: Functions
 28 |
 29 |     public override class func canInit(with task: URLSessionTask) -> Bool {
    |                                `- error: method does not override any method from its superclass
 30 |         true
 31 |     }
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:33:54: error: cannot find type 'URLRequest' in scope
 31 |     }
 32 |
 33 |     public override class func canInit(with request: URLRequest) -> Bool {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 34 |         true
 35 |     }
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:37:77: error: cannot find type 'URLRequest' in scope
 35 |     }
 36 |
 37 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
 38 |         request
 39 |     }
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:37:62: error: cannot find type 'URLRequest' in scope
 35 |     }
 36 |
 37 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
 38 |         request
 39 |     }
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:41:26: error: method does not override any method from its superclass
 39 |     }
 40 |
 41 |     public override func startLoading() {
    |                          `- error: method does not override any method from its superclass
 42 |         guard
 43 |             let httpMethod = request.httpMethod,
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:75:26: error: method does not override any method from its superclass
 73 |     }
 74 |
 75 |     public override func stopLoading() {}
    |                          `- error: method does not override any method from its superclass
 76 |
 77 | }
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:20:31: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |
 19 | /// This class overrides the `URLProtocol` protocol used by the `URLSession` to handle the loading of protocol-specific URL data so it is possible to mock URL response for testing purposes.
 20 | public class MockURLProtocol: URLProtocol {
    |                               `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |
 22 |     // MARK: Properties
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/Libraries/Communication/Classes/MockURLProtocol.swift:43:30: error: cannot find 'request' in scope
 41 |     public override func startLoading() {
 42 |         guard
 43 |             let httpMethod = request.httpMethod,
    |                              `- error: cannot find 'request' in scope
 44 |             let method = HTTPRequestMethod(rawValue: httpMethod),
 45 |             let url = request.url,
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:45:23: error: cannot find 'request' in scope
 43 |             let httpMethod = request.httpMethod,
 44 |             let method = HTTPRequestMethod(rawValue: httpMethod),
 45 |             let url = request.url,
    |                       `- error: cannot find 'request' in scope
 46 |             let response = Self.mockData[.init(
 47 |                 method: method,
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:51:13: error: cannot find 'client' in scope
 49 |             )]
 50 |         else {
 51 |             client?.urlProtocolDidFinishLoading(self)
    |             `- error: cannot find 'client' in scope
 52 |             return
 53 |         }
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:56:13: error: cannot find 'client' in scope
 54 |
 55 |         if let data = response.data {
 56 |             client?.urlProtocol(self, didLoad: data)
    |             `- error: cannot find 'client' in scope
 57 |         }
 58 |
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:59:31: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 57 |         }
 58 |
 59 |         if let httpResponse = HTTPURLResponse(
    |                               `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 60 |             url: url,
 61 |             statusCode: response.status.rawValue,
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:62:26: error: 'nil' requires a contextual type
 60 |             url: url,
 61 |             statusCode: response.status.rawValue,
 62 |             httpVersion: nil,
    |                          `- error: 'nil' requires a contextual type
 63 |             headerFields: response.headers
 64 |         ) {
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:65:13: error: cannot find 'client' in scope
 63 |             headerFields: response.headers
 64 |         ) {
 65 |             client?.urlProtocol(
    |             `- error: cannot find 'client' in scope
 66 |                 self,
 67 |                 didReceive: httpResponse,
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:68:38: error: cannot infer contextual base in reference to member 'allowedInMemoryOnly'
 66 |                 self,
 67 |                 didReceive: httpResponse,
 68 |                 cacheStoragePolicy: .allowedInMemoryOnly
    |                                      `- error: cannot infer contextual base in reference to member 'allowedInMemoryOnly'
 69 |             )
 70 |         }
/host/spi-builder-workspace/Libraries/Communication/Classes/MockURLProtocol.swift:72:9: error: cannot find 'client' in scope
 70 |         }
 71 |
 72 |         client?.urlProtocolDidFinishLoading(self)
    |         `- error: cannot find 'client' in scope
 73 |     }
 74 |
[22/32] Compiling SwiftLibsDependency DependencyKey.swift
[23/32] Emitting module SwiftLibsDependency
[24/32] Compiling SwiftLibsDependency DependencyService.swift
[25/32] Emitting module SwiftLibsCoordination
[26/32] Compiling SwiftLibsCoordination Coordinator.swift
[27/33] Compiling SwiftLibsFoundation String+Localisation.swift
[28/33] Compiling SwiftLibsFoundation Bundle+LocalisationBundle.swift
[29/33] Compiling SwiftLibsFoundation TimeZone+Zone.swift
[30/33] Compiling SwiftLibsFoundation String+Empty.swift
[31/33] Compiling SwiftLibsFoundation Optional+Nil.swift
[32/35] Compiling SwiftLibsCommunication HTTPResponseCode.swift
BUILD FAILURE 6.1 wasm