Build Information
Failed to build swift-openapi-urlsession, reference main (2b0811
), with Swift 6.1 for Wasm on 29 May 2025 10:21:25 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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/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.1
Building package at path: $PWD
https://github.com/tuist/swift-openapi-urlsession.git
https://github.com/tuist/swift-openapi-urlsession.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-openapi-runtime",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.3",
"upper_bound" : "0.2.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-openapi-runtime"
},
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "swift-openapi-urlsession",
"name" : "swift-openapi-urlsession",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "OpenAPIURLSession",
"targets" : [
"OpenAPIURLSession"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "OpenAPIURLSessionTests",
"module_type" : "SwiftTarget",
"name" : "OpenAPIURLSessionTests",
"path" : "Tests/OpenAPIURLSessionTests",
"sources" : [
"Locking.swift",
"URLSessionTransportTests.swift"
],
"target_dependencies" : [
"OpenAPIURLSession"
],
"type" : "test"
},
{
"c99name" : "OpenAPIURLSession",
"module_type" : "SwiftTarget",
"name" : "OpenAPIURLSession",
"path" : "Sources/OpenAPIURLSession",
"product_dependencies" : [
"OpenAPIRuntime"
],
"product_memberships" : [
"OpenAPIURLSession"
],
"sources" : [
"URLSessionTransport.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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
Fetching https://github.com/apple/swift-openapi-runtime
Fetching https://github.com/apple/swift-docc-plugin
[1/5679] Fetching swift-openapi-runtime
[5680/7728] Fetching swift-openapi-runtime, swift-docc-plugin
Fetched https://github.com/apple/swift-openapi-runtime from cache (0.49s)
Fetched https://github.com/apple/swift-docc-plugin from cache (0.49s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (1.10s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3391] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.44s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.07s)
Computing version for https://github.com/apple/swift-openapi-runtime
Computed https://github.com/apple/swift-openapi-runtime at 0.1.11 (0.43s)
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
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.3
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
[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] Compiling OpenAPIRuntime URIDecoder.swift
[7/48] Compiling OpenAPIRuntime URIValueFromNodeDecoder+Keyed.swift
[8/48] Compiling OpenAPIRuntime URIValueFromNodeDecoder+Single.swift
[9/48] Compiling OpenAPIRuntime URIValueFromNodeDecoder+Unkeyed.swift
[10/48] Compiling OpenAPIRuntime URIValueFromNodeDecoder.swift
[11/48] Compiling OpenAPIRuntime URIEncoder.swift
[12/54] Compiling OpenAPIRuntime Deprecated_AutoLosslessStringConvertible.swift
[13/54] Compiling OpenAPIRuntime Deprecated_RedactedHeaderFields.swift
[14/54] Compiling OpenAPIRuntime Deprecated_StringConvertible.swift
[15/54] Compiling OpenAPIRuntime ClientError.swift
[16/54] Compiling OpenAPIRuntime CodingErrors.swift
[17/54] Compiling OpenAPIRuntime RuntimeError.swift
[18/54] Compiling OpenAPIRuntime CurrencyExtensions.swift
[19/54] Compiling OpenAPIRuntime ErrorExtensions.swift
[20/54] Compiling OpenAPIRuntime FoundationExtensions.swift
[21/54] Compiling OpenAPIRuntime ParameterStyles.swift
[22/54] Compiling OpenAPIRuntime URLExtensions.swift
[23/54] Compiling OpenAPIRuntime Deprecated.swift
[24/54] Compiling OpenAPIRuntime StringDecoder.swift
[25/54] Compiling OpenAPIRuntime StringEncoder.swift
[26/54] Compiling OpenAPIRuntime URICodeCodingKey.swift
[27/54] Compiling OpenAPIRuntime URICoderConfiguration.swift
[28/54] Compiling OpenAPIRuntime URIEncodedNode.swift
[29/54] Compiling OpenAPIRuntime URIParsedNode.swift
[30/54] Compiling OpenAPIRuntime ServerError.swift
[31/54] Compiling OpenAPIRuntime ClientTransport.swift
[32/54] Compiling OpenAPIRuntime CurrencyTypes.swift
[33/54] Compiling OpenAPIRuntime ServerTransport.swift
[34/54] Compiling OpenAPIRuntime UniversalClient.swift
[35/54] Compiling OpenAPIRuntime UniversalServer.swift
[36/54] Compiling OpenAPIRuntime CodableExtensions.swift
[37/54] Compiling OpenAPIRuntime Configuration.swift
[38/54] Compiling OpenAPIRuntime Converter+Client.swift
[39/54] Compiling OpenAPIRuntime Converter+Common.swift
[40/54] Compiling OpenAPIRuntime Converter+Server.swift
[41/54] Compiling OpenAPIRuntime Converter.swift
[42/54] Emitting module OpenAPIRuntime
[43/54] Compiling OpenAPIRuntime Acceptable.swift
[44/54] Compiling OpenAPIRuntime CommonOutputPayloads.swift
[45/54] Compiling OpenAPIRuntime OpenAPIMIMEType.swift
[46/54] Compiling OpenAPIRuntime OpenAPIValue.swift
[47/54] Compiling OpenAPIRuntime PrettyStringConvertible.swift
[48/54] Compiling OpenAPIRuntime WarningSuppressingAnnotations.swift
[49/54] Compiling OpenAPIRuntime URIValueToNodeEncoder+Keyed.swift
[50/54] Compiling OpenAPIRuntime URIValueToNodeEncoder+Single.swift
[51/54] Compiling OpenAPIRuntime URIValueToNodeEncoder+Unkeyed.swift
[52/54] Compiling OpenAPIRuntime URIValueToNodeEncoder.swift
[53/54] Compiling OpenAPIRuntime URIParser.swift
[54/54] Compiling OpenAPIRuntime URISerializer.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)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/46] Emitting module OpenAPIRuntime
[5/52] Compiling OpenAPIRuntime Acceptable.swift
[6/52] Compiling OpenAPIRuntime CommonOutputPayloads.swift
[7/52] Compiling OpenAPIRuntime OpenAPIMIMEType.swift
[8/52] Compiling OpenAPIRuntime OpenAPIValue.swift
[9/52] Compiling OpenAPIRuntime PrettyStringConvertible.swift
[10/52] Compiling OpenAPIRuntime WarningSuppressingAnnotations.swift
[11/52] Compiling OpenAPIRuntime CodableExtensions.swift
[12/52] Compiling OpenAPIRuntime Configuration.swift
[13/52] Compiling OpenAPIRuntime Converter+Client.swift
[14/52] Compiling OpenAPIRuntime Converter+Common.swift
[15/52] Compiling OpenAPIRuntime Converter+Server.swift
[16/52] Compiling OpenAPIRuntime Converter.swift
[17/52] Compiling OpenAPIRuntime Deprecated_AutoLosslessStringConvertible.swift
[18/52] Compiling OpenAPIRuntime Deprecated_RedactedHeaderFields.swift
[19/52] Compiling OpenAPIRuntime Deprecated_StringConvertible.swift
[20/52] Compiling OpenAPIRuntime ClientError.swift
[21/52] Compiling OpenAPIRuntime CodingErrors.swift
[22/52] Compiling OpenAPIRuntime RuntimeError.swift
[23/52] Compiling OpenAPIRuntime URIDecoder.swift
[24/52] Compiling OpenAPIRuntime URIValueFromNodeDecoder+Keyed.swift
[25/52] Compiling OpenAPIRuntime URIValueFromNodeDecoder+Single.swift
[26/52] Compiling OpenAPIRuntime URIValueFromNodeDecoder+Unkeyed.swift
[27/52] Compiling OpenAPIRuntime URIValueFromNodeDecoder.swift
[28/52] Compiling OpenAPIRuntime URIEncoder.swift
[29/52] Compiling OpenAPIRuntime ServerError.swift
[30/52] Compiling OpenAPIRuntime ClientTransport.swift
[31/52] Compiling OpenAPIRuntime CurrencyTypes.swift
[32/52] Compiling OpenAPIRuntime ServerTransport.swift
[33/52] Compiling OpenAPIRuntime UniversalClient.swift
[34/52] Compiling OpenAPIRuntime UniversalServer.swift
[35/52] Compiling OpenAPIRuntime StringDecoder.swift
[36/52] Compiling OpenAPIRuntime StringEncoder.swift
[37/52] Compiling OpenAPIRuntime URICodeCodingKey.swift
[38/52] Compiling OpenAPIRuntime URICoderConfiguration.swift
[39/52] Compiling OpenAPIRuntime URIEncodedNode.swift
[40/52] Compiling OpenAPIRuntime URIParsedNode.swift
[41/52] Compiling OpenAPIRuntime CurrencyExtensions.swift
[42/52] Compiling OpenAPIRuntime ErrorExtensions.swift
[43/52] Compiling OpenAPIRuntime FoundationExtensions.swift
[44/52] Compiling OpenAPIRuntime ParameterStyles.swift
[45/52] Compiling OpenAPIRuntime URLExtensions.swift
[46/52] Compiling OpenAPIRuntime Deprecated.swift
[47/52] Compiling OpenAPIRuntime URIValueToNodeEncoder+Keyed.swift
[48/52] Compiling OpenAPIRuntime URIValueToNodeEncoder+Single.swift
[49/52] Compiling OpenAPIRuntime URIValueToNodeEncoder+Unkeyed.swift
[50/52] Compiling OpenAPIRuntime URIValueToNodeEncoder.swift
[51/52] Compiling OpenAPIRuntime URIParser.swift
[52/52] Compiling OpenAPIRuntime URISerializer.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[54/55] 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 {
[55/55] 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.1 wasm