The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build RogersBankDownloader, reference v0.2.2 (a14c66), with Swift 6.1 for Wasm on 3 Jun 2025 07:29:01 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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/RogersBankDownloader.git
Reference: v0.2.2
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/Nef10/RogersBankDownloader
 * tag               v0.2.2     -> FETCH_HEAD
HEAD is now at a14c66a Add Return Activity Category
Cloned https://github.com/Nef10/RogersBankDownloader.git
Revision (git rev-parse @):
a14c66a7f181d870e7d52831f14df3991d79b0ba
SUCCESS checkout https://github.com/Nef10/RogersBankDownloader.git at v0.2.2
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Nef10/RogersBankDownloader.git
https://github.com/Nef10/RogersBankDownloader.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "RogersBankDownloader",
  "name" : "RogersBankDownloader",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "RogersBankDownloader",
      "targets" : [
        "RogersBankDownloader"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RogersBankDownloaderTests",
      "module_type" : "SwiftTarget",
      "name" : "RogersBankDownloaderTests",
      "path" : "Tests/RogersBankDownloaderTests",
      "sources" : [
        "DownloadErrorTests.swift",
        "RogersActivityTests.swift"
      ],
      "target_dependencies" : [
        "RogersBankDownloader"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RogersBankDownloader",
      "module_type" : "SwiftTarget",
      "name" : "RogersBankDownloader",
      "path" : "Sources/RogersBankDownloader",
      "product_memberships" : [
        "RogersBankDownloader"
      ],
      "sources" : [
        "DownloadError.swift",
        "RogersAccount.swift",
        "RogersActivity.swift",
        "RogersAuthenticator.swift",
        "RogersStatement.swift",
        "RogersUser.swift",
        "URLTaskHelper.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling RogersBankDownloader RogersAuthenticator.swift
/host/spi-builder-workspace/Sources/RogersBankDownloader/RogersAuthenticator.swift:77:24: warning: static property 'startURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 75 | public class RogersAuthenticator: Authenticator {
 76 |
 77 |     private static var startURL = URL(string: "https://rbaccess.rogersbank.com/?product=ROGERSBRAND")!
    |                        |- warning: static property 'startURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'startURL' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'startURL' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 78 |     private static var authenticationURL = URL(string: "https://rbaccess.rogersbank.com/issuing/digital/authenticate/user")!
 79 |     private static var twoFactorPreferenceURL = URL(string: "https://rbaccess.rogersbank.com/issuing/digital/twofactorpasscode/preferences/user")!
/host/spi-builder-workspace/Sources/RogersBankDownloader/RogersAuthenticator.swift:78:24: warning: static property 'authenticationURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 76 |
 77 |     private static var startURL = URL(string: "https://rbaccess.rogersbank.com/?product=ROGERSBRAND")!
 78 |     private static var authenticationURL = URL(string: "https://rbaccess.rogersbank.com/issuing/digital/authenticate/user")!
    |                        |- warning: static property 'authenticationURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'authenticationURL' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'authenticationURL' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 79 |     private static var twoFactorPreferenceURL = URL(string: "https://rbaccess.rogersbank.com/issuing/digital/twofactorpasscode/preferences/user")!
 80 |     private static var validateTwoFactorCodeURL = URL(string: "https://rbaccess.rogersbank.com/issuing/digital/authenticate/validatepasscode")!
/host/spi-builder-workspace/Sources/RogersBankDownloader/RogersAuthenticator.swift:79:24: warning: static property 'twoFactorPreferenceURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 77 |     private static var startURL = URL(string: "https://rbaccess.rogersbank.com/?product=ROGERSBRAND")!
 78 |     private static var authenticationURL = URL(string: "https://rbaccess.rogersbank.com/issuing/digital/authenticate/user")!
 79 |     private static var twoFactorPreferenceURL = URL(string: "https://rbaccess.rogersbank.com/issuing/digital/twofactorpasscode/preferences/user")!
    |                        |- warning: static property 'twoFactorPreferenceURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'twoFactorPreferenceURL' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'twoFactorPreferenceURL' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 80 |     private static var validateTwoFactorCodeURL = URL(string: "https://rbaccess.rogersbank.com/issuing/digital/authenticate/validatepasscode")!
 81 |     private static let twoFactorRequiredErrorTitle = "Device Not Found"
/host/spi-builder-workspace/Sources/RogersBankDownloader/RogersAuthenticator.swift:80:24: warning: static property 'validateTwoFactorCodeURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 78 |     private static var authenticationURL = URL(string: "https://rbaccess.rogersbank.com/issuing/digital/authenticate/user")!
 79 |     private static var twoFactorPreferenceURL = URL(string: "https://rbaccess.rogersbank.com/issuing/digital/twofactorpasscode/preferences/user")!
 80 |     private static var validateTwoFactorCodeURL = URL(string: "https://rbaccess.rogersbank.com/issuing/digital/authenticate/validatepasscode")!
    |                        |- warning: static property 'validateTwoFactorCodeURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'validateTwoFactorCodeURL' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'validateTwoFactorCodeURL' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 81 |     private static let twoFactorRequiredErrorTitle = "Device Not Found"
 82 |     private static let twoFactorRequiredErrorStatus = 412
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 {
[4/10] Compiling RogersBankDownloader URLTaskHelper.swift
/host/spi-builder-workspace/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/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/Sources/RogersBankDownloader/URLTaskHelper.swift:14:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
12 |             return(.failure(DownloadError.noDataReceived))
13 |         }
14 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
15 |             return(.failure(DownloadError.httpError(error: "No HTTPURLResponse")))
16 |         }
/host/spi-builder-workspace/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
[5/10] Compiling RogersBankDownloader RogersUser.swift
[6/10] Compiling RogersBankDownloader RogersStatement.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/10] Compiling RogersBankDownloader DownloadError.swift
[8/10] Compiling RogersBankDownloader RogersActivity.swift
[9/10] Emitting module RogersBankDownloader
/host/spi-builder-workspace/Sources/RogersBankDownloader/RogersAuthenticator.swift:77:24: warning: static property 'startURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 75 | public class RogersAuthenticator: Authenticator {
 76 |
 77 |     private static var startURL = URL(string: "https://rbaccess.rogersbank.com/?product=ROGERSBRAND")!
    |                        |- warning: static property 'startURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'startURL' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'startURL' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 78 |     private static var authenticationURL = URL(string: "https://rbaccess.rogersbank.com/issuing/digital/authenticate/user")!
 79 |     private static var twoFactorPreferenceURL = URL(string: "https://rbaccess.rogersbank.com/issuing/digital/twofactorpasscode/preferences/user")!
/host/spi-builder-workspace/Sources/RogersBankDownloader/RogersAuthenticator.swift:78:24: warning: static property 'authenticationURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 76 |
 77 |     private static var startURL = URL(string: "https://rbaccess.rogersbank.com/?product=ROGERSBRAND")!
 78 |     private static var authenticationURL = URL(string: "https://rbaccess.rogersbank.com/issuing/digital/authenticate/user")!
    |                        |- warning: static property 'authenticationURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'authenticationURL' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'authenticationURL' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 79 |     private static var twoFactorPreferenceURL = URL(string: "https://rbaccess.rogersbank.com/issuing/digital/twofactorpasscode/preferences/user")!
 80 |     private static var validateTwoFactorCodeURL = URL(string: "https://rbaccess.rogersbank.com/issuing/digital/authenticate/validatepasscode")!
/host/spi-builder-workspace/Sources/RogersBankDownloader/RogersAuthenticator.swift:79:24: warning: static property 'twoFactorPreferenceURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 77 |     private static var startURL = URL(string: "https://rbaccess.rogersbank.com/?product=ROGERSBRAND")!
 78 |     private static var authenticationURL = URL(string: "https://rbaccess.rogersbank.com/issuing/digital/authenticate/user")!
 79 |     private static var twoFactorPreferenceURL = URL(string: "https://rbaccess.rogersbank.com/issuing/digital/twofactorpasscode/preferences/user")!
    |                        |- warning: static property 'twoFactorPreferenceURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'twoFactorPreferenceURL' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'twoFactorPreferenceURL' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 80 |     private static var validateTwoFactorCodeURL = URL(string: "https://rbaccess.rogersbank.com/issuing/digital/authenticate/validatepasscode")!
 81 |     private static let twoFactorRequiredErrorTitle = "Device Not Found"
/host/spi-builder-workspace/Sources/RogersBankDownloader/RogersAuthenticator.swift:80:24: warning: static property 'validateTwoFactorCodeURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 78 |     private static var authenticationURL = URL(string: "https://rbaccess.rogersbank.com/issuing/digital/authenticate/user")!
 79 |     private static var twoFactorPreferenceURL = URL(string: "https://rbaccess.rogersbank.com/issuing/digital/twofactorpasscode/preferences/user")!
 80 |     private static var validateTwoFactorCodeURL = URL(string: "https://rbaccess.rogersbank.com/issuing/digital/authenticate/validatepasscode")!
    |                        |- warning: static property 'validateTwoFactorCodeURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'validateTwoFactorCodeURL' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'validateTwoFactorCodeURL' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 81 |     private static let twoFactorRequiredErrorTitle = "Device Not Found"
 82 |     private static let twoFactorRequiredErrorStatus = 412
/host/spi-builder-workspace/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/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/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/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/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/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
[10/10] Compiling RogersBankDownloader RogersAccount.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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 {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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/9] Compiling RogersBankDownloader RogersUser.swift
[3/9] Compiling RogersBankDownloader URLTaskHelper.swift
/host/spi-builder-workspace/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/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/Sources/RogersBankDownloader/URLTaskHelper.swift:14:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
12 |             return(.failure(DownloadError.noDataReceived))
13 |         }
14 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
15 |             return(.failure(DownloadError.httpError(error: "No HTTPURLResponse")))
16 |         }
/host/spi-builder-workspace/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
[4/9] Compiling RogersBankDownloader RogersStatement.swift
[5/9] Compiling RogersBankDownloader RogersAuthenticator.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/Sources/RogersBankDownloader/RogersAuthenticator.swift:312:89: error: argument type '_' expected to be an instance of a class or class-constrained type
310 |         }
311 |         let task = URLSession.shared.uploadTask(with: Self.validateTwoFactorCodeRequest, from: jsonData) { data, response, error in
312 |             let processedResponse = URLTaskHelper.processResponse(data: data, response: response, error: error)
    |                                                                                         `- error: argument type '_' expected to be an instance of a class or class-constrained type
313 |             guard case let .success((data, httpResponse)) = processedResponse else {
314 |                 if case let .failure(error) = processedResponse {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/9] Compiling RogersBankDownloader DownloadError.swift
[7/9] Compiling RogersBankDownloader RogersActivity.swift
[8/9] Emitting module RogersBankDownloader
/host/spi-builder-workspace/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/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/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/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/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/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
[9/9] Compiling RogersBankDownloader RogersAccount.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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 {
BUILD FAILURE 6.1 wasm