The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CryptoScraper, reference v0.3.0 (7be2a9), with Swift 6.3 for Wasm on 21 Apr 2026 10:16:51 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/foscomputerservices/CryptoScraper.git
Reference: v0.3.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/foscomputerservices/CryptoScraper
 * tag               v0.3.0     -> FETCH_HEAD
HEAD is now at 7be2a91 Merge pull request #15 from foscomputerservices/tron-blockchain
Cloned https://github.com/foscomputerservices/CryptoScraper.git
Revision (git rev-parse @):
7be2a9192f98c8f4f3c449725a29125f78332f6f
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/foscomputerservices/CryptoScraper.git at v0.3.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/foscomputerservices/CryptoScraper.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/oscbyspro/AwesomeNumbersKit.git
[1/7731] Fetching awesomenumberskit
Fetched https://github.com/oscbyspro/AwesomeNumbersKit.git from cache (0.65s)
Computing version for https://github.com/oscbyspro/AwesomeNumbersKit.git
Computed https://github.com/oscbyspro/AwesomeNumbersKit.git at 0.6.2 (1.53s)
Creating working copy for https://github.com/oscbyspro/AwesomeNumbersKit.git
Working copy of https://github.com/oscbyspro/AwesomeNumbersKit.git resolved at 0.6.2
Building for debugging...
[0/6] Write sources
[5/6] Write swift-version-24593BA9C3E375BF.txt
[7/20] Compiling ANKFoundation ANKCoreInteger.swift
[8/20] Compiling ANKFoundation ANKFixedWidthInteger.swift
[9/21] Emitting module ANKFoundation
[10/21] Compiling ANKFoundation ANKBigEndianTextCodable.swift
[11/21] Compiling ANKFoundation ANKBinaryInteger.swift
[12/21] Compiling ANKFoundation ANKLargeFixedWidthInteger.swift
[13/21] Compiling ANKFoundation ANKWords.swift
[14/21] Compiling ANKFoundation Aliases.swift
[15/21] Compiling ANKFoundation ANKSign.swift
[16/21] Compiling ANKFoundation ANKBitPatternConvertible.swift
[17/21] Compiling ANKFoundation ANKContiguousBytes.swift
[18/21] Compiling ANKFoundation ANKSigned.swift
[19/21] Compiling ANKFoundation ANKIntOrUInt.swift
[20/21] Compiling ANKFoundation ANKLargeBinaryInteger.swift
[21/21] Compiling ANKFoundation Text.swift
[23/65] Compiling ANKFullWidthKit ANKFullWidth+2048.swift
[24/65] Compiling ANKFullWidthKit ANKFullWidth+4096.swift
[25/66] Compiling ANKSignedKit Exports.swift
[26/66] Compiling ANKSignedKit ANKSigned.swift
[27/66] Compiling ANKSignedKit ANKSigned+Text.swift
[28/66] Compiling ANKFullWidthKit ANKFullWidth+Addition+Digit.swift
[29/66] Compiling ANKFullWidthKit ANKFullWidth+Addition.swift
[30/66] Compiling ANKFullWidthKit ANKFullWidth+Arithmetic.swift
[31/66] Compiling ANKFullWidthKit ANKFullWidth+Bits.swift
[32/66] Compiling ANKFullWidthKit ANKFullWidth+0512.swift
[33/66] Compiling ANKFullWidthKit ANKFullWidth+1024.swift
[34/66] Emitting module ANKSignedKit
[35/66] Compiling ANKFullWidthKit ANKFullWidth+0064.swift
[36/66] Compiling ANKFullWidthKit ANKFullWidth+0128.swift
[48/71] Compiling ANKFullWidthKit ANKFullWidth+0192.swift
[49/71] Compiling ANKFullWidthKit ANKFullWidth+0256.swift
[50/71] Compiling ANKFullWidthKit ANKFullWidth+0384.swift
[51/71] Compiling ANKFullWidthKit ANKFullWidth+Bitwise.swift
[52/71] Compiling ANKFullWidthKit ANKFullWidth+Comparisons.swift
[53/71] Compiling ANKFullWidthKit ANKFullWidth+Complements.swift
[54/71] Compiling ANKFullWidthKit ANKFullWidth+Division+Digit.swift
[55/71] Compiling ANKFullWidthKit ANKFullWidth+Negation.swift
[56/71] Compiling ANKFullWidthKit ANKFullWidth+Numbers.swift
[57/71] Compiling ANKFullWidthKit ANKFullWidth+Shifts.swift
[58/71] Compiling ANKFullWidthKit ANKFullWidth+Subtraction+Digit.swift
[59/71] Compiling ANKFullWidthKit ANKFullWidth+Subtraction.swift
[60/71] Compiling ANKFullWidthKit ANKFullWidth+Text.swift
[61/71] Compiling ANKFullWidthKit ANKFullWidth+Words+Pointers.swift
[62/71] Compiling ANKFullWidthKit ANKFullWidth+Words.swift
[63/71] Compiling ANKFullWidthKit ANKFullWidth.swift
[64/71] Compiling ANKFullWidthKit Aliases.swift
[65/71] Compiling ANKFullWidthKit Arithmetic.swift
[66/71] Compiling ANKFullWidthKit Text.swift
[67/71] Compiling ANKFullWidthKit ANKFullWidth+Division.swift
[68/71] Compiling ANKFullWidthKit ANKFullWidth+Endianness.swift
[69/71] Compiling ANKFullWidthKit ANKFullWidth+Multiplication+Digit.swift
[70/71] Compiling ANKFullWidthKit ANKFullWidth+Multiplication.swift
[71/71] Emitting module ANKFullWidthKit
[73/74] Compiling AwesomeNumbersKit Exports.swift
[74/74] Emitting module AwesomeNumbersKit
error: emit-module command failed with exit code 1 (use -v to see invocation)
[76/122] Emitting module CryptoScraper
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:26:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 | final class FoundationDataFetch {
 26 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |
 28 |     static let `default`: FoundationDataFetch = .init(urlSession: FoundationDataFetch.UrlSession())
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:155:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 |     // MARK: Initialization Methods
154 |
155 |     init(urlSession: URLSession) {
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 |         self.urlSession = urlSession
157 |     }
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:159:60: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |     }
158 |
159 |     static func UrlSession(forUserToken: String? = nil) -> URLSession {
    |                                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |         let sessionConfig = URLSessionConfiguration.default
161 |         sessionConfig.allowsCellularAccess = true
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:169:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 | private extension FoundationDataFetch {
169 |     private static func completionHandler<ResultValue: Decodable>(responseData: Data?, response: URLResponse?, error: Error?, callback: (Result<ResultValue, DataFetchError>) -> Void) {
    |                                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |         let httpResponse: HTTPURLResponse
171 |         let checkedResponse = Self.checkResponse(response: response, error: 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/CryptoScraper/Utility/FoundationDataFetch.swift:198:49: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     }
197 |
198 |     private static func checkResponse(response: URLResponse?, error: Swift.Error?) -> (HTTPURLResponse?, DataFetchError?) {
    |                                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |         if let error {
200 |             return (nil, .message(error.localizedDescription))
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/CryptoScraper/Utility/FoundationDataFetch.swift:198:88: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     }
197 |
198 |     private static func checkResponse(response: URLResponse?, error: Swift.Error?) -> (HTTPURLResponse?, DataFetchError?) {
    |                                                                                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |         if let error {
200 |             return (nil, .message(error.localizedDescription))
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
[77/128] Compiling CryptoScraper CryptoDataAggregator.swift
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:26:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 | final class FoundationDataFetch {
 26 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |
 28 |     static let `default`: FoundationDataFetch = .init(urlSession: FoundationDataFetch.UrlSession())
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:155:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 |     // MARK: Initialization Methods
154 |
155 |     init(urlSession: URLSession) {
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 |         self.urlSession = urlSession
157 |     }
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:159:60: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |     }
158 |
159 |     static func UrlSession(forUserToken: String? = nil) -> URLSession {
    |                                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |         let sessionConfig = URLSessionConfiguration.default
161 |         sessionConfig.allowsCellularAccess = true
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:169:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 | private extension FoundationDataFetch {
169 |     private static func completionHandler<ResultValue: Decodable>(responseData: Data?, response: URLResponse?, error: Error?, callback: (Result<ResultValue, DataFetchError>) -> Void) {
    |                                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |         let httpResponse: HTTPURLResponse
171 |         let checkedResponse = Self.checkResponse(response: response, error: 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/CryptoScraper/Utility/FoundationDataFetch.swift:198:49: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     }
197 |
198 |     private static func checkResponse(response: URLResponse?, error: Swift.Error?) -> (HTTPURLResponse?, DataFetchError?) {
    |                                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |         if let error {
200 |             return (nil, .message(error.localizedDescription))
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/CryptoScraper/Utility/FoundationDataFetch.swift:198:88: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     }
197 |
198 |     private static func checkResponse(response: URLResponse?, error: Swift.Error?) -> (HTTPURLResponse?, DataFetchError?) {
    |                                                                                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |         if let error {
200 |             return (nil, .message(error.localizedDescription))
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/CryptoScraper/Utility/FoundationDataFetch.swift:70:26: error: cannot find 'URLRequest' in scope
 68 |         }
 69 |
 70 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
 71 |         urlRequest.httpMethod = "Get"
 72 |         urlRequest.setValue("application/json;charset=utf-8", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:84:18: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 82 |         return try await withCheckedThrowingContinuation { continuation in
 83 |             urlSession
 84 |                 .dataTask(with: urlRequest) { data, _, e in
    |                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 85 |                     var result: ResultValue?
 86 |                     var error: Error?
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:129:26: error: cannot find 'URLRequest' in scope
127 |         }
128 |
129 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
130 |         urlRequest.httpMethod = httpMethod
131 |         urlRequest.httpBody = data
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:142:14: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
140 |
141 |         urlSession
142 |             .dataTask(with: urlRequest) { data, response, error in
    |              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
143 |                 Self.completionHandler(
144 |                     responseData: data,
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:160:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
158 |
159 |     static func UrlSession(forUserToken: String? = nil) -> URLSession {
160 |         let sessionConfig = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
161 |         sessionConfig.allowsCellularAccess = true
162 |         sessionConfig.isDiscretionary = false
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:164:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
162 |         sessionConfig.isDiscretionary = false
163 |
164 |         return URLSession(configuration: sessionConfig)
    |                `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
165 |     }
166 | }
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:170:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 | private extension FoundationDataFetch {
169 |     private static func completionHandler<ResultValue: Decodable>(responseData: Data?, response: URLResponse?, error: Error?, callback: (Result<ResultValue, DataFetchError>) -> Void) {
170 |         let httpResponse: HTTPURLResponse
    |                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |         let checkedResponse = Self.checkResponse(response: response, error: error)
172 |
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/CryptoScraper/Utility/FoundationDataFetch.swift:183:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
181 |         }
182 |
183 |         if let mimeType = httpResponse.mimeType, mimeType == "application/json" {
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
184 |             if let data = responseData {
185 |                 do {
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:194:94: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
192 |             }
193 |         } else {
194 |             callback(.failure(.message("Unknown mime type: \(String(describing: httpResponse.mimeType))")))
    |                                                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
195 |         }
196 |     }
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:203:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
201 |         }
202 |
203 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
204 |             return (nil, .message("Expected to receive an 'HTTPURLResponse', but received '\(String(describing: type(of: response.self)))'"))
205 |         }
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:203:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
201 |         }
202 |
203 |         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.
204 |             return (nil, .message("Expected to receive an 'HTTPURLResponse', but received '\(String(describing: type(of: response.self)))'"))
205 |         }
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/CryptoScraper/Utility/FoundationDataFetch.swift:207:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
205 |         }
206 |
207 |         guard (200...299).contains(httpResponse.statusCode) else {
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
208 |             return (nil, .badStatus(httpResponse.statusCode))
209 |         }
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:208:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 |
207 |         guard (200...299).contains(httpResponse.statusCode) else {
208 |             return (nil, .badStatus(httpResponse.statusCode))
    |                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |         }
210 |
[78/128] Compiling CryptoScraper CryptoInfo.swift
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:26:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 | final class FoundationDataFetch {
 26 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |
 28 |     static let `default`: FoundationDataFetch = .init(urlSession: FoundationDataFetch.UrlSession())
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:155:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 |     // MARK: Initialization Methods
154 |
155 |     init(urlSession: URLSession) {
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 |         self.urlSession = urlSession
157 |     }
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:159:60: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |     }
158 |
159 |     static func UrlSession(forUserToken: String? = nil) -> URLSession {
    |                                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |         let sessionConfig = URLSessionConfiguration.default
161 |         sessionConfig.allowsCellularAccess = true
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:169:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 | private extension FoundationDataFetch {
169 |     private static func completionHandler<ResultValue: Decodable>(responseData: Data?, response: URLResponse?, error: Error?, callback: (Result<ResultValue, DataFetchError>) -> Void) {
    |                                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |         let httpResponse: HTTPURLResponse
171 |         let checkedResponse = Self.checkResponse(response: response, error: 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/CryptoScraper/Utility/FoundationDataFetch.swift:198:49: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     }
197 |
198 |     private static func checkResponse(response: URLResponse?, error: Swift.Error?) -> (HTTPURLResponse?, DataFetchError?) {
    |                                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |         if let error {
200 |             return (nil, .message(error.localizedDescription))
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/CryptoScraper/Utility/FoundationDataFetch.swift:198:88: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     }
197 |
198 |     private static func checkResponse(response: URLResponse?, error: Swift.Error?) -> (HTTPURLResponse?, DataFetchError?) {
    |                                                                                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |         if let error {
200 |             return (nil, .message(error.localizedDescription))
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/CryptoScraper/Utility/FoundationDataFetch.swift:70:26: error: cannot find 'URLRequest' in scope
 68 |         }
 69 |
 70 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
 71 |         urlRequest.httpMethod = "Get"
 72 |         urlRequest.setValue("application/json;charset=utf-8", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:84:18: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 82 |         return try await withCheckedThrowingContinuation { continuation in
 83 |             urlSession
 84 |                 .dataTask(with: urlRequest) { data, _, e in
    |                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 85 |                     var result: ResultValue?
 86 |                     var error: Error?
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:129:26: error: cannot find 'URLRequest' in scope
127 |         }
128 |
129 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
130 |         urlRequest.httpMethod = httpMethod
131 |         urlRequest.httpBody = data
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:142:14: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
140 |
141 |         urlSession
142 |             .dataTask(with: urlRequest) { data, response, error in
    |              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
143 |                 Self.completionHandler(
144 |                     responseData: data,
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:160:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
158 |
159 |     static func UrlSession(forUserToken: String? = nil) -> URLSession {
160 |         let sessionConfig = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
161 |         sessionConfig.allowsCellularAccess = true
162 |         sessionConfig.isDiscretionary = false
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:164:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
162 |         sessionConfig.isDiscretionary = false
163 |
164 |         return URLSession(configuration: sessionConfig)
    |                `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
165 |     }
166 | }
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:170:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 | private extension FoundationDataFetch {
169 |     private static func completionHandler<ResultValue: Decodable>(responseData: Data?, response: URLResponse?, error: Error?, callback: (Result<ResultValue, DataFetchError>) -> Void) {
170 |         let httpResponse: HTTPURLResponse
    |                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |         let checkedResponse = Self.checkResponse(response: response, error: error)
172 |
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/CryptoScraper/Utility/FoundationDataFetch.swift:183:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
181 |         }
182 |
183 |         if let mimeType = httpResponse.mimeType, mimeType == "application/json" {
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
184 |             if let data = responseData {
185 |                 do {
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:194:94: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
192 |             }
193 |         } else {
194 |             callback(.failure(.message("Unknown mime type: \(String(describing: httpResponse.mimeType))")))
    |                                                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
195 |         }
196 |     }
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:203:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
201 |         }
202 |
203 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
204 |             return (nil, .message("Expected to receive an 'HTTPURLResponse', but received '\(String(describing: type(of: response.self)))'"))
205 |         }
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:203:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
201 |         }
202 |
203 |         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.
204 |             return (nil, .message("Expected to receive an 'HTTPURLResponse', but received '\(String(describing: type(of: response.self)))'"))
205 |         }
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/CryptoScraper/Utility/FoundationDataFetch.swift:207:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
205 |         }
206 |
207 |         guard (200...299).contains(httpResponse.statusCode) else {
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
208 |             return (nil, .badStatus(httpResponse.statusCode))
209 |         }
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:208:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 |
207 |         guard (200...299).contains(httpResponse.statusCode) else {
208 |             return (nil, .badStatus(httpResponse.statusCode))
    |                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |         }
210 |
[79/128] Compiling CryptoScraper CryptoScanner.swift
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:26:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 | final class FoundationDataFetch {
 26 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |
 28 |     static let `default`: FoundationDataFetch = .init(urlSession: FoundationDataFetch.UrlSession())
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:155:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 |     // MARK: Initialization Methods
154 |
155 |     init(urlSession: URLSession) {
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 |         self.urlSession = urlSession
157 |     }
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:159:60: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |     }
158 |
159 |     static func UrlSession(forUserToken: String? = nil) -> URLSession {
    |                                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |         let sessionConfig = URLSessionConfiguration.default
161 |         sessionConfig.allowsCellularAccess = true
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:169:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 | private extension FoundationDataFetch {
169 |     private static func completionHandler<ResultValue: Decodable>(responseData: Data?, response: URLResponse?, error: Error?, callback: (Result<ResultValue, DataFetchError>) -> Void) {
    |                                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |         let httpResponse: HTTPURLResponse
171 |         let checkedResponse = Self.checkResponse(response: response, error: 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/CryptoScraper/Utility/FoundationDataFetch.swift:198:49: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     }
197 |
198 |     private static func checkResponse(response: URLResponse?, error: Swift.Error?) -> (HTTPURLResponse?, DataFetchError?) {
    |                                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |         if let error {
200 |             return (nil, .message(error.localizedDescription))
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/CryptoScraper/Utility/FoundationDataFetch.swift:198:88: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     }
197 |
198 |     private static func checkResponse(response: URLResponse?, error: Swift.Error?) -> (HTTPURLResponse?, DataFetchError?) {
    |                                                                                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |         if let error {
200 |             return (nil, .message(error.localizedDescription))
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/CryptoScraper/Utility/FoundationDataFetch.swift:70:26: error: cannot find 'URLRequest' in scope
 68 |         }
 69 |
 70 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
 71 |         urlRequest.httpMethod = "Get"
 72 |         urlRequest.setValue("application/json;charset=utf-8", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:84:18: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 82 |         return try await withCheckedThrowingContinuation { continuation in
 83 |             urlSession
 84 |                 .dataTask(with: urlRequest) { data, _, e in
    |                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 85 |                     var result: ResultValue?
 86 |                     var error: Error?
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:129:26: error: cannot find 'URLRequest' in scope
127 |         }
128 |
129 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
130 |         urlRequest.httpMethod = httpMethod
131 |         urlRequest.httpBody = data
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:142:14: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
140 |
141 |         urlSession
142 |             .dataTask(with: urlRequest) { data, response, error in
    |              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
143 |                 Self.completionHandler(
144 |                     responseData: data,
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:160:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
158 |
159 |     static func UrlSession(forUserToken: String? = nil) -> URLSession {
160 |         let sessionConfig = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
161 |         sessionConfig.allowsCellularAccess = true
162 |         sessionConfig.isDiscretionary = false
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:164:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
162 |         sessionConfig.isDiscretionary = false
163 |
164 |         return URLSession(configuration: sessionConfig)
    |                `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
165 |     }
166 | }
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:170:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 | private extension FoundationDataFetch {
169 |     private static func completionHandler<ResultValue: Decodable>(responseData: Data?, response: URLResponse?, error: Error?, callback: (Result<ResultValue, DataFetchError>) -> Void) {
170 |         let httpResponse: HTTPURLResponse
    |                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |         let checkedResponse = Self.checkResponse(response: response, error: error)
172 |
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/CryptoScraper/Utility/FoundationDataFetch.swift:183:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
181 |         }
182 |
183 |         if let mimeType = httpResponse.mimeType, mimeType == "application/json" {
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
184 |             if let data = responseData {
185 |                 do {
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:194:94: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
192 |             }
193 |         } else {
194 |             callback(.failure(.message("Unknown mime type: \(String(describing: httpResponse.mimeType))")))
    |                                                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
195 |         }
196 |     }
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:203:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
201 |         }
202 |
203 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
204 |             return (nil, .message("Expected to receive an 'HTTPURLResponse', but received '\(String(describing: type(of: response.self)))'"))
205 |         }
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:203:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
201 |         }
202 |
203 |         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.
204 |             return (nil, .message("Expected to receive an 'HTTPURLResponse', but received '\(String(describing: type(of: response.self)))'"))
205 |         }
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/CryptoScraper/Utility/FoundationDataFetch.swift:207:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
205 |         }
206 |
207 |         guard (200...299).contains(httpResponse.statusCode) else {
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
208 |             return (nil, .badStatus(httpResponse.statusCode))
209 |         }
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:208:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 |
207 |         guard (200...299).contains(httpResponse.statusCode) else {
208 |             return (nil, .badStatus(httpResponse.statusCode))
    |                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |         }
210 |
[80/128] Compiling CryptoScraper CryptoTransaction.swift
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:26:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 | final class FoundationDataFetch {
 26 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |
 28 |     static let `default`: FoundationDataFetch = .init(urlSession: FoundationDataFetch.UrlSession())
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:155:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 |     // MARK: Initialization Methods
154 |
155 |     init(urlSession: URLSession) {
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 |         self.urlSession = urlSession
157 |     }
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:159:60: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |     }
158 |
159 |     static func UrlSession(forUserToken: String? = nil) -> URLSession {
    |                                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |         let sessionConfig = URLSessionConfiguration.default
161 |         sessionConfig.allowsCellularAccess = true
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:169:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 | private extension FoundationDataFetch {
169 |     private static func completionHandler<ResultValue: Decodable>(responseData: Data?, response: URLResponse?, error: Error?, callback: (Result<ResultValue, DataFetchError>) -> Void) {
    |                                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |         let httpResponse: HTTPURLResponse
171 |         let checkedResponse = Self.checkResponse(response: response, error: 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/CryptoScraper/Utility/FoundationDataFetch.swift:198:49: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     }
197 |
198 |     private static func checkResponse(response: URLResponse?, error: Swift.Error?) -> (HTTPURLResponse?, DataFetchError?) {
    |                                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |         if let error {
200 |             return (nil, .message(error.localizedDescription))
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/CryptoScraper/Utility/FoundationDataFetch.swift:198:88: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     }
197 |
198 |     private static func checkResponse(response: URLResponse?, error: Swift.Error?) -> (HTTPURLResponse?, DataFetchError?) {
    |                                                                                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |         if let error {
200 |             return (nil, .message(error.localizedDescription))
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/CryptoScraper/Utility/FoundationDataFetch.swift:70:26: error: cannot find 'URLRequest' in scope
 68 |         }
 69 |
 70 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
 71 |         urlRequest.httpMethod = "Get"
 72 |         urlRequest.setValue("application/json;charset=utf-8", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:84:18: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 82 |         return try await withCheckedThrowingContinuation { continuation in
 83 |             urlSession
 84 |                 .dataTask(with: urlRequest) { data, _, e in
    |                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 85 |                     var result: ResultValue?
 86 |                     var error: Error?
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:129:26: error: cannot find 'URLRequest' in scope
127 |         }
128 |
129 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
130 |         urlRequest.httpMethod = httpMethod
131 |         urlRequest.httpBody = data
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:142:14: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
140 |
141 |         urlSession
142 |             .dataTask(with: urlRequest) { data, response, error in
    |              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
143 |                 Self.completionHandler(
144 |                     responseData: data,
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:160:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
158 |
159 |     static func UrlSession(forUserToken: String? = nil) -> URLSession {
160 |         let sessionConfig = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
161 |         sessionConfig.allowsCellularAccess = true
162 |         sessionConfig.isDiscretionary = false
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:164:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
162 |         sessionConfig.isDiscretionary = false
163 |
164 |         return URLSession(configuration: sessionConfig)
    |                `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
165 |     }
166 | }
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:170:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 | private extension FoundationDataFetch {
169 |     private static func completionHandler<ResultValue: Decodable>(responseData: Data?, response: URLResponse?, error: Error?, callback: (Result<ResultValue, DataFetchError>) -> Void) {
170 |         let httpResponse: HTTPURLResponse
    |                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |         let checkedResponse = Self.checkResponse(response: response, error: error)
172 |
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/CryptoScraper/Utility/FoundationDataFetch.swift:183:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
181 |         }
182 |
183 |         if let mimeType = httpResponse.mimeType, mimeType == "application/json" {
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
184 |             if let data = responseData {
185 |                 do {
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:194:94: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
192 |             }
193 |         } else {
194 |             callback(.failure(.message("Unknown mime type: \(String(describing: httpResponse.mimeType))")))
    |                                                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
195 |         }
196 |     }
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:203:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
201 |         }
202 |
203 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
204 |             return (nil, .message("Expected to receive an 'HTTPURLResponse', but received '\(String(describing: type(of: response.self)))'"))
205 |         }
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:203:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
201 |         }
202 |
203 |         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.
204 |             return (nil, .message("Expected to receive an 'HTTPURLResponse', but received '\(String(describing: type(of: response.self)))'"))
205 |         }
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/CryptoScraper/Utility/FoundationDataFetch.swift:207:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
205 |         }
206 |
207 |         guard (200...299).contains(httpResponse.statusCode) else {
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
208 |             return (nil, .badStatus(httpResponse.statusCode))
209 |         }
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:208:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 |
207 |         guard (200...299).contains(httpResponse.statusCode) else {
208 |             return (nil, .badStatus(httpResponse.statusCode))
    |                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |         }
210 |
[81/128] Compiling CryptoScraper FoundationDataFetch.swift
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:26:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 | final class FoundationDataFetch {
 26 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |
 28 |     static let `default`: FoundationDataFetch = .init(urlSession: FoundationDataFetch.UrlSession())
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:155:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 |     // MARK: Initialization Methods
154 |
155 |     init(urlSession: URLSession) {
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 |         self.urlSession = urlSession
157 |     }
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:159:60: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |     }
158 |
159 |     static func UrlSession(forUserToken: String? = nil) -> URLSession {
    |                                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |         let sessionConfig = URLSessionConfiguration.default
161 |         sessionConfig.allowsCellularAccess = true
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:169:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 | private extension FoundationDataFetch {
169 |     private static func completionHandler<ResultValue: Decodable>(responseData: Data?, response: URLResponse?, error: Error?, callback: (Result<ResultValue, DataFetchError>) -> Void) {
    |                                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |         let httpResponse: HTTPURLResponse
171 |         let checkedResponse = Self.checkResponse(response: response, error: 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/CryptoScraper/Utility/FoundationDataFetch.swift:198:49: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     }
197 |
198 |     private static func checkResponse(response: URLResponse?, error: Swift.Error?) -> (HTTPURLResponse?, DataFetchError?) {
    |                                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |         if let error {
200 |             return (nil, .message(error.localizedDescription))
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/CryptoScraper/Utility/FoundationDataFetch.swift:198:88: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     }
197 |
198 |     private static func checkResponse(response: URLResponse?, error: Swift.Error?) -> (HTTPURLResponse?, DataFetchError?) {
    |                                                                                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |         if let error {
200 |             return (nil, .message(error.localizedDescription))
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/CryptoScraper/Utility/FoundationDataFetch.swift:70:26: error: cannot find 'URLRequest' in scope
 68 |         }
 69 |
 70 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
 71 |         urlRequest.httpMethod = "Get"
 72 |         urlRequest.setValue("application/json;charset=utf-8", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:84:18: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 82 |         return try await withCheckedThrowingContinuation { continuation in
 83 |             urlSession
 84 |                 .dataTask(with: urlRequest) { data, _, e in
    |                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 85 |                     var result: ResultValue?
 86 |                     var error: Error?
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:129:26: error: cannot find 'URLRequest' in scope
127 |         }
128 |
129 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
130 |         urlRequest.httpMethod = httpMethod
131 |         urlRequest.httpBody = data
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:142:14: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
140 |
141 |         urlSession
142 |             .dataTask(with: urlRequest) { data, response, error in
    |              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
143 |                 Self.completionHandler(
144 |                     responseData: data,
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:160:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
158 |
159 |     static func UrlSession(forUserToken: String? = nil) -> URLSession {
160 |         let sessionConfig = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
161 |         sessionConfig.allowsCellularAccess = true
162 |         sessionConfig.isDiscretionary = false
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:164:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
162 |         sessionConfig.isDiscretionary = false
163 |
164 |         return URLSession(configuration: sessionConfig)
    |                `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
165 |     }
166 | }
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:170:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 | private extension FoundationDataFetch {
169 |     private static func completionHandler<ResultValue: Decodable>(responseData: Data?, response: URLResponse?, error: Error?, callback: (Result<ResultValue, DataFetchError>) -> Void) {
170 |         let httpResponse: HTTPURLResponse
    |                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |         let checkedResponse = Self.checkResponse(response: response, error: error)
172 |
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/CryptoScraper/Utility/FoundationDataFetch.swift:183:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
181 |         }
182 |
183 |         if let mimeType = httpResponse.mimeType, mimeType == "application/json" {
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
184 |             if let data = responseData {
185 |                 do {
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:194:94: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
192 |             }
193 |         } else {
194 |             callback(.failure(.message("Unknown mime type: \(String(describing: httpResponse.mimeType))")))
    |                                                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
195 |         }
196 |     }
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:203:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
201 |         }
202 |
203 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
204 |             return (nil, .message("Expected to receive an 'HTTPURLResponse', but received '\(String(describing: type(of: response.self)))'"))
205 |         }
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:203:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
201 |         }
202 |
203 |         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.
204 |             return (nil, .message("Expected to receive an 'HTTPURLResponse', but received '\(String(describing: type(of: response.self)))'"))
205 |         }
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/CryptoScraper/Utility/FoundationDataFetch.swift:207:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
205 |         }
206 |
207 |         guard (200...299).contains(httpResponse.statusCode) else {
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
208 |             return (nil, .badStatus(httpResponse.statusCode))
209 |         }
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:208:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 |
207 |         guard (200...299).contains(httpResponse.statusCode) else {
208 |             return (nil, .badStatus(httpResponse.statusCode))
    |                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |         }
210 |
[82/128] Compiling CryptoScraper JSONDecoder.swift
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:26:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 | final class FoundationDataFetch {
 26 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |
 28 |     static let `default`: FoundationDataFetch = .init(urlSession: FoundationDataFetch.UrlSession())
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:155:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 |     // MARK: Initialization Methods
154 |
155 |     init(urlSession: URLSession) {
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 |         self.urlSession = urlSession
157 |     }
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:159:60: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |     }
158 |
159 |     static func UrlSession(forUserToken: String? = nil) -> URLSession {
    |                                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |         let sessionConfig = URLSessionConfiguration.default
161 |         sessionConfig.allowsCellularAccess = true
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:169:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 | private extension FoundationDataFetch {
169 |     private static func completionHandler<ResultValue: Decodable>(responseData: Data?, response: URLResponse?, error: Error?, callback: (Result<ResultValue, DataFetchError>) -> Void) {
    |                                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |         let httpResponse: HTTPURLResponse
171 |         let checkedResponse = Self.checkResponse(response: response, error: 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/CryptoScraper/Utility/FoundationDataFetch.swift:198:49: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     }
197 |
198 |     private static func checkResponse(response: URLResponse?, error: Swift.Error?) -> (HTTPURLResponse?, DataFetchError?) {
    |                                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |         if let error {
200 |             return (nil, .message(error.localizedDescription))
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/CryptoScraper/Utility/FoundationDataFetch.swift:198:88: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     }
197 |
198 |     private static func checkResponse(response: URLResponse?, error: Swift.Error?) -> (HTTPURLResponse?, DataFetchError?) {
    |                                                                                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |         if let error {
200 |             return (nil, .message(error.localizedDescription))
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/CryptoScraper/Utility/FoundationDataFetch.swift:70:26: error: cannot find 'URLRequest' in scope
 68 |         }
 69 |
 70 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
 71 |         urlRequest.httpMethod = "Get"
 72 |         urlRequest.setValue("application/json;charset=utf-8", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:84:18: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 82 |         return try await withCheckedThrowingContinuation { continuation in
 83 |             urlSession
 84 |                 .dataTask(with: urlRequest) { data, _, e in
    |                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 85 |                     var result: ResultValue?
 86 |                     var error: Error?
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:129:26: error: cannot find 'URLRequest' in scope
127 |         }
128 |
129 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
130 |         urlRequest.httpMethod = httpMethod
131 |         urlRequest.httpBody = data
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:142:14: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
140 |
141 |         urlSession
142 |             .dataTask(with: urlRequest) { data, response, error in
    |              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
143 |                 Self.completionHandler(
144 |                     responseData: data,
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:160:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
158 |
159 |     static func UrlSession(forUserToken: String? = nil) -> URLSession {
160 |         let sessionConfig = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
161 |         sessionConfig.allowsCellularAccess = true
162 |         sessionConfig.isDiscretionary = false
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:164:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
162 |         sessionConfig.isDiscretionary = false
163 |
164 |         return URLSession(configuration: sessionConfig)
    |                `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
165 |     }
166 | }
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:170:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 | private extension FoundationDataFetch {
169 |     private static func completionHandler<ResultValue: Decodable>(responseData: Data?, response: URLResponse?, error: Error?, callback: (Result<ResultValue, DataFetchError>) -> Void) {
170 |         let httpResponse: HTTPURLResponse
    |                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |         let checkedResponse = Self.checkResponse(response: response, error: error)
172 |
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/CryptoScraper/Utility/FoundationDataFetch.swift:183:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
181 |         }
182 |
183 |         if let mimeType = httpResponse.mimeType, mimeType == "application/json" {
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
184 |             if let data = responseData {
185 |                 do {
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:194:94: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
192 |             }
193 |         } else {
194 |             callback(.failure(.message("Unknown mime type: \(String(describing: httpResponse.mimeType))")))
    |                                                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
195 |         }
196 |     }
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:203:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
201 |         }
202 |
203 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
204 |             return (nil, .message("Expected to receive an 'HTTPURLResponse', but received '\(String(describing: type(of: response.self)))'"))
205 |         }
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:203:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
201 |         }
202 |
203 |         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.
204 |             return (nil, .message("Expected to receive an 'HTTPURLResponse', but received '\(String(describing: type(of: response.self)))'"))
205 |         }
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/CryptoScraper/Utility/FoundationDataFetch.swift:207:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
205 |         }
206 |
207 |         guard (200...299).contains(httpResponse.statusCode) else {
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
208 |             return (nil, .badStatus(httpResponse.statusCode))
209 |         }
/host/spi-builder-workspace/Sources/CryptoScraper/Utility/FoundationDataFetch.swift:208:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 |
207 |         guard (200...299).contains(httpResponse.statusCode) else {
208 |             return (nil, .badStatus(httpResponse.statusCode))
    |                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |         }
210 |
[83/128] Compiling CryptoScraper EthereumScanner.swift
[84/128] Compiling CryptoScraper Etherscan.swift
[85/128] Compiling CryptoScraper FTMScan.swift
[86/128] Compiling CryptoScraper FantomChain.swift
[87/128] Compiling CryptoScraper FantomContract.swift
[88/128] Compiling CryptoScraper OptimismChain.swift
[89/128] Compiling CryptoScraper OptimismContract.swift
[90/128] Compiling CryptoScraper CoinGeckoError.swift
[91/128] Compiling CryptoScraper CoinMarketCapAggregator+Coins.swift
[92/128] Compiling CryptoScraper CoinMarketCapAggregator.swift
[93/128] Compiling CryptoScraper CoinMarketCapError.swift
[94/128] Compiling CryptoScraper Exports.swift
[95/128] Compiling CryptoScraper DateFormatter.swift
[96/128] Compiling CryptoScraper BlockChainInfo.swift
[97/128] Compiling CryptoScraper BlockChains.swift
[98/128] Compiling CryptoScraper EthereumChain.swift
[99/128] Compiling CryptoScraper EthereumContract.swift
[100/128] Compiling CryptoScraper EthereumScanner+Accounts.swift
[101/128] Compiling CryptoScraper EthereumScanner+Tokens.swift
[102/128] Compiling CryptoScraper EthereumScanner+Transactions.swift
[103/128] Compiling CryptoScraper OptimisticEtherscan.swift
[104/128] Compiling CryptoScraper MaticContract.swift
[105/128] Compiling CryptoScraper PolygonChain.swift
[106/128] Compiling CryptoScraper PolygonScan.swift
[107/128] Compiling CryptoScraper TronChain.swift
[108/128] Compiling CryptoScraper TronContract.swift
[109/128] Compiling CryptoScraper TronScan+Accounts.swift
[110/128] Compiling CryptoScraper Decodable.swift
[111/128] Compiling CryptoScraper DecodingError.swift
[112/128] Compiling CryptoScraper URL.swift
[113/128] Compiling CryptoScraper CryptoAmount.swift
[114/128] Compiling CryptoScraper CryptoChain.swift
[115/128] Compiling CryptoScraper CryptoContract.swift
[116/128] Compiling CryptoScraper TronScan+Transactions.swift
[117/128] Compiling CryptoScraper TronScan.swift
[118/128] Compiling CryptoScraper CryptoScraper.swift
[119/128] Compiling CryptoScraper CoinGeckoAggregator+Availability.swift
[120/128] Compiling CryptoScraper CoinGeckoAggregator+Coins.swift
[121/128] Compiling CryptoScraper CoinGeckoAggregator.swift
[122/128] Compiling CryptoScraper BNBContract.swift
[123/128] Compiling CryptoScraper BinanceSmartChain.swift
[124/128] Compiling CryptoScraper BscScan.swift
[125/128] Compiling CryptoScraper BitcoinChain.swift
[126/128] Compiling CryptoScraper BitcoinContract.swift
[127/128] Compiling CryptoScraper BlockChainInfo+Accounts.swift
[128/128] Compiling CryptoScraper BlockChainInfo+Transactions.swift
BUILD FAILURE 6.3 wasm