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>&1Build 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: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m106 |[0;0m private static func sendTokenRequest(
[0;36m107 |[0;0m parameters json: [String: String],
[0;36m108 |[0;0m request urlRequest: [4;39mURLRequest[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m109 |[0;0m credentialStorage: CredentialStorage,
[0;36m110 |[0;0m completion: @escaping (Result<Self, TokenError>) -> Void
/host/spi-builder-workspace/Sources/Wealthsimple/Token.swift:128:19: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m126 |[0;0m private static func handleTokenResponse(
[0;36m127 |[0;0m data: Data?,
[0;36m128 |[0;0m response: [4;39mURLResponse[0;0m?,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m129 |[0;0m error: Error?,
[0;36m130 |[0;0m credentialStorage: CredentialStorage,
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Wealthsimple/Token.swift:185:41: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m183 |[0;0m }
[0;36m184 |[0;0m
[0;36m185 |[0;0m func authenticateRequest(_ request: [4;39mURLRequest[0;0m, completion: (URLRequest) -> Void) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m186 |[0;0m var requestCopy = request
[0;36m187 |[0;0m requestCopy.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Wealthsimple/Token.swift:185:66: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m183 |[0;0m }
[0;36m184 |[0;0m
[0;36m185 |[0;0m func authenticateRequest(_ request: URLRequest, completion: ([4;39mURLRequest[0;0m) -> Void) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m186 |[0;0m var requestCopy = request
[0;36m187 |[0;0m requestCopy.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Wealthsimple/URLConfiguration.swift:77:33: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m75 |[0;0m /// Create a URLRequest object for GraphQL URL
[0;36m76 |[0;0m /// - Returns: A URLRequest, or nil if the URL is invalid
[0;36m77 |[0;0m func graphQLURLRequest() -> [4;39mURLRequest[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m78 |[0;0m let url = URL(string: graphQL)
[0;36m79 |[0;0m guard let url else {
/host/spi-builder-workspace/Sources/Wealthsimple/WealthsimpleAccount.swift:109:63: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m107 |[0;0m }
[0;36m108 |[0;0m
[0;36m109 |[0;0m private static func handleResponse(data: Data?, response: [4;39mURLResponse[0;0m?, error: Error?, completion: (Result<[Account], AccountError>) -> Void) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m110 |[0;0m guard let data else {
[0;36m111 |[0;0m if let error {
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Wealthsimple/WealthsimplePosition.swift:183:63: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m181 |[0;0m }
[0;36m182 |[0;0m
[0;36m183 |[0;0m private static func handleResponse(data: Data?, response: [4;39mURLResponse[0;0m?, error: Error?, completion: (Result<[Position], PositionError>) -> Void) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m184 |[0;0m guard let data else {
[0;36m185 |[0;0m if let error {
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Wealthsimple/WealthsimplePosition.swift:205:19: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m203 |[0;0m private static func handleCreditCardResponse(
[0;36m204 |[0;0m data: Data?,
[0;36m205 |[0;0m response: [4;39mURLResponse[0;0m?,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m206 |[0;0m error: Error?,
[0;36m207 |[0;0m account: Account,
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Wealthsimple/WealthsimpleTransaction.swift:180:68: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m178 |[0;0m }
[0;36m179 |[0;0m
[0;36m180 |[0;0m private static func fxRequest(json: [[String: Any]]) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m181 |[0;0m var queryPart1 = "query CreditCardActivity(", queryPart2 = "", variables = ""
[0;36m182 |[0;0m var index = 0
/host/spi-builder-workspace/Sources/Wealthsimple/WealthsimpleTransaction.swift:310:133: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m308 |[0;0m }
[0;36m309 |[0;0m
[0;36m310 |[0;0m private static func getTransactionsGraphQLRequest(accountID: String, startDate: Date, endDate: Date, cursor: String?) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m311 |[0;0m guard var request = URLConfiguration.shared.graphQLURLRequest() else {
[0;36m312 |[0;0m throw TransactionError.httpError(error: "Invalid URL")
/host/spi-builder-workspace/Sources/Wealthsimple/WealthsimpleTransaction.swift:323:106: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m321 |[0;0m }
[0;36m322 |[0;0m
[0;36m323 |[0;0m private static func getTransactionsRESTRequest(accountID: String, startDate: Date, endDate: Date) -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m324 |[0;0m var url = baseUrl
[0;36m325 |[0;0m url.queryItems = [
/host/spi-builder-workspace/Sources/Wealthsimple/WealthsimpleTransaction.swift:337:63: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m335 |[0;0m }
[0;36m336 |[0;0m
[0;36m337 |[0;0m private static func handleResponse(data: Data?, response: [4;39mURLResponse[0;0m?, error: Error?, completion: @escaping (Result<Data, TransactionError>) -> Void) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m338 |[0;0m DispatchQueue.global(qos: .userInitiated).async {
[0;36m339 |[0;0m guard let data else {
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
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