The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WealthsimpleDownloader, reference v3.1.1 (663c7a), with Swift 6.4 for Wasm on 25 Sep 2026 23:41:42 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-2":/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/Nef10/WealthsimpleDownloader.git
Reference: v3.1.1
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/Nef10/WealthsimpleDownloader
 * tag               v3.1.1     -> FETCH_HEAD
HEAD is now at 663c7ac Add currency conversion types (#307)
Cloned https://github.com/Nef10/WealthsimpleDownloader.git
Revision (git rev-parse @):
663c7aca3f5a564d8e1d0f99f026544ee62098cf
SUCCESS checkout https://github.com/Nef10/WealthsimpleDownloader.git at v3.1.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/Nef10/WealthsimpleDownloader.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-2":/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

/host/spi-builder-workspace/Sources/Wealthsimple/Token.swift:108:29: error: cannot find type 'URLRequest' in scope
106 |     private static func sendTokenRequest(
107 |         parameters json: [String: String],
108 |         request urlRequest: URLRequest,
    |                             `- error: cannot find type 'URLRequest' in scope
109 |         credentialStorage: CredentialStorage,
110 |         completion: @escaping (Result<Self, TokenError>) -> Void
/host/spi-builder-workspace/Sources/Wealthsimple/Token.swift:128:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 |     private static func handleTokenResponse(
127 |         data: Data?,
128 |         response: URLResponse?,
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |         error: Error?,
130 |         credentialStorage: CredentialStorage,
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/Wealthsimple/Token.swift:185:41: error: cannot find type 'URLRequest' in scope
183 |     }
184 |
185 |     func authenticateRequest(_ request: URLRequest, completion: (URLRequest) -> Void) {
    |                                         `- error: cannot find type 'URLRequest' in scope
186 |         var requestCopy = request
187 |         requestCopy.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Wealthsimple/Token.swift:185:66: error: cannot find type 'URLRequest' in scope
183 |     }
184 |
185 |     func authenticateRequest(_ request: URLRequest, completion: (URLRequest) -> Void) {
    |                                                                  `- error: cannot find type 'URLRequest' in scope
186 |         var requestCopy = request
187 |         requestCopy.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Wealthsimple/URLConfiguration.swift:77:33: error: cannot find type 'URLRequest' in scope
75 |     /// Create a URLRequest object for GraphQL URL
76 |     /// - Returns: A URLRequest, or nil if the URL is invalid
77 |     func graphQLURLRequest() -> URLRequest? {
   |                                 `- error: cannot find type 'URLRequest' in scope
78 |         let url = URL(string: graphQL)
79 |         guard let url else {
/host/spi-builder-workspace/Sources/Wealthsimple/WealthsimpleAccount.swift:109:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |     }
108 |
109 |     private static func handleResponse(data: Data?, response: URLResponse?, error: Error?, completion: (Result<[Account], AccountError>) -> Void) {
    |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |         guard let data else {
111 |             if let error {
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/Wealthsimple/WealthsimplePosition.swift:183:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 |     }
182 |
183 |     private static func handleResponse(data: Data?, response: URLResponse?, error: Error?, completion: (Result<[Position], PositionError>) -> Void) {
    |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 |         guard let data else {
185 |             if let error {
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/Wealthsimple/WealthsimplePosition.swift:205:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 |     private static func handleCreditCardResponse(
204 |         data: Data?,
205 |         response: URLResponse?,
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 |         error: Error?,
207 |         account: Account,
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/Wealthsimple/WealthsimpleTransaction.swift:180:68: error: cannot find type 'URLRequest' in scope
178 |     }
179 |
180 |     private static func fxRequest(json: [[String: Any]]) throws -> URLRequest {
    |                                                                    `- error: cannot find type 'URLRequest' in scope
181 |         var queryPart1 = "query CreditCardActivity(", queryPart2 = "", variables = ""
182 |         var index = 0
/host/spi-builder-workspace/Sources/Wealthsimple/WealthsimpleTransaction.swift:310:133: error: cannot find type 'URLRequest' in scope
308 |     }
309 |
310 |     private static func getTransactionsGraphQLRequest(accountID: String, startDate: Date, endDate: Date, cursor: String?) throws -> URLRequest {
    |                                                                                                                                     `- error: cannot find type 'URLRequest' in scope
311 |         guard var request = URLConfiguration.shared.graphQLURLRequest() else {
312 |             throw TransactionError.httpError(error: "Invalid URL")
/host/spi-builder-workspace/Sources/Wealthsimple/WealthsimpleTransaction.swift:323:106: error: cannot find type 'URLRequest' in scope
321 |     }
322 |
323 |     private static func getTransactionsRESTRequest(accountID: String, startDate: Date, endDate: Date) -> URLRequest {
    |                                                                                                          `- error: cannot find type 'URLRequest' in scope
324 |         var url = baseUrl
325 |         url.queryItems = [
/host/spi-builder-workspace/Sources/Wealthsimple/WealthsimpleTransaction.swift:337:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
335 |     }
336 |
337 |     private static func handleResponse(data: Data?, response: URLResponse?, error: Error?, completion: @escaping (Result<Data, TransactionError>) -> Void) {
    |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 |         DispatchQueue.global(qos: .userInitiated).async {
339 |             guard let data else {
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
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/Wealthsimple/Extensions/String+CamelCase.swift /host/spi-builder-workspace/Sources/Wealthsimple/Token.swift /host/spi-builder-workspace/Sources/Wealthsimple/Transaction.swift /host/spi-builder-workspace/Sources/Wealthsimple/URLConfiguration.swift /host/spi-builder-workspace/Sources/Wealthsimple/WealthsimpleAccount.swift /host/spi-builder-workspace/Sources/Wealthsimple/WealthsimpleAsset.swift /host/spi-builder-workspace/Sources/Wealthsimple/WealthsimpleDownloader.swift /host/spi-builder-workspace/Sources/Wealthsimple/WealthsimplePosition.swift /host/spi-builder-workspace/Sources/Wealthsimple/WealthsimpleTransaction.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/WealthsimpleDownloader.build/Debug-webassembly-wasm32/Wealthsimple-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/WealthsimpleDownloader.build/Debug-webassembly-wasm32/Wealthsimple-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/WealthsimpleDownloader.build/Debug-webassembly-wasm32/Wealthsimple-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Wealthsimple -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/WealthsimpleDownloader.build/Debug-webassembly-wasm32/Wealthsimple-t.build/Objects-normal/wasm32/Wealthsimple_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/WealthsimpleDownloader.build/Debug-webassembly-wasm32/Wealthsimple-t.build/Objects-normal/wasm32/Modules/Wealthsimple.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/WealthsimpleDownloader.build/Debug-webassembly-wasm32/Wealthsimple-t.build/Objects-normal/wasm32/Modules/Wealthsimple.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/WealthsimpleDownloader.build/Debug-webassembly-wasm32/Wealthsimple-t.build/Objects-normal/wasm32/Wealthsimple-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/WealthsimpleDownloader.build/Debug-webassembly-wasm32/Wealthsimple-t.build/Objects-normal/wasm32/Wealthsimple-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/WealthsimpleDownloader.build/Debug-webassembly-wasm32/Wealthsimple-t.build/Objects-normal/wasm32/Wealthsimple-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/WealthsimpleDownloader.build/Debug-webassembly-wasm32/Wealthsimple-t.build/Objects-normal/wasm32/Modules/Wealthsimple.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm