Build Information
Failed to build TinyNetworking, reference master (45ba23), with Swift 6.3 for Wasm on 13 Apr 2026 22:02:20 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/objcio/tiny-networking.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/objcio/tiny-networking
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 45ba230 Fix for Xcode 13
Cloned https://github.com/objcio/tiny-networking.git
Revision (git rev-parse @):
45ba230cc9a843bf82a642803a43ef8838dc5b70
SUCCESS checkout https://github.com/objcio/tiny-networking.git at master
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/objcio/tiny-networking.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
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/4] Emitting module TinyNetworking
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:31:25: error: cannot find type 'URLRequest' in scope
29 |
30 | /// The request for this endpoint
31 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | /// This is used to (try to) parse a response into an `A`.
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:34:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | /// This is used to (try to) parse a response into an `A`.
34 | var parse: (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |
36 | /// This is used to check the status code of a response.
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:66:312: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | /// - query: query parameters to append to the url
65 | /// - parse: this converts a response into an `A`.
66 | public init(_ method: Method, url: URL, accept: ContentType? = nil, contentType: ContentType? = nil, body: Data? = nil, headers: [String:String] = [:], expectedStatusCode: @escaping (Int) -> Bool = expected200to300, timeOutInterval: TimeInterval = 10, query: [String:String] = [:], parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | var requestUrl : URL
68 | if query.isEmpty {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:103:26: error: cannot find type 'URLRequest' in scope
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, expectedStatusCode: @escaping (Int) -> Bool = expected200to300, parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: cannot find type 'URLRequest' in scope
104 | self.request = request
105 | self.expectedStatusCode = expectedStatusCode
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:103:127: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, expectedStatusCode: @escaping (Int) -> Bool = expected200to300, parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | self.request = request
105 | self.expectedStatusCode = expectedStatusCode
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:214:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 | public struct WrongStatusCodeError: Error {
213 | public let statusCode: Int
214 | public let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 | public let responseBody: Data?
216 | public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
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/TinyNetworking/Endpoint.swift:216:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 | public let response: HTTPURLResponse?
215 | public let responseBody: Data?
216 | public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 | self.statusCode = statusCode
218 | self.response = response
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/TinyNetworking/Endpoint.swift:223:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
221 | }
222 |
223 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
224 | @discardableResult
225 | /// Loads an endpoint by creating (and directly resuming) a data task.
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[4/4] Compiling TinyNetworking Endpoint.swift
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:31:25: error: cannot find type 'URLRequest' in scope
29 |
30 | /// The request for this endpoint
31 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | /// This is used to (try to) parse a response into an `A`.
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:34:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | /// This is used to (try to) parse a response into an `A`.
34 | var parse: (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |
36 | /// This is used to check the status code of a response.
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:66:312: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | /// - query: query parameters to append to the url
65 | /// - parse: this converts a response into an `A`.
66 | public init(_ method: Method, url: URL, accept: ContentType? = nil, contentType: ContentType? = nil, body: Data? = nil, headers: [String:String] = [:], expectedStatusCode: @escaping (Int) -> Bool = expected200to300, timeOutInterval: TimeInterval = 10, query: [String:String] = [:], parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | var requestUrl : URL
68 | if query.isEmpty {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:103:26: error: cannot find type 'URLRequest' in scope
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, expectedStatusCode: @escaping (Int) -> Bool = expected200to300, parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: cannot find type 'URLRequest' in scope
104 | self.request = request
105 | self.expectedStatusCode = expectedStatusCode
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:103:127: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, expectedStatusCode: @escaping (Int) -> Bool = expected200to300, parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | self.request = request
105 | self.expectedStatusCode = expectedStatusCode
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:214:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 | public struct WrongStatusCodeError: Error {
213 | public let statusCode: Int
214 | public let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 | public let responseBody: Data?
216 | public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
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/TinyNetworking/Endpoint.swift:216:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 | public let response: HTTPURLResponse?
215 | public let responseBody: Data?
216 | public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 | self.statusCode = statusCode
218 | self.response = response
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/TinyNetworking/Endpoint.swift:223:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
221 | }
222 |
223 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
224 | @discardableResult
225 | /// Loads an endpoint by creating (and directly resuming) a data task.
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:41:27: error: extraneous argument label 'request:' in call
39 | /// Transforms the result
40 | public func map<B>(_ f: @escaping (A) -> B) -> Endpoint<B> {
41 | return Endpoint<B>(request: request, expectedStatusCode: expectedStatusCode, parse: { value, response in
| `- error: extraneous argument label 'request:' in call
42 | self.parse(value, response).map(f)
43 | })
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:41:44: error: missing argument for parameter 'url' in call
39 | /// Transforms the result
40 | public func map<B>(_ f: @escaping (A) -> B) -> Endpoint<B> {
41 | return Endpoint<B>(request: request, expectedStatusCode: expectedStatusCode, parse: { value, response in
| `- error: missing argument for parameter 'url' in call
42 | self.parse(value, response).map(f)
43 | })
:
64 | /// - query: query parameters to append to the url
65 | /// - parse: this converts a response into an `A`.
66 | public init(_ method: Method, url: URL, accept: ContentType? = nil, contentType: ContentType? = nil, body: Data? = nil, headers: [String:String] = [:], expectedStatusCode: @escaping (Int) -> Bool = expected200to300, timeOutInterval: TimeInterval = 10, query: [String:String] = [:], parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- note: 'init(_:url:accept:contentType:body:headers:expectedStatusCode:timeOutInterval:query:parse:)' declared here
67 | var requestUrl : URL
68 | if query.isEmpty {
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:48:27: error: extraneous argument label 'request:' in call
46 | /// Transforms the result
47 | public func compactMap<B>(_ transform: @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
48 | return Endpoint<B>(request: request, expectedStatusCode: expectedStatusCode, parse: { data, response in
| `- error: extraneous argument label 'request:' in call
49 | self.parse(data, response).flatMap(transform)
50 | })
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:48:44: error: missing argument for parameter 'url' in call
46 | /// Transforms the result
47 | public func compactMap<B>(_ transform: @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
48 | return Endpoint<B>(request: request, expectedStatusCode: expectedStatusCode, parse: { data, response in
| `- error: missing argument for parameter 'url' in call
49 | self.parse(data, response).flatMap(transform)
50 | })
:
64 | /// - query: query parameters to append to the url
65 | /// - parse: this converts a response into an `A`.
66 | public init(_ method: Method, url: URL, accept: ContentType? = nil, contentType: ContentType? = nil, body: Data? = nil, headers: [String:String] = [:], expectedStatusCode: @escaping (Int) -> Bool = expected200to300, timeOutInterval: TimeInterval = 10, query: [String:String] = [:], parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- note: 'init(_:url:accept:contentType:body:headers:expectedStatusCode:timeOutInterval:query:parse:)' declared here
67 | var requestUrl : URL
68 | if query.isEmpty {
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:76:19: error: cannot find 'URLRequest' in scope
74 | requestUrl = comps.url!
75 | }
76 | request = URLRequest(url: requestUrl)
| `- error: cannot find 'URLRequest' in scope
77 | if let a = accept {
78 | request.setValue(a.rawValue, forHTTPHeaderField: "Accept")
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
BUILD FAILURE 6.3 wasm