The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Netswift, reference develop (edd7ac), with Swift 6.4 for Wasm on 19 Sep 2026 16:44:12 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/MrSkwiggs/Netswift.git
Reference: develop
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/MrSkwiggs/Netswift
 * branch            develop    -> FETCH_HEAD
 * [new branch]      develop    -> origin/develop
HEAD is now at edd7aca Update README.md
Cloned https://github.com/MrSkwiggs/Netswift.git
Revision (git rev-parse @):
edd7acabda694f1fbbd6f912b17c46bd819a0706
SUCCESS checkout https://github.com/MrSkwiggs/Netswift.git at develop
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/MrSkwiggs/Netswift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Building for debugging...
[Planning deferred tasks]
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

[27 / 35] Netswift
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:23:30: error: cannot find type 'URLRequest' in scope
21 |      - parameter completion: A block that will be called when the data task eventually returns
22 |      */
23 |     func perform (_ request: URLRequest, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
   |                              `- error: cannot find type 'URLRequest' in scope
24 |
25 |     /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:33:29: error: cannot find type 'URLRequest' in scope
31 |      */
32 |     @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
33 |     func perform(_ request: URLRequest) async -> NetswiftResult<Data?>
   |                             `- error: cannot find type 'URLRequest' in scope
34 |
35 |     /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:30: error: cannot find type 'URLRequest' in scope
41 |      - parameter completion: A block that will be called when the data task eventually returns
42 |      */
43 |     func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
   |                              `- error: cannot find type 'URLRequest' in scope
44 |
45 |     /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:52: error: cannot find type 'DispatchTime' in scope
41 |      - parameter completion: A block that will be called when the data task eventually returns
42 |      */
43 |     func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
   |                                                    `- error: cannot find type 'DispatchTime' in scope
44 |
45 |     /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:29: error: cannot find type 'URLRequest' in scope
52 |      */
53 |     @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 |     func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
   |                             `- error: cannot find type 'URLRequest' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:51: error: cannot find type 'DispatchTime' in scope
52 |      */
53 |     @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 |     func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
   |                                                   `- error: cannot find type 'DispatchTime' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftHTTPResponse.swift:20:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         return (URLResponse as? HTTPURLResponse)?.statusCode
19 |     }
20 |     public let URLResponse: URLResponse?
   |                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     public let error: Swift.Error?
