Build Information
Failed to build SwiftBeanCountImporter, reference v0.10.0 (92b0e7
), with Swift 6.1 for Wasm on 30 May 2025 05:27:43 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Nef10/SwiftBeanCountImporter.git
Reference: v0.10.0
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.10.0 -> FETCH_HEAD
HEAD is now at 92b0e77 Bump SwiftBeanCountWealthsimpleMapper from 1.6.2 to 1.7.0 (#315)
Cloned https://github.com/Nef10/SwiftBeanCountImporter.git
Revision (git rev-parse @):
92b0e7732ea50abbe6ae3427de14bc2260822e63
SUCCESS checkout https://github.com/Nef10/SwiftBeanCountImporter.git at v0.10.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/Nef10/SwiftBeanCountImporter.git
https://github.com/Nef10/SwiftBeanCountImporter.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swiftbeancountmodel",
"requirement" : {
"exact" : [
"0.1.6"
]
},
"type" : "sourceControl",
"url" : "https://github.com/Nef10/SwiftBeanCountModel.git"
},
{
"identity" : "csv.swift",
"requirement" : {
"range" : [
{
"lower_bound" : "2.4.3",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/yaslab/CSV.swift.git"
},
{
"identity" : "swiftbeancountparserutils",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Nef10/SwiftBeanCountParserUtils.git"
},
{
"identity" : "swiftbeancountwealthsimplemapper",
"requirement" : {
"range" : [
{
"lower_bound" : "1.7.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Nef10/SwiftBeanCountWealthsimpleMapper.git"
},
{
"identity" : "wealthsimpledownloader",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.2",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Nef10/WealthsimpleDownloader.git"
},
{
"identity" : "swiftbeancountsheetsync",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Nef10/SwiftBeanCountSheetSync.git"
},
{
"identity" : "swiftbeancountrogersbankmapper",
"requirement" : {
"exact" : [
"0.0.13"
]
},
"type" : "sourceControl",
"url" : "https://github.com/Nef10/SwiftBeanCountRogersBankMapper.git"
},
{
"identity" : "rogersbankdownloader",
"requirement" : {
"exact" : [
"0.2.1"
]
},
"type" : "sourceControl",
"url" : "https://github.com/Nef10/RogersBankDownloader.git"
},
{
"identity" : "tangerinedownloader",
"requirement" : {
"exact" : [
"0.0.3"
]
},
"type" : "sourceControl",
"url" : "https://github.com/Nef10/TangerineDownloader.git"
},
{
"identity" : "swiftbeancounttangerinemapper",
"requirement" : {
"exact" : [
"0.0.3"
]
},
"type" : "sourceControl",
"url" : "https://github.com/Nef10/SwiftBeanCountTangerineMapper.git"
},
{
"identity" : "compasscarddownloader",
"requirement" : {
"exact" : [
"0.0.1"
]
},
"type" : "sourceControl",
"url" : "https://github.com/Nef10/CompassCardDownloader.git"
},
{
"identity" : "swiftbeancountcompasscardmapper",
"requirement" : {
"exact" : [
"0.1.1"
]
},
"type" : "sourceControl",
"url" : "https://github.com/Nef10/SwiftBeanCountCompassCardMapper.git"
}
],
"manifest_display_name" : "SwiftBeanCountImporter",
"name" : "SwiftBeanCountImporter",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "macos",
"version" : "11.0"
}
],
"products" : [
{
"name" : "SwiftBeanCountImporter",
"targets" : [
"SwiftBeanCountImporter"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftBeanCountImporterTests",
"module_type" : "SwiftTarget",
"name" : "SwiftBeanCountImporterTests",
"path" : "Tests/SwiftBeanCountImporterTests",
"sources" : [
"BaseImporterTests.swift",
"CSVBaseImporterTests.swift",
"CSVImporterTests.swift",
"DownloadImporterTests.swift",
"FileImporterTests.swift",
"ImporterTests.swift",
"Importers/CompassCardDownloadImporterTests.swift",
"Importers/CompassCardImporterTests.swift",
"Importers/EquatePlusImporterTests.swift",
"Importers/LunchOnUsImporterTests.swift",
"Importers/ManuLifeImporterTests.swift",
"Importers/N26ImporterTests.swift",
"Importers/RBCImporterTests.swift",
"Importers/RogersDownloadImporterTests.swift",
"Importers/RogersImporterTests.swift",
"Importers/SimpliiImporterTests.swift",
"Importers/TangerineAccountImporterTests.swift",
"Importers/TangerineCardImporterTests.swift",
"Importers/TangerineDownloadImporterTests.swift",
"Importers/WealthsimpleDownloadImporterTests.swift",
"SettingsTests.swift",
"TestDelegates.swift",
"TestUtils.swift",
"TextImporterTests.swift"
],
"target_dependencies" : [
"SwiftBeanCountImporter"
],
"type" : "test"
},
{
"c99name" : "SwiftBeanCountImporter",
"module_type" : "SwiftTarget",
"name" : "SwiftBeanCountImporter",
"path" : "Sources/SwiftBeanCountImporter",
"product_dependencies" : [
"CSV",
"RogersBankDownloader",
"SwiftBeanCountModel",
"SwiftBeanCountParserUtils",
"SwiftBeanCountRogersBankMapper",
"SwiftBeanCountWealthsimpleMapper",
"SwiftBeanCountCompassCardMapper",
"CompassCardDownloader",
"TangerineDownloader",
"SwiftBeanCountTangerineMapper",
"SwiftBeanCountSheetSync",
"Wealthsimple"
],
"product_memberships" : [
"SwiftBeanCountImporter"
],
"sources" : [
"BaseImporter.swift",
"CSVBaseImporter.swift",
"CSVImporter.swift",
"DownloadImporter.swift",
"FileImporter.swift",
"Importer.swift",
"Importers/CompassCardDownloadImporter.swift",
"Importers/CompassCardImporter.swift",
"Importers/EquatePlusImporter.swift",
"Importers/GoogleSheetDownloadImporter.swift",
"Importers/LunchOnUsImporter.swift",
"Importers/ManuLifeImporter.swift",
"Importers/N26Importer.swift",
"Importers/RBCImporter.swift",
"Importers/RogersDownloadImporter.swift",
"Importers/RogersImporter.swift",
"Importers/SimpliiImporter.swift",
"Importers/TangerineAccountImporter.swift",
"Importers/TangerineCardImporter.swift",
"Importers/TangerineDownloadImporter.swift",
"Importers/WealthsimpleDownloadImporter.swift",
"Settings.swift",
"TextImporter.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/Nef10/RogersBankDownloader.git
Fetching https://github.com/Nef10/CompassCardDownloader.git
Fetching https://github.com/Nef10/SwiftBeanCountCompassCardMapper.git
Fetching https://github.com/Nef10/SwiftBeanCountTangerineMapper.git
Fetching https://github.com/Nef10/SwiftBeanCountRogersBankMapper.git
[1/1515] Fetching rogersbankdownloader
[1001/1892] Fetching rogersbankdownloader, compasscarddownloader
[1040/2404] Fetching rogersbankdownloader, compasscarddownloader, swiftbeancountcompasscardmapper
[2345/3686] Fetching rogersbankdownloader, compasscarddownloader, swiftbeancountcompasscardmapper, swiftbeancountrogersbankmapper
[3133/4366] Fetching rogersbankdownloader, compasscarddownloader, swiftbeancountcompasscardmapper, swiftbeancountrogersbankmapper, swiftbeancounttangerinemapper
Fetched https://github.com/Nef10/SwiftBeanCountCompassCardMapper.git from cache (0.32s)
Fetching https://github.com/Nef10/SwiftBeanCountSheetSync.git
Fetching https://github.com/Nef10/TangerineDownloader.git
Fetched https://github.com/Nef10/RogersBankDownloader.git from cache (0.35s)
Fetching https://github.com/Nef10/WealthsimpleDownloader.git
Fetched https://github.com/Nef10/SwiftBeanCountTangerineMapper.git from cache (0.37s)
Fetched https://github.com/Nef10/CompassCardDownloader.git from cache (0.37s)
Fetched https://github.com/Nef10/SwiftBeanCountRogersBankMapper.git from cache (0.37s)
Fetching https://github.com/yaslab/CSV.swift.git
Fetching https://github.com/Nef10/SwiftBeanCountWealthsimpleMapper.git
Fetching https://github.com/Nef10/SwiftBeanCountParserUtils.git
[1/672] Fetching tangerinedownloader
[89/2618] Fetching tangerinedownloader, wealthsimpledownloader
[1627/3744] Fetching tangerinedownloader, wealthsimpledownloader, swiftbeancountsheetsync
[1836/5577] Fetching tangerinedownloader, wealthsimpledownloader, swiftbeancountsheetsync, csv.swift
[1891/6461] Fetching tangerinedownloader, wealthsimpledownloader, swiftbeancountsheetsync, csv.swift, swiftbeancountparserutils
[5122/8441] Fetching tangerinedownloader, wealthsimpledownloader, swiftbeancountsheetsync, csv.swift, swiftbeancountparserutils, swiftbeancountwealthsimplemapper
Fetched https://github.com/Nef10/TangerineDownloader.git from cache (0.34s)
[6633/7769] Fetching wealthsimpledownloader, swiftbeancountsheetsync, csv.swift, swiftbeancountparserutils, swiftbeancountwealthsimplemapper
Fetching https://github.com/Nef10/SwiftBeanCountModel.git
Fetched https://github.com/Nef10/SwiftBeanCountSheetSync.git from cache (0.39s)
[6585/6643] Fetching wealthsimpledownloader, csv.swift, swiftbeancountparserutils, swiftbeancountwealthsimplemapper
Fetched https://github.com/yaslab/CSV.swift.git from cache (0.35s)
Fetched https://github.com/Nef10/SwiftBeanCountParserUtils.git from cache (0.39s)
Fetched https://github.com/Nef10/SwiftBeanCountWealthsimpleMapper.git from cache (0.39s)
Fetched https://github.com/Nef10/WealthsimpleDownloader.git from cache (0.45s)
[1/3348] Fetching swiftbeancountmodel
Fetched https://github.com/Nef10/SwiftBeanCountModel.git from cache (1.25s)
Computing version for https://github.com/Nef10/SwiftBeanCountCompassCardMapper.git
Computed https://github.com/Nef10/SwiftBeanCountCompassCardMapper.git at 0.1.1 (2.67s)
Computing version for https://github.com/Nef10/CompassCardDownloader.git
Computed https://github.com/Nef10/CompassCardDownloader.git at 0.0.1 (1.40s)
Fetching https://github.com/Nef10/SwiftScraper.git
[1/1413] Fetching swiftscraper
Fetched https://github.com/Nef10/SwiftScraper.git from cache (0.25s)
Computing version for https://github.com/Nef10/SwiftBeanCountTangerineMapper.git
Computed https://github.com/Nef10/SwiftBeanCountTangerineMapper.git at 0.0.3 (0.84s)
Computing version for https://github.com/Nef10/TangerineDownloader.git
Computed https://github.com/Nef10/TangerineDownloader.git at 0.0.3 (0.57s)
Computing version for https://github.com/Nef10/RogersBankDownloader.git
Computed https://github.com/Nef10/RogersBankDownloader.git at 0.2.1 (0.65s)
Computing version for https://github.com/Nef10/SwiftBeanCountRogersBankMapper.git
Computed https://github.com/Nef10/SwiftBeanCountRogersBankMapper.git at 0.0.13 (1.58s)
Computing version for https://github.com/Nef10/SwiftBeanCountSheetSync.git
Computed https://github.com/Nef10/SwiftBeanCountSheetSync.git at 1.1.0 (0.68s)
Fetching https://github.com/Nef10/GoogleAuthentication.git
Fetching https://github.com/Nef10/SwiftBeanCountParser.git
[1/1036] Fetching googleauthentication
[799/3216] Fetching googleauthentication, swiftbeancountparser
Fetched https://github.com/Nef10/GoogleAuthentication.git from cache (0.40s)
Fetched https://github.com/Nef10/SwiftBeanCountParser.git from cache (0.40s)
Computing version for https://github.com/Nef10/SwiftBeanCountWealthsimpleMapper.git
Computed https://github.com/Nef10/SwiftBeanCountWealthsimpleMapper.git at 1.7.0 (1.09s)
Computing version for https://github.com/Nef10/SwiftBeanCountParserUtils.git
Computed https://github.com/Nef10/SwiftBeanCountParserUtils.git at 1.0.0 (0.85s)
Computing version for https://github.com/Nef10/SwiftBeanCountModel.git
Computed https://github.com/Nef10/SwiftBeanCountModel.git at 0.1.6 (0.75s)
Computing version for https://github.com/Nef10/SwiftScraper.git
Computed https://github.com/Nef10/SwiftScraper.git at 0.6.0 (0.57s)
Computing version for https://github.com/Nef10/GoogleAuthentication.git
Computed https://github.com/Nef10/GoogleAuthentication.git at 1.0.3 (0.74s)
Fetching https://github.com/OAuthSwift/OAuthSwift.git
Fetching https://github.com/kishikawakatsumi/KeychainAccess.git
[1/5134] Fetching oauthswift
[412/9520] Fetching oauthswift, keychainaccess
Fetched https://github.com/kishikawakatsumi/KeychainAccess.git from cache (0.73s)
Fetched https://github.com/OAuthSwift/OAuthSwift.git from cache (0.73s)
Computing version for https://github.com/Nef10/SwiftBeanCountParser.git
Computed https://github.com/Nef10/SwiftBeanCountParser.git at 0.1.8 (1.60s)
Computing version for https://github.com/OAuthSwift/OAuthSwift.git
Computed https://github.com/OAuthSwift/OAuthSwift.git at 2.2.0 (0.96s)
Fetching https://github.com/httpswift/swifter.git
Fetching https://github.com/phimage/Erik.git
Fetching https://github.com/tid-kijyun/Kanna.git
Fetching https://github.com/apple/swift-crypto.git
[1/642] Fetching erik
[624/6692] Fetching erik, swifter
[1006/9049] Fetching erik, swifter, kanna
[4409/22985] Fetching erik, swifter, kanna, swift-crypto
Fetched https://github.com/httpswift/swifter.git from cache (1.13s)
[8016/16935] Fetching erik, kanna, swift-crypto
Fetched https://github.com/phimage/Erik.git from cache (1.88s)
Fetched https://github.com/tid-kijyun/Kanna.git from cache (1.88s)
Fetched https://github.com/apple/swift-crypto.git from cache (1.91s)
Computing version for https://github.com/httpswift/swifter.git
Computed https://github.com/httpswift/swifter.git at 1.5.0 (2.52s)
Computing version for https://github.com/Nef10/WealthsimpleDownloader.git
Computed https://github.com/Nef10/WealthsimpleDownloader.git at 2.0.3 (2.45s)
Computing version for https://github.com/kishikawakatsumi/KeychainAccess.git
Computed https://github.com/kishikawakatsumi/KeychainAccess.git at 4.2.2 (0.60s)
Computing version for https://github.com/phimage/Erik.git
Computed https://github.com/phimage/Erik.git at 5.1.0 (0.51s)
Fetching https://github.com/Thomvis/BrightFutures.git
Fetching https://github.com/nvzqz/FileKit.git
[1/3123] Fetching filekit
[470/7190] Fetching filekit, brightfutures
Fetched https://github.com/nvzqz/FileKit.git from cache (0.63s)
[3742/4067] Fetching brightfutures
Fetched https://github.com/Thomvis/BrightFutures.git from cache (0.88s)
Computing version for https://github.com/nvzqz/FileKit.git
Computed https://github.com/nvzqz/FileKit.git at 6.1.0 (1.61s)
Computing version for https://github.com/yaslab/CSV.swift.git
Computed https://github.com/yaslab/CSV.swift.git at 2.5.2 (0.63s)
Computing version for https://github.com/Thomvis/BrightFutures.git
Computed https://github.com/Thomvis/BrightFutures.git at 8.2.0 (0.83s)
Computing version for https://github.com/tid-kijyun/Kanna.git
Computed https://github.com/tid-kijyun/Kanna.git at 5.3.0 (0.71s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 1.1.7 (0.56s)
Creating working copy for https://github.com/Nef10/SwiftBeanCountModel.git
Working copy of https://github.com/Nef10/SwiftBeanCountModel.git resolved at 0.1.6
Creating working copy for https://github.com/Nef10/RogersBankDownloader.git
Working copy of https://github.com/Nef10/RogersBankDownloader.git resolved at 0.2.1
Creating working copy for https://github.com/Nef10/TangerineDownloader.git
Working copy of https://github.com/Nef10/TangerineDownloader.git resolved at 0.0.3
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/SwiftBeanCountSheetSync.git
Working copy of https://github.com/Nef10/SwiftBeanCountSheetSync.git resolved at 1.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/Nef10/SwiftBeanCountWealthsimpleMapper.git
Working copy of https://github.com/Nef10/SwiftBeanCountWealthsimpleMapper.git resolved at 1.7.0
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/SwiftBeanCountParser.git
Working copy of https://github.com/Nef10/SwiftBeanCountParser.git resolved at 0.1.8
Creating working copy for https://github.com/Nef10/SwiftBeanCountTangerineMapper.git
Working copy of https://github.com/Nef10/SwiftBeanCountTangerineMapper.git resolved at 0.0.3
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/phimage/Erik.git
Working copy of https://github.com/phimage/Erik.git resolved at 5.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
Creating working copy for https://github.com/Nef10/SwiftBeanCountRogersBankMapper.git
Working copy of https://github.com/Nef10/SwiftBeanCountRogersBankMapper.git resolved at 0.0.13
Creating working copy for https://github.com/Nef10/SwiftScraper.git
Working copy of https://github.com/Nef10/SwiftScraper.git resolved at 0.6.0
Creating working copy for https://github.com/Nef10/CompassCardDownloader.git
Working copy of https://github.com/Nef10/CompassCardDownloader.git resolved at 0.0.1
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/SwiftBeanCountParserUtils.git
Working copy of https://github.com/Nef10/SwiftBeanCountParserUtils.git resolved at 1.0.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 2.0.3
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/GoogleAuthentication.git
Working copy of https://github.com/Nef10/GoogleAuthentication.git resolved at 1.0.3
Creating working copy for https://github.com/Nef10/SwiftBeanCountCompassCardMapper.git
Working copy of https://github.com/Nef10/SwiftBeanCountCompassCardMapper.git resolved at 0.1.1
Building for debugging...
[0/10] Write sources
[9/10] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/54] 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:194:41: error: cannot find type 'URLRequest' in scope
192 | }
193 |
194 | func authenticateRequest(_ request: URLRequest, completion: @escaping (Result<URLRequest, TokenError>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
195 | var requestCopy = request
196 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:194:83: error: cannot find type 'URLRequest' in scope
192 | }
193 |
194 | func authenticateRequest(_ request: URLRequest, completion: @escaping (Result<URLRequest, TokenError>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
195 | var requestCopy = request
196 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleAccount.swift:116:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 | }
115 |
116 | 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.
117 | guard let data else {
118 | 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:119:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 | }
118 |
119 | 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.
120 | guard let data else {
121 | 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/WealthsimpleTransaction.swift:215:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
213 | }
214 |
215 | private static func handleResponse(data: Data?, response: URLResponse?, error: Error?, completion: @escaping (Result<[Transaction], TransactionError>) -> Void) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 | guard let data else {
217 | 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
[12/55] Compiling CSV Legacy.swift
[13/56] Compiling CSV CSVError.swift
[14/56] Compiling CSV Endian.swift
[15/56] Compiling CSV UnicodeIterator.swift
[16/56] Compiling Wealthsimple WealthsimpleTransaction.swift
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleTransaction.swift:215:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
213 | }
214 |
215 | private static func handleResponse(data: Data?, response: URLResponse?, error: Error?, completion: @escaping (Result<[Transaction], TransactionError>) -> Void) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 | guard let data else {
217 | 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/WealthsimpleTransaction.swift:199:23: error: cannot find 'URLRequest' in scope
197 | }
198 | url.queryItems?.append(URLQueryItem(name: "effective_date_end", value: dateFormatter.string(from: Calendar.current.date(byAdding: .day, value: 7, to: Date())!)))
199 | var request = URLRequest(url: url.url!)
| `- error: cannot find 'URLRequest' in scope
200 | let session = URLSession.shared
201 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleTransaction.swift:200:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
198 | url.queryItems?.append(URLQueryItem(name: "effective_date_end", value: dateFormatter.string(from: Calendar.current.date(byAdding: .day, value: 7, to: Date())!)))
199 | var request = URLRequest(url: url.url!)
200 | let session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
201 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
202 | token.authenticateRequest(request) {
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:194:41: error: cannot find type 'URLRequest' in scope
192 | }
193 |
194 | func authenticateRequest(_ request: URLRequest, completion: @escaping (Result<URLRequest, TokenError>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
195 | var requestCopy = request
196 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:194:83: error: cannot find type 'URLRequest' in scope
192 | }
193 |
194 | func authenticateRequest(_ request: URLRequest, completion: @escaping (Result<URLRequest, TokenError>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
195 | var requestCopy = request
196 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleTransaction.swift:224:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 | return
223 | }
224 | 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.
225 | completion(.failure(TransactionError.httpError(error: "No HTTPURLResponse")))
226 | 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/WealthsimpleTransaction.swift:228:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
226 | return
227 | }
228 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
229 | completion(.failure(TransactionError.httpError(error: "Status code \(httpResponse.statusCode)")))
230 | return
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleTransaction.swift:229:95: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
227 | }
228 | guard httpResponse.statusCode == 200 else {
229 | completion(.failure(TransactionError.httpError(error: "Status code \(httpResponse.statusCode)")))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
230 | return
231 | }
[17/56] Compiling Wealthsimple WealthsimplePosition.swift
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimplePosition.swift:119:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 | }
118 |
119 | 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.
120 | guard let data else {
121 | 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:103:23: error: cannot find 'URLRequest' in scope
101 | url.queryItems?.append(URLQueryItem(name: "date", value: dateFormatter.string(from: date)))
102 | }
103 | var request = URLRequest(url: url.url!)
| `- error: cannot find 'URLRequest' in scope
104 | let session = URLSession.shared
105 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimplePosition.swift:104:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
102 | }
103 | var request = URLRequest(url: url.url!)
104 | let session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
105 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
106 | token.authenticateRequest(request) {
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:194:41: error: cannot find type 'URLRequest' in scope
192 | }
193 |
194 | func authenticateRequest(_ request: URLRequest, completion: @escaping (Result<URLRequest, TokenError>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
195 | var requestCopy = request
196 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:194:83: error: cannot find type 'URLRequest' in scope
192 | }
193 |
194 | func authenticateRequest(_ request: URLRequest, completion: @escaping (Result<URLRequest, TokenError>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
195 | var requestCopy = request
196 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimplePosition.swift:128:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 | return
127 | }
128 | 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.
129 | completion(.failure(PositionError.httpError(error: "No HTTPURLResponse")))
130 | 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:132:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
130 | return
131 | }
132 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
133 | completion(.failure(PositionError.httpError(error: "Status code \(httpResponse.statusCode)")))
134 | return
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimplePosition.swift:133:92: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 | }
132 | guard httpResponse.statusCode == 200 else {
133 | completion(.failure(PositionError.httpError(error: "Status code \(httpResponse.statusCode)")))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 | return
135 | }
[18/56] Compiling SwiftBeanCountModel Price.swift
[19/56] Compiling SwiftBeanCountModel Tag.swift
[20/58] 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: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: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: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:150:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
148 | return
149 | }
150 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
151 | completion(DownloadError.httpError(error: "Status code \(httpResponse.statusCode)"))
152 | return
/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 {
[21/58] Compiling SwiftBeanCountModel Balance.swift
[22/58] Compiling SwiftBeanCountModel Commodity.swift
[23/58] Compiling SwiftBeanCountModel Cost.swift
[24/58] Compiling RogersBankDownloader RogersActivity.swift
[25/58] Compiling CSV CSVWriter.swift
[26/58] Compiling SwiftBeanCountModel Custom.swift
[27/58] Compiling SwiftBeanCountModel Event.swift
[28/58] Compiling SwiftBeanCountModel Flag.swift
[29/58] Emitting module SwiftBeanCountModel
[30/58] Compiling SwiftBeanCountModel Inventory.swift
[31/58] Compiling SwiftBeanCountModel Ledger.swift
[32/58] Compiling SwiftBeanCountModel MultiCurrencyAmount.swift
[33/58] Compiling SwiftBeanCountModel Option.swift
[34/58] Compiling SwiftBeanCountModel Account.swift
[35/58] Compiling SwiftBeanCountModel AccountName.swift
[36/58] Compiling SwiftBeanCountModel Amount.swift
[37/58] 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
[38/58] Compiling SwiftBeanCountModel Transaction.swift
[39/58] Compiling SwiftBeanCountModel TransactionMetaData.swift
[40/58] Compiling Wealthsimple WealthsimpleAsset.swift
[41/58] Compiling Wealthsimple WealthsimpleDownloader.swift
[42/58] Compiling Wealthsimple WealthsimpleAccount.swift
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleAccount.swift:116:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 | }
115 |
116 | 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.
117 | guard let data else {
118 | 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:100:23: error: cannot find 'URLRequest' in scope
98 |
99 | static func getAccounts(token: Token, completion: @escaping (Result<[Account], AccountError>) -> Void) {
100 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
101 | let session = URLSession.shared
102 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleAccount.swift:101:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
99 | static func getAccounts(token: Token, completion: @escaping (Result<[Account], AccountError>) -> Void) {
100 | var request = URLRequest(url: url)
101 | let session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
102 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
103 | token.authenticateRequest(request) {
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:194:41: error: cannot find type 'URLRequest' in scope
192 | }
193 |
194 | func authenticateRequest(_ request: URLRequest, completion: @escaping (Result<URLRequest, TokenError>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
195 | var requestCopy = request
196 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:194:83: error: cannot find type 'URLRequest' in scope
192 | }
193 |
194 | func authenticateRequest(_ request: URLRequest, completion: @escaping (Result<URLRequest, TokenError>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
195 | var requestCopy = request
196 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleAccount.swift:125:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 | return
124 | }
125 | 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.
126 | completion(.failure(AccountError.httpError(error: "No HTTPURLResponse")))
127 | 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:129:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
127 | return
128 | }
129 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
130 | completion(.failure(AccountError.httpError(error: "Status code \(httpResponse.statusCode)")))
131 | return
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleAccount.swift:130:91: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 | }
129 | guard httpResponse.statusCode == 200 else {
130 | completion(.failure(AccountError.httpError(error: "Status code \(httpResponse.statusCode)")))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 | return
132 | }
[43/58] Compiling RogersBankDownloader DownloadError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[44/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: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: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: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
[45/58] 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:199:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
197 | return
198 | }
199 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
200 | completion(.failure(DownloadError.httpError(error: "Status code \(httpResponse.statusCode)")))
201 | return
/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:225:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
223 | return
224 | }
225 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
226 | completion(.failure(DownloadError.httpError(error: "Status code \(httpResponse.statusCode)")))
227 | return
/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 {
[46/58] Compiling Wealthsimple Token.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:194:41: error: cannot find type 'URLRequest' in scope
192 | }
193 |
194 | func authenticateRequest(_ request: URLRequest, completion: @escaping (Result<URLRequest, TokenError>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
195 | var requestCopy = request
196 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:194:83: error: cannot find type 'URLRequest' in scope
192 | }
193 |
194 | func authenticateRequest(_ request: URLRequest, completion: @escaping (Result<URLRequest, TokenError>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
195 | var requestCopy = request
196 | 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:170:23: error: cannot find 'URLRequest' in scope
168 |
169 | private func testIfValid(completion: @escaping (Bool) -> Void) {
170 | var request = URLRequest(url: Self.testUrl)
| `- error: cannot find 'URLRequest' in scope
171 | let session = URLSession.shared
172 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:171:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
169 | private func testIfValid(completion: @escaping (Bool) -> Void) {
170 | var request = URLRequest(url: Self.testUrl)
171 | let session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
172 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
173 | authenticateRequest(request) {
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:197:21: error: cannot infer contextual base in reference to member 'success'
195 | var requestCopy = request
196 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
197 | completion(.success(requestCopy))
| `- error: cannot infer contextual base in reference to member 'success'
198 | }
199 |
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:213:23: error: cannot find 'URLRequest' in scope
211 |
212 | private func refresh(completion: @escaping (Result<Self, TokenError>) -> Void) {
213 | let request = URLRequest(url: Self.url)
| `- error: cannot find 'URLRequest' in scope
214 | let json = [
215 | "grant_type": "refresh_token",
[47/58] Compiling Wealthsimple String+CamelCase.swift
[48/58] Compiling Wealthsimple TransactionError.swift
[49/58] Emitting module SwiftBeanCountParserUtils
[50/58] Compiling SwiftBeanCountParserUtils String.swift
[51/58] Emitting module CSV
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/45] Compiling Wealthsimple WealthsimplePosition.swift
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimplePosition.swift:119:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 | }
118 |
119 | 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.
120 | guard let data else {
121 | 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:103:23: error: cannot find 'URLRequest' in scope
101 | url.queryItems?.append(URLQueryItem(name: "date", value: dateFormatter.string(from: date)))
102 | }
103 | var request = URLRequest(url: url.url!)
| `- error: cannot find 'URLRequest' in scope
104 | let session = URLSession.shared
105 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimplePosition.swift:104:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
102 | }
103 | var request = URLRequest(url: url.url!)
104 | let session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
105 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
106 | token.authenticateRequest(request) {
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:194:41: error: cannot find type 'URLRequest' in scope
192 | }
193 |
194 | func authenticateRequest(_ request: URLRequest, completion: @escaping (Result<URLRequest, TokenError>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
195 | var requestCopy = request
196 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:194:83: error: cannot find type 'URLRequest' in scope
192 | }
193 |
194 | func authenticateRequest(_ request: URLRequest, completion: @escaping (Result<URLRequest, TokenError>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
195 | var requestCopy = request
196 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimplePosition.swift:128:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 | return
127 | }
128 | 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.
129 | completion(.failure(PositionError.httpError(error: "No HTTPURLResponse")))
130 | 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:132:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
130 | return
131 | }
132 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
133 | completion(.failure(PositionError.httpError(error: "Status code \(httpResponse.statusCode)")))
134 | return
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimplePosition.swift:133:92: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 | }
132 | guard httpResponse.statusCode == 200 else {
133 | completion(.failure(PositionError.httpError(error: "Status code \(httpResponse.statusCode)")))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 | return
135 | }
[3/46] Emitting module SwiftBeanCountParserUtils
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/46] 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: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: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: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
[5/46] Compiling Wealthsimple WealthsimpleTransaction.swift
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleTransaction.swift:215:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
213 | }
214 |
215 | private static func handleResponse(data: Data?, response: URLResponse?, error: Error?, completion: @escaping (Result<[Transaction], TransactionError>) -> Void) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 | guard let data else {
217 | 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/WealthsimpleTransaction.swift:199:23: error: cannot find 'URLRequest' in scope
197 | }
198 | url.queryItems?.append(URLQueryItem(name: "effective_date_end", value: dateFormatter.string(from: Calendar.current.date(byAdding: .day, value: 7, to: Date())!)))
199 | var request = URLRequest(url: url.url!)
| `- error: cannot find 'URLRequest' in scope
200 | let session = URLSession.shared
201 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleTransaction.swift:200:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
198 | url.queryItems?.append(URLQueryItem(name: "effective_date_end", value: dateFormatter.string(from: Calendar.current.date(byAdding: .day, value: 7, to: Date())!)))
199 | var request = URLRequest(url: url.url!)
200 | let session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
201 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
202 | token.authenticateRequest(request) {
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:194:41: error: cannot find type 'URLRequest' in scope
192 | }
193 |
194 | func authenticateRequest(_ request: URLRequest, completion: @escaping (Result<URLRequest, TokenError>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
195 | var requestCopy = request
196 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:194:83: error: cannot find type 'URLRequest' in scope
192 | }
193 |
194 | func authenticateRequest(_ request: URLRequest, completion: @escaping (Result<URLRequest, TokenError>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
195 | var requestCopy = request
196 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleTransaction.swift:224:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 | return
223 | }
224 | 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.
225 | completion(.failure(TransactionError.httpError(error: "No HTTPURLResponse")))
226 | 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/WealthsimpleTransaction.swift:228:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
226 | return
227 | }
228 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
229 | completion(.failure(TransactionError.httpError(error: "Status code \(httpResponse.statusCode)")))
230 | return
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleTransaction.swift:229:95: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
227 | }
228 | guard httpResponse.statusCode == 200 else {
229 | completion(.failure(TransactionError.httpError(error: "Status code \(httpResponse.statusCode)")))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
230 | return
231 | }
[6/46] Compiling Wealthsimple WealthsimpleAccount.swift
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleAccount.swift:116:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 | }
115 |
116 | 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.
117 | guard let data else {
118 | 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:100:23: error: cannot find 'URLRequest' in scope
98 |
99 | static func getAccounts(token: Token, completion: @escaping (Result<[Account], AccountError>) -> Void) {
100 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
101 | let session = URLSession.shared
102 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleAccount.swift:101:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
99 | static func getAccounts(token: Token, completion: @escaping (Result<[Account], AccountError>) -> Void) {
100 | var request = URLRequest(url: url)
101 | let session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
102 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
103 | token.authenticateRequest(request) {
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:194:41: error: cannot find type 'URLRequest' in scope
192 | }
193 |
194 | func authenticateRequest(_ request: URLRequest, completion: @escaping (Result<URLRequest, TokenError>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
195 | var requestCopy = request
196 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:194:83: error: cannot find type 'URLRequest' in scope
192 | }
193 |
194 | func authenticateRequest(_ request: URLRequest, completion: @escaping (Result<URLRequest, TokenError>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
195 | var requestCopy = request
196 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleAccount.swift:125:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 | return
124 | }
125 | 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.
126 | completion(.failure(AccountError.httpError(error: "No HTTPURLResponse")))
127 | 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:129:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
127 | return
128 | }
129 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
130 | completion(.failure(AccountError.httpError(error: "Status code \(httpResponse.statusCode)")))
131 | return
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleAccount.swift:130:91: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 | }
129 | guard httpResponse.statusCode == 200 else {
130 | completion(.failure(AccountError.httpError(error: "Status code \(httpResponse.statusCode)")))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 | return
132 | }
[7/46] Compiling SwiftBeanCountParserUtils String.swift
[8/46] 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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/47] Compiling Wealthsimple Token.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:194:41: error: cannot find type 'URLRequest' in scope
192 | }
193 |
194 | func authenticateRequest(_ request: URLRequest, completion: @escaping (Result<URLRequest, TokenError>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
195 | var requestCopy = request
196 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:194:83: error: cannot find type 'URLRequest' in scope
192 | }
193 |
194 | func authenticateRequest(_ request: URLRequest, completion: @escaping (Result<URLRequest, TokenError>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
195 | var requestCopy = request
196 | 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:170:23: error: cannot find 'URLRequest' in scope
168 |
169 | private func testIfValid(completion: @escaping (Bool) -> Void) {
170 | var request = URLRequest(url: Self.testUrl)
| `- error: cannot find 'URLRequest' in scope
171 | let session = URLSession.shared
172 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:171:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
169 | private func testIfValid(completion: @escaping (Bool) -> Void) {
170 | var request = URLRequest(url: Self.testUrl)
171 | let session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
172 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
173 | authenticateRequest(request) {
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:197:21: error: cannot infer contextual base in reference to member 'success'
195 | var requestCopy = request
196 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
197 | completion(.success(requestCopy))
| `- error: cannot infer contextual base in reference to member 'success'
198 | }
199 |
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:213:23: error: cannot find 'URLRequest' in scope
211 |
212 | private func refresh(completion: @escaping (Result<Self, TokenError>) -> Void) {
213 | let request = URLRequest(url: Self.url)
| `- error: cannot find 'URLRequest' in scope
214 | let json = [
215 | "grant_type": "refresh_token",
[10/47] Compiling Wealthsimple String+CamelCase.swift
[11/47] 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:194:41: error: cannot find type 'URLRequest' in scope
192 | }
193 |
194 | func authenticateRequest(_ request: URLRequest, completion: @escaping (Result<URLRequest, TokenError>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
195 | var requestCopy = request
196 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/Token.swift:194:83: error: cannot find type 'URLRequest' in scope
192 | }
193 |
194 | func authenticateRequest(_ request: URLRequest, completion: @escaping (Result<URLRequest, TokenError>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
195 | var requestCopy = request
196 | requestCopy.setValue("Bearer \(self.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/WealthsimpleDownloader/Sources/Wealthsimple/WealthsimpleAccount.swift:116:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 | }
115 |
116 | 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.
117 | guard let data else {
118 | 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:119:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 | }
118 |
119 | 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.
120 | guard let data else {
121 | 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/WealthsimpleTransaction.swift:215:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
213 | }
214 |
215 | private static func handleResponse(data: Data?, response: URLResponse?, error: Error?, completion: @escaping (Result<[Transaction], TransactionError>) -> Void) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 | guard let data else {
217 | 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
[12/47] Compiling Wealthsimple TransactionError.swift
[14/47] Compiling CSV Legacy.swift
[15/47] Compiling CSV Endian.swift
[16/48] Compiling RogersBankDownloader RogersUser.swift
[17/48] 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: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: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: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:150:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
148 | return
149 | }
150 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
151 | completion(DownloadError.httpError(error: "Status code \(httpResponse.statusCode)"))
152 | return
/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 {
[18/48] Compiling RogersBankDownloader RogersStatement.swift
[19/48] 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:199:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
197 | return
198 | }
199 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
200 | completion(.failure(DownloadError.httpError(error: "Status code \(httpResponse.statusCode)")))
201 | return
/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:225:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
223 | return
224 | }
225 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
226 | completion(.failure(DownloadError.httpError(error: "Status code \(httpResponse.statusCode)")))
227 | return
/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 {
[20/48] Compiling Wealthsimple WealthsimpleAsset.swift
[21/48] Compiling Wealthsimple WealthsimpleDownloader.swift
[22/48] Compiling SwiftBeanCountModel MultiCurrencyAmount.swift
[23/48] Compiling SwiftBeanCountModel Option.swift
[24/50] Compiling RogersBankDownloader DownloadError.swift
BUILD FAILURE 6.1 wasm