Build Information
Failed to build JSONHTTPClient, reference v1.1.0 (23c167
), with Swift 6.1 for Wasm on 29 May 2025 11:00:35 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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/otaviokz/JSONHTTPClient.git
Reference: v1.1.0
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/otaviokz/JSONHTTPClient
* tag v1.1.0 -> FETCH_HEAD
HEAD is now at 23c1671 Merge pull request #2 from otaviokz/v1.0.3
Cloned https://github.com/otaviokz/JSONHTTPClient.git
Revision (git rev-parse @):
23c1671af60dcc61b447386db2fae27981a2fd6a
SUCCESS checkout https://github.com/otaviokz/JSONHTTPClient.git at v1.1.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/otaviokz/JSONHTTPClient.git
https://github.com/otaviokz/JSONHTTPClient.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "JSONHTTPClient",
"name" : "JSONHTTPClient",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "JSONHTTPClient",
"targets" : [
"JSONHTTPClient"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "JSONHTTPClientTests",
"module_type" : "SwiftTarget",
"name" : "JSONHTTPClientTests",
"path" : "Tests/JSONHTTPClientTests",
"sources" : [
"JSONHTTPClientTests.swift"
],
"target_dependencies" : [
"JSONHTTPClient"
],
"type" : "test"
},
{
"c99name" : "JSONHTTPClient",
"module_type" : "SwiftTarget",
"name" : "JSONHTTPClient",
"path" : "Sources/JSONHTTPClient",
"product_memberships" : [
"JSONHTTPClient"
],
"sources" : [
"JSONHTTPClient.swift",
"JSONHTTPClientError.swift",
"URLRequests+Utils.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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
[3/6] Compiling JSONHTTPClient URLRequests+Utils.swift
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:15:11: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | private func method(_ method: HTTPMethod) -> URLRequest {
17 | var request = self
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:16:50: error: cannot find type 'URLRequest' in scope
14 |
15 | extension URLRequest {
16 | private func method(_ method: HTTPMethod) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
17 | var request = self
18 | request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:22:32: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | func body(_ body: Data) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
23 | var request = self
24 | request.httpBody = body
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:28:56: error: cannot find type 'URLRequest' in scope
26 | }
27 |
28 | static func postData(_ body: Data, to url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
29 | URLRequest(url: url).method(.post).body(body)
30 | }
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:32:56: error: cannot find type 'URLRequest' in scope
30 | }
31 |
32 | static func postJSON(_ body: Data, to url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
33 | postData(body, to: url).withJSONHeaders()
34 | }
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:49:88: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | static func get(_ url: URL, cachePolicy: CachePolicy = .useProtocolCachePolicy) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
50 | URLRequest(url: url, cachePolicy: cachePolicy).method(.get)
51 | }
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:49:46: error: cannot find type 'CachePolicy' in scope
47 | }
48 |
49 | static func get(_ url: URL, cachePolicy: CachePolicy = .useProtocolCachePolicy) -> URLRequest {
| `- error: cannot find type 'CachePolicy' in scope
50 | URLRequest(url: url, cachePolicy: cachePolicy).method(.get)
51 | }
[4/6] Compiling JSONHTTPClient JSONHTTPClient.swift
/host/spi-builder-workspace/Sources/JSONHTTPClient/JSONHTTPClient.swift:14:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'JSONHTTPClient' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | @available(iOS 13.0.0, *)
13 | public struct JSONHTTPClient: JSONHTTPClientType {
| `- note: consider making struct 'JSONHTTPClient' conform to the 'Sendable' protocol
14 | public static let shared = JSONHTTPClient()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'JSONHTTPClient' 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
15 |
16 | private init() {}
/host/spi-builder-workspace/Sources/JSONHTTPClient/JSONHTTPClient.swift:30:43: error: cannot find type 'URLRequest' in scope
28 | @available(iOS 13.0.0, *)
29 | private extension JSONHTTPClient {
30 | func connect<T: Decodable>(_ request: URLRequest) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
31 | let (data, rulResponse) = try await URLSession.shared.data(for: request)
32 | if let httpUrlResponse = rulResponse as? HTTPURLResponse {
/host/spi-builder-workspace/Sources/JSONHTTPClient/JSONHTTPClient.swift:19:28: error: cannot infer contextual base in reference to member 'get'
17 |
18 | public func get<T: Decodable>(_ url: URL, httpHeaders: [String: String]?) async throws -> T {
19 | try await connect(.get(url).headers(httpHeaders))
| `- error: cannot infer contextual base in reference to member 'get'
20 |
21 | }
/host/spi-builder-workspace/Sources/JSONHTTPClient/JSONHTTPClient.swift:24:28: error: cannot infer contextual base in reference to member 'postJSON'
22 |
23 | public func postJSON<T: Decodable>(_ url: URL, body: Data, httpHeaders: [String: String]?) async throws -> T {
24 | try await connect(.postJSON(body, to: url).headers(httpHeaders))
| `- error: cannot infer contextual base in reference to member 'postJSON'
25 | }
26 | }
/host/spi-builder-workspace/Sources/JSONHTTPClient/JSONHTTPClient.swift:31:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
29 | private extension JSONHTTPClient {
30 | func connect<T: Decodable>(_ request: URLRequest) async throws -> T {
31 | let (data, rulResponse) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 | if let httpUrlResponse = rulResponse as? HTTPURLResponse {
33 | guard httpUrlResponse.statusCode == 200 else {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/6] Compiling JSONHTTPClient JSONHTTPClientError.swift
[6/6] Emitting module JSONHTTPClient
/host/spi-builder-workspace/Sources/JSONHTTPClient/JSONHTTPClient.swift:14:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'JSONHTTPClient' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | @available(iOS 13.0.0, *)
13 | public struct JSONHTTPClient: JSONHTTPClientType {
| `- note: consider making struct 'JSONHTTPClient' conform to the 'Sendable' protocol
14 | public static let shared = JSONHTTPClient()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'JSONHTTPClient' 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
15 |
16 | private init() {}
/host/spi-builder-workspace/Sources/JSONHTTPClient/JSONHTTPClient.swift:30:43: error: cannot find type 'URLRequest' in scope
28 | @available(iOS 13.0.0, *)
29 | private extension JSONHTTPClient {
30 | func connect<T: Decodable>(_ request: URLRequest) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
31 | let (data, rulResponse) = try await URLSession.shared.data(for: request)
32 | if let httpUrlResponse = rulResponse as? HTTPURLResponse {
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:15:11: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | private func method(_ method: HTTPMethod) -> URLRequest {
17 | var request = self
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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/5] Compiling JSONHTTPClient JSONHTTPClientError.swift
[3/5] Emitting module JSONHTTPClient
/host/spi-builder-workspace/Sources/JSONHTTPClient/JSONHTTPClient.swift:30:43: error: cannot find type 'URLRequest' in scope
28 | @available(iOS 13.0.0, *)
29 | private extension JSONHTTPClient {
30 | func connect<T: Decodable>(_ request: URLRequest) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
31 | let (data, rulResponse) = try await URLSession.shared.data(for: request)
32 | if let httpUrlResponse = rulResponse as? HTTPURLResponse {
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:15:11: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | private func method(_ method: HTTPMethod) -> URLRequest {
17 | var request = self
[4/5] Compiling JSONHTTPClient URLRequests+Utils.swift
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:15:11: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | private func method(_ method: HTTPMethod) -> URLRequest {
17 | var request = self
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:16:50: error: cannot find type 'URLRequest' in scope
14 |
15 | extension URLRequest {
16 | private func method(_ method: HTTPMethod) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
17 | var request = self
18 | request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:22:32: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | func body(_ body: Data) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
23 | var request = self
24 | request.httpBody = body
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:28:56: error: cannot find type 'URLRequest' in scope
26 | }
27 |
28 | static func postData(_ body: Data, to url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
29 | URLRequest(url: url).method(.post).body(body)
30 | }
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:32:56: error: cannot find type 'URLRequest' in scope
30 | }
31 |
32 | static func postJSON(_ body: Data, to url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
33 | postData(body, to: url).withJSONHeaders()
34 | }
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:49:88: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | static func get(_ url: URL, cachePolicy: CachePolicy = .useProtocolCachePolicy) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
50 | URLRequest(url: url, cachePolicy: cachePolicy).method(.get)
51 | }
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:49:46: error: cannot find type 'CachePolicy' in scope
47 | }
48 |
49 | static func get(_ url: URL, cachePolicy: CachePolicy = .useProtocolCachePolicy) -> URLRequest {
| `- error: cannot find type 'CachePolicy' in scope
50 | URLRequest(url: url, cachePolicy: cachePolicy).method(.get)
51 | }
[5/5] Compiling JSONHTTPClient JSONHTTPClient.swift
/host/spi-builder-workspace/Sources/JSONHTTPClient/JSONHTTPClient.swift:30:43: error: cannot find type 'URLRequest' in scope
28 | @available(iOS 13.0.0, *)
29 | private extension JSONHTTPClient {
30 | func connect<T: Decodable>(_ request: URLRequest) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
31 | let (data, rulResponse) = try await URLSession.shared.data(for: request)
32 | if let httpUrlResponse = rulResponse as? HTTPURLResponse {
/host/spi-builder-workspace/Sources/JSONHTTPClient/JSONHTTPClient.swift:19:28: error: cannot infer contextual base in reference to member 'get'
17 |
18 | public func get<T: Decodable>(_ url: URL, httpHeaders: [String: String]?) async throws -> T {
19 | try await connect(.get(url).headers(httpHeaders))
| `- error: cannot infer contextual base in reference to member 'get'
20 |
21 | }
/host/spi-builder-workspace/Sources/JSONHTTPClient/JSONHTTPClient.swift:24:28: error: cannot infer contextual base in reference to member 'postJSON'
22 |
23 | public func postJSON<T: Decodable>(_ url: URL, body: Data, httpHeaders: [String: String]?) async throws -> T {
24 | try await connect(.postJSON(body, to: url).headers(httpHeaders))
| `- error: cannot infer contextual base in reference to member 'postJSON'
25 | }
26 | }
/host/spi-builder-workspace/Sources/JSONHTTPClient/JSONHTTPClient.swift:31:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
29 | private extension JSONHTTPClient {
30 | func connect<T: Decodable>(_ request: URLRequest) async throws -> T {
31 | let (data, rulResponse) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 | if let httpUrlResponse = rulResponse as? HTTPURLResponse {
33 | guard httpUrlResponse.statusCode == 200 else {
BUILD FAILURE 6.1 wasm