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 NetworkKit, reference master (8fa2cf), with Swift 6.1 for Wasm on 27 May 2025 19:09:44 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/cs4alhaider/NetworkKit.git
Reference: master
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/cs4alhaider/NetworkKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 8fa2cf2 Update README.md
Cloned https://github.com/cs4alhaider/NetworkKit.git
Revision (git rev-parse @):
8fa2cf2b83833e188bc8ca820296f9679f1bbf54
SUCCESS checkout https://github.com/cs4alhaider/NetworkKit.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/cs4alhaider/NetworkKit.git
https://github.com/cs4alhaider/NetworkKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "NetworkKit",
  "name" : "NetworkKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "NetworkKit",
      "targets" : [
        "NetworkKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "NetworkKitTests",
      "module_type" : "SwiftTarget",
      "name" : "NetworkKitTests",
      "path" : "Tests/NetworkKitTests",
      "sources" : [
        "NetworkKitTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "NetworkKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "NetworkKit",
      "module_type" : "SwiftTarget",
      "name" : "NetworkKit",
      "path" : "Sources/NetworkKit",
      "product_memberships" : [
        "NetworkKit"
      ],
      "sources" : [
        "ApiError.swift",
        "Empty.swift",
        "Endpoint.swift",
        "Extension+Array.swift",
        "Extension+Collection.swift",
        "Extension+Dictionary.swift",
        "Extension+Encodable.swift",
        "Extension+Error.swift",
        "Extension+String.swift",
        "Extension+URL.swift",
        "Extensions.swift",
        "FileError.swift",
        "FileExtension.swift",
        "HTTPMethod.swift",
        "NetworkKit.swift",
        "NetworkService.swift",
        "Path.swift",
        "Router.swift",
        "Typealias.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/20] Emitting module NetworkKit
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:25:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     /// ```
 24 |     /// And you can override this and build your own configurations such as adding ssl pinning and others stuff.
 25 |     var session: URLSessionConfiguration { get }
    |                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |
 27 |     /// The base url for your rest api
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:101:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 | public extension Endpoint {
100 |
101 |     var session: URLSessionConfiguration {
    |                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 |         .default
103 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:13:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkService' may have shared mutable state; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | public final class NetworkService {
    |                    `- note: class 'NetworkService' does not conform to the 'Sendable' protocol
 11 |
 12 |     private init() {}
 13 |     static let shared = NetworkService()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkService' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 14 |
 15 |     // MARK:- public methods
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:249:52: error: cannot find type 'URLRequest' in scope
247 |     /// - Parameter endpoint: Endpoint
248 |     /// - Returns: URLRequest
249 |     private func urlRequest(endpoint: Endpoint) -> URLRequest {
    |                                                    `- error: cannot find type 'URLRequest' in scope
250 |         var request: URLRequest!
251 |         if endpoint.method == .get {
[4/22] Compiling NetworkKit ApiError.swift
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:25:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     /// ```
 24 |     /// And you can override this and build your own configurations such as adding ssl pinning and others stuff.
 25 |     var session: URLSessionConfiguration { get }
    |                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |
 27 |     /// The base url for your rest api
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:101:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 | public extension Endpoint {
100 |
101 |     var session: URLSessionConfiguration {
    |                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 |         .default
103 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:102:10: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
100 |
101 |     var session: URLSessionConfiguration {
102 |         .default
    |          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
103 |     }
104 |
[5/22] Compiling NetworkKit Empty.swift
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:25:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     /// ```
 24 |     /// And you can override this and build your own configurations such as adding ssl pinning and others stuff.
 25 |     var session: URLSessionConfiguration { get }
    |                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |
 27 |     /// The base url for your rest api
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:101:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 | public extension Endpoint {
100 |
101 |     var session: URLSessionConfiguration {
    |                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 |         .default
103 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:102:10: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
100 |
101 |     var session: URLSessionConfiguration {
102 |         .default
    |          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
103 |     }
104 |
[6/22] Compiling NetworkKit Endpoint.swift
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:25:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     /// ```
 24 |     /// And you can override this and build your own configurations such as adding ssl pinning and others stuff.
 25 |     var session: URLSessionConfiguration { get }
    |                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |
 27 |     /// The base url for your rest api
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:101:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 | public extension Endpoint {
100 |
101 |     var session: URLSessionConfiguration {
    |                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 |         .default
103 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:102:10: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
100 |
101 |     var session: URLSessionConfiguration {
102 |         .default
    |          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
103 |     }
104 |
[7/22] Compiling NetworkKit HTTPMethod.swift
[8/22] Compiling NetworkKit NetworkKit.swift
[9/22] Compiling NetworkKit NetworkService.swift
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:13:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkService' may have shared mutable state; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | public final class NetworkService {
    |                    `- note: class 'NetworkService' does not conform to the 'Sendable' protocol
 11 |
 12 |     private init() {}
 13 |     static let shared = NetworkService()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkService' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 14 |
 15 |     // MARK:- public methods
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:249:52: error: cannot find type 'URLRequest' in scope
247 |     /// - Parameter endpoint: Endpoint
248 |     /// - Returns: URLRequest
249 |     private func urlRequest(endpoint: Endpoint) -> URLRequest {
    |                                                    `- error: cannot find type 'URLRequest' in scope
250 |         var request: URLRequest!
251 |         if endpoint.method == .get {
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:81:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 79 |         #endif
 80 |
 81 |         let session = URLSession(configuration: endpoint.session)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 82 |
 83 |         // starting the request task asynchronous
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:87:17: error: cannot find 'DispatchQueue' in scope
 85 |
 86 |             if let error = error {
 87 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 88 |                     completion(.failure(error))
 89 |                 }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:96:17: error: cannot find 'DispatchQueue' in scope
 94 |             // check for a response objcet
 95 |             guard let response = response as? HTTPURLResponse else {
 96 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 97 |                     completion(.failure(ApiError(message: "HTTP URL Response Error")))
 98 |                 }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:104:17: error: cannot find 'DispatchQueue' in scope
102 |             // check for a successful status code
103 |             guard Array(200..<300).contains(response.statusCode) else {
104 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
105 |                     completion(.failure(ApiError(statusCode: response.statusCode, error: ApiError(message: "Error: status code is \(response.statusCode)"))))
106 |                 }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:112:17: error: cannot find 'DispatchQueue' in scope
110 |             // check for response body
111 |             guard let data = data else {
112 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
113 |                     completion(.failure(ApiError.nilData))
114 |                 }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:219:13: error: cannot find 'DispatchQueue' in scope
217 |         // check if requiring empty response
218 |         guard T.self != Empty.self else {
219 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
220 |                 completion(.success(Empty() as! T))
221 |             }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:229:13: error: cannot find 'DispatchQueue' in scope
227 |             let decoder = JSONDecoder()
228 |             let object = try decoder.decode(T.self, from: data)
229 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
230 |                 completion(.success(object))
231 |             }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:233:13: error: cannot find 'DispatchQueue' in scope
231 |             }
232 |         } catch let error {
233 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
234 |                 completion(.failure(error))
235 |             }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:250:22: error: cannot find type 'URLRequest' in scope
248 |     /// - Returns: URLRequest
249 |     private func urlRequest(endpoint: Endpoint) -> URLRequest {
250 |         var request: URLRequest!
    |                      `- error: cannot find type 'URLRequest' in scope
251 |         if endpoint.method == .get {
252 |             request = URLRequest(url: urlWith(url: endpoint.url, parameters: endpoint.defaultParameters))
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:252:23: error: cannot find 'URLRequest' in scope
250 |         var request: URLRequest!
251 |         if endpoint.method == .get {
252 |             request = URLRequest(url: urlWith(url: endpoint.url, parameters: endpoint.defaultParameters))
    |                       `- error: cannot find 'URLRequest' in scope
253 |         } else {
254 |             request = URLRequest(url: urlWith(url: endpoint.url))
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:254:23: error: cannot find 'URLRequest' in scope
252 |             request = URLRequest(url: urlWith(url: endpoint.url, parameters: endpoint.defaultParameters))
253 |         } else {
254 |             request = URLRequest(url: urlWith(url: endpoint.url))
    |                       `- error: cannot find 'URLRequest' in scope
255 |             request.httpBody = endpoint.defaultParameters.jsonData()
256 |         }
[10/22] Compiling NetworkKit Path.swift
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:13:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkService' may have shared mutable state; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | public final class NetworkService {
    |                    `- note: class 'NetworkService' does not conform to the 'Sendable' protocol
 11 |
 12 |     private init() {}
 13 |     static let shared = NetworkService()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkService' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 14 |
 15 |     // MARK:- public methods
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:249:52: error: cannot find type 'URLRequest' in scope
247 |     /// - Parameter endpoint: Endpoint
248 |     /// - Returns: URLRequest
249 |     private func urlRequest(endpoint: Endpoint) -> URLRequest {
    |                                                    `- error: cannot find type 'URLRequest' in scope
250 |         var request: URLRequest!
251 |         if endpoint.method == .get {
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:81:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 79 |         #endif
 80 |
 81 |         let session = URLSession(configuration: endpoint.session)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 82 |
 83 |         // starting the request task asynchronous
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:87:17: error: cannot find 'DispatchQueue' in scope
 85 |
 86 |             if let error = error {
 87 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 88 |                     completion(.failure(error))
 89 |                 }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:96:17: error: cannot find 'DispatchQueue' in scope
 94 |             // check for a response objcet
 95 |             guard let response = response as? HTTPURLResponse else {
 96 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 97 |                     completion(.failure(ApiError(message: "HTTP URL Response Error")))
 98 |                 }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:104:17: error: cannot find 'DispatchQueue' in scope
102 |             // check for a successful status code
103 |             guard Array(200..<300).contains(response.statusCode) else {
104 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
105 |                     completion(.failure(ApiError(statusCode: response.statusCode, error: ApiError(message: "Error: status code is \(response.statusCode)"))))
106 |                 }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:112:17: error: cannot find 'DispatchQueue' in scope
110 |             // check for response body
111 |             guard let data = data else {
112 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
113 |                     completion(.failure(ApiError.nilData))
114 |                 }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:219:13: error: cannot find 'DispatchQueue' in scope
217 |         // check if requiring empty response
218 |         guard T.self != Empty.self else {
219 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
220 |                 completion(.success(Empty() as! T))
221 |             }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:229:13: error: cannot find 'DispatchQueue' in scope
227 |             let decoder = JSONDecoder()
228 |             let object = try decoder.decode(T.self, from: data)
229 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
230 |                 completion(.success(object))
231 |             }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:233:13: error: cannot find 'DispatchQueue' in scope
231 |             }
232 |         } catch let error {
233 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
234 |                 completion(.failure(error))
235 |             }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:250:22: error: cannot find type 'URLRequest' in scope
248 |     /// - Returns: URLRequest
249 |     private func urlRequest(endpoint: Endpoint) -> URLRequest {
250 |         var request: URLRequest!
    |                      `- error: cannot find type 'URLRequest' in scope
251 |         if endpoint.method == .get {
252 |             request = URLRequest(url: urlWith(url: endpoint.url, parameters: endpoint.defaultParameters))
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:252:23: error: cannot find 'URLRequest' in scope
250 |         var request: URLRequest!
251 |         if endpoint.method == .get {
252 |             request = URLRequest(url: urlWith(url: endpoint.url, parameters: endpoint.defaultParameters))
    |                       `- error: cannot find 'URLRequest' in scope
253 |         } else {
254 |             request = URLRequest(url: urlWith(url: endpoint.url))
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:254:23: error: cannot find 'URLRequest' in scope
252 |             request = URLRequest(url: urlWith(url: endpoint.url, parameters: endpoint.defaultParameters))
253 |         } else {
254 |             request = URLRequest(url: urlWith(url: endpoint.url))
    |                       `- error: cannot find 'URLRequest' in scope
255 |             request.httpBody = endpoint.defaultParameters.jsonData()
256 |         }
[11/22] Compiling NetworkKit Extension+Encodable.swift
[12/22] Compiling NetworkKit Extension+Error.swift
[13/22] Compiling NetworkKit Extension+String.swift
[14/22] Compiling NetworkKit FileError.swift
[15/22] Compiling NetworkKit FileExtension.swift
[16/22] Compiling NetworkKit Extension+URL.swift
[17/22] Compiling NetworkKit Extensions.swift
[18/22] Compiling NetworkKit Extension+Array.swift
[19/22] Compiling NetworkKit Extension+Collection.swift
[20/22] Compiling NetworkKit Extension+Dictionary.swift
[21/22] Compiling NetworkKit Router.swift
[22/22] Compiling NetworkKit Typealias.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
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/19] Emitting module NetworkKit
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:25:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     /// ```
 24 |     /// And you can override this and build your own configurations such as adding ssl pinning and others stuff.
 25 |     var session: URLSessionConfiguration { get }
    |                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |
 27 |     /// The base url for your rest api
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:101:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 | public extension Endpoint {
100 |
101 |     var session: URLSessionConfiguration {
    |                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 |         .default
103 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:249:52: error: cannot find type 'URLRequest' in scope
247 |     /// - Parameter endpoint: Endpoint
248 |     /// - Returns: URLRequest
249 |     private func urlRequest(endpoint: Endpoint) -> URLRequest {
    |                                                    `- error: cannot find type 'URLRequest' in scope
250 |         var request: URLRequest!
251 |         if endpoint.method == .get {
[3/21] Compiling NetworkKit HTTPMethod.swift
[4/21] Compiling NetworkKit NetworkKit.swift
[5/21] Compiling NetworkKit ApiError.swift
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:25:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     /// ```
 24 |     /// And you can override this and build your own configurations such as adding ssl pinning and others stuff.
 25 |     var session: URLSessionConfiguration { get }
    |                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |
 27 |     /// The base url for your rest api
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:101:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 | public extension Endpoint {
100 |
101 |     var session: URLSessionConfiguration {
    |                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 |         .default
103 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:102:10: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
100 |
101 |     var session: URLSessionConfiguration {
102 |         .default
    |          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
103 |     }
104 |
[6/21] Compiling NetworkKit Empty.swift
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:25:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     /// ```
 24 |     /// And you can override this and build your own configurations such as adding ssl pinning and others stuff.
 25 |     var session: URLSessionConfiguration { get }
    |                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |
 27 |     /// The base url for your rest api
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:101:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 | public extension Endpoint {
100 |
101 |     var session: URLSessionConfiguration {
    |                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 |         .default
103 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:102:10: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
100 |
101 |     var session: URLSessionConfiguration {
102 |         .default
    |          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
103 |     }
104 |
[7/21] Compiling NetworkKit Endpoint.swift
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:25:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     /// ```
 24 |     /// And you can override this and build your own configurations such as adding ssl pinning and others stuff.
 25 |     var session: URLSessionConfiguration { get }
    |                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |
 27 |     /// The base url for your rest api
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:101:18: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 | public extension Endpoint {
100 |
101 |     var session: URLSessionConfiguration {
    |                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 |         .default
103 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/Endpoint.swift:102:10: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
100 |
101 |     var session: URLSessionConfiguration {
102 |         .default
    |          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
103 |     }
104 |
[8/21] Compiling NetworkKit NetworkService.swift
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:249:52: error: cannot find type 'URLRequest' in scope
247 |     /// - Parameter endpoint: Endpoint
248 |     /// - Returns: URLRequest
249 |     private func urlRequest(endpoint: Endpoint) -> URLRequest {
    |                                                    `- error: cannot find type 'URLRequest' in scope
250 |         var request: URLRequest!
251 |         if endpoint.method == .get {
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:81:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 79 |         #endif
 80 |
 81 |         let session = URLSession(configuration: endpoint.session)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 82 |
 83 |         // starting the request task asynchronous
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:87:17: error: cannot find 'DispatchQueue' in scope
 85 |
 86 |             if let error = error {
 87 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 88 |                     completion(.failure(error))
 89 |                 }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:96:17: error: cannot find 'DispatchQueue' in scope
 94 |             // check for a response objcet
 95 |             guard let response = response as? HTTPURLResponse else {
 96 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 97 |                     completion(.failure(ApiError(message: "HTTP URL Response Error")))
 98 |                 }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:104:17: error: cannot find 'DispatchQueue' in scope
102 |             // check for a successful status code
103 |             guard Array(200..<300).contains(response.statusCode) else {
104 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
105 |                     completion(.failure(ApiError(statusCode: response.statusCode, error: ApiError(message: "Error: status code is \(response.statusCode)"))))
106 |                 }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:112:17: error: cannot find 'DispatchQueue' in scope
110 |             // check for response body
111 |             guard let data = data else {
112 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
113 |                     completion(.failure(ApiError.nilData))
114 |                 }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:219:13: error: cannot find 'DispatchQueue' in scope
217 |         // check if requiring empty response
218 |         guard T.self != Empty.self else {
219 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
220 |                 completion(.success(Empty() as! T))
221 |             }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:229:13: error: cannot find 'DispatchQueue' in scope
227 |             let decoder = JSONDecoder()
228 |             let object = try decoder.decode(T.self, from: data)
229 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
230 |                 completion(.success(object))
231 |             }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:233:13: error: cannot find 'DispatchQueue' in scope
231 |             }
232 |         } catch let error {
233 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
234 |                 completion(.failure(error))
235 |             }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:250:22: error: cannot find type 'URLRequest' in scope
248 |     /// - Returns: URLRequest
249 |     private func urlRequest(endpoint: Endpoint) -> URLRequest {
250 |         var request: URLRequest!
    |                      `- error: cannot find type 'URLRequest' in scope
251 |         if endpoint.method == .get {
252 |             request = URLRequest(url: urlWith(url: endpoint.url, parameters: endpoint.defaultParameters))
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:252:23: error: cannot find 'URLRequest' in scope
250 |         var request: URLRequest!
251 |         if endpoint.method == .get {
252 |             request = URLRequest(url: urlWith(url: endpoint.url, parameters: endpoint.defaultParameters))
    |                       `- error: cannot find 'URLRequest' in scope
253 |         } else {
254 |             request = URLRequest(url: urlWith(url: endpoint.url))
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:254:23: error: cannot find 'URLRequest' in scope
252 |             request = URLRequest(url: urlWith(url: endpoint.url, parameters: endpoint.defaultParameters))
253 |         } else {
254 |             request = URLRequest(url: urlWith(url: endpoint.url))
    |                       `- error: cannot find 'URLRequest' in scope
255 |             request.httpBody = endpoint.defaultParameters.jsonData()
256 |         }
[9/21] Compiling NetworkKit Path.swift
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:249:52: error: cannot find type 'URLRequest' in scope
247 |     /// - Parameter endpoint: Endpoint
248 |     /// - Returns: URLRequest
249 |     private func urlRequest(endpoint: Endpoint) -> URLRequest {
    |                                                    `- error: cannot find type 'URLRequest' in scope
250 |         var request: URLRequest!
251 |         if endpoint.method == .get {
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:81:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 79 |         #endif
 80 |
 81 |         let session = URLSession(configuration: endpoint.session)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 82 |
 83 |         // starting the request task asynchronous
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:87:17: error: cannot find 'DispatchQueue' in scope
 85 |
 86 |             if let error = error {
 87 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 88 |                     completion(.failure(error))
 89 |                 }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:96:17: error: cannot find 'DispatchQueue' in scope
 94 |             // check for a response objcet
 95 |             guard let response = response as? HTTPURLResponse else {
 96 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 97 |                     completion(.failure(ApiError(message: "HTTP URL Response Error")))
 98 |                 }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:104:17: error: cannot find 'DispatchQueue' in scope
102 |             // check for a successful status code
103 |             guard Array(200..<300).contains(response.statusCode) else {
104 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
105 |                     completion(.failure(ApiError(statusCode: response.statusCode, error: ApiError(message: "Error: status code is \(response.statusCode)"))))
106 |                 }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:112:17: error: cannot find 'DispatchQueue' in scope
110 |             // check for response body
111 |             guard let data = data else {
112 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
113 |                     completion(.failure(ApiError.nilData))
114 |                 }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:219:13: error: cannot find 'DispatchQueue' in scope
217 |         // check if requiring empty response
218 |         guard T.self != Empty.self else {
219 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
220 |                 completion(.success(Empty() as! T))
221 |             }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:229:13: error: cannot find 'DispatchQueue' in scope
227 |             let decoder = JSONDecoder()
228 |             let object = try decoder.decode(T.self, from: data)
229 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
230 |                 completion(.success(object))
231 |             }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:233:13: error: cannot find 'DispatchQueue' in scope
231 |             }
232 |         } catch let error {
233 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
234 |                 completion(.failure(error))
235 |             }
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:250:22: error: cannot find type 'URLRequest' in scope
248 |     /// - Returns: URLRequest
249 |     private func urlRequest(endpoint: Endpoint) -> URLRequest {
250 |         var request: URLRequest!
    |                      `- error: cannot find type 'URLRequest' in scope
251 |         if endpoint.method == .get {
252 |             request = URLRequest(url: urlWith(url: endpoint.url, parameters: endpoint.defaultParameters))
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:252:23: error: cannot find 'URLRequest' in scope
250 |         var request: URLRequest!
251 |         if endpoint.method == .get {
252 |             request = URLRequest(url: urlWith(url: endpoint.url, parameters: endpoint.defaultParameters))
    |                       `- error: cannot find 'URLRequest' in scope
253 |         } else {
254 |             request = URLRequest(url: urlWith(url: endpoint.url))
/host/spi-builder-workspace/Sources/NetworkKit/NetworkService.swift:254:23: error: cannot find 'URLRequest' in scope
252 |             request = URLRequest(url: urlWith(url: endpoint.url, parameters: endpoint.defaultParameters))
253 |         } else {
254 |             request = URLRequest(url: urlWith(url: endpoint.url))
    |                       `- error: cannot find 'URLRequest' in scope
255 |             request.httpBody = endpoint.defaultParameters.jsonData()
256 |         }
[10/21] Compiling NetworkKit FileError.swift
[11/21] Compiling NetworkKit FileExtension.swift
[12/21] Compiling NetworkKit Router.swift
[13/21] Compiling NetworkKit Typealias.swift
[14/21] Compiling NetworkKit Extension+Encodable.swift
[15/21] Compiling NetworkKit Extension+Error.swift
[16/21] Compiling NetworkKit Extension+String.swift
[17/21] Compiling NetworkKit Extension+URL.swift
[18/21] Compiling NetworkKit Extensions.swift
[19/21] Compiling NetworkKit Extension+Array.swift
[20/21] Compiling NetworkKit Extension+Collection.swift
[21/21] Compiling NetworkKit Extension+Dictionary.swift
BUILD FAILURE 6.1 wasm