Build Information
Failed to build NetworkKit, reference main (1c1904), with Swift 6.1 for Wasm on 2 Apr 2026 03:47:38 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ErsanQ/NetworkKit.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/ErsanQ/NetworkKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 1c19041 fix: resolve invalid test paths and empty targets for SPI compatibility
Cloned https://github.com/ErsanQ/NetworkKit.git
Revision (git rev-parse @):
1c19041ca528e103a6858862d5f87f135086828b
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ErsanQ/NetworkKit.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/ErsanQ/NetworkKit.git
https://github.com/ErsanQ/NetworkKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"default_localization" : "en",
"dependencies" : [
],
"manifest_display_name" : "NetworkKit",
"name" : "NetworkKit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "tvos",
"version" : "14.0"
},
{
"name" : "watchos",
"version" : "7.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "NetworkKit",
"targets" : [
"NetworkKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "NetworkKitTests",
"module_type" : "SwiftTarget",
"name" : "NetworkKitTests",
"path" : "Tests/NetworkKitTests",
"sources" : [
"NetworkKitTests.swift"
],
"target_dependencies" : [
"NetworkKit"
],
"type" : "test"
},
{
"c99name" : "NetworkKit",
"module_type" : "SwiftTarget",
"name" : "NetworkKit",
"path" : "Sources/NetworkKit",
"product_memberships" : [
"NetworkKit"
],
"sources" : [
"Network.swift",
"NetworkClient.swift",
"NetworkError.swift",
"NetworkKitFallback.swift",
"NetworkRequest.swift",
"NetworkResponse.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/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 swiftpackageindex/spi-images
Digest: sha256:c3bd0c8eb125dea46564a1eb8b09ee779ba7ae350b1ee58b5e9d6ff6c39cef37
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/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/9] Emitting module NetworkKit
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:27:54: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | /// - session: An optional custom `URLSession`. Defaults to `.shared`.
26 | /// - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 | public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 | self.baseURL = baseURL
29 | self.session = session
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// The base URL prepended to all relative request paths.
17 | public let baseURL: URL
18 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | private let decoder: JSONDecoder
20 |
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:27:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - session: An optional custom `URLSession`. Defaults to `.shared`.
26 | /// - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 | public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | self.baseURL = baseURL
29 | self.session = session
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:18:17: warning: stored property 'session' of 'Sendable'-conforming class 'NetworkClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
16 | /// The base URL prepended to all relative request paths.
17 | public let baseURL: URL
18 | private let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'NetworkClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
19 | private let decoder: JSONDecoder
20 |
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:40:55: error: cannot find type 'URLRequest' in scope
38 |
39 | /// Internal helper to transform the `NetworkRequest` into a native `URLRequest`.
40 | func buildURLRequest(with baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
41 | var url = baseURL.appendingPathComponent(path)
42 |
[4/9] Compiling NetworkKit NetworkKitFallback.swift
[5/9] Compiling NetworkKit NetworkResponse.swift
[6/9] Compiling NetworkKit NetworkRequest.swift
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:40:55: error: cannot find type 'URLRequest' in scope
38 |
39 | /// Internal helper to transform the `NetworkRequest` into a native `URLRequest`.
40 | func buildURLRequest(with baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
41 | var url = baseURL.appendingPathComponent(path)
42 |
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:50:23: error: cannot find 'URLRequest' in scope
48 | }
49 |
50 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
51 | request.httpMethod = method.rawValue
52 | request.httpBody = body
[7/9] Compiling NetworkKit NetworkError.swift
[8/9] Compiling NetworkKit Network.swift
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:27:54: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | /// - session: An optional custom `URLSession`. Defaults to `.shared`.
26 | /// - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 | public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 | self.baseURL = baseURL
29 | self.session = session
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:40:55: error: cannot find type 'URLRequest' in scope
38 |
39 | /// Internal helper to transform the `NetworkRequest` into a native `URLRequest`.
40 | func buildURLRequest(with baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
41 | var url = baseURL.appendingPathComponent(path)
42 |
/host/spi-builder-workspace/Sources/NetworkKit/Network.swift:112:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
110 | public static func response(for request: NetworkRequest) async throws -> NetworkResponse {
111 | let urlRequest = try request.buildURLRequest(with: shared.baseURL)
112 | let (data, response) = try await URLSession.shared.data(for: urlRequest)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
113 | guard let http = response as? HTTPURLResponse else { throw NetworkError.invalidResponse }
114 | return NetworkResponse(statusCode: http.statusCode, data: data, headers: http.allHeaderFields.reduce(into: [:]) { partial, item in
[9/9] Compiling NetworkKit NetworkClient.swift
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// The base URL prepended to all relative request paths.
17 | public let baseURL: URL
18 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | private let decoder: JSONDecoder
20 |
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:27:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - session: An optional custom `URLSession`. Defaults to `.shared`.
26 | /// - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 | public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | self.baseURL = baseURL
29 | self.session = session
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:27:54: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | /// - session: An optional custom `URLSession`. Defaults to `.shared`.
26 | /// - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 | public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 | self.baseURL = baseURL
29 | self.session = session
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:18:17: warning: stored property 'session' of 'Sendable'-conforming class 'NetworkClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
16 | /// The base URL prepended to all relative request paths.
17 | public let baseURL: URL
18 | private let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'NetworkClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
19 | private let decoder: JSONDecoder
20 |
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:40:55: error: cannot find type 'URLRequest' in scope
38 |
39 | /// Internal helper to transform the `NetworkRequest` into a native `URLRequest`.
40 | func buildURLRequest(with baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
41 | var url = baseURL.appendingPathComponent(path)
42 |
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:41:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
39 | let urlRequest = try request.buildURLRequest(with: baseURL)
40 |
41 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
42 |
43 | guard let httpResponse = response as? HTTPURLResponse else {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:c3bd0c8eb125dea46564a1eb8b09ee779ba7ae350b1ee58b5e9d6ff6c39cef37
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/8] Compiling NetworkKit NetworkKitFallback.swift
[3/8] Compiling NetworkKit NetworkResponse.swift
[4/8] Compiling NetworkKit NetworkRequest.swift
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:40:55: error: cannot find type 'URLRequest' in scope
38 |
39 | /// Internal helper to transform the `NetworkRequest` into a native `URLRequest`.
40 | func buildURLRequest(with baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
41 | var url = baseURL.appendingPathComponent(path)
42 |
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:50:23: error: cannot find 'URLRequest' in scope
48 | }
49 |
50 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
51 | request.httpMethod = method.rawValue
52 | request.httpBody = body
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/8] Emitting module NetworkKit
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:27:54: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | /// - session: An optional custom `URLSession`. Defaults to `.shared`.
26 | /// - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 | public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 | self.baseURL = baseURL
29 | self.session = session
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// The base URL prepended to all relative request paths.
17 | public let baseURL: URL
18 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | private let decoder: JSONDecoder
20 |
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:27:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - session: An optional custom `URLSession`. Defaults to `.shared`.
26 | /// - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 | public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | self.baseURL = baseURL
29 | self.session = session
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:18:17: warning: stored property 'session' of 'Sendable'-conforming class 'NetworkClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
16 | /// The base URL prepended to all relative request paths.
17 | public let baseURL: URL
18 | private let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'NetworkClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
19 | private let decoder: JSONDecoder
20 |
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:40:55: error: cannot find type 'URLRequest' in scope
38 |
39 | /// Internal helper to transform the `NetworkRequest` into a native `URLRequest`.
40 | func buildURLRequest(with baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
41 | var url = baseURL.appendingPathComponent(path)
42 |
[6/8] Compiling NetworkKit NetworkClient.swift
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// The base URL prepended to all relative request paths.
17 | public let baseURL: URL
18 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | private let decoder: JSONDecoder
20 |
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:27:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - session: An optional custom `URLSession`. Defaults to `.shared`.
26 | /// - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 | public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | self.baseURL = baseURL
29 | self.session = session
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:27:54: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | /// - session: An optional custom `URLSession`. Defaults to `.shared`.
26 | /// - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 | public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 | self.baseURL = baseURL
29 | self.session = session
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:18:17: warning: stored property 'session' of 'Sendable'-conforming class 'NetworkClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
16 | /// The base URL prepended to all relative request paths.
17 | public let baseURL: URL
18 | private let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'NetworkClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
19 | private let decoder: JSONDecoder
20 |
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:40:55: error: cannot find type 'URLRequest' in scope
38 |
39 | /// Internal helper to transform the `NetworkRequest` into a native `URLRequest`.
40 | func buildURLRequest(with baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
41 | var url = baseURL.appendingPathComponent(path)
42 |
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:41:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
39 | let urlRequest = try request.buildURLRequest(with: baseURL)
40 |
41 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
42 |
43 | guard let httpResponse = response as? HTTPURLResponse else {
[7/8] Compiling NetworkKit Network.swift
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:27:54: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | /// - session: An optional custom `URLSession`. Defaults to `.shared`.
26 | /// - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 | public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 | self.baseURL = baseURL
29 | self.session = session
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:40:55: error: cannot find type 'URLRequest' in scope
38 |
39 | /// Internal helper to transform the `NetworkRequest` into a native `URLRequest`.
40 | func buildURLRequest(with baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
41 | var url = baseURL.appendingPathComponent(path)
42 |
/host/spi-builder-workspace/Sources/NetworkKit/Network.swift:112:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
110 | public static func response(for request: NetworkRequest) async throws -> NetworkResponse {
111 | let urlRequest = try request.buildURLRequest(with: shared.baseURL)
112 | let (data, response) = try await URLSession.shared.data(for: urlRequest)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
113 | guard let http = response as? HTTPURLResponse else { throw NetworkError.invalidResponse }
114 | return NetworkResponse(statusCode: http.statusCode, data: data, headers: http.allHeaderFields.reduce(into: [:]) { partial, item in
[8/8] Compiling NetworkKit NetworkError.swift
BUILD FAILURE 6.1 wasm