Build Information
Failed to build swift-openapi-urlsession, reference main (2b0811), with Swift 6.3 for Wasm on 14 Apr 2026 15:27:24 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tuist/swift-openapi-urlsession.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/tuist/swift-openapi-urlsession
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2b08113 Enable strict concurrency checking in CI (#11)
Cloned https://github.com/tuist/swift-openapi-urlsession.git
Revision (git rev-parse @):
2b08113dab3356fbd2d9c87da50f4e4bb38933f8
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/tuist/swift-openapi-urlsession.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/tuist/swift-openapi-urlsession.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/apple/swift-openapi-runtime
Fetching https://github.com/apple/swift-docc-plugin
[1/2271] Fetching swift-docc-plugin
[229/8844] Fetching swift-docc-plugin, swift-openapi-runtime
Fetched https://github.com/apple/swift-openapi-runtime from cache (1.19s)
Fetched https://github.com/apple/swift-docc-plugin from cache (1.25s)
Computing version for https://github.com/apple/swift-openapi-runtime
Computed https://github.com/apple/swift-openapi-runtime at 0.1.11 (2.11s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.6 (1.01s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3672] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.86s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.94s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.6
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-openapi-runtime
Working copy of https://github.com/apple/swift-openapi-runtime resolved at 0.1.11
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/48] Emitting module OpenAPIRuntime
[7/54] Compiling OpenAPIRuntime ServerError.swift
[8/54] Compiling OpenAPIRuntime ClientTransport.swift
[9/54] Compiling OpenAPIRuntime CurrencyTypes.swift
[10/54] Compiling OpenAPIRuntime ServerTransport.swift
[11/54] Compiling OpenAPIRuntime UniversalClient.swift
[12/54] Compiling OpenAPIRuntime UniversalServer.swift
[13/54] Compiling OpenAPIRuntime URIValueToNodeEncoder+Keyed.swift
[14/54] Compiling OpenAPIRuntime URIValueToNodeEncoder+Single.swift
[15/54] Compiling OpenAPIRuntime URIValueToNodeEncoder+Unkeyed.swift
[16/54] Compiling OpenAPIRuntime URIValueToNodeEncoder.swift
[17/54] Compiling OpenAPIRuntime URIParser.swift
[18/54] Compiling OpenAPIRuntime URISerializer.swift
[19/54] Compiling OpenAPIRuntime CurrencyExtensions.swift
[20/54] Compiling OpenAPIRuntime ErrorExtensions.swift
[21/54] Compiling OpenAPIRuntime FoundationExtensions.swift
[22/54] Compiling OpenAPIRuntime ParameterStyles.swift
[23/54] Compiling OpenAPIRuntime URLExtensions.swift
[24/54] Compiling OpenAPIRuntime Deprecated.swift
[25/54] Compiling OpenAPIRuntime CodableExtensions.swift
[26/54] Compiling OpenAPIRuntime Configuration.swift
[27/54] Compiling OpenAPIRuntime Converter+Client.swift
[28/54] Compiling OpenAPIRuntime Converter+Common.swift
[29/54] Compiling OpenAPIRuntime Converter+Server.swift
[30/54] Compiling OpenAPIRuntime Converter.swift
[31/54] Compiling OpenAPIRuntime Acceptable.swift
[32/54] Compiling OpenAPIRuntime CommonOutputPayloads.swift
[33/54] Compiling OpenAPIRuntime OpenAPIMIMEType.swift
[34/54] Compiling OpenAPIRuntime OpenAPIValue.swift
[35/54] Compiling OpenAPIRuntime PrettyStringConvertible.swift
[36/54] Compiling OpenAPIRuntime WarningSuppressingAnnotations.swift
[37/54] Compiling OpenAPIRuntime Deprecated_AutoLosslessStringConvertible.swift
[38/54] Compiling OpenAPIRuntime Deprecated_RedactedHeaderFields.swift
[39/54] Compiling OpenAPIRuntime Deprecated_StringConvertible.swift
[40/54] Compiling OpenAPIRuntime ClientError.swift
[41/54] Compiling OpenAPIRuntime CodingErrors.swift
[42/54] Compiling OpenAPIRuntime RuntimeError.swift
[43/54] Compiling OpenAPIRuntime StringDecoder.swift
[44/54] Compiling OpenAPIRuntime StringEncoder.swift
[45/54] Compiling OpenAPIRuntime URICodeCodingKey.swift
[46/54] Compiling OpenAPIRuntime URICoderConfiguration.swift
[47/54] Compiling OpenAPIRuntime URIEncodedNode.swift
[48/54] Compiling OpenAPIRuntime URIParsedNode.swift
[49/54] Compiling OpenAPIRuntime URIDecoder.swift
[50/54] Compiling OpenAPIRuntime URIValueFromNodeDecoder+Keyed.swift
[51/54] Compiling OpenAPIRuntime URIValueFromNodeDecoder+Single.swift
[52/54] Compiling OpenAPIRuntime URIValueFromNodeDecoder+Unkeyed.swift
[53/54] Compiling OpenAPIRuntime URIValueFromNodeDecoder.swift
[54/54] Compiling OpenAPIRuntime URIEncoder.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[56/57] Emitting module OpenAPIURLSession
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:71:29: error: cannot find type 'URLSession' in scope
69 |
70 | /// The URLSession used for performing HTTP operations.
71 | public var session: URLSession
| `- error: cannot find type 'URLSession' in scope
72 |
73 | /// Creates a new configuration with the provided session.
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:77:30: error: cannot find type 'URLSession' in scope
75 | /// - session: The URLSession used for performing HTTP operations.
76 | /// If none is provided, the system uses the shared URLSession.
77 | public init(session: URLSession = .shared) {
| `- error: cannot find type 'URLSession' in scope
78 | self.session = session
79 | }
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:102:81: error: cannot find type 'URLResponse' in scope
100 | }
101 |
102 | private func invokeSession(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLResponse' in scope
103 | // Using `dataTask(with:completionHandler:)` instead of the async method `data(for:)` of URLSession because the latter is not available on linux platforms
104 | return try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:102:46: error: cannot find type 'URLRequest' in scope
100 | }
101 |
102 | private func invokeSession(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
103 | // Using `dataTask(with:completionHandler:)` instead of the async method `data(for:)` of URLSession because the latter is not available on linux platforms
104 | return try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:135:26: error: cannot find type 'URLResponse' in scope
133 |
134 | /// Returned `URLResponse` could not be converted to `HTTPURLResponse`.
135 | case notHTTPResponse(URLResponse)
| `- error: cannot find type 'URLResponse' in scope
136 |
137 | /// Returned `URLResponse` was nil
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:142:28: error: cannot find type 'URLResponse' in scope
140 |
141 | extension OpenAPIRuntime.Response {
142 | init(from urlResponse: URLResponse, body: Data) throws {
| `- error: cannot find type 'URLResponse' in scope
143 | guard let httpResponse = urlResponse as? HTTPURLResponse else {
144 | throw URLSessionTransportError.notHTTPResponse(urlResponse)
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:158:11: error: cannot find type 'URLRequest' in scope
156 | }
157 |
158 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
159 | init(_ request: OpenAPIRuntime.Request, baseURL: URL) throws {
160 | guard var baseUrlComponents = URLComponents(string: baseURL.absoluteString) else {
[57/57] Compiling OpenAPIURLSession URLSessionTransport.swift
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:71:29: error: cannot find type 'URLSession' in scope
69 |
70 | /// The URLSession used for performing HTTP operations.
71 | public var session: URLSession
| `- error: cannot find type 'URLSession' in scope
72 |
73 | /// Creates a new configuration with the provided session.
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:77:30: error: cannot find type 'URLSession' in scope
75 | /// - session: The URLSession used for performing HTTP operations.
76 | /// If none is provided, the system uses the shared URLSession.
77 | public init(session: URLSession = .shared) {
| `- error: cannot find type 'URLSession' in scope
78 | self.session = session
79 | }
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:102:81: error: cannot find type 'URLResponse' in scope
100 | }
101 |
102 | private func invokeSession(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLResponse' in scope
103 | // Using `dataTask(with:completionHandler:)` instead of the async method `data(for:)` of URLSession because the latter is not available on linux platforms
104 | return try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:102:46: error: cannot find type 'URLRequest' in scope
100 | }
101 |
102 | private func invokeSession(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
103 | // Using `dataTask(with:completionHandler:)` instead of the async method `data(for:)` of URLSession because the latter is not available on linux platforms
104 | return try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:135:26: error: cannot find type 'URLResponse' in scope
133 |
134 | /// Returned `URLResponse` could not be converted to `HTTPURLResponse`.
135 | case notHTTPResponse(URLResponse)
| `- error: cannot find type 'URLResponse' in scope
136 |
137 | /// Returned `URLResponse` was nil
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:142:28: error: cannot find type 'URLResponse' in scope
140 |
141 | extension OpenAPIRuntime.Response {
142 | init(from urlResponse: URLResponse, body: Data) throws {
| `- error: cannot find type 'URLResponse' in scope
143 | guard let httpResponse = urlResponse as? HTTPURLResponse else {
144 | throw URLSessionTransportError.notHTTPResponse(urlResponse)
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:158:11: error: cannot find type 'URLRequest' in scope
156 | }
157 |
158 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
159 | init(_ request: OpenAPIRuntime.Request, baseURL: URL) throws {
160 | guard var baseUrlComponents = URLComponents(string: baseURL.absoluteString) else {
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:97:30: error: cannot find 'URLRequest' in scope
95 | operationID: String
96 | ) async throws -> OpenAPIRuntime.Response {
97 | let urlRequest = try URLRequest(request, baseURL: baseURL)
| `- error: cannot find 'URLRequest' in scope
98 | let (responseBody, urlResponse) = try await invokeSession(urlRequest)
99 | return try OpenAPIRuntime.Response(from: urlResponse, body: responseBody)
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:99:50: error: extra argument 'from' in call
97 | let urlRequest = try URLRequest(request, baseURL: baseURL)
98 | let (responseBody, urlResponse) = try await invokeSession(urlRequest)
99 | return try OpenAPIRuntime.Response(from: urlResponse, body: responseBody)
| `- error: extra argument 'from' in call
100 | }
101 |
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:99:44: error: missing argument for parameter 'statusCode' in call
97 | let urlRequest = try URLRequest(request, baseURL: baseURL)
98 | let (responseBody, urlResponse) = try await invokeSession(urlRequest)
99 | return try OpenAPIRuntime.Response(from: urlResponse, body: responseBody)
| `- error: missing argument for parameter 'statusCode' in call
100 | }
101 |
/host/spi-builder-workspace/.build/checkouts/swift-openapi-runtime/Sources/OpenAPIRuntime/Interface/CurrencyTypes.swift:218:12: note: 'init(statusCode:headerFields:body:)' declared here
216 | /// - headerFeilds: The header fields of the HTTP response.
217 | /// - body: The body data of the HTTP response.
218 | public init(
| `- note: 'init(statusCode:headerFields:body:)' declared here
219 | statusCode: Int,
220 | headerFields: [HeaderField] = [],
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:143:50: error: cannot find type 'HTTPURLResponse' in scope
141 | extension OpenAPIRuntime.Response {
142 | init(from urlResponse: URLResponse, body: Data) throws {
143 | guard let httpResponse = urlResponse as? HTTPURLResponse else {
| `- error: cannot find type 'HTTPURLResponse' in scope
144 | throw URLSessionTransportError.notHTTPResponse(urlResponse)
145 | }
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:150:28: error: 'nil' requires a contextual type
148 | .compactMap { headerName, headerValue in
149 | guard let name = headerName as? String, let value = headerValue as? String else {
150 | return nil
| `- error: 'nil' requires a contextual type
151 | }
152 | return HeaderField(name: name, value: value)
BUILD FAILURE 6.3 wasm