22 |
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/Netswift/Core/NetswiftHTTPResponse.swift:24:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 |     public init(data: Data?,
24 |                 response: URLResponse?,
   |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |                 error: Swift.Error? = nil) {
26 |         self.data = data
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/Netswift/Core/NetswiftNetworkPerformer.swift:26:54: error: cannot find type 'DispatchTime' in scope
24 |      */
25 |     func perform<Request: NetswiftRequest>(_ request: Request,
26 |                                            deadline: DispatchTime?,
   |                                                      `- error: cannot find type 'DispatchTime' in scope
27 |                                            handler: @escaping NetswiftHandler<Request.Response>) -> NetswiftTask?
28 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:47:40: error: cannot find type 'URLRequest' in scope
 45 |      - parameter completion: A completion block that takes in a NetswiftResult that either succeeds with a useable URLRequest, or fails with a NetswiftError
 46 |      */
 47 |     func serialise() -> NetswiftResult<URLRequest>
    |                                        `- error: cannot find type 'URLRequest' in scope
 48 |
 49 |     /**
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:99:40: error: cannot find type 'URLRequest' in scope
 97 |
 98 | public extension NetswiftRequest where Self: NetswiftRoute {
 99 |     func serialise() -> NetswiftResult<URLRequest> {
    |                                        `- error: cannot find type 'URLRequest' in scope
100 |         var request = URLRequest(url: self.url)
101 |         request.setHTTPMethod(self.method)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:109:40: error: cannot find type 'URLRequest' in scope
107 |
108 | public extension NetswiftRequest where Self: NetswiftRoute, Body: Encodable {
109 |     func serialise() -> NetswiftResult<URLRequest> {
    |                                        `- error: cannot find type 'URLRequest' in scope
110 |         var request = URLRequest(url: self.url)
111 |         request.setHTTPMethod(self.method)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequestPerformable.swift:28:28: error: cannot find type 'DispatchTime' in scope
26 |      - returns: An optional `NetswiftTask` which can be used for further management of the ongoing request.
27 |      */
28 |     func perform(deadline: DispatchTime, _ handler: @escaping NetswiftHandler<Self.Response>) -> NetswiftTask?
   |                            `- error: cannot find type 'DispatchTime' in scope
29 |
30 |     /**
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:18:32: error: cannot find type 'URLRequest' in scope
16 |     typealias RequestHandler = (NetswiftHTTPResponse) -> Void
17 |
18 |     func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask
   |                                `- error: cannot find type 'URLRequest' in scope
19 |
20 |     @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:21:32: error: cannot find type 'URLRequest' in scope
19 |
20 |     @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
21 |     func perform(_ urlRequest: URLRequest) async -> NetswiftHTTPResponse
   |                                `- error: cannot find type 'URLRequest' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
23 |
24 | /// Extension to make URLSession compliant with NetswiftSession
25 | extension URLSession: NetswiftSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
26 |
27 |     ///DataTask call made via NetswiftSession Protocol
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftTask.swift:21:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
19 | }
20 |
21 | extension URLSessionDataTask: NetswiftTask {}
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
22 |
/host/spi-builder-workspace/Sources/Netswift/Core/URLRequestExtension.swift:15:18: error: cannot find type 'URLRequest' in scope
13 |
14 | /// Convenience wrapper functions
15 | public extension URLRequest {
   |                  `- error: cannot find type 'URLRequest' in scope
16 |     mutating func setHTTPMethod(_ method: NetswiftHTTPMethod) {
17 |         self.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:19:44: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 |     public let session: NetswiftSession
18 |
19 |     public init(session: NetswiftSession = URLSession(configuration: .default)) {
   |                                            `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 |         self.session = session
21 |     }
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:23:34: error: cannot find type 'URLRequest' in scope
21 |     }
22 |
23 |     open func perform(_ request: URLRequest, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
   |                                  `- error: cannot find type 'URLRequest' in scope
24 |         return session.perform(request) { response in
25 |             completion(self.validate(response))
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:30:34: error: cannot find type 'URLRequest' in scope
28 |
29 |     @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
30 |     open func perform(_ request: URLRequest) async -> NetswiftResult<Data?> {
   |                                  `- error: cannot find type 'URLRequest' in scope
31 |         return await validate(session.perform(request))
32 |     }
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:34:34: error: cannot find type 'URLRequest' in scope
32 |     }
33 |
34 |     open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5), completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
   |                                  `- error: cannot find type 'URLRequest' in scope
35 |         let dispatchGroup = DispatchGroup()
36 |
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:34:56: error: cannot find type 'DispatchTime' in scope
32 |     }
33 |
34 |     open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5), completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
   |                                                        `- error: cannot find type 'DispatchTime' in scope
35 |         let dispatchGroup = DispatchGroup()
36 |
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:50:34: error: cannot find type 'URLRequest' in scope
48 |
49 |     @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
50 |     open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5)) async -> NetswiftResult<Data?> {
   |                                  `- error: cannot find type 'URLRequest' in scope
51 |         await withCheckedContinuation{ continuation in
52 |             let dispatchGroup = DispatchGroup()
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:50:56: error: cannot find type 'DispatchTime' in scope
48 |
49 |     @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
50 |     open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5)) async -> NetswiftResult<Data?> {
   |                                                        `- error: cannot find type 'DispatchTime' in scope
51 |         await withCheckedContinuation{ continuation in
52 |             let dispatchGroup = DispatchGroup()
/host/spi-builder-workspace/Sources/Netswift/NetswiftPerformer.swift:24:59: error: cannot find type 'DispatchTime' in scope
 22 |     @discardableResult
 23 |     public func perform<Request: NetswiftRequest>(_ request: Request,
 24 |                                                 deadline: DispatchTime? = nil,
    |                                                           `- error: cannot find type 'DispatchTime' in scope
 25 |                                                 handler: @escaping NetswiftHandler<Request.Response>) -> NetswiftTask? {
 26 |         guard let deadline = deadline else {
/host/spi-builder-workspace/Sources/Netswift/NetswiftPerformer.swift:89:43: error: cannot find type 'URLRequest' in scope
 87 |      Override this function to perform extra configuration on the outgoing URLRequest, before it is sent out.
 88 |      */
 89 |     open func hook(into urlRequest: inout URLRequest) {
    |                                           `- error: cannot find type 'URLRequest' in scope
 90 |         // overridable, empty default
 91 |     }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/Netswift/Core/GenericScheme.swift /host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift /host/spi-builder-workspace/Sources/Netswift/Core/MimeType.swift /host/spi-builder-workspace/Sources/Netswift/Core/NetswiftAuthorizationType.swift /host/spi-builder-workspace/Sources/Netswift/Core/NetswiftEncoder.swift /host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError+Category.swift /host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift /host/spi-builder-workspace/Sources/Netswift/Core/NetswiftHTTPMethod.swift /host/spi-builder-workspace/Sources/Netswift/Core/NetswiftHTTPResponse.swift /host/spi-builder-workspace/Sources/Netswift/Core/NetswiftHandler.swift /host/spi-builder-workspace/Sources/Netswift/Core/NetswiftHeaders.swift /host/spi-builder-workspace/Sources/Netswift/Core/NetswiftNetworkPerformer.swift /host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift /host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequestPerformable.swift /host/spi-builder-workspace/Sources/Netswift/Core/NetswiftResult.swift /host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRoute.swift /host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift /host/spi-builder-workspace/Sources/Netswift/Core/NetswiftTask.swift /host/spi-builder-workspace/Sources/Netswift/Core/RequestHeader.swift /host/spi-builder-workspace/Sources/Netswift/Core/URLRequestExtension.swift /host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift /host/spi-builder-workspace/Sources/Netswift/NetswiftPerformer.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Netswift.build/Debug-webassembly-wasm32/Netswift-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Netswift.build/Debug-webassembly-wasm32/Netswift-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Netswift.build/Debug-webassembly-wasm32/Netswift-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Netswift -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/Netswift.build/Debug-webassembly-wasm32/Netswift-t.build/Objects-normal/wasm32/Netswift_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Netswift.build/Debug-webassembly-wasm32/Netswift-t.build/Objects-normal/wasm32/Modules/Netswift.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Netswift.build/Debug-webassembly-wasm32/Netswift-t.build/Objects-normal/wasm32/Modules/Netswift.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Netswift.build/Debug-webassembly-wasm32/Netswift-t.build/Objects-normal/wasm32/Netswift-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Netswift.build/Debug-webassembly-wasm32/Netswift-t.build/Objects-normal/wasm32/Netswift-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Netswift.build/Debug-webassembly-wasm32/Netswift-t.build/Objects-normal/wasm32/Netswift-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/Netswift.build/Debug-webassembly-wasm32/Netswift-t.build/Objects-normal/wasm32/Modules/Netswift.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm