Build Information
Failed to build Hover, reference 1.1.1 (288e77
), with Swift 6.0 for Linux on 3 Nov 2024 01:22:50 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:342:41: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
340 | public func downloadRequest(
341 | with target: NetworkTarget,
342 | urlSession: URLSession = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
343 | result: @escaping (Result<HTTPURLResponse, ProviderError>) -> Void
344 | ) -> URLSessionDownloadTask {
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:381:15: error: cannot find type 'URLSessionTaskDelegate' in scope
379 | jsonDecoder: JSONDecoder = .init(),
380 | class type: D.Type,
381 | delegate: URLSessionTaskDelegate? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
382 | ) async throws -> D {
383 | let urlRequest = constructURL(with: target)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:378:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
376 | public func request<D: Decodable>(
377 | with target: NetworkTarget,
378 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
379 | jsonDecoder: JSONDecoder = .init(),
380 | class type: D.Type,
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/Hover/Base/Hover.swift:378:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
376 | public func request<D: Decodable>(
377 | with target: NetworkTarget,
378 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
379 | jsonDecoder: JSONDecoder = .init(),
380 | class type: D.Type,
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:415:15: error: cannot find type 'URLSessionTaskDelegate' in scope
413 | urlSession: URLSession = .shared,
414 | jsonDecoder: JSONDecoder = .init(),
415 | delegate: URLSessionTaskDelegate? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
416 | ) async throws -> HTTPURLResponse {
417 | let urlRequest = constructURL(with: target)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:413:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
411 | public func request(
412 | with target: NetworkTarget,
413 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
414 | jsonDecoder: JSONDecoder = .init(),
415 | delegate: URLSessionTaskDelegate? = nil
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/Hover/Base/Hover.swift:416:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
414 | jsonDecoder: JSONDecoder = .init(),
415 | delegate: URLSessionTaskDelegate? = nil
416 | ) async throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
417 | let urlRequest = constructURL(with: target)
418 | do {
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/Hover/Base/Hover.swift:413:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
411 | public func request(
412 | with target: NetworkTarget,
413 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
414 | jsonDecoder: JSONDecoder = .init(),
415 | delegate: URLSessionTaskDelegate? = nil
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:447:15: error: cannot find type 'URLSessionTaskDelegate' in scope
445 | urlSession: URLSession = .shared,
446 | data: Data,
447 | delegate: URLSessionTaskDelegate? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
448 | ) async throws -> HTTPURLResponse {
449 | let urlRequest = constructURL(with: target)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:445:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
443 | public func uploadRequest(
444 | with target: NetworkTarget,
445 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
446 | data: Data,
447 | delegate: URLSessionTaskDelegate? = nil
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/Hover/Base/Hover.swift:448:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
446 | data: Data,
447 | delegate: URLSessionTaskDelegate? = nil
448 | ) async throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
449 | let urlRequest = constructURL(with: target)
450 | do {
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/Hover/Base/Hover.swift:445:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
443 | public func uploadRequest(
444 | with target: NetworkTarget,
445 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
446 | data: Data,
447 | delegate: URLSessionTaskDelegate? = nil
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:479:15: error: cannot find type 'URLSessionTaskDelegate' in scope
477 | with target: NetworkTarget,
478 | urlSession: URLSession = .shared,
479 | delegate: URLSessionTaskDelegate? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
480 | ) async throws -> URL {
481 | let urlRequest = constructURL(with: target)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:478:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
476 | public func downloadRequest(
477 | with target: NetworkTarget,
478 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
479 | delegate: URLSessionTaskDelegate? = nil
480 | ) async throws -> URL {
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/Hover/Base/Hover.swift:478:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
476 | public func downloadRequest(
477 | with target: NetworkTarget,
478 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
479 | delegate: URLSessionTaskDelegate? = nil
480 | ) async throws -> URL {
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:31:8: error: cannot find type 'AnyPublisher' in scope
29 | scheduler: T,
30 | class type: D.Type
31 | ) -> AnyPublisher<D, ProviderError> where D: Decodable, T: Scheduler
| `- error: cannot find type 'AnyPublisher' in scope
32 |
33 | /// Requests for a spesific call with `DataTaskPublisher` for non body requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:31:62: error: cannot find type 'Scheduler' in scope
29 | scheduler: T,
30 | class type: D.Type
31 | ) -> AnyPublisher<D, ProviderError> where D: Decodable, T: Scheduler
| `- error: cannot find type 'Scheduler' in scope
32 |
33 | /// Requests for a spesific call with `DataTaskPublisher` for non body requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:43:8: error: cannot find type 'AnyPublisher' in scope
41 | scheduler: T,
42 | urlSession: URLSession
43 | ) -> AnyPublisher<Response, ProviderError>
| `- error: cannot find type 'AnyPublisher' in scope
44 |
45 | /// Requests for a spesific call with `DataTaskPublisher` for with body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:39:19: error: cannot find type 'Scheduler' in scope
37 | /// - scheduler: Threading and execution time helper if you want to run it on main thread just use `Runloop.main` or `DispatchQueue.main`
38 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *)
39 | func request<T: Scheduler>(
| `- error: cannot find type 'Scheduler' in scope
40 | with target: NetworkTarget,
41 | scheduler: T,
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:61:8: error: cannot find type 'AnyPublisher' in scope
59 | scheduler: T,
60 | subscriber: S
61 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError
| `- error: cannot find type 'AnyPublisher' in scope
62 |
63 | /// Requests for a spesific call with `DataTaskPublisher` for non body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:61:48: error: cannot find type 'Subscriber' in scope
59 | scheduler: T,
60 | subscriber: S
61 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError
| `- error: cannot find type 'Subscriber' in scope
62 |
63 | /// Requests for a spesific call with `DataTaskPublisher` for non body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:61:63: error: cannot find type 'Scheduler' in scope
59 | scheduler: T,
60 | subscriber: S
61 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError
| `- error: cannot find type 'Scheduler' in scope
62 |
63 | /// Requests for a spesific call with `DataTaskPublisher` for non body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:75:8: error: cannot find type 'AnyPublisher' in scope
73 | scheduler: T,
74 | subscriber: S
75 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError
| `- error: cannot find type 'AnyPublisher' in scope
76 |
77 | // MARK: - Completion Block Requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:75:55: error: cannot find type 'Scheduler' in scope
73 | scheduler: T,
74 | subscriber: S
75 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError
| `- error: cannot find type 'Scheduler' in scope
76 |
77 | // MARK: - Completion Block Requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:75:69: error: cannot find type 'Subscriber' in scope
73 | scheduler: T,
74 | subscriber: S
75 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError
| `- error: cannot find type 'Subscriber' in scope
76 |
77 | // MARK: - Completion Block Requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:139:15: error: cannot find type 'URLSessionTaskDelegate' in scope
137 | jsonDecoder: JSONDecoder,
138 | class type: D.Type,
139 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
140 | ) async throws -> D
141 |
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:147:15: error: cannot find type 'URLSessionTaskDelegate' in scope
145 | urlSession: URLSession,
146 | jsonDecoder: JSONDecoder,
147 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
148 | ) async throws -> HTTPURLResponse
149 |
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:154:15: error: cannot find type 'URLSessionTaskDelegate' in scope
152 | with target: NetworkTarget,
153 | urlSession: URLSession,
154 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
155 | ) async throws -> URL
156 | }
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:511:52: error: cannot find type 'URLRequest' in scope
509 | private extension Hover {
510 |
511 | func constructURL(with target: NetworkTarget) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
512 | switch target.methodType {
513 | case .get:
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:526:57: error: cannot find type 'URLRequest' in scope
524 | }
525 |
526 | func prepareGetRequest(with target: NetworkTarget) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
527 | let url = target.pathAppendedURL
528 | switch target.workType {
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:550:61: error: cannot find type 'URLRequest' in scope
548 | }
549 |
550 | func prepareGeneralRequest(with target: NetworkTarget) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
551 | let url = target.pathAppendedURL
552 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:572:60: error: cannot find type 'URLRequest' in scope
570 | }
571 |
572 | func prepareDeleteRequest(with target: NetworkTarget) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
573 | let url = target.pathAppendedURL
574 | switch target.workType {
/host/spi-builder-workspace/Sources/Hover/Base/HoverEnvironment.swift:21:46: error: cannot find type 'URLRequest' in scope
19 |
20 | public var jsonSerializationData: (Any, JSONSerialization.WritingOptions) throws -> Data
21 | public var printDebugDescriptionIfNeeded: (URLRequest, Error?) -> Void
| `- error: cannot find type 'URLRequest' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:132:39: error: 'DataTaskPublisher' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
130 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
131 | let publisher = urlSession.dataTaskPublisher(for: urlRequest)
132 | .tryCatch { error -> URLSession.DataTaskPublisher in
| `- error: 'DataTaskPublisher' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
133 | guard error.networkUnavailableReason == .constrained else {
134 | let error = ProviderError.connectionError(error)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:131:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTaskPublisher'
129 | let urlRequest = constructURL(with: target)
130 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
131 | let publisher = urlSession.dataTaskPublisher(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTaskPublisher'
132 | .tryCatch { error -> URLSession.DataTaskPublisher in
133 | guard error.networkUnavailableReason == .constrained else {
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:133:50: error: cannot infer contextual base in reference to member 'constrained'
131 | let publisher = urlSession.dataTaskPublisher(for: urlRequest)
132 | .tryCatch { error -> URLSession.DataTaskPublisher in
133 | guard error.networkUnavailableReason == .constrained else {
| `- error: cannot infer contextual base in reference to member 'constrained'
134 | let error = ProviderError.connectionError(error)
135 | printDebugDescriptionIfNeeded(urlRequest, error)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:178:39: error: 'DataTaskPublisher' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
176 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
177 | let publisher = urlSession.dataTaskPublisher(for: urlRequest)
178 | .tryCatch { error -> URLSession.DataTaskPublisher in
| `- error: 'DataTaskPublisher' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
179 | guard error.networkUnavailableReason == .constrained else {
180 | let error = ProviderError.connectionError(error)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:177:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTaskPublisher'
175 | let urlRequest = constructURL(with: target)
176 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
177 | let publisher = urlSession.dataTaskPublisher(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTaskPublisher'
178 | .tryCatch { error -> URLSession.DataTaskPublisher in
179 | guard error.networkUnavailableReason == .constrained else {
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:179:50: error: cannot infer contextual base in reference to member 'constrained'
177 | let publisher = urlSession.dataTaskPublisher(for: urlRequest)
178 | .tryCatch { error -> URLSession.DataTaskPublisher in
179 | guard error.networkUnavailableReason == .constrained else {
| `- error: cannot infer contextual base in reference to member 'constrained'
180 | let error = ProviderError.connectionError(error)
181 | printDebugDescriptionIfNeeded(urlRequest, error)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:227:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
225 | let urlRequest = constructURL(with: target)
226 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
227 | let task = urlSession.dataTask(with: urlRequest) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
228 | guard error == nil else {
229 | let error = ProviderError.connectionError(error!)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:272:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
270 | let urlRequest = constructURL(with: target)
271 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
272 | let task = urlSession.dataTask(with: urlRequest) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
273 | guard error == nil else {
274 | let error = ProviderError.connectionError(error!)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:313:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
311 | let urlRequest = constructURL(with: target)
312 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
313 | let task = urlSession.uploadTask(with: urlRequest, from: data) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
314 | guard error == nil else {
315 | let error = ProviderError.underlying(error!)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:347:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
345 | let urlRequest = constructURL(with: target)
346 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
347 | let task = urlSession.downloadTask(with: urlRequest) { _, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
348 | guard error == nil else {
349 | let error = ProviderError.underlying(error!)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:386:10: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
384 | do {
385 | let (data, urlResponse) = try await urlSession
386 | .data(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
387 | for: urlRequest,
388 | delegate: delegate
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:420:10: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
418 | do {
419 | let (_, urlResponse) = try await urlSession
420 | .data(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
421 | for: urlRequest,
422 | delegate: delegate
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:452:10: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
450 | do {
451 | let (_, urlResponse) = try await urlSession
452 | .upload(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
453 | for: urlRequest,
454 | from: data,
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:484:10: error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
482 | do {
483 | let (localURL, urlResponse) = try await urlSession
484 | .download(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
485 | for: urlRequest,
486 | delegate: delegate
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:533:29: error: cannot find 'URLRequest' in scope
531 | contentType == .urlFormEncoded else {
532 | let url = url.generateUrlWithQuery(with: parameters)
533 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
534 | request.prepareRequest(with: target)
535 | return request
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:537:21: error: cannot find 'URLRequest' in scope
535 | return request
536 | }
537 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
538 | request.httpBody = contentType.prepareContentBody(
539 | parameters: parameters,
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:544:21: error: cannot find 'URLRequest' in scope
542 | return request
543 | default:
544 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
545 | request.prepareRequest(with: target)
546 | return request
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:552:19: error: cannot find 'URLRequest' in scope
550 | func prepareGeneralRequest(with target: NetworkTarget) -> URLRequest {
551 | let url = target.pathAppendedURL
552 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
553 | request.prepareRequest(with: target)
554 | switch target.workType {
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:576:21: error: cannot find 'URLRequest' in scope
574 | switch target.workType {
575 | case let .requestParameters(parameters):
576 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
577 | request.prepareRequest(with: target)
578 | request.httpBody = target.contentType?.prepareContentBody(
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:584:21: error: cannot find 'URLRequest' in scope
582 | return request
583 | case .requestData(let data):
584 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
585 | request.prepareRequest(with: target)
586 | request.httpBody = data
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:589:21: error: cannot find 'URLRequest' in scope
587 | return request
588 | case let .requestWithEncodable(encodable, encoder):
589 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
590 | request.prepareRequest(with: target)
591 | request.httpBody = try? encoder.encode(encodable)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:594:21: error: cannot find 'URLRequest' in scope
592 | return request
593 | default:
594 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
595 | request.httpMethod = target.methodType.methodName
596 | return request
[4/17] Compiling Hover HoverEnvironment.swift
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:18:21: warning: static property 'prefference' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | // MARK: Public Variables
17 |
18 | public static var prefference = Prefference()
| |- warning: static property 'prefference' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'prefference' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'prefference' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | public let environment: HoverEnvironment
/host/spi-builder-workspace/Sources/Hover/Base/HoverEnvironment.swift:14:47: error: cannot find type 'URLRequest' in scope
12 | public init(
13 | jsonSerializationData: @escaping (Any, JSONSerialization.WritingOptions) throws -> Data = JSONSerialization.data(withJSONObject:options:),
14 | printDebugDescriptionIfNeeded: @escaping (URLRequest, Error?) -> Void = HoverDebugger.printDebugDescriptionIfNeeded(from:error:))
| `- error: cannot find type 'URLRequest' in scope
15 | {
16 | self.jsonSerializationData = jsonSerializationData
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:40:8: error: cannot find type 'AnyPublisher' in scope
38 | scheduler: T,
39 | class type: D.Type
40 | ) -> AnyPublisher<D, ProviderError> where D: Decodable, T: Scheduler {
| `- error: cannot find type 'AnyPublisher' in scope
41 | let urlRequest = constructURL(with: target)
42 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:40:62: error: cannot find type 'Scheduler' in scope
38 | scheduler: T,
39 | class type: D.Type
40 | ) -> AnyPublisher<D, ProviderError> where D: Decodable, T: Scheduler {
| `- error: cannot find type 'Scheduler' in scope
41 | let urlRequest = constructURL(with: target)
42 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:36:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | public func request<D, T>(
35 | with target: NetworkTarget,
36 | urlSession: URLSession = URLSession.shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | jsonDecoder: JSONDecoder = .init(),
38 | scheduler: T,
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/Hover/Base/Hover.swift:36:41: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
34 | public func request<D, T>(
35 | with target: NetworkTarget,
36 | urlSession: URLSession = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
37 | jsonDecoder: JSONDecoder = .init(),
38 | scheduler: T,
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:82:8: error: cannot find type 'AnyPublisher' in scope
80 | scheduler: T,
81 | urlSession: URLSession = .shared
82 | ) -> AnyPublisher<Response, ProviderError> {
| `- error: cannot find type 'AnyPublisher' in scope
83 | let urlRequest = constructURL(with: target)
84 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:78:26: error: cannot find type 'Scheduler' in scope
76 |
77 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *)
78 | public func request<T: Scheduler>(
| `- error: cannot find type 'Scheduler' in scope
79 | with target: NetworkTarget,
80 | scheduler: T,
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:81:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | with target: NetworkTarget,
80 | scheduler: T,
81 | urlSession: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 | ) -> AnyPublisher<Response, ProviderError> {
83 | let urlRequest = constructURL(with: target)
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/Hover/Base/Hover.swift:81:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
79 | with target: NetworkTarget,
80 | scheduler: T,
81 | urlSession: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
82 | ) -> AnyPublisher<Response, ProviderError> {
83 | let urlRequest = constructURL(with: target)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:128:8: error: cannot find type 'AnyPublisher' in scope
126 | scheduler: T,
127 | subscriber: S
128 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError {
| `- error: cannot find type 'AnyPublisher' in scope
129 | let urlRequest = constructURL(with: target)
130 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:128:48: error: cannot find type 'Subscriber' in scope
126 | scheduler: T,
127 | subscriber: S
128 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError {
| `- error: cannot find type 'Subscriber' in scope
129 | let urlRequest = constructURL(with: target)
130 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:128:63: error: cannot find type 'Scheduler' in scope
126 | scheduler: T,
127 | subscriber: S
128 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError {
| `- error: cannot find type 'Scheduler' in scope
129 | let urlRequest = constructURL(with: target)
130 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:128:90: error: 'Input' is not a member type of type 'S'
126 | scheduler: T,
127 | subscriber: S
128 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError {
| `- error: 'Input' is not a member type of type 'S'
129 | let urlRequest = constructURL(with: target)
130 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:128:104: error: 'Failure' is not a member type of type 'S'
126 | scheduler: T,
127 | subscriber: S
128 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError {
| `- error: 'Failure' is not a member type of type 'S'
129 | let urlRequest = constructURL(with: target)
130 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:124:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 | with target: NetworkTarget,
123 | class type: D.Type,
124 | urlSession: URLSession = URLSession.shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | jsonDecoder: JSONDecoder = .init(),
126 | scheduler: T,
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/Hover/Base/Hover.swift:124:41: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
122 | with target: NetworkTarget,
123 | class type: D.Type,
124 | urlSession: URLSession = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
125 | jsonDecoder: JSONDecoder = .init(),
126 | scheduler: T,
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:174:8: error: cannot find type 'AnyPublisher' in scope
172 | scheduler: T,
173 | subscriber: S
174 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError {
| `- error: cannot find type 'AnyPublisher' in scope
175 | let urlRequest = constructURL(with: target)
176 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:174:55: error: cannot find type 'Scheduler' in scope
172 | scheduler: T,
173 | subscriber: S
174 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError {
| `- error: cannot find type 'Scheduler' in scope
175 | let urlRequest = constructURL(with: target)
176 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:174:69: error: cannot find type 'Subscriber' in scope
172 | scheduler: T,
173 | subscriber: S
174 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError {
| `- error: cannot find type 'Subscriber' in scope
175 | let urlRequest = constructURL(with: target)
176 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:174:83: error: 'Input' is not a member type of type 'S'
172 | scheduler: T,
173 | subscriber: S
174 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError {
| `- error: 'Input' is not a member type of type 'S'
175 | let urlRequest = constructURL(with: target)
176 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:174:104: error: 'Failure' is not a member type of type 'S'
172 | scheduler: T,
173 | subscriber: S
174 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError {
| `- error: 'Failure' is not a member type of type 'S'
175 | let urlRequest = constructURL(with: target)
176 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:171:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 | public func request<S, T>(
170 | with target: NetworkTarget,
171 | urlSession: URLSession = URLSession.shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 | scheduler: T,
173 | subscriber: S
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/Hover/Base/Hover.swift:171:41: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
169 | public func request<S, T>(
170 | with target: NetworkTarget,
171 | urlSession: URLSession = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
172 | scheduler: T,
173 | subscriber: S
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:220:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 | public func request<D: Decodable>(
219 | with target: NetworkTarget,
220 | urlSession: URLSession = URLSession.shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
221 | jsonDecoder: JSONDecoder = .init(),
222 | class type: D.Type,
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/Hover/Base/Hover.swift:224:8: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 | class type: D.Type,
223 | result: @escaping (Result<D, ProviderError>) -> Void
224 | ) -> URLSessionTask {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 | let urlRequest = constructURL(with: target)
226 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:220:41: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
218 | public func request<D: Decodable>(
219 | with target: NetworkTarget,
220 | urlSession: URLSession = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
221 | jsonDecoder: JSONDecoder = .init(),
222 | class type: D.Type,
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:267:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
265 | public func request(
266 | with target: NetworkTarget,
267 | urlSession: URLSession = URLSession.shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
268 | result: @escaping VoidResultCompletion
269 | ) -> URLSessionTask {
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/Hover/Base/Hover.swift:269:8: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
267 | urlSession: URLSession = URLSession.shared,
268 | result: @escaping VoidResultCompletion
269 | ) -> URLSessionTask {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
270 | let urlRequest = constructURL(with: target)
271 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:267:41: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
265 | public func request(
266 | with target: NetworkTarget,
267 | urlSession: URLSession = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
268 | result: @escaping VoidResultCompletion
269 | ) -> URLSessionTask {
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:307:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
305 | public func uploadRequest(
306 | with target: NetworkTarget,
307 | urlSession: URLSession = URLSession.shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 | data: Data,
309 | result: @escaping (Result<(HTTPURLResponse, Data?), ProviderError>) -> Void
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/Hover/Base/Hover.swift:309:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
307 | urlSession: URLSession = URLSession.shared,
308 | data: Data,
309 | result: @escaping (Result<(HTTPURLResponse, Data?), ProviderError>) -> Void
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
310 | ) -> URLSessionUploadTask {
311 | let urlRequest = constructURL(with: target)
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/Hover/Base/Hover.swift:310:8: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 | data: Data,
309 | result: @escaping (Result<(HTTPURLResponse, Data?), ProviderError>) -> Void
310 | ) -> URLSessionUploadTask {
| `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
311 | let urlRequest = constructURL(with: target)
312 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' 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 URLSessionUploadTask = AnyObject
| `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:307:41: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
305 | public func uploadRequest(
306 | with target: NetworkTarget,
307 | urlSession: URLSession = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
308 | data: Data,
309 | result: @escaping (Result<(HTTPURLResponse, Data?), ProviderError>) -> Void
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:342:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
340 | public func downloadRequest(
341 | with target: NetworkTarget,
342 | urlSession: URLSession = URLSession.shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
343 | result: @escaping (Result<HTTPURLResponse, ProviderError>) -> Void
344 | ) -> URLSessionDownloadTask {
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/Hover/Base/Hover.swift:343:31: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 | with target: NetworkTarget,
342 | urlSession: URLSession = URLSession.shared,
343 | result: @escaping (Result<HTTPURLResponse, ProviderError>) -> Void
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
344 | ) -> URLSessionDownloadTask {
345 | let urlRequest = constructURL(with: target)
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/Hover/Base/Hover.swift:344:8: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 | urlSession: URLSession = URLSession.shared,
343 | result: @escaping (Result<HTTPURLResponse, ProviderError>) -> Void
344 | ) -> URLSessionDownloadTask {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
345 | let urlRequest = constructURL(with: target)
346 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:342:41: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
340 | public func downloadRequest(
341 | with target: NetworkTarget,
342 | urlSession: URLSession = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
343 | result: @escaping (Result<HTTPURLResponse, ProviderError>) -> Void
344 | ) -> URLSessionDownloadTask {
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:381:15: error: cannot find type 'URLSessionTaskDelegate' in scope
379 | jsonDecoder: JSONDecoder = .init(),
380 | class type: D.Type,
381 | delegate: URLSessionTaskDelegate? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
382 | ) async throws -> D {
383 | let urlRequest = constructURL(with: target)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:378:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
376 | public func request<D: Decodable>(
377 | with target: NetworkTarget,
378 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
379 | jsonDecoder: JSONDecoder = .init(),
380 | class type: D.Type,
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/Hover/Base/Hover.swift:378:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
376 | public func request<D: Decodable>(
377 | with target: NetworkTarget,
378 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
379 | jsonDecoder: JSONDecoder = .init(),
380 | class type: D.Type,
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:415:15: error: cannot find type 'URLSessionTaskDelegate' in scope
413 | urlSession: URLSession = .shared,
414 | jsonDecoder: JSONDecoder = .init(),
415 | delegate: URLSessionTaskDelegate? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
416 | ) async throws -> HTTPURLResponse {
417 | let urlRequest = constructURL(with: target)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:413:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
411 | public func request(
412 | with target: NetworkTarget,
413 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
414 | jsonDecoder: JSONDecoder = .init(),
415 | delegate: URLSessionTaskDelegate? = nil
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/Hover/Base/Hover.swift:416:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
414 | jsonDecoder: JSONDecoder = .init(),
415 | delegate: URLSessionTaskDelegate? = nil
416 | ) async throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
417 | let urlRequest = constructURL(with: target)
418 | do {
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/Hover/Base/Hover.swift:413:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
411 | public func request(
412 | with target: NetworkTarget,
413 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
414 | jsonDecoder: JSONDecoder = .init(),
415 | delegate: URLSessionTaskDelegate? = nil
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:447:15: error: cannot find type 'URLSessionTaskDelegate' in scope
445 | urlSession: URLSession = .shared,
446 | data: Data,
447 | delegate: URLSessionTaskDelegate? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
448 | ) async throws -> HTTPURLResponse {
449 | let urlRequest = constructURL(with: target)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:445:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
443 | public func uploadRequest(
444 | with target: NetworkTarget,
445 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
446 | data: Data,
447 | delegate: URLSessionTaskDelegate? = nil
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/Hover/Base/Hover.swift:448:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
446 | data: Data,
447 | delegate: URLSessionTaskDelegate? = nil
448 | ) async throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
449 | let urlRequest = constructURL(with: target)
450 | do {
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/Hover/Base/Hover.swift:445:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
443 | public func uploadRequest(
444 | with target: NetworkTarget,
445 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
446 | data: Data,
447 | delegate: URLSessionTaskDelegate? = nil
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:479:15: error: cannot find type 'URLSessionTaskDelegate' in scope
477 | with target: NetworkTarget,
478 | urlSession: URLSession = .shared,
479 | delegate: URLSessionTaskDelegate? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
480 | ) async throws -> URL {
481 | let urlRequest = constructURL(with: target)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:478:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
476 | public func downloadRequest(
477 | with target: NetworkTarget,
478 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
479 | delegate: URLSessionTaskDelegate? = nil
480 | ) async throws -> URL {
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/Hover/Base/Hover.swift:478:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
476 | public func downloadRequest(
477 | with target: NetworkTarget,
478 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
479 | delegate: URLSessionTaskDelegate? = nil
480 | ) async throws -> URL {
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:31:8: error: cannot find type 'AnyPublisher' in scope
29 | scheduler: T,
30 | class type: D.Type
31 | ) -> AnyPublisher<D, ProviderError> where D: Decodable, T: Scheduler
| `- error: cannot find type 'AnyPublisher' in scope
32 |
33 | /// Requests for a spesific call with `DataTaskPublisher` for non body requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:31:62: error: cannot find type 'Scheduler' in scope
29 | scheduler: T,
30 | class type: D.Type
31 | ) -> AnyPublisher<D, ProviderError> where D: Decodable, T: Scheduler
| `- error: cannot find type 'Scheduler' in scope
32 |
33 | /// Requests for a spesific call with `DataTaskPublisher` for non body requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:43:8: error: cannot find type 'AnyPublisher' in scope
41 | scheduler: T,
42 | urlSession: URLSession
43 | ) -> AnyPublisher<Response, ProviderError>
| `- error: cannot find type 'AnyPublisher' in scope
44 |
45 | /// Requests for a spesific call with `DataTaskPublisher` for with body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:39:19: error: cannot find type 'Scheduler' in scope
37 | /// - scheduler: Threading and execution time helper if you want to run it on main thread just use `Runloop.main` or `DispatchQueue.main`
38 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *)
39 | func request<T: Scheduler>(
| `- error: cannot find type 'Scheduler' in scope
40 | with target: NetworkTarget,
41 | scheduler: T,
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:61:8: error: cannot find type 'AnyPublisher' in scope
59 | scheduler: T,
60 | subscriber: S
61 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError
| `- error: cannot find type 'AnyPublisher' in scope
62 |
63 | /// Requests for a spesific call with `DataTaskPublisher` for non body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:61:48: error: cannot find type 'Subscriber' in scope
59 | scheduler: T,
60 | subscriber: S
61 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError
| `- error: cannot find type 'Subscriber' in scope
62 |
63 | /// Requests for a spesific call with `DataTaskPublisher` for non body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:61:63: error: cannot find type 'Scheduler' in scope
59 | scheduler: T,
60 | subscriber: S
61 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError
| `- error: cannot find type 'Scheduler' in scope
62 |
63 | /// Requests for a spesific call with `DataTaskPublisher` for non body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:75:8: error: cannot find type 'AnyPublisher' in scope
73 | scheduler: T,
74 | subscriber: S
75 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError
| `- error: cannot find type 'AnyPublisher' in scope
76 |
77 | // MARK: - Completion Block Requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:75:55: error: cannot find type 'Scheduler' in scope
73 | scheduler: T,
74 | subscriber: S
75 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError
| `- error: cannot find type 'Scheduler' in scope
76 |
77 | // MARK: - Completion Block Requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:75:69: error: cannot find type 'Subscriber' in scope
73 | scheduler: T,
74 | subscriber: S
75 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError
| `- error: cannot find type 'Subscriber' in scope
76 |
77 | // MARK: - Completion Block Requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:139:15: error: cannot find type 'URLSessionTaskDelegate' in scope
137 | jsonDecoder: JSONDecoder,
138 | class type: D.Type,
139 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
140 | ) async throws -> D
141 |
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:147:15: error: cannot find type 'URLSessionTaskDelegate' in scope
145 | urlSession: URLSession,
146 | jsonDecoder: JSONDecoder,
147 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
148 | ) async throws -> HTTPURLResponse
149 |
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:154:15: error: cannot find type 'URLSessionTaskDelegate' in scope
152 | with target: NetworkTarget,
153 | urlSession: URLSession,
154 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
155 | ) async throws -> URL
156 | }
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:511:52: error: cannot find type 'URLRequest' in scope
509 | private extension Hover {
510 |
511 | func constructURL(with target: NetworkTarget) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
512 | switch target.methodType {
513 | case .get:
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:526:57: error: cannot find type 'URLRequest' in scope
524 | }
525 |
526 | func prepareGetRequest(with target: NetworkTarget) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
527 | let url = target.pathAppendedURL
528 | switch target.workType {
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:550:61: error: cannot find type 'URLRequest' in scope
548 | }
549 |
550 | func prepareGeneralRequest(with target: NetworkTarget) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
551 | let url = target.pathAppendedURL
552 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:572:60: error: cannot find type 'URLRequest' in scope
570 | }
571 |
572 | func prepareDeleteRequest(with target: NetworkTarget) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
573 | let url = target.pathAppendedURL
574 | switch target.workType {
/host/spi-builder-workspace/Sources/Hover/Base/HoverEnvironment.swift:21:46: error: cannot find type 'URLRequest' in scope
19 |
20 | public var jsonSerializationData: (Any, JSONSerialization.WritingOptions) throws -> Data
21 | public var printDebugDescriptionIfNeeded: (URLRequest, Error?) -> Void
| `- error: cannot find type 'URLRequest' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:132:39: error: 'DataTaskPublisher' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
130 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
131 | let publisher = urlSession.dataTaskPublisher(for: urlRequest)
132 | .tryCatch { error -> URLSession.DataTaskPublisher in
| `- error: 'DataTaskPublisher' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
133 | guard error.networkUnavailableReason == .constrained else {
134 | let error = ProviderError.connectionError(error)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:131:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTaskPublisher'
129 | let urlRequest = constructURL(with: target)
130 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
131 | let publisher = urlSession.dataTaskPublisher(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTaskPublisher'
132 | .tryCatch { error -> URLSession.DataTaskPublisher in
133 | guard error.networkUnavailableReason == .constrained else {
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:133:50: error: cannot infer contextual base in reference to member 'constrained'
131 | let publisher = urlSession.dataTaskPublisher(for: urlRequest)
132 | .tryCatch { error -> URLSession.DataTaskPublisher in
133 | guard error.networkUnavailableReason == .constrained else {
| `- error: cannot infer contextual base in reference to member 'constrained'
134 | let error = ProviderError.connectionError(error)
135 | printDebugDescriptionIfNeeded(urlRequest, error)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:178:39: error: 'DataTaskPublisher' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
176 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
177 | let publisher = urlSession.dataTaskPublisher(for: urlRequest)
178 | .tryCatch { error -> URLSession.DataTaskPublisher in
| `- error: 'DataTaskPublisher' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
179 | guard error.networkUnavailableReason == .constrained else {
180 | let error = ProviderError.connectionError(error)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:177:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTaskPublisher'
175 | let urlRequest = constructURL(with: target)
176 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
177 | let publisher = urlSession.dataTaskPublisher(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTaskPublisher'
178 | .tryCatch { error -> URLSession.DataTaskPublisher in
179 | guard error.networkUnavailableReason == .constrained else {
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:179:50: error: cannot infer contextual base in reference to member 'constrained'
177 | let publisher = urlSession.dataTaskPublisher(for: urlRequest)
178 | .tryCatch { error -> URLSession.DataTaskPublisher in
179 | guard error.networkUnavailableReason == .constrained else {
| `- error: cannot infer contextual base in reference to member 'constrained'
180 | let error = ProviderError.connectionError(error)
181 | printDebugDescriptionIfNeeded(urlRequest, error)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:227:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
225 | let urlRequest = constructURL(with: target)
226 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
227 | let task = urlSession.dataTask(with: urlRequest) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
228 | guard error == nil else {
229 | let error = ProviderError.connectionError(error!)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:272:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
270 | let urlRequest = constructURL(with: target)
271 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
272 | let task = urlSession.dataTask(with: urlRequest) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
273 | guard error == nil else {
274 | let error = ProviderError.connectionError(error!)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:313:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
311 | let urlRequest = constructURL(with: target)
312 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
313 | let task = urlSession.uploadTask(with: urlRequest, from: data) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
314 | guard error == nil else {
315 | let error = ProviderError.underlying(error!)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:347:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
345 | let urlRequest = constructURL(with: target)
346 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
347 | let task = urlSession.downloadTask(with: urlRequest) { _, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
348 | guard error == nil else {
349 | let error = ProviderError.underlying(error!)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:386:10: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
384 | do {
385 | let (data, urlResponse) = try await urlSession
386 | .data(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
387 | for: urlRequest,
388 | delegate: delegate
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:420:10: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
418 | do {
419 | let (_, urlResponse) = try await urlSession
420 | .data(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
421 | for: urlRequest,
422 | delegate: delegate
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:452:10: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
450 | do {
451 | let (_, urlResponse) = try await urlSession
452 | .upload(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
453 | for: urlRequest,
454 | from: data,
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:484:10: error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
482 | do {
483 | let (localURL, urlResponse) = try await urlSession
484 | .download(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
485 | for: urlRequest,
486 | delegate: delegate
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:533:29: error: cannot find 'URLRequest' in scope
531 | contentType == .urlFormEncoded else {
532 | let url = url.generateUrlWithQuery(with: parameters)
533 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
534 | request.prepareRequest(with: target)
535 | return request
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:537:21: error: cannot find 'URLRequest' in scope
535 | return request
536 | }
537 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
538 | request.httpBody = contentType.prepareContentBody(
539 | parameters: parameters,
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:544:21: error: cannot find 'URLRequest' in scope
542 | return request
543 | default:
544 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
545 | request.prepareRequest(with: target)
546 | return request
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:552:19: error: cannot find 'URLRequest' in scope
550 | func prepareGeneralRequest(with target: NetworkTarget) -> URLRequest {
551 | let url = target.pathAppendedURL
552 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
553 | request.prepareRequest(with: target)
554 | switch target.workType {
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:576:21: error: cannot find 'URLRequest' in scope
574 | switch target.workType {
575 | case let .requestParameters(parameters):
576 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
577 | request.prepareRequest(with: target)
578 | request.httpBody = target.contentType?.prepareContentBody(
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:584:21: error: cannot find 'URLRequest' in scope
582 | return request
583 | case .requestData(let data):
584 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
585 | request.prepareRequest(with: target)
586 | request.httpBody = data
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:589:21: error: cannot find 'URLRequest' in scope
587 | return request
588 | case let .requestWithEncodable(encodable, encoder):
589 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
590 | request.prepareRequest(with: target)
591 | request.httpBody = try? encoder.encode(encodable)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:594:21: error: cannot find 'URLRequest' in scope
592 | return request
593 | default:
594 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
595 | request.httpMethod = target.methodType.methodName
596 | return request
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/17] Emitting module Hover
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:18:21: warning: static property 'prefference' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | // MARK: Public Variables
17 |
18 | public static var prefference = Prefference()
| |- warning: static property 'prefference' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'prefference' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'prefference' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | public let environment: HoverEnvironment
/host/spi-builder-workspace/Sources/Hover/Base/HoverEnvironment.swift:14:47: error: cannot find type 'URLRequest' in scope
12 | public init(
13 | jsonSerializationData: @escaping (Any, JSONSerialization.WritingOptions) throws -> Data = JSONSerialization.data(withJSONObject:options:),
14 | printDebugDescriptionIfNeeded: @escaping (URLRequest, Error?) -> Void = HoverDebugger.printDebugDescriptionIfNeeded(from:error:))
| `- error: cannot find type 'URLRequest' in scope
15 | {
16 | self.jsonSerializationData = jsonSerializationData
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:40:8: error: cannot find type 'AnyPublisher' in scope
38 | scheduler: T,
39 | class type: D.Type
40 | ) -> AnyPublisher<D, ProviderError> where D: Decodable, T: Scheduler {
| `- error: cannot find type 'AnyPublisher' in scope
41 | let urlRequest = constructURL(with: target)
42 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:40:62: error: cannot find type 'Scheduler' in scope
38 | scheduler: T,
39 | class type: D.Type
40 | ) -> AnyPublisher<D, ProviderError> where D: Decodable, T: Scheduler {
| `- error: cannot find type 'Scheduler' in scope
41 | let urlRequest = constructURL(with: target)
42 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:36:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | public func request<D, T>(
35 | with target: NetworkTarget,
36 | urlSession: URLSession = URLSession.shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | jsonDecoder: JSONDecoder = .init(),
38 | scheduler: T,
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/Hover/Base/Hover.swift:36:41: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
34 | public func request<D, T>(
35 | with target: NetworkTarget,
36 | urlSession: URLSession = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
37 | jsonDecoder: JSONDecoder = .init(),
38 | scheduler: T,
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:82:8: error: cannot find type 'AnyPublisher' in scope
80 | scheduler: T,
81 | urlSession: URLSession = .shared
82 | ) -> AnyPublisher<Response, ProviderError> {
| `- error: cannot find type 'AnyPublisher' in scope
83 | let urlRequest = constructURL(with: target)
84 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:78:26: error: cannot find type 'Scheduler' in scope
76 |
77 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *)
78 | public func request<T: Scheduler>(
| `- error: cannot find type 'Scheduler' in scope
79 | with target: NetworkTarget,
80 | scheduler: T,
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:81:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | with target: NetworkTarget,
80 | scheduler: T,
81 | urlSession: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 | ) -> AnyPublisher<Response, ProviderError> {
83 | let urlRequest = constructURL(with: target)
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/Hover/Base/Hover.swift:81:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
79 | with target: NetworkTarget,
80 | scheduler: T,
81 | urlSession: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
82 | ) -> AnyPublisher<Response, ProviderError> {
83 | let urlRequest = constructURL(with: target)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:128:8: error: cannot find type 'AnyPublisher' in scope
126 | scheduler: T,
127 | subscriber: S
128 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError {
| `- error: cannot find type 'AnyPublisher' in scope
129 | let urlRequest = constructURL(with: target)
130 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:128:48: error: cannot find type 'Subscriber' in scope
126 | scheduler: T,
127 | subscriber: S
128 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError {
| `- error: cannot find type 'Subscriber' in scope
129 | let urlRequest = constructURL(with: target)
130 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:128:63: error: cannot find type 'Scheduler' in scope
126 | scheduler: T,
127 | subscriber: S
128 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError {
| `- error: cannot find type 'Scheduler' in scope
129 | let urlRequest = constructURL(with: target)
130 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:128:90: error: 'Input' is not a member type of type 'S'
126 | scheduler: T,
127 | subscriber: S
128 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError {
| `- error: 'Input' is not a member type of type 'S'
129 | let urlRequest = constructURL(with: target)
130 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:128:104: error: 'Failure' is not a member type of type 'S'
126 | scheduler: T,
127 | subscriber: S
128 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError {
| `- error: 'Failure' is not a member type of type 'S'
129 | let urlRequest = constructURL(with: target)
130 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:124:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 | with target: NetworkTarget,
123 | class type: D.Type,
124 | urlSession: URLSession = URLSession.shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | jsonDecoder: JSONDecoder = .init(),
126 | scheduler: T,
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/Hover/Base/Hover.swift:124:41: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
122 | with target: NetworkTarget,
123 | class type: D.Type,
124 | urlSession: URLSession = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
125 | jsonDecoder: JSONDecoder = .init(),
126 | scheduler: T,
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:174:8: error: cannot find type 'AnyPublisher' in scope
172 | scheduler: T,
173 | subscriber: S
174 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError {
| `- error: cannot find type 'AnyPublisher' in scope
175 | let urlRequest = constructURL(with: target)
176 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:174:55: error: cannot find type 'Scheduler' in scope
172 | scheduler: T,
173 | subscriber: S
174 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError {
| `- error: cannot find type 'Scheduler' in scope
175 | let urlRequest = constructURL(with: target)
176 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:174:69: error: cannot find type 'Subscriber' in scope
172 | scheduler: T,
173 | subscriber: S
174 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError {
| `- error: cannot find type 'Subscriber' in scope
175 | let urlRequest = constructURL(with: target)
176 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:174:83: error: 'Input' is not a member type of type 'S'
172 | scheduler: T,
173 | subscriber: S
174 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError {
| `- error: 'Input' is not a member type of type 'S'
175 | let urlRequest = constructURL(with: target)
176 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:174:104: error: 'Failure' is not a member type of type 'S'
172 | scheduler: T,
173 | subscriber: S
174 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError {
| `- error: 'Failure' is not a member type of type 'S'
175 | let urlRequest = constructURL(with: target)
176 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:171:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 | public func request<S, T>(
170 | with target: NetworkTarget,
171 | urlSession: URLSession = URLSession.shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 | scheduler: T,
173 | subscriber: S
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/Hover/Base/Hover.swift:171:41: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
169 | public func request<S, T>(
170 | with target: NetworkTarget,
171 | urlSession: URLSession = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
172 | scheduler: T,
173 | subscriber: S
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:220:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 | public func request<D: Decodable>(
219 | with target: NetworkTarget,
220 | urlSession: URLSession = URLSession.shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
221 | jsonDecoder: JSONDecoder = .init(),
222 | class type: D.Type,
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/Hover/Base/Hover.swift:224:8: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 | class type: D.Type,
223 | result: @escaping (Result<D, ProviderError>) -> Void
224 | ) -> URLSessionTask {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 | let urlRequest = constructURL(with: target)
226 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:220:41: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
218 | public func request<D: Decodable>(
219 | with target: NetworkTarget,
220 | urlSession: URLSession = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
221 | jsonDecoder: JSONDecoder = .init(),
222 | class type: D.Type,
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:267:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
265 | public func request(
266 | with target: NetworkTarget,
267 | urlSession: URLSession = URLSession.shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
268 | result: @escaping VoidResultCompletion
269 | ) -> URLSessionTask {
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/Hover/Base/Hover.swift:269:8: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
267 | urlSession: URLSession = URLSession.shared,
268 | result: @escaping VoidResultCompletion
269 | ) -> URLSessionTask {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
270 | let urlRequest = constructURL(with: target)
271 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:267:41: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
265 | public func request(
266 | with target: NetworkTarget,
267 | urlSession: URLSession = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
268 | result: @escaping VoidResultCompletion
269 | ) -> URLSessionTask {
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:307:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
305 | public func uploadRequest(
306 | with target: NetworkTarget,
307 | urlSession: URLSession = URLSession.shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 | data: Data,
309 | result: @escaping (Result<(HTTPURLResponse, Data?), ProviderError>) -> Void
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/Hover/Base/Hover.swift:309:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
307 | urlSession: URLSession = URLSession.shared,
308 | data: Data,
309 | result: @escaping (Result<(HTTPURLResponse, Data?), ProviderError>) -> Void
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
310 | ) -> URLSessionUploadTask {
311 | let urlRequest = constructURL(with: target)
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/Hover/Base/Hover.swift:310:8: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 | data: Data,
309 | result: @escaping (Result<(HTTPURLResponse, Data?), ProviderError>) -> Void
310 | ) -> URLSessionUploadTask {
| `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
311 | let urlRequest = constructURL(with: target)
312 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' 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 URLSessionUploadTask = AnyObject
| `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:307:41: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
305 | public func uploadRequest(
306 | with target: NetworkTarget,
307 | urlSession: URLSession = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
308 | data: Data,
309 | result: @escaping (Result<(HTTPURLResponse, Data?), ProviderError>) -> Void
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:342:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
340 | public func downloadRequest(
341 | with target: NetworkTarget,
342 | urlSession: URLSession = URLSession.shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
343 | result: @escaping (Result<HTTPURLResponse, ProviderError>) -> Void
344 | ) -> URLSessionDownloadTask {
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/Hover/Base/Hover.swift:343:31: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 | with target: NetworkTarget,
342 | urlSession: URLSession = URLSession.shared,
343 | result: @escaping (Result<HTTPURLResponse, ProviderError>) -> Void
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
344 | ) -> URLSessionDownloadTask {
345 | let urlRequest = constructURL(with: target)
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/Hover/Base/Hover.swift:344:8: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 | urlSession: URLSession = URLSession.shared,
343 | result: @escaping (Result<HTTPURLResponse, ProviderError>) -> Void
344 | ) -> URLSessionDownloadTask {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
345 | let urlRequest = constructURL(with: target)
346 | let printDebugDescriptionIfNeeded = environment.printDebugDescriptionIfNeeded
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:342:41: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
340 | public func downloadRequest(
341 | with target: NetworkTarget,
342 | urlSession: URLSession = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
343 | result: @escaping (Result<HTTPURLResponse, ProviderError>) -> Void
344 | ) -> URLSessionDownloadTask {
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:381:15: error: cannot find type 'URLSessionTaskDelegate' in scope
379 | jsonDecoder: JSONDecoder = .init(),
380 | class type: D.Type,
381 | delegate: URLSessionTaskDelegate? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
382 | ) async throws -> D {
383 | let urlRequest = constructURL(with: target)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:378:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
376 | public func request<D: Decodable>(
377 | with target: NetworkTarget,
378 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
379 | jsonDecoder: JSONDecoder = .init(),
380 | class type: D.Type,
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/Hover/Base/Hover.swift:378:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
376 | public func request<D: Decodable>(
377 | with target: NetworkTarget,
378 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
379 | jsonDecoder: JSONDecoder = .init(),
380 | class type: D.Type,
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:415:15: error: cannot find type 'URLSessionTaskDelegate' in scope
413 | urlSession: URLSession = .shared,
414 | jsonDecoder: JSONDecoder = .init(),
415 | delegate: URLSessionTaskDelegate? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
416 | ) async throws -> HTTPURLResponse {
417 | let urlRequest = constructURL(with: target)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:413:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
411 | public func request(
412 | with target: NetworkTarget,
413 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
414 | jsonDecoder: JSONDecoder = .init(),
415 | delegate: URLSessionTaskDelegate? = nil
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/Hover/Base/Hover.swift:416:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
414 | jsonDecoder: JSONDecoder = .init(),
415 | delegate: URLSessionTaskDelegate? = nil
416 | ) async throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
417 | let urlRequest = constructURL(with: target)
418 | do {
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/Hover/Base/Hover.swift:413:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
411 | public func request(
412 | with target: NetworkTarget,
413 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
414 | jsonDecoder: JSONDecoder = .init(),
415 | delegate: URLSessionTaskDelegate? = nil
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:447:15: error: cannot find type 'URLSessionTaskDelegate' in scope
445 | urlSession: URLSession = .shared,
446 | data: Data,
447 | delegate: URLSessionTaskDelegate? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
448 | ) async throws -> HTTPURLResponse {
449 | let urlRequest = constructURL(with: target)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:445:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
443 | public func uploadRequest(
444 | with target: NetworkTarget,
445 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
446 | data: Data,
447 | delegate: URLSessionTaskDelegate? = nil
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/Hover/Base/Hover.swift:448:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
446 | data: Data,
447 | delegate: URLSessionTaskDelegate? = nil
448 | ) async throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
449 | let urlRequest = constructURL(with: target)
450 | do {
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/Hover/Base/Hover.swift:445:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
443 | public func uploadRequest(
444 | with target: NetworkTarget,
445 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
446 | data: Data,
447 | delegate: URLSessionTaskDelegate? = nil
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:479:15: error: cannot find type 'URLSessionTaskDelegate' in scope
477 | with target: NetworkTarget,
478 | urlSession: URLSession = .shared,
479 | delegate: URLSessionTaskDelegate? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
480 | ) async throws -> URL {
481 | let urlRequest = constructURL(with: target)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:478:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
476 | public func downloadRequest(
477 | with target: NetworkTarget,
478 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
479 | delegate: URLSessionTaskDelegate? = nil
480 | ) async throws -> URL {
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/Hover/Base/Hover.swift:478:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
476 | public func downloadRequest(
477 | with target: NetworkTarget,
478 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
479 | delegate: URLSessionTaskDelegate? = nil
480 | ) async throws -> URL {
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:31:8: error: cannot find type 'AnyPublisher' in scope
29 | scheduler: T,
30 | class type: D.Type
31 | ) -> AnyPublisher<D, ProviderError> where D: Decodable, T: Scheduler
| `- error: cannot find type 'AnyPublisher' in scope
32 |
33 | /// Requests for a spesific call with `DataTaskPublisher` for non body requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:31:62: error: cannot find type 'Scheduler' in scope
29 | scheduler: T,
30 | class type: D.Type
31 | ) -> AnyPublisher<D, ProviderError> where D: Decodable, T: Scheduler
| `- error: cannot find type 'Scheduler' in scope
32 |
33 | /// Requests for a spesific call with `DataTaskPublisher` for non body requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:43:8: error: cannot find type 'AnyPublisher' in scope
41 | scheduler: T,
42 | urlSession: URLSession
43 | ) -> AnyPublisher<Response, ProviderError>
| `- error: cannot find type 'AnyPublisher' in scope
44 |
45 | /// Requests for a spesific call with `DataTaskPublisher` for with body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:39:19: error: cannot find type 'Scheduler' in scope
37 | /// - scheduler: Threading and execution time helper if you want to run it on main thread just use `Runloop.main` or `DispatchQueue.main`
38 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *)
39 | func request<T: Scheduler>(
| `- error: cannot find type 'Scheduler' in scope
40 | with target: NetworkTarget,
41 | scheduler: T,
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:61:8: error: cannot find type 'AnyPublisher' in scope
59 | scheduler: T,
60 | subscriber: S
61 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError
| `- error: cannot find type 'AnyPublisher' in scope
62 |
63 | /// Requests for a spesific call with `DataTaskPublisher` for non body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:61:48: error: cannot find type 'Subscriber' in scope
59 | scheduler: T,
60 | subscriber: S
61 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError
| `- error: cannot find type 'Subscriber' in scope
62 |
63 | /// Requests for a spesific call with `DataTaskPublisher` for non body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:61:63: error: cannot find type 'Scheduler' in scope
59 | scheduler: T,
60 | subscriber: S
61 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError
| `- error: cannot find type 'Scheduler' in scope
62 |
63 | /// Requests for a spesific call with `DataTaskPublisher` for non body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:75:8: error: cannot find type 'AnyPublisher' in scope
73 | scheduler: T,
74 | subscriber: S
75 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError
| `- error: cannot find type 'AnyPublisher' in scope
76 |
77 | // MARK: - Completion Block Requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:75:55: error: cannot find type 'Scheduler' in scope
73 | scheduler: T,
74 | subscriber: S
75 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError
| `- error: cannot find type 'Scheduler' in scope
76 |
77 | // MARK: - Completion Block Requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:75:69: error: cannot find type 'Subscriber' in scope
73 | scheduler: T,
74 | subscriber: S
75 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError
| `- error: cannot find type 'Subscriber' in scope
76 |
77 | // MARK: - Completion Block Requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:139:15: error: cannot find type 'URLSessionTaskDelegate' in scope
137 | jsonDecoder: JSONDecoder,
138 | class type: D.Type,
139 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
140 | ) async throws -> D
141 |
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:147:15: error: cannot find type 'URLSessionTaskDelegate' in scope
145 | urlSession: URLSession,
146 | jsonDecoder: JSONDecoder,
147 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
148 | ) async throws -> HTTPURLResponse
149 |
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:154:15: error: cannot find type 'URLSessionTaskDelegate' in scope
152 | with target: NetworkTarget,
153 | urlSession: URLSession,
154 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
155 | ) async throws -> URL
156 | }
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:511:52: error: cannot find type 'URLRequest' in scope
509 | private extension Hover {
510 |
511 | func constructURL(with target: NetworkTarget) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
512 | switch target.methodType {
513 | case .get:
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:526:57: error: cannot find type 'URLRequest' in scope
524 | }
525 |
526 | func prepareGetRequest(with target: NetworkTarget) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
527 | let url = target.pathAppendedURL
528 | switch target.workType {
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:550:61: error: cannot find type 'URLRequest' in scope
548 | }
549 |
550 | func prepareGeneralRequest(with target: NetworkTarget) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
551 | let url = target.pathAppendedURL
552 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:572:60: error: cannot find type 'URLRequest' in scope
570 | }
571 |
572 | func prepareDeleteRequest(with target: NetworkTarget) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
573 | let url = target.pathAppendedURL
574 | switch target.workType {
/host/spi-builder-workspace/Sources/Hover/Base/HoverEnvironment.swift:21:46: error: cannot find type 'URLRequest' in scope
19 |
20 | public var jsonSerializationData: (Any, JSONSerialization.WritingOptions) throws -> Data
21 | public var printDebugDescriptionIfNeeded: (URLRequest, Error?) -> Void
| `- error: cannot find type 'URLRequest' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:27:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | func request<D, T>(
26 | with target: NetworkTarget,
27 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | jsonDecoder: JSONDecoder,
29 | scheduler: T,
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/Hover/Base/HoverProtocol.swift:42:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | with target: NetworkTarget,
41 | scheduler: T,
42 | urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | ) -> AnyPublisher<Response, ProviderError>
44 |
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/Hover/Base/HoverProtocol.swift:61:90: error: 'Input' is not a member type of type 'S'
59 | scheduler: T,
60 | subscriber: S
61 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError
| `- error: 'Input' is not a member type of type 'S'
62 |
63 | /// Requests for a spesific call with `DataTaskPublisher` for non body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:61:104: error: 'Failure' is not a member type of type 'S'
59 | scheduler: T,
60 | subscriber: S
61 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError
| `- error: 'Failure' is not a member type of type 'S'
62 |
63 | /// Requests for a spesific call with `DataTaskPublisher` for non body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:57:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | with target: NetworkTarget,
56 | class type: D.Type,
57 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | jsonDecoder: JSONDecoder,
59 | scheduler: T,
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/Hover/Base/HoverProtocol.swift:75:83: error: 'Input' is not a member type of type 'S'
73 | scheduler: T,
74 | subscriber: S
75 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError
| `- error: 'Input' is not a member type of type 'S'
76 |
77 | // MARK: - Completion Block Requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:75:104: error: 'Failure' is not a member type of type 'S'
73 | scheduler: T,
74 | subscriber: S
75 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError
| `- error: 'Failure' is not a member type of type 'S'
76 |
77 | // MARK: - Completion Block Requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:72:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | func request<S, T>(
71 | with target: NetworkTarget,
72 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | scheduler: T,
74 | subscriber: S
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/Hover/Base/HoverProtocol.swift:88:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | func request<D: Decodable>(
87 | with target: NetworkTarget,
88 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | jsonDecoder: JSONDecoder,
90 | class type: D.Type,
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/Hover/Base/HoverProtocol.swift:92:8: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | class type: D.Type,
91 | result: @escaping (Result<D, ProviderError>) -> Void
92 | ) -> URLSessionTask
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 |
94 | /// Requests for a sepecific call with completionBlock for non body request
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:102:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 | func request(
101 | with target: NetworkTarget,
102 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 | result: @escaping VoidResultCompletion
104 | ) -> URLSessionTask
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/Hover/Base/HoverProtocol.swift:104:8: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | urlSession: URLSession,
103 | result: @escaping VoidResultCompletion
104 | ) -> URLSessionTask
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 |
106 | /// Uploads a file to a given target
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:115:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | func uploadRequest(
114 | with target: NetworkTarget,
115 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | data: Data,
117 | result: @escaping (Result<(HTTPURLResponse, Data?), ProviderError>) -> Void
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/Hover/Base/HoverProtocol.swift:117:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | urlSession: URLSession,
116 | data: Data,
117 | result: @escaping (Result<(HTTPURLResponse, Data?), ProviderError>) -> Void
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | ) -> URLSessionUploadTask
119 |
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/Hover/Base/HoverProtocol.swift:118:8: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | data: Data,
117 | result: @escaping (Result<(HTTPURLResponse, Data?), ProviderError>) -> Void
118 | ) -> URLSessionUploadTask
| `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 |
120 | /// Downloads a spesific file
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' 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 URLSessionUploadTask = AnyObject
| `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:128:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 | func downloadRequest(
127 | with target: NetworkTarget,
128 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | result: @escaping (Result<HTTPURLResponse, ProviderError>) -> Void
130 | ) -> URLSessionDownloadTask
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/Hover/Base/HoverProtocol.swift:129:31: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 | with target: NetworkTarget,
128 | urlSession: URLSession,
129 | result: @escaping (Result<HTTPURLResponse, ProviderError>) -> Void
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
130 | ) -> URLSessionDownloadTask
131 |
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/Hover/Base/HoverProtocol.swift:130:8: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 | urlSession: URLSession,
129 | result: @escaping (Result<HTTPURLResponse, ProviderError>) -> Void
130 | ) -> URLSessionDownloadTask
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |
132 | // MARK: Async Await
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:136:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 | func request<D: Decodable>(
135 | with target: NetworkTarget,
136 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
137 | jsonDecoder: JSONDecoder,
138 | class type: D.Type,
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/Hover/Base/HoverProtocol.swift:145:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | func request(
144 | with target: NetworkTarget,
145 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 | jsonDecoder: JSONDecoder,
147 | delegate: URLSessionTaskDelegate?
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/Hover/Base/HoverProtocol.swift:148:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 | jsonDecoder: JSONDecoder,
147 | delegate: URLSessionTaskDelegate?
148 | ) async throws -> HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
149 |
150 | @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
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/Hover/Base/HoverProtocol.swift:153:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 | func downloadRequest(
152 | with target: NetworkTarget,
153 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | delegate: URLSessionTaskDelegate?
155 | ) async throws -> URL
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/Hover/Extensions/HttpUrlResponse+IsSuccesful.swift:11:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
9 | import Foundation
10 |
11 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
12 | var isSuccessful: Bool {
13 | return (200..<300).contains(statusCode)
/host/spi-builder-workspace/Sources/Hover/Extensions/URLRequest+prepareRequest.swift:11:20: error: cannot find type 'URLRequest' in scope
9 | import Foundation
10 |
11 | internal extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
12 |
13 | private var headerField: String { "Authorization" }
/host/spi-builder-workspace/Sources/Hover/Helpers/HoverDebugger.swift:13:69: error: cannot find type 'URLRequest' in scope
11 | public enum HoverDebugger {
12 |
13 | public static func printDebugDescriptionIfNeeded(from urlRequest: URLRequest, error: Error?) {
| `- error: cannot find type 'URLRequest' in scope
14 | guard Hover.prefference.isDebuggingEnabled else {
15 | return
/host/spi-builder-workspace/Sources/Hover/Response.swift:12:20: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | public struct Response {
12 | let urlResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | let data: Data
14 |
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
[6/18] Compiling Hover ContentType.swift
[7/18] Compiling Hover MethodType.swift
[8/18] Compiling Hover NetworkTarget.swift
[9/18] Compiling Hover ProviderError.swift
[10/18] Compiling Hover Response.swift
/host/spi-builder-workspace/Sources/Hover/Response.swift:12:20: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | public struct Response {
12 | let urlResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | let data: Data
14 |
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/Hover/Response.swift:15:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
13 | let data: Data
14 |
15 | var statusCode: Int { urlResponse.statusCode }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
16 | var localizedStatusCodeDescription: String { HTTPURLResponse.localizedString(forStatusCode: statusCode) }
17 | }
/host/spi-builder-workspace/Sources/Hover/Response.swift:16:64: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
14 |
15 | var statusCode: Int { urlResponse.statusCode }
16 | var localizedStatusCodeDescription: String { HTTPURLResponse.localizedString(forStatusCode: statusCode) }
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
17 | }
18 |
[11/18] Compiling Hover AuthProviderType.swift
/host/spi-builder-workspace/Sources/Hover/Response.swift:12:20: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | public struct Response {
12 | let urlResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | let data: Data
14 |
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/Hover/Response.swift:15:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
13 | let data: Data
14 |
15 | var statusCode: Int { urlResponse.statusCode }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
16 | var localizedStatusCodeDescription: String { HTTPURLResponse.localizedString(forStatusCode: statusCode) }
17 | }
/host/spi-builder-workspace/Sources/Hover/Response.swift:16:64: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
14 |
15 | var statusCode: Int { urlResponse.statusCode }
16 | var localizedStatusCodeDescription: String { HTTPURLResponse.localizedString(forStatusCode: statusCode) }
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
17 | }
18 |
[12/18] Compiling Hover URL+GenerateURLQuery.swift
/host/spi-builder-workspace/Sources/Hover/Extensions/URLRequest+prepareRequest.swift:11:20: error: cannot find type 'URLRequest' in scope
9 | import Foundation
10 |
11 | internal extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
12 |
13 | private var headerField: String { "Authorization" }
[13/18] Compiling Hover URLRequest+prepareRequest.swift
/host/spi-builder-workspace/Sources/Hover/Extensions/URLRequest+prepareRequest.swift:11:20: error: cannot find type 'URLRequest' in scope
9 | import Foundation
10 |
11 | internal extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
12 |
13 | private var headerField: String { "Authorization" }
[14/18] Compiling Hover HoverDebugger.swift
/host/spi-builder-workspace/Sources/Hover/Helpers/HoverDebugger.swift:13:69: error: cannot find type 'URLRequest' in scope
11 | public enum HoverDebugger {
12 |
13 | public static func printDebugDescriptionIfNeeded(from urlRequest: URLRequest, error: Error?) {
| `- error: cannot find type 'URLRequest' in scope
14 | guard Hover.prefference.isDebuggingEnabled else {
15 | return
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:18:21: warning: static property 'prefference' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | // MARK: Public Variables
17 |
18 | public static var prefference = Prefference()
| |- warning: static property 'prefference' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'prefference' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'prefference' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | public let environment: HoverEnvironment
[15/18] Compiling Hover Preferrence.swift
/host/spi-builder-workspace/Sources/Hover/Helpers/HoverDebugger.swift:13:69: error: cannot find type 'URLRequest' in scope
11 | public enum HoverDebugger {
12 |
13 | public static func printDebugDescriptionIfNeeded(from urlRequest: URLRequest, error: Error?) {
| `- error: cannot find type 'URLRequest' in scope
14 | guard Hover.prefference.isDebuggingEnabled else {
15 | return
/host/spi-builder-workspace/Sources/Hover/Base/Hover.swift:18:21: warning: static property 'prefference' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | // MARK: Public Variables
17 |
18 | public static var prefference = Prefference()
| |- warning: static property 'prefference' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'prefference' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'prefference' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | public let environment: HoverEnvironment
[16/18] Compiling Hover HoverProtocol.swift
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:31:8: error: cannot find type 'AnyPublisher' in scope
29 | scheduler: T,
30 | class type: D.Type
31 | ) -> AnyPublisher<D, ProviderError> where D: Decodable, T: Scheduler
| `- error: cannot find type 'AnyPublisher' in scope
32 |
33 | /// Requests for a spesific call with `DataTaskPublisher` for non body requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:31:62: error: cannot find type 'Scheduler' in scope
29 | scheduler: T,
30 | class type: D.Type
31 | ) -> AnyPublisher<D, ProviderError> where D: Decodable, T: Scheduler
| `- error: cannot find type 'Scheduler' in scope
32 |
33 | /// Requests for a spesific call with `DataTaskPublisher` for non body requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:27:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | func request<D, T>(
26 | with target: NetworkTarget,
27 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | jsonDecoder: JSONDecoder,
29 | scheduler: T,
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/Hover/Base/HoverProtocol.swift:43:8: error: cannot find type 'AnyPublisher' in scope
41 | scheduler: T,
42 | urlSession: URLSession
43 | ) -> AnyPublisher<Response, ProviderError>
| `- error: cannot find type 'AnyPublisher' in scope
44 |
45 | /// Requests for a spesific call with `DataTaskPublisher` for with body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:39:19: error: cannot find type 'Scheduler' in scope
37 | /// - scheduler: Threading and execution time helper if you want to run it on main thread just use `Runloop.main` or `DispatchQueue.main`
38 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *)
39 | func request<T: Scheduler>(
| `- error: cannot find type 'Scheduler' in scope
40 | with target: NetworkTarget,
41 | scheduler: T,
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:42:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | with target: NetworkTarget,
41 | scheduler: T,
42 | urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | ) -> AnyPublisher<Response, ProviderError>
44 |
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/Hover/Base/HoverProtocol.swift:61:8: error: cannot find type 'AnyPublisher' in scope
59 | scheduler: T,
60 | subscriber: S
61 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError
| `- error: cannot find type 'AnyPublisher' in scope
62 |
63 | /// Requests for a spesific call with `DataTaskPublisher` for non body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:61:48: error: cannot find type 'Subscriber' in scope
59 | scheduler: T,
60 | subscriber: S
61 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError
| `- error: cannot find type 'Subscriber' in scope
62 |
63 | /// Requests for a spesific call with `DataTaskPublisher` for non body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:61:63: error: cannot find type 'Scheduler' in scope
59 | scheduler: T,
60 | subscriber: S
61 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError
| `- error: cannot find type 'Scheduler' in scope
62 |
63 | /// Requests for a spesific call with `DataTaskPublisher` for non body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:61:90: error: 'Input' is not a member type of type 'S'
59 | scheduler: T,
60 | subscriber: S
61 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError
| `- error: 'Input' is not a member type of type 'S'
62 |
63 | /// Requests for a spesific call with `DataTaskPublisher` for non body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:61:104: error: 'Failure' is not a member type of type 'S'
59 | scheduler: T,
60 | subscriber: S
61 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError
| `- error: 'Failure' is not a member type of type 'S'
62 |
63 | /// Requests for a spesific call with `DataTaskPublisher` for non body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:57:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | with target: NetworkTarget,
56 | class type: D.Type,
57 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | jsonDecoder: JSONDecoder,
59 | scheduler: T,
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/Hover/Base/HoverProtocol.swift:75:8: error: cannot find type 'AnyPublisher' in scope
73 | scheduler: T,
74 | subscriber: S
75 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError
| `- error: cannot find type 'AnyPublisher' in scope
76 |
77 | // MARK: - Completion Block Requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:75:55: error: cannot find type 'Scheduler' in scope
73 | scheduler: T,
74 | subscriber: S
75 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError
| `- error: cannot find type 'Scheduler' in scope
76 |
77 | // MARK: - Completion Block Requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:75:69: error: cannot find type 'Subscriber' in scope
73 | scheduler: T,
74 | subscriber: S
75 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError
| `- error: cannot find type 'Subscriber' in scope
76 |
77 | // MARK: - Completion Block Requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:75:83: error: 'Input' is not a member type of type 'S'
73 | scheduler: T,
74 | subscriber: S
75 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError
| `- error: 'Input' is not a member type of type 'S'
76 |
77 | // MARK: - Completion Block Requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:75:104: error: 'Failure' is not a member type of type 'S'
73 | scheduler: T,
74 | subscriber: S
75 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError
| `- error: 'Failure' is not a member type of type 'S'
76 |
77 | // MARK: - Completion Block Requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:72:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | func request<S, T>(
71 | with target: NetworkTarget,
72 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | scheduler: T,
74 | subscriber: S
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/Hover/Base/HoverProtocol.swift:88:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | func request<D: Decodable>(
87 | with target: NetworkTarget,
88 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | jsonDecoder: JSONDecoder,
90 | class type: D.Type,
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/Hover/Base/HoverProtocol.swift:92:8: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | class type: D.Type,
91 | result: @escaping (Result<D, ProviderError>) -> Void
92 | ) -> URLSessionTask
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 |
94 | /// Requests for a sepecific call with completionBlock for non body request
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:102:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 | func request(
101 | with target: NetworkTarget,
102 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 | result: @escaping VoidResultCompletion
104 | ) -> URLSessionTask
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/Hover/Base/HoverProtocol.swift:104:8: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | urlSession: URLSession,
103 | result: @escaping VoidResultCompletion
104 | ) -> URLSessionTask
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 |
106 | /// Uploads a file to a given target
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:115:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | func uploadRequest(
114 | with target: NetworkTarget,
115 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | data: Data,
117 | result: @escaping (Result<(HTTPURLResponse, Data?), ProviderError>) -> Void
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/Hover/Base/HoverProtocol.swift:117:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | urlSession: URLSession,
116 | data: Data,
117 | result: @escaping (Result<(HTTPURLResponse, Data?), ProviderError>) -> Void
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | ) -> URLSessionUploadTask
119 |
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/Hover/Base/HoverProtocol.swift:118:8: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | data: Data,
117 | result: @escaping (Result<(HTTPURLResponse, Data?), ProviderError>) -> Void
118 | ) -> URLSessionUploadTask
| `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 |
120 | /// Downloads a spesific file
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' 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 URLSessionUploadTask = AnyObject
| `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:128:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 | func downloadRequest(
127 | with target: NetworkTarget,
128 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | result: @escaping (Result<HTTPURLResponse, ProviderError>) -> Void
130 | ) -> URLSessionDownloadTask
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/Hover/Base/HoverProtocol.swift:129:31: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 | with target: NetworkTarget,
128 | urlSession: URLSession,
129 | result: @escaping (Result<HTTPURLResponse, ProviderError>) -> Void
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
130 | ) -> URLSessionDownloadTask
131 |
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/Hover/Base/HoverProtocol.swift:130:8: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 | urlSession: URLSession,
129 | result: @escaping (Result<HTTPURLResponse, ProviderError>) -> Void
130 | ) -> URLSessionDownloadTask
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |
132 | // MARK: Async Await
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:139:15: error: cannot find type 'URLSessionTaskDelegate' in scope
137 | jsonDecoder: JSONDecoder,
138 | class type: D.Type,
139 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
140 | ) async throws -> D
141 |
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:136:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 | func request<D: Decodable>(
135 | with target: NetworkTarget,
136 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
137 | jsonDecoder: JSONDecoder,
138 | class type: D.Type,
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/Hover/Base/HoverProtocol.swift:147:15: error: cannot find type 'URLSessionTaskDelegate' in scope
145 | urlSession: URLSession,
146 | jsonDecoder: JSONDecoder,
147 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
148 | ) async throws -> HTTPURLResponse
149 |
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:145:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | func request(
144 | with target: NetworkTarget,
145 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 | jsonDecoder: JSONDecoder,
147 | delegate: URLSessionTaskDelegate?
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/Hover/Base/HoverProtocol.swift:148:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 | jsonDecoder: JSONDecoder,
147 | delegate: URLSessionTaskDelegate?
148 | ) async throws -> HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
149 |
150 | @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
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/Hover/Base/HoverProtocol.swift:154:15: error: cannot find type 'URLSessionTaskDelegate' in scope
152 | with target: NetworkTarget,
153 | urlSession: URLSession,
154 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
155 | ) async throws -> URL
156 | }
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:153:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 | func downloadRequest(
152 | with target: NetworkTarget,
153 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | delegate: URLSessionTaskDelegate?
155 | ) async throws -> URL
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/Hover/Extensions/HttpUrlResponse+IsSuccesful.swift:11:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
9 | import Foundation
10 |
11 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
12 | var isSuccessful: Bool {
13 | return (200..<300).contains(statusCode)
[17/18] Compiling Hover HttpUrlResponse+IsSuccesful.swift
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:31:8: error: cannot find type 'AnyPublisher' in scope
29 | scheduler: T,
30 | class type: D.Type
31 | ) -> AnyPublisher<D, ProviderError> where D: Decodable, T: Scheduler
| `- error: cannot find type 'AnyPublisher' in scope
32 |
33 | /// Requests for a spesific call with `DataTaskPublisher` for non body requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:31:62: error: cannot find type 'Scheduler' in scope
29 | scheduler: T,
30 | class type: D.Type
31 | ) -> AnyPublisher<D, ProviderError> where D: Decodable, T: Scheduler
| `- error: cannot find type 'Scheduler' in scope
32 |
33 | /// Requests for a spesific call with `DataTaskPublisher` for non body requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:27:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | func request<D, T>(
26 | with target: NetworkTarget,
27 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | jsonDecoder: JSONDecoder,
29 | scheduler: T,
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/Hover/Base/HoverProtocol.swift:43:8: error: cannot find type 'AnyPublisher' in scope
41 | scheduler: T,
42 | urlSession: URLSession
43 | ) -> AnyPublisher<Response, ProviderError>
| `- error: cannot find type 'AnyPublisher' in scope
44 |
45 | /// Requests for a spesific call with `DataTaskPublisher` for with body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:39:19: error: cannot find type 'Scheduler' in scope
37 | /// - scheduler: Threading and execution time helper if you want to run it on main thread just use `Runloop.main` or `DispatchQueue.main`
38 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *)
39 | func request<T: Scheduler>(
| `- error: cannot find type 'Scheduler' in scope
40 | with target: NetworkTarget,
41 | scheduler: T,
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:42:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | with target: NetworkTarget,
41 | scheduler: T,
42 | urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | ) -> AnyPublisher<Response, ProviderError>
44 |
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/Hover/Base/HoverProtocol.swift:61:8: error: cannot find type 'AnyPublisher' in scope
59 | scheduler: T,
60 | subscriber: S
61 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError
| `- error: cannot find type 'AnyPublisher' in scope
62 |
63 | /// Requests for a spesific call with `DataTaskPublisher` for non body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:61:48: error: cannot find type 'Subscriber' in scope
59 | scheduler: T,
60 | subscriber: S
61 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError
| `- error: cannot find type 'Subscriber' in scope
62 |
63 | /// Requests for a spesific call with `DataTaskPublisher` for non body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:61:63: error: cannot find type 'Scheduler' in scope
59 | scheduler: T,
60 | subscriber: S
61 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError
| `- error: cannot find type 'Scheduler' in scope
62 |
63 | /// Requests for a spesific call with `DataTaskPublisher` for non body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:61:90: error: 'Input' is not a member type of type 'S'
59 | scheduler: T,
60 | subscriber: S
61 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError
| `- error: 'Input' is not a member type of type 'S'
62 |
63 | /// Requests for a spesific call with `DataTaskPublisher` for non body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:61:104: error: 'Failure' is not a member type of type 'S'
59 | scheduler: T,
60 | subscriber: S
61 | ) -> AnyPublisher<D, ProviderError> where S: Subscriber, T: Scheduler, D: Decodable, S.Input == D, S.Failure == ProviderError
| `- error: 'Failure' is not a member type of type 'S'
62 |
63 | /// Requests for a spesific call with `DataTaskPublisher` for non body response
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:57:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | with target: NetworkTarget,
56 | class type: D.Type,
57 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | jsonDecoder: JSONDecoder,
59 | scheduler: T,
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/Hover/Base/HoverProtocol.swift:75:8: error: cannot find type 'AnyPublisher' in scope
73 | scheduler: T,
74 | subscriber: S
75 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError
| `- error: cannot find type 'AnyPublisher' in scope
76 |
77 | // MARK: - Completion Block Requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:75:55: error: cannot find type 'Scheduler' in scope
73 | scheduler: T,
74 | subscriber: S
75 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError
| `- error: cannot find type 'Scheduler' in scope
76 |
77 | // MARK: - Completion Block Requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:75:69: error: cannot find type 'Subscriber' in scope
73 | scheduler: T,
74 | subscriber: S
75 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError
| `- error: cannot find type 'Subscriber' in scope
76 |
77 | // MARK: - Completion Block Requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:75:83: error: 'Input' is not a member type of type 'S'
73 | scheduler: T,
74 | subscriber: S
75 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError
| `- error: 'Input' is not a member type of type 'S'
76 |
77 | // MARK: - Completion Block Requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:75:104: error: 'Failure' is not a member type of type 'S'
73 | scheduler: T,
74 | subscriber: S
75 | ) -> AnyPublisher<Response, ProviderError> where T: Scheduler, S: Subscriber, S.Input == Response, S.Failure == ProviderError
| `- error: 'Failure' is not a member type of type 'S'
76 |
77 | // MARK: - Completion Block Requests
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:72:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | func request<S, T>(
71 | with target: NetworkTarget,
72 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | scheduler: T,
74 | subscriber: S
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/Hover/Base/HoverProtocol.swift:88:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | func request<D: Decodable>(
87 | with target: NetworkTarget,
88 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | jsonDecoder: JSONDecoder,
90 | class type: D.Type,
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/Hover/Base/HoverProtocol.swift:92:8: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | class type: D.Type,
91 | result: @escaping (Result<D, ProviderError>) -> Void
92 | ) -> URLSessionTask
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 |
94 | /// Requests for a sepecific call with completionBlock for non body request
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:102:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 | func request(
101 | with target: NetworkTarget,
102 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 | result: @escaping VoidResultCompletion
104 | ) -> URLSessionTask
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/Hover/Base/HoverProtocol.swift:104:8: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | urlSession: URLSession,
103 | result: @escaping VoidResultCompletion
104 | ) -> URLSessionTask
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 |
106 | /// Uploads a file to a given target
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:115:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | func uploadRequest(
114 | with target: NetworkTarget,
115 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | data: Data,
117 | result: @escaping (Result<(HTTPURLResponse, Data?), ProviderError>) -> Void
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/Hover/Base/HoverProtocol.swift:117:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | urlSession: URLSession,
116 | data: Data,
117 | result: @escaping (Result<(HTTPURLResponse, Data?), ProviderError>) -> Void
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | ) -> URLSessionUploadTask
119 |
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/Hover/Base/HoverProtocol.swift:118:8: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | data: Data,
117 | result: @escaping (Result<(HTTPURLResponse, Data?), ProviderError>) -> Void
118 | ) -> URLSessionUploadTask
| `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 |
120 | /// Downloads a spesific file
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' 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 URLSessionUploadTask = AnyObject
| `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:128:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 | func downloadRequest(
127 | with target: NetworkTarget,
128 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | result: @escaping (Result<HTTPURLResponse, ProviderError>) -> Void
130 | ) -> URLSessionDownloadTask
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/Hover/Base/HoverProtocol.swift:129:31: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 | with target: NetworkTarget,
128 | urlSession: URLSession,
129 | result: @escaping (Result<HTTPURLResponse, ProviderError>) -> Void
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
130 | ) -> URLSessionDownloadTask
131 |
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/Hover/Base/HoverProtocol.swift:130:8: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 | urlSession: URLSession,
129 | result: @escaping (Result<HTTPURLResponse, ProviderError>) -> Void
130 | ) -> URLSessionDownloadTask
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |
132 | // MARK: Async Await
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:139:15: error: cannot find type 'URLSessionTaskDelegate' in scope
137 | jsonDecoder: JSONDecoder,
138 | class type: D.Type,
139 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
140 | ) async throws -> D
141 |
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:136:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 | func request<D: Decodable>(
135 | with target: NetworkTarget,
136 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
137 | jsonDecoder: JSONDecoder,
138 | class type: D.Type,
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/Hover/Base/HoverProtocol.swift:147:15: error: cannot find type 'URLSessionTaskDelegate' in scope
145 | urlSession: URLSession,
146 | jsonDecoder: JSONDecoder,
147 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
148 | ) async throws -> HTTPURLResponse
149 |
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:145:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | func request(
144 | with target: NetworkTarget,
145 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 | jsonDecoder: JSONDecoder,
147 | delegate: URLSessionTaskDelegate?
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/Hover/Base/HoverProtocol.swift:148:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 | jsonDecoder: JSONDecoder,
147 | delegate: URLSessionTaskDelegate?
148 | ) async throws -> HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
149 |
150 | @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
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/Hover/Base/HoverProtocol.swift:154:15: error: cannot find type 'URLSessionTaskDelegate' in scope
152 | with target: NetworkTarget,
153 | urlSession: URLSession,
154 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
155 | ) async throws -> URL
156 | }
/host/spi-builder-workspace/Sources/Hover/Base/HoverProtocol.swift:153:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 | func downloadRequest(
152 | with target: NetworkTarget,
153 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | delegate: URLSessionTaskDelegate?
155 | ) async throws -> URL
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/Hover/Extensions/HttpUrlResponse+IsSuccesful.swift:11:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
9 | import Foundation
10 |
11 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
12 | var isSuccessful: Bool {
13 | return (200..<300).contains(statusCode)
[18/18] Compiling Hover WorkType.swift
BUILD FAILURE 6.0 linux