Build Information
Failed to build SynchronousNetworking, reference master (72209d), with Swift 6.1 for Wasm on 27 May 2025 09:20:38 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>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/heshammegid/synchronousnetworking.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/heshammegid/synchronousnetworking
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 72209dc Adds build script utilizing Anka.
Cloned https://github.com/heshammegid/synchronousnetworking.git
Revision (git rev-parse @):
72209dc62a1362d40374abd70bdc58a8d70f4b10
SUCCESS checkout https://github.com/heshammegid/synchronousnetworking.git at master
========================================
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-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: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:64:88: error: cannot find type 'URLRequest' in scope
62 | }
63 |
64 | func requestByAdding(headers: [String: String], forRequest request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
65 | var requestWithHeader = request
66 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:64:73: error: cannot find type 'URLRequest' in scope
62 | }
63 |
64 | func requestByAdding(headers: [String: String], forRequest request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
65 | var requestWithHeader = request
66 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:74:45: error: cannot find type 'URLRequest' in scope
72 | }
73 |
74 | func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
| `- error: cannot find type 'URLRequest' in scope
75 | let semaphore = DispatchSemaphore(value: 0)
76 | var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:93:86: error: cannot find type 'URLRequest' in scope
91 | }
92 |
93 | func jsonBodyHttpRequest(url: URL, method: String, parameters: [String: Any]) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
94 | var urlRequest = URLRequest(url: url)
95 | let jsonData = try? JSONSerialization.data(withJSONObject: parameters)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:109:72: error: cannot find type 'URLRequest' in scope
107 | }
108 |
109 | func urlEncodedHttpRequest(url: URL, parameters: [String: Any]) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
110 | let query = queryStringFor(parameters: parameters)
111 | 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:64:88: error: cannot find type 'URLRequest' in scope
62 | }
63 |
64 | func requestByAdding(headers: [String: String], forRequest request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
65 | var requestWithHeader = request
66 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:64:73: error: cannot find type 'URLRequest' in scope
62 | }
63 |
64 | func requestByAdding(headers: [String: String], forRequest request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
65 | var requestWithHeader = request
66 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:74:45: error: cannot find type 'URLRequest' in scope
72 | }
73 |
74 | func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
| `- error: cannot find type 'URLRequest' in scope
75 | let semaphore = DispatchSemaphore(value: 0)
76 | var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:93:86: error: cannot find type 'URLRequest' in scope
91 | }
92 |
93 | func jsonBodyHttpRequest(url: URL, method: String, parameters: [String: Any]) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
94 | var urlRequest = URLRequest(url: url)
95 | let jsonData = try? JSONSerialization.data(withJSONObject: parameters)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:109:72: error: cannot find type 'URLRequest' in scope
107 | }
108 |
109 | func urlEncodedHttpRequest(url: URL, parameters: [String: Any]) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
110 | let query = queryStringFor(parameters: parameters)
111 | let encodedURL = url.appending(query: query)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:75:25: error: cannot find 'DispatchSemaphore' in scope
73 |
74 | func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
75 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
76 | var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
77 |
/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:76:46: error: argument passed to call that takes no arguments
74 | func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
75 | let semaphore = DispatchSemaphore(value: 0)
76 | var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
| `- error: argument passed to call that takes no arguments
77 |
78 | let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:76:56: error: 'nil' requires a contextual type
74 | func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
75 | let semaphore = DispatchSemaphore(value: 0)
76 | var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
| `- error: 'nil' requires a contextual type
77 |
78 | let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:76:71: error: 'nil' requires a contextual type
74 | func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
75 | let semaphore = DispatchSemaphore(value: 0)
76 | var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
| `- error: 'nil' requires a contextual type
77 |
78 | let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:76:82: error: 'nil' requires a contextual type
74 | func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
75 | let semaphore = DispatchSemaphore(value: 0)
76 | var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
| `- error: 'nil' requires a contextual type
77 |
78 | let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:76:94: error: 'nil' requires a contextual type
74 | func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
75 | let semaphore = DispatchSemaphore(value: 0)
76 | var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
| `- error: 'nil' requires a contextual type
77 |
78 | let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:94:26: error: cannot find 'URLRequest' in scope
92 |
93 | func jsonBodyHttpRequest(url: URL, method: String, parameters: [String: Any]) -> URLRequest {
94 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
95 | let jsonData = try? JSONSerialization.data(withJSONObject: parameters)
96 | urlRequest.httpBody = jsonData
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:113:26: error: cannot find 'URLRequest' in scope
111 | let encodedURL = url.appending(query: query)
112 |
113 | var urlRequest = URLRequest(url: encodedURL)
| `- error: cannot find 'URLRequest' in scope
114 | urlRequest.httpMethod = "GET"
115 |
[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-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: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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/5] Compiling SynchronousNetworking URL+Additions.swift
[3/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:64:88: error: cannot find type 'URLRequest' in scope
62 | }
63 |
64 | func requestByAdding(headers: [String: String], forRequest request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
65 | var requestWithHeader = request
66 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:64:73: error: cannot find type 'URLRequest' in scope
62 | }
63 |
64 | func requestByAdding(headers: [String: String], forRequest request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
65 | var requestWithHeader = request
66 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:74:45: error: cannot find type 'URLRequest' in scope
72 | }
73 |
74 | func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
| `- error: cannot find type 'URLRequest' in scope
75 | let semaphore = DispatchSemaphore(value: 0)
76 | var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:93:86: error: cannot find type 'URLRequest' in scope
91 | }
92 |
93 | func jsonBodyHttpRequest(url: URL, method: String, parameters: [String: Any]) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
94 | var urlRequest = URLRequest(url: url)
95 | let jsonData = try? JSONSerialization.data(withJSONObject: parameters)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:109:72: error: cannot find type 'URLRequest' in scope
107 | }
108 |
109 | func urlEncodedHttpRequest(url: URL, parameters: [String: Any]) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
110 | let query = queryStringFor(parameters: parameters)
111 | let encodedURL = url.appending(query: query)
[4/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
[5/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:64:88: error: cannot find type 'URLRequest' in scope
62 | }
63 |
64 | func requestByAdding(headers: [String: String], forRequest request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
65 | var requestWithHeader = request
66 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:64:73: error: cannot find type 'URLRequest' in scope
62 | }
63 |
64 | func requestByAdding(headers: [String: String], forRequest request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
65 | var requestWithHeader = request
66 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:74:45: error: cannot find type 'URLRequest' in scope
72 | }
73 |
74 | func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
| `- error: cannot find type 'URLRequest' in scope
75 | let semaphore = DispatchSemaphore(value: 0)
76 | var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:93:86: error: cannot find type 'URLRequest' in scope
91 | }
92 |
93 | func jsonBodyHttpRequest(url: URL, method: String, parameters: [String: Any]) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
94 | var urlRequest = URLRequest(url: url)
95 | let jsonData = try? JSONSerialization.data(withJSONObject: parameters)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:109:72: error: cannot find type 'URLRequest' in scope
107 | }
108 |
109 | func urlEncodedHttpRequest(url: URL, parameters: [String: Any]) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
110 | let query = queryStringFor(parameters: parameters)
111 | let encodedURL = url.appending(query: query)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:75:25: error: cannot find 'DispatchSemaphore' in scope
73 |
74 | func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
75 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
76 | var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
77 |
/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:76:46: error: argument passed to call that takes no arguments
74 | func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
75 | let semaphore = DispatchSemaphore(value: 0)
76 | var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
| `- error: argument passed to call that takes no arguments
77 |
78 | let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:76:56: error: 'nil' requires a contextual type
74 | func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
75 | let semaphore = DispatchSemaphore(value: 0)
76 | var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
| `- error: 'nil' requires a contextual type
77 |
78 | let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:76:71: error: 'nil' requires a contextual type
74 | func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
75 | let semaphore = DispatchSemaphore(value: 0)
76 | var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
| `- error: 'nil' requires a contextual type
77 |
78 | let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:76:82: error: 'nil' requires a contextual type
74 | func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
75 | let semaphore = DispatchSemaphore(value: 0)
76 | var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
| `- error: 'nil' requires a contextual type
77 |
78 | let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:76:94: error: 'nil' requires a contextual type
74 | func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
75 | let semaphore = DispatchSemaphore(value: 0)
76 | var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
| `- error: 'nil' requires a contextual type
77 |
78 | let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:94:26: error: cannot find 'URLRequest' in scope
92 |
93 | func jsonBodyHttpRequest(url: URL, method: String, parameters: [String: Any]) -> URLRequest {
94 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
95 | let jsonData = try? JSONSerialization.data(withJSONObject: parameters)
96 | urlRequest.httpBody = jsonData
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:113:26: error: cannot find 'URLRequest' in scope
111 | let encodedURL = url.appending(query: query)
112 |
113 | var urlRequest = URLRequest(url: encodedURL)
| `- error: cannot find 'URLRequest' in scope
114 | urlRequest.httpMethod = "GET"
115 |
BUILD FAILURE 6.1 wasm