The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SynchronousNetworking, reference 0.0.1 (bef4b3), with Swift 6.1 for Wasm on 27 May 2025 09:20:19 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/heshammegid/synchronousnetworking.git
Reference: 0.0.1
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/heshammegid/synchronousnetworking
 * tag               0.0.1      -> FETCH_HEAD
HEAD is now at bef4b3d Initial Commit
Cloned https://github.com/heshammegid/synchronousnetworking.git
Revision (git rev-parse @):
bef4b3d4adfd234f08a9de422da11aa2990fb7e2
SUCCESS checkout https://github.com/heshammegid/synchronousnetworking.git at 0.0.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/heshammegid/synchronousnetworking.git
https://github.com/heshammegid/synchronousnetworking.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SynchronousNetworking",
  "name" : "SynchronousNetworking",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SynchronousNetworking",
      "targets" : [
        "SynchronousNetworking"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SynchronousNetworkingTests",
      "module_type" : "SwiftTarget",
      "name" : "SynchronousNetworkingTests",
      "path" : "Tests/SynchronousNetworkingTests",
      "sources" : [
        "SynchronousNetworkingTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SynchronousNetworking"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SynchronousNetworking",
      "module_type" : "SwiftTarget",
      "name" : "SynchronousNetworking",
      "path" : "Sources/SynchronousNetworking",
      "product_memberships" : [
        "SynchronousNetworking"
      ],
      "sources" : [
        "Extensions/URL+Additions.swift",
        "NetworkResponse.swift",
        "SynchronousNetworking.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
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:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
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/6] Compiling SynchronousNetworking URL+Additions.swift
[4/6] Emitting module SynchronousNetworking
/host/spi-builder-workspace/Sources/SynchronousNetworking/NetworkResponse.swift:4:25: error: cannot find type 'URLRequest' in scope
2 |
3 | public struct NetworkResponse {
4 |     public var request: URLRequest?
  |                         `- error: cannot find type 'URLRequest' in scope
5 |     public var response: HTTPURLResponse?
6 |     public var data: Data?
/host/spi-builder-workspace/Sources/SynchronousNetworking/NetworkResponse.swift:5:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 | public struct NetworkResponse {
4 |     public var request: URLRequest?
5 |     public var response: HTTPURLResponse?
  |                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 |     public var data: Data?
7 |     public var error: Error?
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:5:30: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  3 | public struct SynchronousNetworking {
  4 |     let baseUrl: URL
  5 |     let session = URLSession.shared
    |                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  6 |
  7 |     public init(baseUrl: URL) {
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:52:88: error: cannot find type 'URLRequest' in scope
 50 |     }
 51 |
 52 |     func requestByAdding(headers: [String: String], forRequest request: URLRequest) -> URLRequest {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
 53 |         var requestWithHeader = request
 54 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:52:73: error: cannot find type 'URLRequest' in scope
 50 |     }
 51 |
 52 |     func requestByAdding(headers: [String: String], forRequest request: URLRequest) -> URLRequest {
    |                                                                         `- error: cannot find type 'URLRequest' in scope
 53 |         var requestWithHeader = request
 54 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:62:45: error: cannot find type 'URLRequest' in scope
 60 |     }
 61 |
 62 |     func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
    |                                             `- error: cannot find type 'URLRequest' in scope
 63 |         let semaphore = DispatchSemaphore(value: 0)
 64 |         var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:81:86: error: cannot find type 'URLRequest' in scope
 79 |     }
 80 |
 81 |     func jsonBodyHttpRequest(url: URL, method: String, parameters: [String: Any]) -> URLRequest {
    |                                                                                      `- error: cannot find type 'URLRequest' in scope
 82 |         var urlRequest = URLRequest(url: url)
 83 |         let jsonData = try? JSONSerialization.data(withJSONObject: parameters)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:97:72: error: cannot find type 'URLRequest' in scope
 95 |     }
 96 |
 97 |     func urlEncodedHttpRequest(url: URL, parameters: [String: Any]) -> URLRequest {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
 98 |         let query = queryStringFor(parameters: parameters)
 99 |         let encodedURL = url.appending(query: query)
[5/6] Compiling SynchronousNetworking SynchronousNetworking.swift
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:5:30: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  3 | public struct SynchronousNetworking {
  4 |     let baseUrl: URL
  5 |     let session = URLSession.shared
    |                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  6 |
  7 |     public init(baseUrl: URL) {
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:52:88: error: cannot find type 'URLRequest' in scope
 50 |     }
 51 |
 52 |     func requestByAdding(headers: [String: String], forRequest request: URLRequest) -> URLRequest {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
 53 |         var requestWithHeader = request
 54 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:52:73: error: cannot find type 'URLRequest' in scope
 50 |     }
 51 |
 52 |     func requestByAdding(headers: [String: String], forRequest request: URLRequest) -> URLRequest {
    |                                                                         `- error: cannot find type 'URLRequest' in scope
 53 |         var requestWithHeader = request
 54 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:62:45: error: cannot find type 'URLRequest' in scope
 60 |     }
 61 |
 62 |     func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
    |                                             `- error: cannot find type 'URLRequest' in scope
 63 |         let semaphore = DispatchSemaphore(value: 0)
 64 |         var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:81:86: error: cannot find type 'URLRequest' in scope
 79 |     }
 80 |
 81 |     func jsonBodyHttpRequest(url: URL, method: String, parameters: [String: Any]) -> URLRequest {
    |                                                                                      `- error: cannot find type 'URLRequest' in scope
 82 |         var urlRequest = URLRequest(url: url)
 83 |         let jsonData = try? JSONSerialization.data(withJSONObject: parameters)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:97:72: error: cannot find type 'URLRequest' in scope
 95 |     }
 96 |
 97 |     func urlEncodedHttpRequest(url: URL, parameters: [String: Any]) -> URLRequest {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
 98 |         let query = queryStringFor(parameters: parameters)
 99 |         let encodedURL = url.appending(query: query)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:63:25: error: cannot find 'DispatchSemaphore' in scope
 61 |
 62 |     func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
 63 |         let semaphore = DispatchSemaphore(value: 0)
    |                         `- error: cannot find 'DispatchSemaphore' in scope
 64 |         var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
 65 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/NetworkResponse.swift:4:25: error: cannot find type 'URLRequest' in scope
2 |
3 | public struct NetworkResponse {
4 |     public var request: URLRequest?
  |                         `- error: cannot find type 'URLRequest' in scope
5 |     public var response: HTTPURLResponse?
6 |     public var data: Data?
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:64:46: error: argument passed to call that takes no arguments
 62 |     func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
 63 |         let semaphore = DispatchSemaphore(value: 0)
 64 |         var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
    |                                              `- error: argument passed to call that takes no arguments
 65 |
 66 |         let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:64:56: error: 'nil' requires a contextual type
 62 |     func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
 63 |         let semaphore = DispatchSemaphore(value: 0)
 64 |         var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
    |                                                        `- error: 'nil' requires a contextual type
 65 |
 66 |         let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:64:71: error: 'nil' requires a contextual type
 62 |     func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
 63 |         let semaphore = DispatchSemaphore(value: 0)
 64 |         var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
    |                                                                       `- error: 'nil' requires a contextual type
 65 |
 66 |         let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:64:82: error: 'nil' requires a contextual type
 62 |     func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
 63 |         let semaphore = DispatchSemaphore(value: 0)
 64 |         var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
    |                                                                                  `- error: 'nil' requires a contextual type
 65 |
 66 |         let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:64:94: error: 'nil' requires a contextual type
 62 |     func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
 63 |         let semaphore = DispatchSemaphore(value: 0)
 64 |         var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
    |                                                                                              `- error: 'nil' requires a contextual type
 65 |
 66 |         let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:82:26: error: cannot find 'URLRequest' in scope
 80 |
 81 |     func jsonBodyHttpRequest(url: URL, method: String, parameters: [String: Any]) -> URLRequest {
 82 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
 83 |         let jsonData = try? JSONSerialization.data(withJSONObject: parameters)
 84 |         urlRequest.httpBody = jsonData
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:101:26: error: cannot find 'URLRequest' in scope
 99 |         let encodedURL = url.appending(query: query)
100 |
101 |         var urlRequest = URLRequest(url: encodedURL)
    |                          `- error: cannot find 'URLRequest' in scope
102 |         urlRequest.httpMethod = "GET"
103 |
[6/6] Compiling SynchronousNetworking NetworkResponse.swift
/host/spi-builder-workspace/Sources/SynchronousNetworking/NetworkResponse.swift:4:25: error: cannot find type 'URLRequest' in scope
2 |
3 | public struct NetworkResponse {
4 |     public var request: URLRequest?
  |                         `- error: cannot find type 'URLRequest' in scope
5 |     public var response: HTTPURLResponse?
6 |     public var data: Data?
/host/spi-builder-workspace/Sources/SynchronousNetworking/NetworkResponse.swift:5:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 | public struct NetworkResponse {
4 |     public var request: URLRequest?
5 |     public var response: HTTPURLResponse?
  |                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 |     public var data: Data?
7 |     public var error: Error?
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
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:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] Compiling SynchronousNetworking SynchronousNetworking.swift
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:5:30: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  3 | public struct SynchronousNetworking {
  4 |     let baseUrl: URL
  5 |     let session = URLSession.shared
    |                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  6 |
  7 |     public init(baseUrl: URL) {
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:52:88: error: cannot find type 'URLRequest' in scope
 50 |     }
 51 |
 52 |     func requestByAdding(headers: [String: String], forRequest request: URLRequest) -> URLRequest {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
 53 |         var requestWithHeader = request
 54 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:52:73: error: cannot find type 'URLRequest' in scope
 50 |     }
 51 |
 52 |     func requestByAdding(headers: [String: String], forRequest request: URLRequest) -> URLRequest {
    |                                                                         `- error: cannot find type 'URLRequest' in scope
 53 |         var requestWithHeader = request
 54 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:62:45: error: cannot find type 'URLRequest' in scope
 60 |     }
 61 |
 62 |     func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
    |                                             `- error: cannot find type 'URLRequest' in scope
 63 |         let semaphore = DispatchSemaphore(value: 0)
 64 |         var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:81:86: error: cannot find type 'URLRequest' in scope
 79 |     }
 80 |
 81 |     func jsonBodyHttpRequest(url: URL, method: String, parameters: [String: Any]) -> URLRequest {
    |                                                                                      `- error: cannot find type 'URLRequest' in scope
 82 |         var urlRequest = URLRequest(url: url)
 83 |         let jsonData = try? JSONSerialization.data(withJSONObject: parameters)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:97:72: error: cannot find type 'URLRequest' in scope
 95 |     }
 96 |
 97 |     func urlEncodedHttpRequest(url: URL, parameters: [String: Any]) -> URLRequest {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
 98 |         let query = queryStringFor(parameters: parameters)
 99 |         let encodedURL = url.appending(query: query)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:63:25: error: cannot find 'DispatchSemaphore' in scope
 61 |
 62 |     func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
 63 |         let semaphore = DispatchSemaphore(value: 0)
    |                         `- error: cannot find 'DispatchSemaphore' in scope
 64 |         var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
 65 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/NetworkResponse.swift:4:25: error: cannot find type 'URLRequest' in scope
2 |
3 | public struct NetworkResponse {
4 |     public var request: URLRequest?
  |                         `- error: cannot find type 'URLRequest' in scope
5 |     public var response: HTTPURLResponse?
6 |     public var data: Data?
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:64:46: error: argument passed to call that takes no arguments
 62 |     func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
 63 |         let semaphore = DispatchSemaphore(value: 0)
 64 |         var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
    |                                              `- error: argument passed to call that takes no arguments
 65 |
 66 |         let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:64:56: error: 'nil' requires a contextual type
 62 |     func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
 63 |         let semaphore = DispatchSemaphore(value: 0)
 64 |         var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
    |                                                        `- error: 'nil' requires a contextual type
 65 |
 66 |         let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:64:71: error: 'nil' requires a contextual type
 62 |     func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
 63 |         let semaphore = DispatchSemaphore(value: 0)
 64 |         var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
    |                                                                       `- error: 'nil' requires a contextual type
 65 |
 66 |         let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:64:82: error: 'nil' requires a contextual type
 62 |     func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
 63 |         let semaphore = DispatchSemaphore(value: 0)
 64 |         var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
    |                                                                                  `- error: 'nil' requires a contextual type
 65 |
 66 |         let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:64:94: error: 'nil' requires a contextual type
 62 |     func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
 63 |         let semaphore = DispatchSemaphore(value: 0)
 64 |         var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
    |                                                                                              `- error: 'nil' requires a contextual type
 65 |
 66 |         let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:82:26: error: cannot find 'URLRequest' in scope
 80 |
 81 |     func jsonBodyHttpRequest(url: URL, method: String, parameters: [String: Any]) -> URLRequest {
 82 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
 83 |         let jsonData = try? JSONSerialization.data(withJSONObject: parameters)
 84 |         urlRequest.httpBody = jsonData
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:101:26: error: cannot find 'URLRequest' in scope
 99 |         let encodedURL = url.appending(query: query)
100 |
101 |         var urlRequest = URLRequest(url: encodedURL)
    |                          `- error: cannot find 'URLRequest' in scope
102 |         urlRequest.httpMethod = "GET"
103 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Compiling SynchronousNetworking URL+Additions.swift
[4/5] Emitting module SynchronousNetworking
/host/spi-builder-workspace/Sources/SynchronousNetworking/NetworkResponse.swift:4:25: error: cannot find type 'URLRequest' in scope
2 |
3 | public struct NetworkResponse {
4 |     public var request: URLRequest?
  |                         `- error: cannot find type 'URLRequest' in scope
5 |     public var response: HTTPURLResponse?
6 |     public var data: Data?
/host/spi-builder-workspace/Sources/SynchronousNetworking/NetworkResponse.swift:5:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 | public struct NetworkResponse {
4 |     public var request: URLRequest?
5 |     public var response: HTTPURLResponse?
  |                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 |     public var data: Data?
7 |     public var error: Error?
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:5:30: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  3 | public struct SynchronousNetworking {
  4 |     let baseUrl: URL
  5 |     let session = URLSession.shared
    |                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  6 |
  7 |     public init(baseUrl: URL) {
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:52:88: error: cannot find type 'URLRequest' in scope
 50 |     }
 51 |
 52 |     func requestByAdding(headers: [String: String], forRequest request: URLRequest) -> URLRequest {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
 53 |         var requestWithHeader = request
 54 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:52:73: error: cannot find type 'URLRequest' in scope
 50 |     }
 51 |
 52 |     func requestByAdding(headers: [String: String], forRequest request: URLRequest) -> URLRequest {
    |                                                                         `- error: cannot find type 'URLRequest' in scope
 53 |         var requestWithHeader = request
 54 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:62:45: error: cannot find type 'URLRequest' in scope
 60 |     }
 61 |
 62 |     func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
    |                                             `- error: cannot find type 'URLRequest' in scope
 63 |         let semaphore = DispatchSemaphore(value: 0)
 64 |         var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:81:86: error: cannot find type 'URLRequest' in scope
 79 |     }
 80 |
 81 |     func jsonBodyHttpRequest(url: URL, method: String, parameters: [String: Any]) -> URLRequest {
    |                                                                                      `- error: cannot find type 'URLRequest' in scope
 82 |         var urlRequest = URLRequest(url: url)
 83 |         let jsonData = try? JSONSerialization.data(withJSONObject: parameters)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:97:72: error: cannot find type 'URLRequest' in scope
 95 |     }
 96 |
 97 |     func urlEncodedHttpRequest(url: URL, parameters: [String: Any]) -> URLRequest {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
 98 |         let query = queryStringFor(parameters: parameters)
 99 |         let encodedURL = url.appending(query: query)
[5/5] Compiling SynchronousNetworking NetworkResponse.swift
/host/spi-builder-workspace/Sources/SynchronousNetworking/NetworkResponse.swift:4:25: error: cannot find type 'URLRequest' in scope
2 |
3 | public struct NetworkResponse {
4 |     public var request: URLRequest?
  |                         `- error: cannot find type 'URLRequest' in scope
5 |     public var response: HTTPURLResponse?
6 |     public var data: Data?
/host/spi-builder-workspace/Sources/SynchronousNetworking/NetworkResponse.swift:5:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 | public struct NetworkResponse {
4 |     public var request: URLRequest?
5 |     public var response: HTTPURLResponse?
  |                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 |     public var data: Data?
7 |     public var error: Error?
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
BUILD FAILURE 6.1 wasm