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 AmiiboService, reference v1.1.2 (e9f08c), with Swift 6.1 for Wasm on 28 May 2025 18:14:36 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/amiibo-service.git
Reference: v1.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/rock-n-code/amiibo-service
 * tag               v1.1.2     -> FETCH_HEAD
HEAD is now at e9f08c6 [Improvement] SwiftLibs package update (#22)
Cloned https://github.com/rock-n-code/amiibo-service.git
Revision (git rev-parse @):
e9f08c68da018271ef2b05a1f80b782a376fe71a
SUCCESS checkout https://github.com/rock-n-code/amiibo-service.git at v1.1.2
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/rock-n-code/amiibo-service.git
https://github.com/rock-n-code/amiibo-service.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-libs",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.7",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/rock-n-code/swift-libs.git"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "AmiiboService",
  "name" : "AmiiboService",
  "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" : "AmiiboService",
      "targets" : [
        "AmiiboService"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AmiiboServiceTests",
      "module_type" : "SwiftTarget",
      "name" : "AmiiboServiceTests",
      "path" : "Tests",
      "product_dependencies" : [
        "SwiftLibs"
      ],
      "sources" : [
        "Clients/AmiiboClientTests.swift",
        "Helpers/Endpoints/TestEndpoint.swift",
        "Helpers/Extensions/Data+Seed.swift",
        "Helpers/Extensions/GetAmiiboEndpoint+Init.swift",
        "Helpers/Extensions/GetCharacterEndpoint+Init.swift",
        "Helpers/Extensions/GetGameSeriesEndpoint+Init.swift",
        "Helpers/Extensions/GetSeriesEndpoint+Init.swift",
        "Helpers/Extensions/GetTypeEndpoint+Init.swift",
        "Helpers/Extensions/MockURLRequest+Init.swift",
        "Helpers/Extensions/String+Seed.swift",
        "Helpers/Models/TestModel.swift",
        "Services/AmiiboServiceTests.swift"
      ],
      "target_dependencies" : [
        "AmiiboService"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AmiiboService",
      "module_type" : "SwiftTarget",
      "name" : "AmiiboService",
      "path" : "Sources",
      "product_dependencies" : [
        "SwiftLibs"
      ],
      "product_memberships" : [
        "AmiiboService"
      ],
      "sources" : [
        "Clients/AmiiboClient.swift",
        "Endpoints/GetAmiiboEndpoint.swift",
        "Endpoints/GetCharacterEndpoint.swift",
        "Endpoints/GetGameSeriesEndpoint.swift",
        "Endpoints/GetLastUpdatedEndpoint.swift",
        "Endpoints/GetSeriesEndpoint.swift",
        "Endpoints/GetTypeEndpoint.swift",
        "Errors/AmiiboClientError.swift",
        "Extensions/DateFormatter+Formatter.swift",
        "Extensions/String+Host.swift",
        "Extensions/String+Path.swift",
        "Extensions/String+Scheme.swift",
        "Filters/AmiiboFilter.swift",
        "Filters/KeyNameFilter.swift",
        "Models/DTO.swift",
        "Models/DTO/Amiibo.swift",
        "Models/DTO/AmiiboGame.swift",
        "Models/DTO/AmiiboGameUsage.swift",
        "Models/DTO/AmiiboRelease.swift",
        "Models/DTO/KeyName.swift",
        "Models/DTO/LastUpdated.swift",
        "Models/Result.swift",
        "Protocols/Filter.swift",
        "Protocols/Service.swift",
        "Services/AmiiboService.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/rock-n-code/swift-libs.git
Fetching https://github.com/apple/swift-docc-plugin
[1/1637] Fetching swift-libs
[1638/3686] Fetching swift-libs, swift-docc-plugin
Fetched https://github.com/rock-n-code/swift-libs.git from cache (0.44s)
Fetched https://github.com/apple/swift-docc-plugin from cache (0.46s)
Computing version for https://github.com/rock-n-code/swift-libs.git
Computed https://github.com/rock-n-code/swift-libs.git at 0.2.2 (1.11s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (2.23s)
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.41s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.36s)
Creating working copy for https://github.com/rock-n-code/swift-libs.git
Working copy of https://github.com/rock-n-code/swift-libs.git resolved at 0.2.2
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/8] Write sources
[7/8] Write swift-version-24593BA9C3E375BF.txt
[9/36] Compiling SwiftLibsFoundation String+Empty.swift
[10/37] Compiling SwiftLibsFoundation Optional+Nil.swift
[11/37] Compiling SwiftLibsCoordination Coordinator.swift
[12/37] Emitting module SwiftLibsCoordination
[13/37] Compiling SwiftLibsFoundation Collection+Empty.swift
[14/37] Compiling SwiftLibsCommunication MakeURLRequestError.swift
[15/37] Compiling SwiftLibsCommunication HTTPResponseCode.swift
[16/37] Compiling SwiftLibsCoordination Router.swift
[17/37] Compiling SwiftLibsCoordination BaseNavigationRouter.swift
[18/37] Compiling SwiftLibsCoordination ModalNavigationRouter.swift
[19/37] Compiling SwiftLibsDependency DependencyService.swift
[20/37] Compiling SwiftLibsDependency DependencyKey.swift
[21/37] Emitting module SwiftLibsDependency
[22/37] Compiling SwiftLibsDependency Dependency.swift
[23/37] Compiling SwiftLibsCoordination PushNavigationRouter.swift
[24/37] Compiling SwiftLibsCoordination WindowRouter.swift
[27/39] Compiling SwiftLibsFoundation LossyCodableList.swift
[28/39] Compiling SwiftLibsFoundation TimeZone+Zone.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[29/39] Emitting module SwiftLibsCommunication
/host/spi-builder-workspace/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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 |
[30/39] Compiling SwiftLibsCommunication MockURLProtocol.swift
/host/spi-builder-workspace/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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 |
[31/39] Compiling SwiftLibsCommunication MakeURLRequestUseCase.swift
/host/spi-builder-workspace/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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
[32/39] Compiling SwiftLibsFoundation String+Localisation.swift
[33/39] Compiling SwiftLibsCommunication Endpoint.swift
[34/39] Compiling SwiftLibsFoundation BundleError.swift
[35/39] Compiling SwiftLibsFoundation Bool+Init.swift
[36/39] Emitting module SwiftLibsFoundation
[37/39] Compiling SwiftLibsFoundation Bundle+LocalisationBundle.swift
[38/40] Compiling SwiftLibsCommunication HTTPRequestMethod.swift
[39/40] Compiling SwiftLibsCommunication Client.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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 SwiftLibsCommunication MakeURLRequestUseCase.swift
/host/spi-builder-workspace/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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
[5/31] Compiling SwiftLibsFoundation TimeZone+Zone.swift
[6/31] Compiling SwiftLibsCommunication Endpoint.swift
[7/32] Compiling SwiftLibsDependency Dependency.swift
[8/32] Compiling SwiftLibsCommunication Client.swift
[9/32] Compiling SwiftLibsCoordination WindowRouter.swift
[10/32] Compiling SwiftLibsFoundation Collection+Empty.swift
[11/32] Compiling SwiftLibsCoordination ModalNavigationRouter.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/32] Emitting module SwiftLibsCommunication
/host/spi-builder-workspace/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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 |
[13/32] Compiling SwiftLibsFoundation String+Empty.swift
[14/32] Compiling SwiftLibsFoundation String+Localisation.swift
[15/32] Compiling SwiftLibsFoundation Optional+Nil.swift
[16/32] Compiling SwiftLibsFoundation Bundle+LocalisationBundle.swift
[17/32] Compiling SwiftLibsCoordination PushNavigationRouter.swift
[18/32] Compiling SwiftLibsCoordination Router.swift
[19/32] Compiling SwiftLibsCoordination BaseNavigationRouter.swift
[20/32] Emitting module SwiftLibsDependency
[21/32] Compiling SwiftLibsDependency DependencyKey.swift
[22/32] Compiling SwiftLibsDependency DependencyService.swift
[23/33] Compiling SwiftLibsFoundation BundleError.swift
[24/33] Compiling SwiftLibsFoundation Bool+Init.swift
[25/33] Emitting module SwiftLibsFoundation
[26/33] Compiling SwiftLibsCoordination Coordinator.swift
[27/33] Emitting module SwiftLibsCoordination
[28/33] Compiling SwiftLibsCommunication HTTPResponseCode.swift
[29/33] Compiling SwiftLibsCommunication MakeURLRequestError.swift
[30/34] Compiling SwiftLibsCommunication HTTPRequestMethod.swift
[31/34] Compiling SwiftLibsCommunication MockURLProtocol.swift
/host/spi-builder-workspace/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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/.build/checkouts/swift-libs/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 |
[32/34] Compiling SwiftLibsFoundation LossyCodableList.swift
BUILD FAILURE 6.1 wasm