Build Information
Failed to build SwiftBeanCountImporter, reference v0.11.2 (f51a46), with Swift 6.3 for Wasm on 17 Apr 2026 19:45:28 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/Nef10/SwiftBeanCountImporter.git
Reference: v0.11.2
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/SwiftBeanCountImporter
* tag v0.11.2 -> FETCH_HEAD
HEAD is now at f51a468 Equate Plus: Use total price instead of price per unit (#342)
Cloned https://github.com/Nef10/SwiftBeanCountImporter.git
Revision (git rev-parse @):
f51a4683f930b7c339afbe9885a3783f90ffc5dc
SUCCESS checkout https://github.com/Nef10/SwiftBeanCountImporter.git at v0.11.2
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/Nef10/SwiftBeanCountImporter.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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
Fetching https://github.com/Nef10/SwiftBeanCountCompassCardMapper.git
Fetching https://github.com/Nef10/TangerineDownloader.git
Fetching https://github.com/Nef10/RogersBankDownloader.git
Fetching https://github.com/Nef10/SwiftBeanCountSheetSync.git
Fetching https://github.com/Nef10/SwiftBeanCountTangerineMapper.git
Fetching https://github.com/Nef10/CompassCardDownloader.git
[1/648] Fetching swiftbeancountcompasscardmapper
[53/1549] Fetching swiftbeancountcompasscardmapper, tangerinedownloader
[182/2848] Fetching swiftbeancountcompasscardmapper, tangerinedownloader, swiftbeancountsheetsync
[317/3671] Fetching swiftbeancountcompasscardmapper, tangerinedownloader, swiftbeancountsheetsync, swiftbeancounttangerinemapper
[3335/4257] Fetching swiftbeancountcompasscardmapper, tangerinedownloader, swiftbeancountsheetsync, swiftbeancounttangerinemapper, compasscarddownloader
[4247/6063] Fetching swiftbeancountcompasscardmapper, tangerinedownloader, swiftbeancountsheetsync, swiftbeancounttangerinemapper, compasscarddownloader, rogersbankdownloader
Fetched https://github.com/Nef10/CompassCardDownloader.git from cache (0.49s)
Fetched https://github.com/Nef10/SwiftBeanCountCompassCardMapper.git from cache (0.49s)
Fetched https://github.com/Nef10/TangerineDownloader.git from cache (0.49s)
Fetched https://github.com/Nef10/SwiftBeanCountTangerineMapper.git from cache (0.49s)
Fetched https://github.com/Nef10/SwiftBeanCountSheetSync.git from cache (0.50s)
Fetching https://github.com/Nef10/SwiftBeanCountRogersBankMapper.git
Fetched https://github.com/Nef10/RogersBankDownloader.git from cache (0.50s)
Fetching https://github.com/Nef10/WealthsimpleDownloader.git
Fetching https://github.com/Nef10/SwiftBeanCountWealthsimpleMapper.git
Fetching https://github.com/Nef10/SwiftBeanCountParserUtils.git
[1/1442] Fetching swiftbeancountrogersbankmapper
[102/4247] Fetching swiftbeancountrogersbankmapper, wealthsimpledownloader
[349/5247] Fetching swiftbeancountrogersbankmapper, wealthsimpledownloader, swiftbeancountparserutils
[439/7480] Fetching swiftbeancountrogersbankmapper, wealthsimpledownloader, swiftbeancountparserutils, swiftbeancountwealthsimplemapper
Fetched https://github.com/Nef10/SwiftBeanCountParserUtils.git from cache (0.81s)
Fetching https://github.com/yaslab/CSV.swift.git
Fetched https://github.com/Nef10/SwiftBeanCountRogersBankMapper.git from cache (0.84s)
Fetched https://github.com/Nef10/SwiftBeanCountWealthsimpleMapper.git from cache (0.86s)
[2/4638] Fetching wealthsimpledownloader, csv.swift
Fetched https://github.com/yaslab/CSV.swift.git from cache (0.68s)
[6/2805] Fetching wealthsimpledownloader
Fetching https://github.com/Nef10/SwiftBeanCountModel.git
Fetched https://github.com/Nef10/WealthsimpleDownloader.git from cache (3.99s)
[1/3771] Fetching swiftbeancountmodel
Fetched https://github.com/Nef10/SwiftBeanCountModel.git from cache (2.99s)
Computing version for https://github.com/Nef10/SwiftBeanCountCompassCardMapper.git
Computed https://github.com/Nef10/SwiftBeanCountCompassCardMapper.git at 0.1.2 (7.79s)
Computing version for https://github.com/Nef10/CompassCardDownloader.git
Computed https://github.com/Nef10/CompassCardDownloader.git at 0.0.2 (0.50s)
Fetching https://github.com/Nef10/SwiftScraper.git
[1/1651] Fetching swiftscraper
Fetched https://github.com/Nef10/SwiftScraper.git from cache (0.28s)
Computing version for https://github.com/Nef10/SwiftBeanCountTangerineMapper.git
Computed https://github.com/Nef10/SwiftBeanCountTangerineMapper.git at 0.0.4 (0.75s)
Computing version for https://github.com/Nef10/TangerineDownloader.git
Computed https://github.com/Nef10/TangerineDownloader.git at 0.1.0 (0.53s)
Computing version for https://github.com/Nef10/RogersBankDownloader.git
Computed https://github.com/Nef10/RogersBankDownloader.git at 0.2.2 (0.43s)
Computing version for https://github.com/Nef10/SwiftBeanCountRogersBankMapper.git
Computed https://github.com/Nef10/SwiftBeanCountRogersBankMapper.git at 0.0.15 (0.57s)
Computing version for https://github.com/Nef10/SwiftBeanCountSheetSync.git
Computed https://github.com/Nef10/SwiftBeanCountSheetSync.git at 1.1.1 (0.64s)
Fetching https://github.com/Nef10/SwiftBeanCountParser.git
Fetching https://github.com/Nef10/GoogleAuthentication.git
[1/1265] Fetching googleauthentication
[254/3670] Fetching googleauthentication, swiftbeancountparser
Fetched https://github.com/Nef10/GoogleAuthentication.git from cache (1.49s)
[1998/2405] Fetching swiftbeancountparser
Fetched https://github.com/Nef10/SwiftBeanCountParser.git from cache (5.92s)
Computing version for https://github.com/Nef10/SwiftBeanCountWealthsimpleMapper.git
Computed https://github.com/Nef10/SwiftBeanCountWealthsimpleMapper.git at 1.9.0 (8.60s)
Computing version for https://github.com/Nef10/SwiftBeanCountParserUtils.git
Computed https://github.com/Nef10/SwiftBeanCountParserUtils.git at 1.0.0 (0.79s)
Computing version for https://github.com/yaslab/CSV.swift.git
Computed https://github.com/yaslab/CSV.swift.git at 2.5.2 (0.51s)
Computing version for https://github.com/Nef10/SwiftBeanCountModel.git
Computed https://github.com/Nef10/SwiftBeanCountModel.git at 0.2.0 (0.53s)
Computing version for https://github.com/Nef10/SwiftScraper.git
Computed https://github.com/Nef10/SwiftScraper.git at 0.7.0 (0.55s)
Computing version for https://github.com/Nef10/SwiftBeanCountParser.git
Computed https://github.com/Nef10/SwiftBeanCountParser.git at 0.1.9 (1.22s)
Computing version for https://github.com/Nef10/GoogleAuthentication.git
Computed https://github.com/Nef10/GoogleAuthentication.git at 1.1.0 (0.69s)
Fetching https://github.com/kishikawakatsumi/KeychainAccess.git
Fetching https://github.com/OAuthSwift/OAuthSwift.git
[1/5147] Fetching oauthswift
[413/9535] Fetching oauthswift, keychainaccess
Fetched https://github.com/OAuthSwift/OAuthSwift.git from cache (0.78s)
Fetched https://github.com/kishikawakatsumi/KeychainAccess.git from cache (0.78s)
Computing version for https://github.com/OAuthSwift/OAuthSwift.git
Computed https://github.com/OAuthSwift/OAuthSwift.git at 2.2.0 (1.49s)
Fetching https://github.com/tid-kijyun/Kanna.git
Fetching https://github.com/phimage/Erik.git
Fetching https://github.com/httpswift/swifter.git
Fetching https://github.com/apple/swift-crypto.git
[1/2512] Fetching kanna
[403/8562] Fetching kanna, swifter
[4086/9204] Fetching kanna, swifter, erik
[4849/26604] Fetching kanna, swifter, erik, swift-crypto
Fetched https://github.com/tid-kijyun/Kanna.git from cache (1.26s)
[8606/24092] Fetching swifter, erik, swift-crypto
Fetched https://github.com/phimage/Erik.git from cache (2.76s)
Fetched https://github.com/httpswift/swifter.git from cache (2.79s)
Fetched https://github.com/apple/swift-crypto.git from cache (2.81s)
Computing version for https://github.com/httpswift/swifter.git
Computed https://github.com/httpswift/swifter.git at 1.5.0 (3.83s)
Computing version for https://github.com/kishikawakatsumi/KeychainAccess.git
Computed https://github.com/kishikawakatsumi/KeychainAccess.git at 4.2.2 (1.99s)
Computing version for https://github.com/phimage/Erik.git
Computed https://github.com/phimage/Erik.git at 5.1.0 (1.39s)
Fetching https://github.com/Thomvis/BrightFutures.git
Fetching https://github.com/nvzqz/FileKit.git
[1/3128] Fetching filekit
[1816/7196] Fetching filekit, brightfutures
Fetched https://github.com/nvzqz/FileKit.git from cache (0.68s)
[3743/4068] Fetching brightfutures
Fetched https://github.com/Thomvis/BrightFutures.git from cache (0.97s)
Computing version for https://github.com/nvzqz/FileKit.git
Computed https://github.com/nvzqz/FileKit.git at 6.1.0 (1.43s)
Computing version for https://github.com/Nef10/WealthsimpleDownloader.git
Computed https://github.com/Nef10/WealthsimpleDownloader.git at 3.1.0 (0.46s)
Computing version for https://github.com/Thomvis/BrightFutures.git
Computed https://github.com/Thomvis/BrightFutures.git at 8.2.0 (0.47s)
Computing version for https://github.com/tid-kijyun/Kanna.git
Computed https://github.com/tid-kijyun/Kanna.git at 5.3.0 (0.50s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 1.1.7 (0.52s)
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 1.1.7
Creating working copy for https://github.com/Nef10/SwiftBeanCountSheetSync.git
Working copy of https://github.com/Nef10/SwiftBeanCountSheetSync.git resolved at 1.1.1
Creating working copy for https://github.com/nvzqz/FileKit.git
Working copy of https://github.com/nvzqz/FileKit.git resolved at 6.1.0
Creating working copy for https://github.com/Nef10/RogersBankDownloader.git
Working copy of https://github.com/Nef10/RogersBankDownloader.git resolved at 0.2.2
Creating working copy for https://github.com/Thomvis/BrightFutures.git
Working copy of https://github.com/Thomvis/BrightFutures.git resolved at 8.2.0
Creating working copy for https://github.com/Nef10/SwiftBeanCountTangerineMapper.git
Working copy of https://github.com/Nef10/SwiftBeanCountTangerineMapper.git resolved at 0.0.4
Creating working copy for https://github.com/tid-kijyun/Kanna.git
Working copy of https://github.com/tid-kijyun/Kanna.git resolved at 5.3.0
Creating working copy for https://github.com/Nef10/SwiftBeanCountModel.git
Working copy of https://github.com/Nef10/SwiftBeanCountModel.git resolved at 0.2.0
Creating working copy for https://github.com/Nef10/SwiftBeanCountParserUtils.git
Working copy of https://github.com/Nef10/SwiftBeanCountParserUtils.git resolved at 1.0.0
Creating working copy for https://github.com/Nef10/CompassCardDownloader.git
Working copy of https://github.com/Nef10/CompassCardDownloader.git resolved at 0.0.2
Creating working copy for https://github.com/Nef10/SwiftBeanCountCompassCardMapper.git
Working copy of https://github.com/Nef10/SwiftBeanCountCompassCardMapper.git resolved at 0.1.2
Creating working copy for https://github.com/Nef10/SwiftBeanCountRogersBankMapper.git
Working copy of https://github.com/Nef10/SwiftBeanCountRogersBankMapper.git resolved at 0.0.15
Creating working copy for https://github.com/Nef10/SwiftScraper.git
Working copy of https://github.com/Nef10/SwiftScraper.git resolved at 0.7.0
Creating working copy for https://github.com/Nef10/SwiftBeanCountParser.git
Working copy of https://github.com/Nef10/SwiftBeanCountParser.git resolved at 0.1.9
Creating working copy for https://github.com/Nef10/SwiftBeanCountWealthsimpleMapper.git
Working copy of https://github.com/Nef10/SwiftBeanCountWealthsimpleMapper.git resolved at 1.9.0
Creating working copy for https://github.com/Nef10/TangerineDownloader.git
Working copy of https://github.com/Nef10/TangerineDownloader.git resolved at 0.1.0
Creating working copy for https://github.com/kishikawakatsumi/KeychainAccess.git
Working copy of https://github.com/kishikawakatsumi/KeychainAccess.git resolved at 4.2.2
Creating working copy for https://github.com/phimage/Erik.git
Working copy of https://github.com/phimage/Erik.git resolved at 5.1.0
Creating working copy for https://github.com/OAuthSwift/OAuthSwift.git
Working copy of https://github.com/OAuthSwift/OAuthSwift.git resolved at 2.2.0
Creating working copy for https://github.com/Nef10/GoogleAuthentication.git
Working copy of https://github.com/Nef10/GoogleAuthentication.git resolved at 1.1.0
Creating working copy for https://github.com/httpswift/swifter.git
Working copy of https://github.com/httpswift/swifter.git resolved at 1.5.0
Creating working copy for https://github.com/Nef10/WealthsimpleDownloader.git
Working copy of https://github.com/Nef10/WealthsimpleDownloader.git resolved at 3.1.0
Creating working copy for https://github.com/yaslab/CSV.swift.git
Working copy of https://github.com/yaslab/CSV.swift.git resolved at 2.5.2
Building for debugging...
[0/10] Write sources
[9/10] Write swift-version-24593BA9C3E375BF.txt
[11/55] Emitting module SwiftBeanCountParserUtils
[12/55] Emitting module SwiftBeanCountModel
[13/57] Compiling CSV Legacy.swift
[14/58] Compiling CSV Endian.swift
[15/58] Compiling CSV UnicodeIterator.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/58] Emitting module RogersBankDownloader
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:86:47: error: cannot find type 'URLRequest' in scope
84 | private static let defaultDeviceInfo = "[{\"key\":\"language\",\"value\":\"en-US\"},{\"key\":\"color_depth\",\"value\":30},{\"key\":\"device_memory\",\"value\":8},{\"key\":\"hardware_concurrency\",\"value\":10},{\"key\":\"resolution\",\"value\":[1728,1117]},{\"key\":\"available_resolution\",\"value\":[1728,1005]},{\"key\":\"timezone_offset\",\"value\":420},{\"key\":\"session_storage\",\"value\":1},{\"key\":\"local_storage\",\"value\":1},{\"key\":\"indexed_db\",\"value\":1},{\"key\":\"cpu_class\",\"value\":\"unknown\"},{\"key\":\"navigator_platform\",\"value\":\"MacIntel\"},{\"key\":\"regular_plugins\",\"value\":[\"PDF Viewer::Portable Document Format::application/pdf~pdf,text/pdf~pdf\",\"Chrome PDF Viewer::Portable Document Format::application/pdf~pdf,text/pdf~pdf\",\"Chromium PDF Viewer::Portable Document Format::application/pdf~pdf,text/pdf~pdf\",\"WebKit built-in PDF::Portable Document Format::application/pdf~pdf,text/pdf~pdf\"]},{\"key\":\"webgl_vendor\",\"value\":\"Google Inc. (Apple)~ANGLE (Apple, ANGLE Metal Renderer: Apple M1 Pro, Unspecified Version)\"},{\"key\":\"adblock\",\"value\":false},{\"key\":\"has_lied_languages\",\"value\":false},{\"key\":\"has_lied_resolution\",\"value\":false},{\"key\":\"has_lied_os\",\"value\":false},{\"key\":\"has_lied_browser\",\"value\":false},{\"key\":\"touch_support\",\"value\":[0,false,false]},{\"key\":\"js_fonts\",\"value\":[\"Arial\",\"Arial Black\",\"Arial Hebrew\",\"Arial Narrow\",\"Arial Rounded MT Bold\",\"Arial Unicode MS\",\"Comic Sans MS\",\"Courier\",\"Courier New\",\"Geneva\",\"Georgia\",\"Helvetica\",\"Helvetica Neue\",\"Impact\",\"Microsoft Sans Serif\",\"Monaco\",\"Palatino\",\"Tahoma\",\"Times\",\"Times New Roman\",\"Trebuchet MS\",\"Verdana\",\"Wingdings\",\"Wingdings 2\",\"Wingdings 3\"]}]"
85 |
86 | private static let authenticationRequest: URLRequest = {
| `- error: cannot find type 'URLRequest' in scope
87 | var request = URLRequest(url: authenticationURL)
88 | request.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:87:23: error: cannot find 'URLRequest' in scope
85 |
86 | private static let authenticationRequest: URLRequest = {
87 | var request = URLRequest(url: authenticationURL)
| `- error: cannot find 'URLRequest' in scope
88 | request.httpMethod = "POST"
89 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:97:52: error: cannot find type 'URLRequest' in scope
95 | }()
96 |
97 | private static let twoFactorPreferenceRequest: URLRequest = {
| `- error: cannot find type 'URLRequest' in scope
98 | var request = URLRequest(url: twoFactorPreferenceURL)
99 | request.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:98:23: error: cannot find 'URLRequest' in scope
96 |
97 | private static let twoFactorPreferenceRequest: URLRequest = {
98 | var request = URLRequest(url: twoFactorPreferenceURL)
| `- error: cannot find 'URLRequest' in scope
99 | request.httpMethod = "POST"
100 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:106:54: error: cannot find type 'URLRequest' in scope
104 | }()
105 |
106 | private static let validateTwoFactorCodeRequest: URLRequest = {
| `- error: cannot find type 'URLRequest' in scope
107 | var request = URLRequest(url: validateTwoFactorCodeURL)
108 | request.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:107:23: error: cannot find 'URLRequest' in scope
105 |
106 | private static let validateTwoFactorCodeRequest: URLRequest = {
107 | var request = URLRequest(url: validateTwoFactorCodeURL)
| `- error: cannot find 'URLRequest' in scope
108 | request.httpMethod = "POST"
109 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:163:67: error: cannot find type 'URLRequest' in scope
161 | }
162 |
163 | private static func generateTwoFactorCodeRequest(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
164 | var request = URLRequest(url: url)
165 | request.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/URLTaskHelper.swift:7:56: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | enum URLTaskHelper {
7 | static func processResponse(data: Data?, response: URLResponse?, error: Error?) -> Result<(Data, HTTPURLResponse), DownloadError> {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | guard let data else {
9 | 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/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/URLTaskHelper.swift:7:102: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | enum URLTaskHelper {
7 | static func processResponse(data: Data?, response: URLResponse?, error: Error?) -> Result<(Data, HTTPURLResponse), DownloadError> {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | guard let data else {
9 | if let error {
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
[17/58] Compiling Wealthsimple URLConfiguration.swift
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/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/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/URLConfiguration.swift:82:23: error: cannot find 'URLRequest' in scope
80 | return nil
81 | }
82 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
83 | request.httpMethod = "POST"
84 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
[18/59] Compiling SwiftBeanCountModel Transaction.swift
[19/59] Compiling SwiftBeanCountModel TransactionMetaData.swift
[20/59] Compiling CSV CSVError.swift
[21/59] Compiling CSV CSVWriter.swift
[22/59] Compiling SwiftBeanCountParserUtils String.swift
[23/59] Compiling RogersBankDownloader RogersStatement.swift
[24/60] Compiling Wealthsimple WealthsimplePosition.swift
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/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: @escaping (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/.build/checkouts/WealthsimpleDownloader/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/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimplePosition.swift:148:23: error: cannot find 'URLRequest' in scope
146 | url.queryItems?.append(URLQueryItem(name: "date", value: dateFormatter.string(from: date)))
147 | }
148 | var request = URLRequest(url: url.url!)
| `- error: cannot find 'URLRequest' in scope
149 | let session = URLSession.shared
150 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimplePosition.swift:149:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
147 | }
148 | var request = URLRequest(url: url.url!)
149 | let session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
151 | token.authenticateRequest(request) { request in
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:185:41: error: cannot find type 'URLRequest' in scope
183 | }
184 |
185 | func authenticateRequest(_ request: URLRequest, completion: @escaping (URLRequest) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
186 | var requestCopy = request
187 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:185:76: error: cannot find type 'URLRequest' in scope
183 | }
184 |
185 | func authenticateRequest(_ request: URLRequest, completion: @escaping (URLRequest) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
186 | var requestCopy = request
187 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/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/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimplePosition.swift:174:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
172 | }
173 | request.httpBody = jsonData
174 | let session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
175 | token.authenticateRequest(request) { request in
176 | let task = session.dataTask(with: request) { data, response, error in
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimplePosition.swift:192:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 | return
191 | }
192 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 | completion(.failure(PositionError.httpError(error: "No HTTPURLResponse")))
194 | return
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/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimplePosition.swift:196:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
194 | return
195 | }
196 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
197 | completion(.failure(PositionError.httpError(error: "Status code \(httpResponse.statusCode)")))
198 | return
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimplePosition.swift:197:92: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
195 | }
196 | guard httpResponse.statusCode == 200 else {
197 | completion(.failure(PositionError.httpError(error: "Status code \(httpResponse.statusCode)")))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
198 | return
199 | }
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimplePosition.swift:218:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 | return
217 | }
218 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 | completion(.failure(PositionError.httpError(error: "No HTTPURLResponse")))
220 | return
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/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimplePosition.swift:222:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
220 | return
221 | }
222 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
223 | completion(.failure(PositionError.httpError(error: "Status code \(httpResponse.statusCode)")))
224 | return
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimplePosition.swift:223:92: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
221 | }
222 | guard httpResponse.statusCode == 200 else {
223 | completion(.failure(PositionError.httpError(error: "Status code \(httpResponse.statusCode)")))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
224 | return
225 | }
[25/60] Compiling Wealthsimple WealthsimpleDownloader.swift
[27/60] Compiling SwiftBeanCountModel TransactionPosting.swift
[28/60] Compiling SwiftBeanCountModel ValidationResult.swift
[29/60] Compiling RogersBankDownloader RogersAuthenticator.swift
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:86:47: error: cannot find type 'URLRequest' in scope
84 | private static let defaultDeviceInfo = "[{\"key\":\"language\",\"value\":\"en-US\"},{\"key\":\"color_depth\",\"value\":30},{\"key\":\"device_memory\",\"value\":8},{\"key\":\"hardware_concurrency\",\"value\":10},{\"key\":\"resolution\",\"value\":[1728,1117]},{\"key\":\"available_resolution\",\"value\":[1728,1005]},{\"key\":\"timezone_offset\",\"value\":420},{\"key\":\"session_storage\",\"value\":1},{\"key\":\"local_storage\",\"value\":1},{\"key\":\"indexed_db\",\"value\":1},{\"key\":\"cpu_class\",\"value\":\"unknown\"},{\"key\":\"navigator_platform\",\"value\":\"MacIntel\"},{\"key\":\"regular_plugins\",\"value\":[\"PDF Viewer::Portable Document Format::application/pdf~pdf,text/pdf~pdf\",\"Chrome PDF Viewer::Portable Document Format::application/pdf~pdf,text/pdf~pdf\",\"Chromium PDF Viewer::Portable Document Format::application/pdf~pdf,text/pdf~pdf\",\"WebKit built-in PDF::Portable Document Format::application/pdf~pdf,text/pdf~pdf\"]},{\"key\":\"webgl_vendor\",\"value\":\"Google Inc. (Apple)~ANGLE (Apple, ANGLE Metal Renderer: Apple M1 Pro, Unspecified Version)\"},{\"key\":\"adblock\",\"value\":false},{\"key\":\"has_lied_languages\",\"value\":false},{\"key\":\"has_lied_resolution\",\"value\":false},{\"key\":\"has_lied_os\",\"value\":false},{\"key\":\"has_lied_browser\",\"value\":false},{\"key\":\"touch_support\",\"value\":[0,false,false]},{\"key\":\"js_fonts\",\"value\":[\"Arial\",\"Arial Black\",\"Arial Hebrew\",\"Arial Narrow\",\"Arial Rounded MT Bold\",\"Arial Unicode MS\",\"Comic Sans MS\",\"Courier\",\"Courier New\",\"Geneva\",\"Georgia\",\"Helvetica\",\"Helvetica Neue\",\"Impact\",\"Microsoft Sans Serif\",\"Monaco\",\"Palatino\",\"Tahoma\",\"Times\",\"Times New Roman\",\"Trebuchet MS\",\"Verdana\",\"Wingdings\",\"Wingdings 2\",\"Wingdings 3\"]}]"
85 |
86 | private static let authenticationRequest: URLRequest = {
| `- error: cannot find type 'URLRequest' in scope
87 | var request = URLRequest(url: authenticationURL)
88 | request.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:87:23: error: cannot find 'URLRequest' in scope
85 |
86 | private static let authenticationRequest: URLRequest = {
87 | var request = URLRequest(url: authenticationURL)
| `- error: cannot find 'URLRequest' in scope
88 | request.httpMethod = "POST"
89 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:97:52: error: cannot find type 'URLRequest' in scope
95 | }()
96 |
97 | private static let twoFactorPreferenceRequest: URLRequest = {
| `- error: cannot find type 'URLRequest' in scope
98 | var request = URLRequest(url: twoFactorPreferenceURL)
99 | request.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:98:23: error: cannot find 'URLRequest' in scope
96 |
97 | private static let twoFactorPreferenceRequest: URLRequest = {
98 | var request = URLRequest(url: twoFactorPreferenceURL)
| `- error: cannot find 'URLRequest' in scope
99 | request.httpMethod = "POST"
100 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:106:54: error: cannot find type 'URLRequest' in scope
104 | }()
105 |
106 | private static let validateTwoFactorCodeRequest: URLRequest = {
| `- error: cannot find type 'URLRequest' in scope
107 | var request = URLRequest(url: validateTwoFactorCodeURL)
108 | request.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:107:23: error: cannot find 'URLRequest' in scope
105 |
106 | private static let validateTwoFactorCodeRequest: URLRequest = {
107 | var request = URLRequest(url: validateTwoFactorCodeURL)
| `- error: cannot find 'URLRequest' in scope
108 | request.httpMethod = "POST"
109 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:163:67: error: cannot find type 'URLRequest' in scope
161 | }
162 |
163 | private static func generateTwoFactorCodeRequest(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
164 | var request = URLRequest(url: url)
165 | request.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:134:23: error: cannot find 'URLRequest' in scope
132 |
133 | private static func sendStartRequest(completion: @escaping (DownloadError?) -> Void) {
134 | var request = URLRequest(url: startURL)
| `- error: cannot find 'URLRequest' in scope
135 | request.httpMethod = "GET"
136 |
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:137:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
135 | request.httpMethod = "GET"
136 |
137 | let task = URLSession.shared.dataTask(with: request) { data, response, error in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
138 | guard data != nil else {
139 | if let error {
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:164:23: error: cannot find 'URLRequest' in scope
162 |
163 | private static func generateTwoFactorCodeRequest(url: URL) -> URLRequest {
164 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
165 | request.httpMethod = "POST"
166 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:209:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
207 | }
208 |
209 | let task = URLSession.shared.uploadTask(with: Self.authenticationRequest, from: jsonData) { data, response, error in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
210 | let processedResponse = URLTaskHelper.processResponse(data: data, response: response, error: error)
211 | guard case let .success((data, httpResponse)) = processedResponse else {
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:210:89: error: argument type '_' expected to be an instance of a class or class-constrained type
208 |
209 | let task = URLSession.shared.uploadTask(with: Self.authenticationRequest, from: jsonData) { data, response, error in
210 | let processedResponse = URLTaskHelper.processResponse(data: data, response: response, error: error)
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
211 | guard case let .success((data, httpResponse)) = processedResponse else {
212 | if case let .failure(error) = processedResponse {
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:242:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
240 | return
241 | }
242 | let task = URLSession.shared.uploadTask(with: Self.twoFactorPreferenceRequest, from: jsonData) { data, response, error in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
243 | let processedResponse = URLTaskHelper.processResponse(data: data, response: response, error: error)
244 | guard case let .success((data, httpResponse)) = processedResponse else {
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:243:89: error: argument type '_' expected to be an instance of a class or class-constrained type
241 | }
242 | let task = URLSession.shared.uploadTask(with: Self.twoFactorPreferenceRequest, from: jsonData) { data, response, error in
243 | let processedResponse = URLTaskHelper.processResponse(data: data, response: response, error: error)
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
244 | guard case let .success((data, httpResponse)) = processedResponse else {
245 | if case let .failure(error) = processedResponse {
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:277:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
275 | }
276 | let request = Self.generateTwoFactorCodeRequest(url: Self.generateTwoFactorCodeURL(accountID: preferences.accountId, customerID: preferences.customerId))
277 | let task = URLSession.shared.uploadTask(with: request, from: jsonData) { data, response, error in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
278 | let processedResponse = URLTaskHelper.processResponse(data: data, response: response, error: error)
279 | guard case let .success((data, httpResponse)) = processedResponse else {
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:278:89: error: argument type '_' expected to be an instance of a class or class-constrained type
276 | let request = Self.generateTwoFactorCodeRequest(url: Self.generateTwoFactorCodeURL(accountID: preferences.accountId, customerID: preferences.customerId))
277 | let task = URLSession.shared.uploadTask(with: request, from: jsonData) { data, response, error in
278 | let processedResponse = URLTaskHelper.processResponse(data: data, response: response, error: error)
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
279 | guard case let .success((data, httpResponse)) = processedResponse else {
280 | if case let .failure(error) = processedResponse {
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:311:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
309 | return
310 | }
311 | let task = URLSession.shared.uploadTask(with: Self.validateTwoFactorCodeRequest, from: jsonData) { data, response, error in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
312 | let processedResponse = URLTaskHelper.processResponse(data: data, response: response, error: error)
313 | guard case let .success((data, httpResponse)) = processedResponse else {
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAuthenticator.swift:312:89: error: argument type '_' expected to be an instance of a class or class-constrained type
310 | }
311 | let task = URLSession.shared.uploadTask(with: Self.validateTwoFactorCodeRequest, from: jsonData) { data, response, error in
312 | let processedResponse = URLTaskHelper.processResponse(data: data, response: response, error: error)
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
313 | guard case let .success((data, httpResponse)) = processedResponse else {
314 | if case let .failure(error) = processedResponse {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[30/60] Emitting module Wealthsimple
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/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/.build/checkouts/WealthsimpleDownloader/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/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:185:41: error: cannot find type 'URLRequest' in scope
183 | }
184 |
185 | func authenticateRequest(_ request: URLRequest, completion: @escaping (URLRequest) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
186 | var requestCopy = request
187 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:185:76: error: cannot find type 'URLRequest' in scope
183 | }
184 |
185 | func authenticateRequest(_ request: URLRequest, completion: @escaping (URLRequest) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
186 | var requestCopy = request
187 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/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/.build/checkouts/WealthsimpleDownloader/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: @escaping (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/.build/checkouts/WealthsimpleDownloader/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: @escaping (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/.build/checkouts/WealthsimpleDownloader/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/.build/checkouts/WealthsimpleDownloader/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/.build/checkouts/WealthsimpleDownloader/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/.build/checkouts/WealthsimpleDownloader/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/.build/checkouts/WealthsimpleDownloader/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
[31/60] Compiling RogersBankDownloader RogersAccount.swift
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAccount.swift:183:23: error: cannot find 'URLRequest' in scope
181 |
182 | public func downloadStatement(statement: Statement, completion: @escaping (Result<URL, DownloadError>) -> Void) {
183 | var request = URLRequest(url: statementDownloadURL(statement: statement))
| `- error: cannot find 'URLRequest' in scope
184 | request.httpMethod = "GET"
185 |
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAccount.swift:186:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
184 | request.httpMethod = "GET"
185 |
186 | let task = URLSession.shared.downloadTask(with: request) { url, response, error in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
187 | guard let url else {
188 | if let error {
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAccount.swift:209:23: error: cannot find 'URLRequest' in scope
207 |
208 | public func searchStatements(completion: @escaping (Result<[Statement], DownloadError>) -> Void) {
209 | var request = URLRequest(url: statementSearchURL)
| `- error: cannot find 'URLRequest' in scope
210 | request.httpMethod = "GET"
211 |
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAccount.swift:212:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
210 | request.httpMethod = "GET"
211 |
212 | let task = URLSession.shared.dataTask(with: request) { data, response, error in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
213 | guard let data else {
214 | if let error {
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAccount.swift:253:23: error: cannot find 'URLRequest' in scope
251 | urlComponents.queryItems = [URLQueryItem(name: "cycleStartDate", value: Self.dateFormatter.string(from: cycleDates[statementNumber - 1]))]
252 | }
253 | var request = URLRequest(url: urlComponents.url!)
| `- error: cannot find 'URLRequest' in scope
254 | request.httpMethod = "GET"
255 |
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAccount.swift:256:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
254 | request.httpMethod = "GET"
255 |
256 | let task = URLSession.shared.dataTask(with: request) { data, response, error in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
257 | let processedResponse = URLTaskHelper.processResponse(data: data, response: response, error: error)
258 | guard case let .success((data, httpResponse)) = processedResponse else {
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/RogersAccount.swift:257:89: error: argument type '_' expected to be an instance of a class or class-constrained type
255 |
256 | let task = URLSession.shared.dataTask(with: request) { data, response, error in
257 | let processedResponse = URLTaskHelper.processResponse(data: data, response: response, error: error)
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
258 | guard case let .success((data, httpResponse)) = processedResponse else {
259 | if case let .failure(error) = processedResponse {
[32/60] Compiling SwiftBeanCountModel Inventory.swift
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/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/.build/checkouts/WealthsimpleDownloader/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/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:185:41: error: cannot find type 'URLRequest' in scope
183 | }
184 |
185 | func authenticateRequest(_ request: URLRequest, completion: @escaping (URLRequest) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
186 | var requestCopy = request
187 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:185:76: error: cannot find type 'URLRequest' in scope
183 | }
184 |
185 | func authenticateRequest(_ request: URLRequest, completion: @escaping (URLRequest) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
186 | var requestCopy = request
187 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:69:23: error: cannot find 'URLRequest' in scope
67 |
68 | static func getToken(username: String, password: String, otp: String, credentialStorage: CredentialStorage, completion: @escaping (Result<Self, TokenError>) -> Void) {
69 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
70 | request.setValue(otp, forHTTPHeaderField: "x-wealthsimple-otp")
71 | let json = [
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:113:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
111 | ) {
112 | var request = urlRequest
113 | let session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
114 | request.httpMethod = "POST"
115 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:141:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | return
140 | }
141 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | completion(.failure(TokenError.httpError(error: "No HTTPURLResponse")))
143 | return
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/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:145:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
143 | return
144 | }
145 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
146 | completion(.failure(TokenError.httpError(error: "Status code \(httpResponse.statusCode)")))
147 | return
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:146:89: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
144 | }
145 | guard httpResponse.statusCode == 200 else {
146 | completion(.failure(TokenError.httpError(error: "Status code \(httpResponse.statusCode)")))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
147 | return
148 | }
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:166:23: error: cannot find 'URLRequest' in scope
164 |
165 | private func testIfValid(completion: @escaping (Bool) -> Void) {
166 | var request = URLRequest(url: Self.testUrl)
| `- error: cannot find 'URLRequest' in scope
167 | let session = URLSession.shared
168 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:167:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
165 | private func testIfValid(completion: @escaping (Bool) -> Void) {
166 | var request = URLRequest(url: Self.testUrl)
167 | let session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
168 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
169 | authenticateRequest(request) { request in
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:179:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
177 | return
178 | }
179 | completion(httpResponse.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
180 | }
181 | task.resume()
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:204:23: error: cannot find 'URLRequest' in scope
202 |
203 | private func refresh(completion: @escaping (Result<Self, TokenError>) -> Void) {
204 | let request = URLRequest(url: Self.url)
| `- error: cannot find 'URLRequest' in scope
205 | let json = [
206 | "grant_type": "refresh_token",
[33/60] Compiling SwiftBeanCountModel Ledger.swift
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/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/.build/checkouts/WealthsimpleDownloader/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/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:185:41: error: cannot find type 'URLRequest' in scope
183 | }
184 |
185 | func authenticateRequest(_ request: URLRequest, completion: @escaping (URLRequest) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
186 | var requestCopy = request
187 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:185:76: error: cannot find type 'URLRequest' in scope
183 | }
184 |
185 | func authenticateRequest(_ request: URLRequest, completion: @escaping (URLRequest) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
186 | var requestCopy = request
187 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:69:23: error: cannot find 'URLRequest' in scope
67 |
68 | static func getToken(username: String, password: String, otp: String, credentialStorage: CredentialStorage, completion: @escaping (Result<Self, TokenError>) -> Void) {
69 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
70 | request.setValue(otp, forHTTPHeaderField: "x-wealthsimple-otp")
71 | let json = [
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:113:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
111 | ) {
112 | var request = urlRequest
113 | let session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
114 | request.httpMethod = "POST"
115 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:141:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | return
140 | }
141 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | completion(.failure(TokenError.httpError(error: "No HTTPURLResponse")))
143 | return
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/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:145:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
143 | return
144 | }
145 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
146 | completion(.failure(TokenError.httpError(error: "Status code \(httpResponse.statusCode)")))
147 | return
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:146:89: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
144 | }
145 | guard httpResponse.statusCode == 200 else {
146 | completion(.failure(TokenError.httpError(error: "Status code \(httpResponse.statusCode)")))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
147 | return
148 | }
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:166:23: error: cannot find 'URLRequest' in scope
164 |
165 | private func testIfValid(completion: @escaping (Bool) -> Void) {
166 | var request = URLRequest(url: Self.testUrl)
| `- error: cannot find 'URLRequest' in scope
167 | let session = URLSession.shared
168 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:167:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
165 | private func testIfValid(completion: @escaping (Bool) -> Void) {
166 | var request = URLRequest(url: Self.testUrl)
167 | let session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
168 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
169 | authenticateRequest(request) { request in
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:179:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
177 | return
178 | }
179 | completion(httpResponse.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
180 | }
181 | task.resume()
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:204:23: error: cannot find 'URLRequest' in scope
202 |
203 | private func refresh(completion: @escaping (Result<Self, TokenError>) -> Void) {
204 | let request = URLRequest(url: Self.url)
| `- error: cannot find 'URLRequest' in scope
205 | let json = [
206 | "grant_type": "refresh_token",
[34/60] Compiling Wealthsimple Transaction.swift
[35/60] Compiling SwiftBeanCountModel Price.swift
[36/60] Compiling SwiftBeanCountModel Tag.swift
[37/60] Compiling SwiftBeanCountModel MultiCurrencyAmount.swift
[38/60] Compiling SwiftBeanCountModel Option.swift
[39/60] Compiling RogersBankDownloader RogersUser.swift
[40/60] Compiling RogersBankDownloader URLTaskHelper.swift
/host/spi-builder-workspace/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/URLTaskHelper.swift:7:56: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | enum URLTaskHelper {
7 | static func processResponse(data: Data?, response: URLResponse?, error: Error?) -> Result<(Data, HTTPURLResponse), DownloadError> {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | guard let data else {
9 | 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/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/URLTaskHelper.swift:7:102: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | enum URLTaskHelper {
7 | static func processResponse(data: Data?, response: URLResponse?, error: Error?) -> Result<(Data, HTTPURLResponse), DownloadError> {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | guard let data else {
9 | if let error {
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/.build/checkouts/RogersBankDownloader/Sources/RogersBankDownloader/URLTaskHelper.swift:14:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | return(.failure(DownloadError.noDataReceived))
13 | }
14 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | return(.failure(DownloadError.httpError(error: "No HTTPURLResponse")))
16 | }
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
[41/60] Compiling SwiftBeanCountModel Account.swift
[42/60] Compiling SwiftBeanCountModel AccountName.swift
[43/60] Compiling SwiftBeanCountModel Amount.swift
[44/60] Compiling SwiftBeanCountModel Custom.swift
[45/60] Compiling SwiftBeanCountModel Event.swift
[46/60] Compiling SwiftBeanCountModel Flag.swift
[47/60] Compiling SwiftBeanCountModel Balance.swift
[48/60] Compiling SwiftBeanCountModel Commodity.swift
[49/60] Compiling SwiftBeanCountModel Cost.swift
[52/61] Emitting module CSV
[53/61] Compiling CSV BinaryReader.swift
[54/61] Compiling Wealthsimple WealthsimpleAsset.swift
[55/61] Compiling Wealthsimple WealthsimpleAccount.swift
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/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: @escaping (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/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleAccount.swift:98:23: error: cannot find 'URLRequest' in scope
96 |
97 | static func getAccounts(token: Token, completion: @escaping (Result<[Account], AccountError>) -> Void) {
98 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
99 | let session = URLSession.shared
100 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleAccount.swift:99:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
97 | static func getAccounts(token: Token, completion: @escaping (Result<[Account], AccountError>) -> Void) {
98 | var request = URLRequest(url: url)
99 | let session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
100 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
101 | token.authenticateRequest(request) { request in
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:185:41: error: cannot find type 'URLRequest' in scope
183 | }
184 |
185 | func authenticateRequest(_ request: URLRequest, completion: @escaping (URLRequest) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
186 | var requestCopy = request
187 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:185:76: error: cannot find type 'URLRequest' in scope
183 | }
184 |
185 | func authenticateRequest(_ request: URLRequest, completion: @escaping (URLRequest) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
186 | var requestCopy = request
187 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleAccount.swift:118:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | return
117 | }
118 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 | completion(.failure(AccountError.httpError(error: "No HTTPURLResponse")))
120 | return
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/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleAccount.swift:122:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
120 | return
121 | }
122 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
123 | completion(.failure(AccountError.httpError(error: "Status code \(httpResponse.statusCode)")))
124 | return
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleAccount.swift:123:91: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
121 | }
122 | guard httpResponse.statusCode == 200 else {
123 | completion(.failure(AccountError.httpError(error: "Status code \(httpResponse.statusCode)")))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
124 | return
125 | }
[57/61] Compiling CSV CSVRowDecoder.swift
[58/61] Compiling CSV CSVReader.swift
[60/65] Compiling Wealthsimple WealthsimpleTransaction.swift
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/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/.build/checkouts/WealthsimpleDownloader/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/.build/checkouts/WealthsimpleDownloader/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/.build/checkouts/WealthsimpleDownloader/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
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:185:41: error: cannot find type 'URLRequest' in scope
183 | }
184 |
185 | func authenticateRequest(_ request: URLRequest, completion: @escaping (URLRequest) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
186 | var requestCopy = request
187 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:185:76: error: cannot find type 'URLRequest' in scope
183 | }
184 |
185 | func authenticateRequest(_ request: URLRequest, completion: @escaping (URLRequest) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
186 | var requestCopy = request
187 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleTransaction.swift:158:39: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
156 | getTransactionsRESTRequest(accountID: account.id, startDate: startDate, endDate: endDate)
157 | token.authenticateRequest(request) { request in
158 | let task = URLSession.shared.dataTask(with: request) { data, response, error in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
159 | handleResponse(data: data, response: response, error: error) {
160 | switch $0 {
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/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/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleTransaction.swift:216:21: error: cannot find 'DispatchGroup' in scope
214 | var resultError: Error?, resultData: Data?
215 |
216 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
217 | group.enter()
218 | token.authenticateRequest(request) { request in
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleTransaction.swift:219:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
217 | group.enter()
218 | token.authenticateRequest(request) { request in
219 | let task = URLSession.shared.dataTask(with: request) { data, response, error in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | handleResponse(data: data, response: response, error: error) { result in
221 | switch result {
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleTransaction.swift:265:21: error: cannot find 'DispatchGroup' in scope
263 | private static func loadNextPage(cursor: String, token: Token, account: Account, startDate: Date) throws -> [Transaction] {
264 | var nextResult: Result<[Transaction], TransactionError>!
265 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
266 | group.enter()
267 | DispatchQueue.global(qos: .userInitiated).async {
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleTransaction.swift:267:9: error: cannot find 'DispatchQueue' in scope
265 | let group = DispatchGroup()
266 | group.enter()
267 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
268 | getTransactions(token: token, account: account, startDate: startDate, cursor: cursor) {
269 | nextResult = $0
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleTransaction.swift:267:36: error: cannot infer contextual base in reference to member 'userInitiated'
265 | let group = DispatchGroup()
266 | group.enter()
267 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
268 | getTransactions(token: token, account: account, startDate: startDate, cursor: cursor) {
269 | nextResult = $0
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleTransaction.swift:332:23: error: cannot find 'URLRequest' in scope
330 | URLQueryItem(name: "effective_date_end", value: dateFormatterREST.string(from: endDate))
331 | ]
332 | var request = URLRequest(url: url.url!)
| `- error: cannot find 'URLRequest' in scope
333 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
334 | return request
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleTransaction.swift:338:9: error: cannot find 'DispatchQueue' in scope
336 |
337 | private static func handleResponse(data: Data?, response: URLResponse?, error: Error?, completion: @escaping (Result<Data, TransactionError>) -> Void) {
338 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
339 | guard let data else {
340 | if let error {
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleTransaction.swift:338:36: error: cannot infer contextual base in reference to member 'userInitiated'
336 |
337 | private static func handleResponse(data: Data?, response: URLResponse?, error: Error?, completion: @escaping (Result<Data, TransactionError>) -> Void) {
338 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
339 | guard let data else {
340 | if let error {
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleTransaction.swift:351:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
349 | return
350 | }
351 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
352 | completion(.failure(TransactionError.httpError(error: "Status code \(httpResponse.statusCode)")))
353 | return
[61/65] Compiling SwiftBeanCountCompassCardMapper SwiftBeanCountCompassCardMapperError.swift
[62/65] Compiling RogersBankDownloader DownloadError.swift
BUILD FAILURE 6.3 wasm