The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build PexelsSwift, reference 1.0.1 (feef36), with Swift 6.1 for Linux on 28 Apr 2025 20:39:08 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

 75 |     /// ``PSLogLevel/info`` or ``PSLogLevel/debug``.
 76 |     /// - Parameter response: The response to log.
 77 |     func response(_ response: HTTPURLResponse) {
    |                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |         guard logLevel == .info || logLevel == .debug else { return }
 79 |         var logMessage = logTitle(for: .info)
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/PexelsSwift/Logger/PSLogger.swift:80:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 78 |         guard logLevel == .info || logLevel == .debug else { return }
 79 |         var logMessage = logTitle(for: .info)
 80 |         logMessage.append("Code: \(response.statusCode),")
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 81 |         logMessage.append("URL: \(response.url?.absoluteString ?? "Invalid URL"),")
 82 |         if (200...299).contains(response.statusCode) {
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:81:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 79 |         var logMessage = logTitle(for: .info)
 80 |         logMessage.append("Code: \(response.statusCode),")
 81 |         logMessage.append("URL: \(response.url?.absoluteString ?? "Invalid URL"),")
    |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 82 |         if (200...299).contains(response.statusCode) {
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:82:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |         logMessage.append("Code: \(response.statusCode),")
 81 |         logMessage.append("URL: \(response.url?.absoluteString ?? "Invalid URL"),")
 82 |         if (200...299).contains(response.statusCode) {
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
 84 |             logMessage.append("Remaining: \(response.pexelsRemaining?.string ?? "Fetching failed"),")
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:83:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
 81 |         logMessage.append("URL: \(response.url?.absoluteString ?? "Invalid URL"),")
 82 |         if (200...299).contains(response.statusCode) {
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
    |                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
 84 |             logMessage.append("Remaining: \(response.pexelsRemaining?.string ?? "Fetching failed"),")
 85 |             logMessage.append("Reset on: \(response.pexelsReset?.description ?? "Fetching Failed")")
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:84:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
 82 |         if (200...299).contains(response.statusCode) {
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
 84 |             logMessage.append("Remaining: \(response.pexelsRemaining?.string ?? "Fetching failed"),")
    |                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
 85 |             logMessage.append("Reset on: \(response.pexelsReset?.description ?? "Fetching Failed")")
 86 |         } else {
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:85:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
 84 |             logMessage.append("Remaining: \(response.pexelsRemaining?.string ?? "Fetching failed"),")
 85 |             logMessage.append("Reset on: \(response.pexelsReset?.description ?? "Fetching Failed")")
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
 86 |         } else {
 87 |             logMessage.append("Response: \(response.description)")
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:87:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
 85 |             logMessage.append("Reset on: \(response.pexelsReset?.description ?? "Fetching Failed")")
 86 |         } else {
 87 |             logMessage.append("Response: \(response.description)")
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
 88 |         }
 89 |         print(logMessage)
[8/27] Compiling PexelsSwift PSLogger.swift
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:77:31: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |     /// ``PSLogLevel/info`` or ``PSLogLevel/debug``.
 76 |     /// - Parameter response: The response to log.
 77 |     func response(_ response: HTTPURLResponse) {
    |                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |         guard logLevel == .info || logLevel == .debug else { return }
 79 |         var logMessage = logTitle(for: .info)
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/PexelsSwift/Logger/PSLogger.swift:80:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 78 |         guard logLevel == .info || logLevel == .debug else { return }
 79 |         var logMessage = logTitle(for: .info)
 80 |         logMessage.append("Code: \(response.statusCode),")
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 81 |         logMessage.append("URL: \(response.url?.absoluteString ?? "Invalid URL"),")
 82 |         if (200...299).contains(response.statusCode) {
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:81:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 79 |         var logMessage = logTitle(for: .info)
 80 |         logMessage.append("Code: \(response.statusCode),")
 81 |         logMessage.append("URL: \(response.url?.absoluteString ?? "Invalid URL"),")
    |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 82 |         if (200...299).contains(response.statusCode) {
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:82:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |         logMessage.append("Code: \(response.statusCode),")
 81 |         logMessage.append("URL: \(response.url?.absoluteString ?? "Invalid URL"),")
 82 |         if (200...299).contains(response.statusCode) {
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
 84 |             logMessage.append("Remaining: \(response.pexelsRemaining?.string ?? "Fetching failed"),")
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:83:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
 81 |         logMessage.append("URL: \(response.url?.absoluteString ?? "Invalid URL"),")
 82 |         if (200...299).contains(response.statusCode) {
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
    |                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
 84 |             logMessage.append("Remaining: \(response.pexelsRemaining?.string ?? "Fetching failed"),")
 85 |             logMessage.append("Reset on: \(response.pexelsReset?.description ?? "Fetching Failed")")
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:84:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
 82 |         if (200...299).contains(response.statusCode) {
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
 84 |             logMessage.append("Remaining: \(response.pexelsRemaining?.string ?? "Fetching failed"),")
    |                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
 85 |             logMessage.append("Reset on: \(response.pexelsReset?.description ?? "Fetching Failed")")
 86 |         } else {
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:85:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
 84 |             logMessage.append("Remaining: \(response.pexelsRemaining?.string ?? "Fetching failed"),")
 85 |             logMessage.append("Reset on: \(response.pexelsReset?.description ?? "Fetching Failed")")
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
 86 |         } else {
 87 |             logMessage.append("Response: \(response.description)")
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:87:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
 85 |             logMessage.append("Reset on: \(response.pexelsReset?.description ?? "Fetching Failed")")
 86 |         } else {
 87 |             logMessage.append("Response: \(response.description)")
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
 88 |         }
 89 |         print(logMessage)
[9/27] Compiling PexelsSwift PSError.swift
/host/spi-builder-workspace/Sources/PexelsSwift/Extensions/HTTPURLResponse+.swift:10:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 8 | import Foundation
 9 |
10 | public extension HTTPURLResponse {
   |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 |     /// Returns an integer describing the Pexels API call limit, if set.
12 |     ///
[10/27] Compiling PexelsSwift Data+PrettyJSON.swift
/host/spi-builder-workspace/Sources/PexelsSwift/Extensions/HTTPURLResponse+.swift:10:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 8 | import Foundation
 9 |
10 | public extension HTTPURLResponse {
   |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 |     /// Returns an integer describing the Pexels API call limit, if set.
12 |     ///
[11/27] Compiling PexelsSwift HTTPURLResponse+.swift
/host/spi-builder-workspace/Sources/PexelsSwift/Extensions/HTTPURLResponse+.swift:10:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 8 | import Foundation
 9 |
10 | public extension HTTPURLResponse {
   |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 |     /// Returns an integer describing the Pexels API call limit, if set.
12 |     ///
[12/27] Compiling PexelsSwift PSVideo.swift
/host/spi-builder-workspace/Sources/PexelsSwift/_Deprecated/URLSession+DataForRequest.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
10 | @available(iOS, deprecated: 15, message: "Use the built-in API instead")
11 | @available(macOS, deprecated: 12, message: "Use the built-in API instead")
12 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 |     /// Downloads the contents of a URL based on the specified URL request and delivers the data asynchronously.
14 |     ///
/host/spi-builder-workspace/Sources/PexelsSwift/_Deprecated/URLSession+DataForRequest.swift:20:29: error: cannot find type 'URLRequest' in scope
18 |     /// - Returns: An asynchronously-delivered tuple that contains the URL contents as
19 |     /// a `Data` instance, and a `URLResponse`.
20 |     func _data(for request: URLRequest) async throws -> (Data, URLResponse) {
   |                             `- error: cannot find type 'URLRequest' in scope
21 |         return try await withCheckedThrowingContinuation { continuation in
22 |             let task = self.dataTask(with: request) { data, response, error in
[13/27] Compiling PexelsSwift URLSession+DataForRequest.swift
/host/spi-builder-workspace/Sources/PexelsSwift/_Deprecated/URLSession+DataForRequest.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
10 | @available(iOS, deprecated: 15, message: "Use the built-in API instead")
11 | @available(macOS, deprecated: 12, message: "Use the built-in API instead")
12 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 |     /// Downloads the contents of a URL based on the specified URL request and delivers the data asynchronously.
14 |     ///
/host/spi-builder-workspace/Sources/PexelsSwift/_Deprecated/URLSession+DataForRequest.swift:20:29: error: cannot find type 'URLRequest' in scope
18 |     /// - Returns: An asynchronously-delivered tuple that contains the URL contents as
19 |     /// a `Data` instance, and a `URLResponse`.
20 |     func _data(for request: URLRequest) async throws -> (Data, URLResponse) {
   |                             `- error: cannot find type 'URLRequest' in scope
21 |         return try await withCheckedThrowingContinuation { continuation in
22 |             let task = self.dataTask(with: request) { data, response, error in
[14/27] Compiling PexelsSwift MockURLProtocol.swift
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:13:47: error: cannot find type 'URLRequest' in scope
11 | final class MockURLProtocol: URLProtocol {
12 |
13 |     override class func canInit(with request: URLRequest) -> Bool {
   |                                               `- error: cannot find type 'URLRequest' in scope
14 |         return true
15 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:70: error: cannot find type 'URLRequest' in scope
15 |     }
16 |
17 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                                      `- error: cannot find type 'URLRequest' in scope
18 |         return request
19 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:55: error: cannot find type 'URLRequest' in scope
15 |     }
16 |
17 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
18 |         return request
19 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:21:34: error: cannot find type 'URLRequest' in scope
19 |     }
20 |
21 |     static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
   |                                  `- error: cannot find type 'URLRequest' in scope
22 |
23 |     override func startLoading() {
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:21:16: warning: static property 'requestHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |     }
20 |
21 |     static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
   |                |- warning: static property 'requestHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'requestHandler' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'requestHandler' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 |     override func startLoading() {
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:23:19: error: method does not override any method from its superclass
21 |     static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
22 |
23 |     override func startLoading() {
   |                   `- error: method does not override any method from its superclass
24 |         guard let handler = MockURLProtocol.requestHandler else {
25 |             fatalError("Handler is unavailable.")
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:43:19: error: method does not override any method from its superclass
41 |     }
42 |
43 |     override func stopLoading() {
   |                   `- error: method does not override any method from its superclass
44 |
45 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:11:30: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | /// A subclass of `URLProtocol` to intercept URL requests for testing purposes.
11 | final class MockURLProtocol: URLProtocol {
   |                              `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 |     override class func canInit(with request: URLRequest) -> Bool {
Foundation.URLProtocol:2:18: note: 'URLProtocol' 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 URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:29:48: error: cannot find 'request' in scope
27 |
28 |         do {
29 |             let (response, data) = try handler(request)
   |                                                `- error: cannot find 'request' in scope
30 |
31 |             client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:31:13: error: cannot find 'client' in scope
29 |             let (response, data) = try handler(request)
30 |
31 |             client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
   |             `- error: cannot find 'client' in scope
32 |
33 |             if let data = data {
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:31:82: error: cannot infer contextual base in reference to member 'notAllowed'
29 |             let (response, data) = try handler(request)
30 |
31 |             client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
   |                                                                                  `- error: cannot infer contextual base in reference to member 'notAllowed'
32 |
33 |             if let data = data {
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:34:17: error: cannot find 'client' in scope
32 |
33 |             if let data = data {
34 |                 client?.urlProtocol(self, didLoad: data)
   |                 `- error: cannot find 'client' in scope
35 |             }
36 |
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:37:13: error: cannot find 'client' in scope
35 |             }
36 |
37 |             client?.urlProtocolDidFinishLoading(self)
   |             `- error: cannot find 'client' in scope
38 |         } catch {
39 |             client?.urlProtocol(self, didFailWithError: error)
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:39:13: error: cannot find 'client' in scope
37 |             client?.urlProtocolDidFinishLoading(self)
38 |         } catch {
39 |             client?.urlProtocol(self, didFailWithError: error)
   |             `- error: cannot find 'client' in scope
40 |         }
41 |     }
[15/27] Compiling PexelsSwift PexelsSwift+Collections.swift
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:13:47: error: cannot find type 'URLRequest' in scope
11 | final class MockURLProtocol: URLProtocol {
12 |
13 |     override class func canInit(with request: URLRequest) -> Bool {
   |                                               `- error: cannot find type 'URLRequest' in scope
14 |         return true
15 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:70: error: cannot find type 'URLRequest' in scope
15 |     }
16 |
17 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                                      `- error: cannot find type 'URLRequest' in scope
18 |         return request
19 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:55: error: cannot find type 'URLRequest' in scope
15 |     }
16 |
17 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
18 |         return request
19 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:21:34: error: cannot find type 'URLRequest' in scope
19 |     }
20 |
21 |     static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
   |                                  `- error: cannot find type 'URLRequest' in scope
22 |
23 |     override func startLoading() {
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:21:16: warning: static property 'requestHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |     }
20 |
21 |     static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
   |                |- warning: static property 'requestHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'requestHandler' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'requestHandler' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 |     override func startLoading() {
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:23:19: error: method does not override any method from its superclass
21 |     static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
22 |
23 |     override func startLoading() {
   |                   `- error: method does not override any method from its superclass
24 |         guard let handler = MockURLProtocol.requestHandler else {
25 |             fatalError("Handler is unavailable.")
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:43:19: error: method does not override any method from its superclass
41 |     }
42 |
43 |     override func stopLoading() {
   |                   `- error: method does not override any method from its superclass
44 |
45 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:11:30: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | /// A subclass of `URLProtocol` to intercept URL requests for testing purposes.
11 | final class MockURLProtocol: URLProtocol {
   |                              `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 |     override class func canInit(with request: URLRequest) -> Bool {
Foundation.URLProtocol:2:18: note: 'URLProtocol' 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 URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:29:48: error: cannot find 'request' in scope
27 |
28 |         do {
29 |             let (response, data) = try handler(request)
   |                                                `- error: cannot find 'request' in scope
30 |
31 |             client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:31:13: error: cannot find 'client' in scope
29 |             let (response, data) = try handler(request)
30 |
31 |             client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
   |             `- error: cannot find 'client' in scope
32 |
33 |             if let data = data {
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:31:82: error: cannot infer contextual base in reference to member 'notAllowed'
29 |             let (response, data) = try handler(request)
30 |
31 |             client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
   |                                                                                  `- error: cannot infer contextual base in reference to member 'notAllowed'
32 |
33 |             if let data = data {
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:34:17: error: cannot find 'client' in scope
32 |
33 |             if let data = data {
34 |                 client?.urlProtocol(self, didLoad: data)
   |                 `- error: cannot find 'client' in scope
35 |             }
36 |
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:37:13: error: cannot find 'client' in scope
35 |             }
36 |
37 |             client?.urlProtocolDidFinishLoading(self)
   |             `- error: cannot find 'client' in scope
38 |         } catch {
39 |             client?.urlProtocol(self, didFailWithError: error)
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:39:13: error: cannot find 'client' in scope
37 |             client?.urlProtocolDidFinishLoading(self)
38 |         } catch {
39 |             client?.urlProtocol(self, didFailWithError: error)
   |             `- error: cannot find 'client' in scope
40 |         }
41 |     }
[16/27] Compiling PexelsSwift PexelsSwift+API.swift
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:13:47: error: cannot find type 'URLRequest' in scope
11 | final class MockURLProtocol: URLProtocol {
12 |
13 |     override class func canInit(with request: URLRequest) -> Bool {
   |                                               `- error: cannot find type 'URLRequest' in scope
14 |         return true
15 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:70: error: cannot find type 'URLRequest' in scope
15 |     }
16 |
17 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                                      `- error: cannot find type 'URLRequest' in scope
18 |         return request
19 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:55: error: cannot find type 'URLRequest' in scope
15 |     }
16 |
17 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
18 |         return request
19 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:21:34: error: cannot find type 'URLRequest' in scope
19 |     }
20 |
21 |     static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
   |                                  `- error: cannot find type 'URLRequest' in scope
22 |
23 |     override func startLoading() {
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:21:16: warning: static property 'requestHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |     }
20 |
21 |     static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
   |                |- warning: static property 'requestHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'requestHandler' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'requestHandler' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 |     override func startLoading() {
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:23:19: error: method does not override any method from its superclass
21 |     static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
22 |
23 |     override func startLoading() {
   |                   `- error: method does not override any method from its superclass
24 |         guard let handler = MockURLProtocol.requestHandler else {
25 |             fatalError("Handler is unavailable.")
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:43:19: error: method does not override any method from its superclass
41 |     }
42 |
43 |     override func stopLoading() {
   |                   `- error: method does not override any method from its superclass
44 |
45 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:11:30: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | /// A subclass of `URLProtocol` to intercept URL requests for testing purposes.
11 | final class MockURLProtocol: URLProtocol {
   |                              `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 |     override class func canInit(with request: URLRequest) -> Bool {
Foundation.URLProtocol:2:18: note: 'URLProtocol' 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 URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:29:48: error: cannot find 'request' in scope
27 |
28 |         do {
29 |             let (response, data) = try handler(request)
   |                                                `- error: cannot find 'request' in scope
30 |
31 |             client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:31:13: error: cannot find 'client' in scope
29 |             let (response, data) = try handler(request)
30 |
31 |             client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
   |             `- error: cannot find 'client' in scope
32 |
33 |             if let data = data {
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:31:82: error: cannot infer contextual base in reference to member 'notAllowed'
29 |             let (response, data) = try handler(request)
30 |
31 |             client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
   |                                                                                  `- error: cannot infer contextual base in reference to member 'notAllowed'
32 |
33 |             if let data = data {
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:34:17: error: cannot find 'client' in scope
32 |
33 |             if let data = data {
34 |                 client?.urlProtocol(self, didLoad: data)
   |                 `- error: cannot find 'client' in scope
35 |             }
36 |
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:37:13: error: cannot find 'client' in scope
35 |             }
36 |
37 |             client?.urlProtocolDidFinishLoading(self)
   |             `- error: cannot find 'client' in scope
38 |         } catch {
39 |             client?.urlProtocol(self, didFailWithError: error)
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:39:13: error: cannot find 'client' in scope
37 |             client?.urlProtocolDidFinishLoading(self)
38 |         } catch {
39 |             client?.urlProtocol(self, didFailWithError: error)
   |             `- error: cannot find 'client' in scope
40 |         }
41 |     }
[17/27] Compiling PexelsSwift PexelsSwift+Color.swift
[18/27] Compiling PexelsSwift PexelsSwift+Orientation+Size+Locale.swift
[19/27] Compiling PexelsSwift PexelsSwift+QueryParameter.swift
[20/27] Compiling PexelsSwift PexelsSwift+RateLimit.swift
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Photos.swift:43:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 41 |     ///   - completion: A result type of ``PhotoResult``
 42 |     func getPhoto(by id: Int, completion: @escaping (PhotoResult) -> Void) {
 43 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 44 |             completion(await getPhoto(by: id))
    |                              `- note: closure captures 'self' which is accessible to code in the current task
 45 |         }
 46 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Photos.swift:83:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 81 |         completion: @escaping (PhotosResult) -> Void
 82 |     ) {
 83 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 84 |             completion(await getCuratedPhotos(page: page, count: count))
    |                              `- note: closure captures 'self' which is accessible to code in the current task
 85 |         }
 86 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Photos.swift:157:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
155 |         completion: @escaping (PhotosResult) -> Void
156 |     ) {
157 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
158 |             completion(await searchPhotos(
    |                              `- note: closure captures 'self' which is accessible to code in the current task
159 |                 query, orientation: orientation, size: size, color: color, locale: locale, page: page, count: count
160 |             ))
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Photos.swift:204:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
202 |         completion: @escaping (PhotosResult) -> Void
203 |     ) {
204 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
205 |             completion(await getPhotos(for: categoryID, page: page, count: count))
    |                              `- note: closure captures 'self' which is accessible to code in the current task
206 |         }
207 |     }
[21/27] Compiling PexelsSwift PexelsSwift+Results.swift
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Photos.swift:43:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 41 |     ///   - completion: A result type of ``PhotoResult``
 42 |     func getPhoto(by id: Int, completion: @escaping (PhotoResult) -> Void) {
 43 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 44 |             completion(await getPhoto(by: id))
    |                              `- note: closure captures 'self' which is accessible to code in the current task
 45 |         }
 46 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Photos.swift:83:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 81 |         completion: @escaping (PhotosResult) -> Void
 82 |     ) {
 83 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 84 |             completion(await getCuratedPhotos(page: page, count: count))
    |                              `- note: closure captures 'self' which is accessible to code in the current task
 85 |         }
 86 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Photos.swift:157:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
155 |         completion: @escaping (PhotosResult) -> Void
156 |     ) {
157 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
158 |             completion(await searchPhotos(
    |                              `- note: closure captures 'self' which is accessible to code in the current task
159 |                 query, orientation: orientation, size: size, color: color, locale: locale, page: page, count: count
160 |             ))
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Photos.swift:204:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
202 |         completion: @escaping (PhotosResult) -> Void
203 |     ) {
204 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
205 |             completion(await getPhotos(for: categoryID, page: page, count: count))
    |                              `- note: closure captures 'self' which is accessible to code in the current task
206 |         }
207 |     }
[22/27] Compiling PexelsSwift PexelsSwift+Photos.swift
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Photos.swift:43:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 41 |     ///   - completion: A result type of ``PhotoResult``
 42 |     func getPhoto(by id: Int, completion: @escaping (PhotoResult) -> Void) {
 43 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 44 |             completion(await getPhoto(by: id))
    |                              `- note: closure captures 'self' which is accessible to code in the current task
 45 |         }
 46 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Photos.swift:83:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 81 |         completion: @escaping (PhotosResult) -> Void
 82 |     ) {
 83 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 84 |             completion(await getCuratedPhotos(page: page, count: count))
    |                              `- note: closure captures 'self' which is accessible to code in the current task
 85 |         }
 86 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Photos.swift:157:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
155 |         completion: @escaping (PhotosResult) -> Void
156 |     ) {
157 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
158 |             completion(await searchPhotos(
    |                              `- note: closure captures 'self' which is accessible to code in the current task
159 |                 query, orientation: orientation, size: size, color: color, locale: locale, page: page, count: count
160 |             ))
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Photos.swift:204:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
202 |         completion: @escaping (PhotosResult) -> Void
203 |     ) {
204 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
205 |             completion(await getPhotos(for: categoryID, page: page, count: count))
    |                              `- note: closure captures 'self' which is accessible to code in the current task
206 |         }
207 |     }
[23/27] Compiling PexelsSwift PexelsSwift+Videos.swift
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:13:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 | public class PexelsSwift {
 12 |
 13 |     let urlSession: URLSession
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     internal init(urlSession: URLSession = .shared) {
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/PexelsSwift/PexelsSwift.swift:15:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     let urlSession: URLSession
 14 |
 15 |     internal init(urlSession: URLSession = .shared) {
    |                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         self.urlSession = urlSession
 17 |     }
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/PexelsSwift/PexelsSwift.swift:15:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 13 |     let urlSession: URLSession
 14 |
 15 |     internal init(urlSession: URLSession = .shared) {
    |                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 16 |         self.urlSession = urlSession
 17 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:26:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |         data: [PSVideo],
 25 |         paging: PSPagingInfo,
 26 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |     ), PSError>
 28 |
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/PexelsSwift/PexelsSwift.swift:32:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     public typealias VideoResult = Result<(
 31 |         data: PSVideo,
 32 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |     ), PSError>
 34 |
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/PexelsSwift/PexelsSwift.swift:39:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |         data: [PSPhoto],
 38 |         paging: PSPagingInfo,
 39 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |     ), PSError>
 41 |
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/PexelsSwift/PexelsSwift.swift:45:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |     public typealias PhotoResult = Result<(
 44 |         data: PSPhoto,
 45 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |     ), PSError>
 47 |
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/PexelsSwift/PexelsSwift.swift:52:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |         data: [PSCollection],
 51 |         paging: PSPagingInfo,
 52 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |     ), PSError>
 54 |
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/PexelsSwift/PexelsSwift.swift:56:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |
 55 |     /// Result type for a generic type of `<T>`.
 56 |     internal typealias PSResult<T> = Result<(data: T, response: HTTPURLResponse), PSError>
    |                                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |
 58 |     /// The singleton instance of ``PexelsSwift``
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/PexelsSwift/PexelsSwift.swift:59:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PexelsSwift' may have shared mutable state; this is an error in the Swift 6 language mode
  9 |
 10 | /// A singleton class for making API calls to the Pexels.com REST API.
 11 | public class PexelsSwift {
    |              `- note: class 'PexelsSwift' does not conform to the 'Sendable' protocol
 12 |
 13 |     let urlSession: URLSession
    :
 57 |
 58 |     /// The singleton instance of ``PexelsSwift``
 59 |     public static let shared: PexelsSwift = .init()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PexelsSwift' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 60 |
 61 |     /// The HTTP-Header field for the API Key
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:198:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     /// ``PexelsSwift/PexelsSwift/rateLimit-swift.property``, if possible
197 |     /// - Parameter response: The response to fetch the rate limit data from
198 |     private func saveRateLimits(for response: HTTPURLResponse) {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |         guard let limit = response.pexelsLimit,
200 |               let remaining = response.pexelsRemaining,
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/PexelsSwift/PexelsSwift.swift:159:19: error: cannot find 'URLRequest' in scope
157 |             return .failure(.noAPIKey)
158 |         }
159 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
160 |         req.setValue(apiKey, forHTTPHeaderField: apiHeader)
161 |         do {
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:163:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 |         do {
162 |             var data: Data
163 |             var response: URLResponse
    |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |             if #available(macOS 12.0, iOS 15.0, *) {
165 |                 (data, response) = try await urlSession.data(for: req)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:165:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
163 |             var response: URLResponse
164 |             if #available(macOS 12.0, iOS 15.0, *) {
165 |                 (data, response) = try await urlSession.data(for: req)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
166 |             } else { // async/await compatibility for iOS 13 & macOS 10.15
167 |                 (data, response) = try await urlSession._data(for: req)
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:167:57: error: value of type 'URLSession' (aka 'AnyObject') has no member '_data'
165 |                 (data, response) = try await urlSession.data(for: req)
166 |             } else { // async/await compatibility for iOS 13 & macOS 10.15
167 |                 (data, response) = try await urlSession._data(for: req)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member '_data'
168 |             }
169 |
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:170:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
168 |             }
169 |
170 |             guard let response = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
171 |                 logger.error(.noResponse(req.debugDescription))
172 |                 return .failure(.noResponse(req.debugDescription))
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:170:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 |             }
169 |
170 |             guard let response = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |                 logger.error(.noResponse(req.debugDescription))
172 |                 return .failure(.noResponse(req.debugDescription))
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/PexelsSwift/PexelsSwift.swift:178:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
176 |             saveRateLimits(for: response)
177 |
178 |             guard (200...299).contains(response.statusCode) else {
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
179 |                 logger.error(.httpResponse(response.statusCode))
180 |                 return .failure(.httpResponse(response.statusCode))
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:179:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
177 |
178 |             guard (200...299).contains(response.statusCode) else {
179 |                 logger.error(.httpResponse(response.statusCode))
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
180 |                 return .failure(.httpResponse(response.statusCode))
181 |             }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:180:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
178 |             guard (200...299).contains(response.statusCode) else {
179 |                 logger.error(.httpResponse(response.statusCode))
180 |                 return .failure(.httpResponse(response.statusCode))
    |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
181 |             }
182 |
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:199:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
197 |     /// - Parameter response: The response to fetch the rate limit data from
198 |     private func saveRateLimits(for response: HTTPURLResponse) {
199 |         guard let limit = response.pexelsLimit,
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
200 |               let remaining = response.pexelsRemaining,
201 |               let reset = response.pexelsReset
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:200:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
198 |     private func saveRateLimits(for response: HTTPURLResponse) {
199 |         guard let limit = response.pexelsLimit,
200 |               let remaining = response.pexelsRemaining,
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
201 |               let reset = response.pexelsReset
202 |         else { return }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:201:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
199 |         guard let limit = response.pexelsLimit,
200 |               let remaining = response.pexelsRemaining,
201 |               let reset = response.pexelsReset
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
202 |         else { return }
203 |
[24/27] Compiling PexelsSwift PexelsSwift.swift
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:13:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 | public class PexelsSwift {
 12 |
 13 |     let urlSession: URLSession
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     internal init(urlSession: URLSession = .shared) {
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/PexelsSwift/PexelsSwift.swift:15:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     let urlSession: URLSession
 14 |
 15 |     internal init(urlSession: URLSession = .shared) {
    |                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         self.urlSession = urlSession
 17 |     }
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/PexelsSwift/PexelsSwift.swift:15:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 13 |     let urlSession: URLSession
 14 |
 15 |     internal init(urlSession: URLSession = .shared) {
    |                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 16 |         self.urlSession = urlSession
 17 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:26:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |         data: [PSVideo],
 25 |         paging: PSPagingInfo,
 26 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |     ), PSError>
 28 |
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/PexelsSwift/PexelsSwift.swift:32:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     public typealias VideoResult = Result<(
 31 |         data: PSVideo,
 32 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |     ), PSError>
 34 |
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/PexelsSwift/PexelsSwift.swift:39:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |         data: [PSPhoto],
 38 |         paging: PSPagingInfo,
 39 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |     ), PSError>
 41 |
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/PexelsSwift/PexelsSwift.swift:45:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |     public typealias PhotoResult = Result<(
 44 |         data: PSPhoto,
 45 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |     ), PSError>
 47 |
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/PexelsSwift/PexelsSwift.swift:52:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |         data: [PSCollection],
 51 |         paging: PSPagingInfo,
 52 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |     ), PSError>
 54 |
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/PexelsSwift/PexelsSwift.swift:56:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |
 55 |     /// Result type for a generic type of `<T>`.
 56 |     internal typealias PSResult<T> = Result<(data: T, response: HTTPURLResponse), PSError>
    |                                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |
 58 |     /// The singleton instance of ``PexelsSwift``
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/PexelsSwift/PexelsSwift.swift:59:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PexelsSwift' may have shared mutable state; this is an error in the Swift 6 language mode
  9 |
 10 | /// A singleton class for making API calls to the Pexels.com REST API.
 11 | public class PexelsSwift {
    |              `- note: class 'PexelsSwift' does not conform to the 'Sendable' protocol
 12 |
 13 |     let urlSession: URLSession
    :
 57 |
 58 |     /// The singleton instance of ``PexelsSwift``
 59 |     public static let shared: PexelsSwift = .init()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PexelsSwift' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 60 |
 61 |     /// The HTTP-Header field for the API Key
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:198:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     /// ``PexelsSwift/PexelsSwift/rateLimit-swift.property``, if possible
197 |     /// - Parameter response: The response to fetch the rate limit data from
198 |     private func saveRateLimits(for response: HTTPURLResponse) {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |         guard let limit = response.pexelsLimit,
200 |               let remaining = response.pexelsRemaining,
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/PexelsSwift/PexelsSwift.swift:159:19: error: cannot find 'URLRequest' in scope
157 |             return .failure(.noAPIKey)
158 |         }
159 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
160 |         req.setValue(apiKey, forHTTPHeaderField: apiHeader)
161 |         do {
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:163:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 |         do {
162 |             var data: Data
163 |             var response: URLResponse
    |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |             if #available(macOS 12.0, iOS 15.0, *) {
165 |                 (data, response) = try await urlSession.data(for: req)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:165:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
163 |             var response: URLResponse
164 |             if #available(macOS 12.0, iOS 15.0, *) {
165 |                 (data, response) = try await urlSession.data(for: req)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
166 |             } else { // async/await compatibility for iOS 13 & macOS 10.15
167 |                 (data, response) = try await urlSession._data(for: req)
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:167:57: error: value of type 'URLSession' (aka 'AnyObject') has no member '_data'
165 |                 (data, response) = try await urlSession.data(for: req)
166 |             } else { // async/await compatibility for iOS 13 & macOS 10.15
167 |                 (data, response) = try await urlSession._data(for: req)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member '_data'
168 |             }
169 |
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:170:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
168 |             }
169 |
170 |             guard let response = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
171 |                 logger.error(.noResponse(req.debugDescription))
172 |                 return .failure(.noResponse(req.debugDescription))
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:170:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 |             }
169 |
170 |             guard let response = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |                 logger.error(.noResponse(req.debugDescription))
172 |                 return .failure(.noResponse(req.debugDescription))
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/PexelsSwift/PexelsSwift.swift:178:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
176 |             saveRateLimits(for: response)
177 |
178 |             guard (200...299).contains(response.statusCode) else {
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
179 |                 logger.error(.httpResponse(response.statusCode))
180 |                 return .failure(.httpResponse(response.statusCode))
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:179:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
177 |
178 |             guard (200...299).contains(response.statusCode) else {
179 |                 logger.error(.httpResponse(response.statusCode))
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
180 |                 return .failure(.httpResponse(response.statusCode))
181 |             }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:180:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
178 |             guard (200...299).contains(response.statusCode) else {
179 |                 logger.error(.httpResponse(response.statusCode))
180 |                 return .failure(.httpResponse(response.statusCode))
    |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
181 |             }
182 |
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:199:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
197 |     /// - Parameter response: The response to fetch the rate limit data from
198 |     private func saveRateLimits(for response: HTTPURLResponse) {
199 |         guard let limit = response.pexelsLimit,
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
200 |               let remaining = response.pexelsRemaining,
201 |               let reset = response.pexelsReset
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:200:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
198 |     private func saveRateLimits(for response: HTTPURLResponse) {
199 |         guard let limit = response.pexelsLimit,
200 |               let remaining = response.pexelsRemaining,
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
201 |               let reset = response.pexelsReset
202 |         else { return }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:201:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
199 |         guard let limit = response.pexelsLimit,
200 |               let remaining = response.pexelsRemaining,
201 |               let reset = response.pexelsReset
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
202 |         else { return }
203 |
[25/27] Compiling PexelsSwift PSCollection.swift
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:13:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 | public class PexelsSwift {
 12 |
 13 |     let urlSession: URLSession
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     internal init(urlSession: URLSession = .shared) {
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/PexelsSwift/PexelsSwift.swift:15:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     let urlSession: URLSession
 14 |
 15 |     internal init(urlSession: URLSession = .shared) {
    |                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         self.urlSession = urlSession
 17 |     }
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/PexelsSwift/PexelsSwift.swift:15:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 13 |     let urlSession: URLSession
 14 |
 15 |     internal init(urlSession: URLSession = .shared) {
    |                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 16 |         self.urlSession = urlSession
 17 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:26:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |         data: [PSVideo],
 25 |         paging: PSPagingInfo,
 26 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |     ), PSError>
 28 |
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/PexelsSwift/PexelsSwift.swift:32:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     public typealias VideoResult = Result<(
 31 |         data: PSVideo,
 32 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |     ), PSError>
 34 |
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/PexelsSwift/PexelsSwift.swift:39:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |         data: [PSPhoto],
 38 |         paging: PSPagingInfo,
 39 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |     ), PSError>
 41 |
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/PexelsSwift/PexelsSwift.swift:45:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |     public typealias PhotoResult = Result<(
 44 |         data: PSPhoto,
 45 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |     ), PSError>
 47 |
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/PexelsSwift/PexelsSwift.swift:52:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |         data: [PSCollection],
 51 |         paging: PSPagingInfo,
 52 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |     ), PSError>
 54 |
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/PexelsSwift/PexelsSwift.swift:56:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |
 55 |     /// Result type for a generic type of `<T>`.
 56 |     internal typealias PSResult<T> = Result<(data: T, response: HTTPURLResponse), PSError>
    |                                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |
 58 |     /// The singleton instance of ``PexelsSwift``
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/PexelsSwift/PexelsSwift.swift:59:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PexelsSwift' may have shared mutable state; this is an error in the Swift 6 language mode
  9 |
 10 | /// A singleton class for making API calls to the Pexels.com REST API.
 11 | public class PexelsSwift {
    |              `- note: class 'PexelsSwift' does not conform to the 'Sendable' protocol
 12 |
 13 |     let urlSession: URLSession
    :
 57 |
 58 |     /// The singleton instance of ``PexelsSwift``
 59 |     public static let shared: PexelsSwift = .init()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PexelsSwift' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 60 |
 61 |     /// The HTTP-Header field for the API Key
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:198:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     /// ``PexelsSwift/PexelsSwift/rateLimit-swift.property``, if possible
197 |     /// - Parameter response: The response to fetch the rate limit data from
198 |     private func saveRateLimits(for response: HTTPURLResponse) {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |         guard let limit = response.pexelsLimit,
200 |               let remaining = response.pexelsRemaining,
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/PexelsSwift/PexelsSwift.swift:159:19: error: cannot find 'URLRequest' in scope
157 |             return .failure(.noAPIKey)
158 |         }
159 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
160 |         req.setValue(apiKey, forHTTPHeaderField: apiHeader)
161 |         do {
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:163:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 |         do {
162 |             var data: Data
163 |             var response: URLResponse
    |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |             if #available(macOS 12.0, iOS 15.0, *) {
165 |                 (data, response) = try await urlSession.data(for: req)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:165:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
163 |             var response: URLResponse
164 |             if #available(macOS 12.0, iOS 15.0, *) {
165 |                 (data, response) = try await urlSession.data(for: req)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
166 |             } else { // async/await compatibility for iOS 13 & macOS 10.15
167 |                 (data, response) = try await urlSession._data(for: req)
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:167:57: error: value of type 'URLSession' (aka 'AnyObject') has no member '_data'
165 |                 (data, response) = try await urlSession.data(for: req)
166 |             } else { // async/await compatibility for iOS 13 & macOS 10.15
167 |                 (data, response) = try await urlSession._data(for: req)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member '_data'
168 |             }
169 |
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:170:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
168 |             }
169 |
170 |             guard let response = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
171 |                 logger.error(.noResponse(req.debugDescription))
172 |                 return .failure(.noResponse(req.debugDescription))
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:170:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 |             }
169 |
170 |             guard let response = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |                 logger.error(.noResponse(req.debugDescription))
172 |                 return .failure(.noResponse(req.debugDescription))
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/PexelsSwift/PexelsSwift.swift:178:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
176 |             saveRateLimits(for: response)
177 |
178 |             guard (200...299).contains(response.statusCode) else {
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
179 |                 logger.error(.httpResponse(response.statusCode))
180 |                 return .failure(.httpResponse(response.statusCode))
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:179:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
177 |
178 |             guard (200...299).contains(response.statusCode) else {
179 |                 logger.error(.httpResponse(response.statusCode))
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
180 |                 return .failure(.httpResponse(response.statusCode))
181 |             }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:180:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
178 |             guard (200...299).contains(response.statusCode) else {
179 |                 logger.error(.httpResponse(response.statusCode))
180 |                 return .failure(.httpResponse(response.statusCode))
    |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
181 |             }
182 |
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:199:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
197 |     /// - Parameter response: The response to fetch the rate limit data from
198 |     private func saveRateLimits(for response: HTTPURLResponse) {
199 |         guard let limit = response.pexelsLimit,
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
200 |               let remaining = response.pexelsRemaining,
201 |               let reset = response.pexelsReset
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:200:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
198 |     private func saveRateLimits(for response: HTTPURLResponse) {
199 |         guard let limit = response.pexelsLimit,
200 |               let remaining = response.pexelsRemaining,
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
201 |               let reset = response.pexelsReset
202 |         else { return }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:201:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
199 |         guard let limit = response.pexelsLimit,
200 |               let remaining = response.pexelsRemaining,
201 |               let reset = response.pexelsReset
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
202 |         else { return }
203 |
[26/27] Compiling PexelsSwift PSPagingInfo.swift
[27/27] Compiling PexelsSwift PSPhoto.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/24] Compiling PexelsSwift PSError.swift
/host/spi-builder-workspace/Sources/PexelsSwift/Extensions/HTTPURLResponse+.swift:10:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 8 | import Foundation
 9 |
10 | public extension HTTPURLResponse {
   |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 |     /// Returns an integer describing the Pexels API call limit, if set.
12 |     ///
[5/24] Compiling PexelsSwift Data+PrettyJSON.swift
/host/spi-builder-workspace/Sources/PexelsSwift/Extensions/HTTPURLResponse+.swift:10:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 8 | import Foundation
 9 |
10 | public extension HTTPURLResponse {
   |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 |     /// Returns an integer describing the Pexels API call limit, if set.
12 |     ///
[6/24] Compiling PexelsSwift HTTPURLResponse+.swift
/host/spi-builder-workspace/Sources/PexelsSwift/Extensions/HTTPURLResponse+.swift:10:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 8 | import Foundation
 9 |
10 | public extension HTTPURLResponse {
   |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 |     /// Returns an integer describing the Pexels API call limit, if set.
12 |     ///
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/26] Emitting module PexelsSwift
/host/spi-builder-workspace/Sources/PexelsSwift/Extensions/HTTPURLResponse+.swift:10:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 8 | import Foundation
 9 |
10 | public extension HTTPURLResponse {
   |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 |     /// Returns an integer describing the Pexels API call limit, if set.
12 |     ///
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:77:31: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |     /// ``PSLogLevel/info`` or ``PSLogLevel/debug``.
 76 |     /// - Parameter response: The response to log.
 77 |     func response(_ response: HTTPURLResponse) {
    |                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |         guard logLevel == .info || logLevel == .debug else { return }
 79 |         var logMessage = logTitle(for: .info)
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/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:13:47: error: cannot find type 'URLRequest' in scope
11 | final class MockURLProtocol: URLProtocol {
12 |
13 |     override class func canInit(with request: URLRequest) -> Bool {
   |                                               `- error: cannot find type 'URLRequest' in scope
14 |         return true
15 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:70: error: cannot find type 'URLRequest' in scope
15 |     }
16 |
17 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                                      `- error: cannot find type 'URLRequest' in scope
18 |         return request
19 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:55: error: cannot find type 'URLRequest' in scope
15 |     }
16 |
17 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
18 |         return request
19 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:21:34: error: cannot find type 'URLRequest' in scope
19 |     }
20 |
21 |     static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
   |                                  `- error: cannot find type 'URLRequest' in scope
22 |
23 |     override func startLoading() {
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:23:19: error: method does not override any method from its superclass
21 |     static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
22 |
23 |     override func startLoading() {
   |                   `- error: method does not override any method from its superclass
24 |         guard let handler = MockURLProtocol.requestHandler else {
25 |             fatalError("Handler is unavailable.")
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:43:19: error: method does not override any method from its superclass
41 |     }
42 |
43 |     override func stopLoading() {
   |                   `- error: method does not override any method from its superclass
44 |
45 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:11:30: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | /// A subclass of `URLProtocol` to intercept URL requests for testing purposes.
11 | final class MockURLProtocol: URLProtocol {
   |                              `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 |     override class func canInit(with request: URLRequest) -> Bool {
Foundation.URLProtocol:2:18: note: 'URLProtocol' 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 URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:13:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 | public class PexelsSwift {
 12 |
 13 |     let urlSession: URLSession
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     internal init(urlSession: URLSession = .shared) {
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/PexelsSwift/PexelsSwift.swift:15:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     let urlSession: URLSession
 14 |
 15 |     internal init(urlSession: URLSession = .shared) {
    |                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         self.urlSession = urlSession
 17 |     }
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/PexelsSwift/PexelsSwift.swift:15:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 13 |     let urlSession: URLSession
 14 |
 15 |     internal init(urlSession: URLSession = .shared) {
    |                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 16 |         self.urlSession = urlSession
 17 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:26:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |         data: [PSVideo],
 25 |         paging: PSPagingInfo,
 26 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |     ), PSError>
 28 |
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/PexelsSwift/PexelsSwift.swift:32:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     public typealias VideoResult = Result<(
 31 |         data: PSVideo,
 32 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |     ), PSError>
 34 |
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/PexelsSwift/PexelsSwift.swift:39:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |         data: [PSPhoto],
 38 |         paging: PSPagingInfo,
 39 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |     ), PSError>
 41 |
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/PexelsSwift/PexelsSwift.swift:45:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |     public typealias PhotoResult = Result<(
 44 |         data: PSPhoto,
 45 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |     ), PSError>
 47 |
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/PexelsSwift/PexelsSwift.swift:52:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |         data: [PSCollection],
 51 |         paging: PSPagingInfo,
 52 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |     ), PSError>
 54 |
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/PexelsSwift/PexelsSwift.swift:56:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |
 55 |     /// Result type for a generic type of `<T>`.
 56 |     internal typealias PSResult<T> = Result<(data: T, response: HTTPURLResponse), PSError>
    |                                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |
 58 |     /// The singleton instance of ``PexelsSwift``
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/PexelsSwift/PexelsSwift.swift:198:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     /// ``PexelsSwift/PexelsSwift/rateLimit-swift.property``, if possible
197 |     /// - Parameter response: The response to fetch the rate limit data from
198 |     private func saveRateLimits(for response: HTTPURLResponse) {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |         guard let limit = response.pexelsLimit,
200 |               let remaining = response.pexelsRemaining,
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/PexelsSwift/_Deprecated/URLSession+DataForRequest.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
10 | @available(iOS, deprecated: 15, message: "Use the built-in API instead")
11 | @available(macOS, deprecated: 12, message: "Use the built-in API instead")
12 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 |     /// Downloads the contents of a URL based on the specified URL request and delivers the data asynchronously.
14 |     ///
[8/26] Compiling PexelsSwift PSVideo.swift
/host/spi-builder-workspace/Sources/PexelsSwift/_Deprecated/URLSession+DataForRequest.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
10 | @available(iOS, deprecated: 15, message: "Use the built-in API instead")
11 | @available(macOS, deprecated: 12, message: "Use the built-in API instead")
12 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 |     /// Downloads the contents of a URL based on the specified URL request and delivers the data asynchronously.
14 |     ///
/host/spi-builder-workspace/Sources/PexelsSwift/_Deprecated/URLSession+DataForRequest.swift:20:29: error: cannot find type 'URLRequest' in scope
18 |     /// - Returns: An asynchronously-delivered tuple that contains the URL contents as
19 |     /// a `Data` instance, and a `URLResponse`.
20 |     func _data(for request: URLRequest) async throws -> (Data, URLResponse) {
   |                             `- error: cannot find type 'URLRequest' in scope
21 |         return try await withCheckedThrowingContinuation { continuation in
22 |             let task = self.dataTask(with: request) { data, response, error in
[9/26] Compiling PexelsSwift URLSession+DataForRequest.swift
/host/spi-builder-workspace/Sources/PexelsSwift/_Deprecated/URLSession+DataForRequest.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
10 | @available(iOS, deprecated: 15, message: "Use the built-in API instead")
11 | @available(macOS, deprecated: 12, message: "Use the built-in API instead")
12 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 |     /// Downloads the contents of a URL based on the specified URL request and delivers the data asynchronously.
14 |     ///
/host/spi-builder-workspace/Sources/PexelsSwift/_Deprecated/URLSession+DataForRequest.swift:20:29: error: cannot find type 'URLRequest' in scope
18 |     /// - Returns: An asynchronously-delivered tuple that contains the URL contents as
19 |     /// a `Data` instance, and a `URLResponse`.
20 |     func _data(for request: URLRequest) async throws -> (Data, URLResponse) {
   |                             `- error: cannot find type 'URLRequest' in scope
21 |         return try await withCheckedThrowingContinuation { continuation in
22 |             let task = self.dataTask(with: request) { data, response, error in
[10/26] Compiling PexelsSwift PexelsSwift+Color.swift
[11/26] Compiling PexelsSwift PexelsSwift+Orientation+Size+Locale.swift
[12/26] Compiling PexelsSwift PexelsSwift+QueryParameter.swift
[13/26] Compiling PexelsSwift PSPagingInfo.swift
[14/26] Compiling PexelsSwift PSPhoto.swift
[15/26] Compiling PexelsSwift Int+String.swift
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:77:31: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |     /// ``PSLogLevel/info`` or ``PSLogLevel/debug``.
 76 |     /// - Parameter response: The response to log.
 77 |     func response(_ response: HTTPURLResponse) {
    |                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |         guard logLevel == .info || logLevel == .debug else { return }
 79 |         var logMessage = logTitle(for: .info)
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/PexelsSwift/Logger/PSLogger.swift:80:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 78 |         guard logLevel == .info || logLevel == .debug else { return }
 79 |         var logMessage = logTitle(for: .info)
 80 |         logMessage.append("Code: \(response.statusCode),")
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 81 |         logMessage.append("URL: \(response.url?.absoluteString ?? "Invalid URL"),")
 82 |         if (200...299).contains(response.statusCode) {
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:81:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 79 |         var logMessage = logTitle(for: .info)
 80 |         logMessage.append("Code: \(response.statusCode),")
 81 |         logMessage.append("URL: \(response.url?.absoluteString ?? "Invalid URL"),")
    |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 82 |         if (200...299).contains(response.statusCode) {
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:82:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |         logMessage.append("Code: \(response.statusCode),")
 81 |         logMessage.append("URL: \(response.url?.absoluteString ?? "Invalid URL"),")
 82 |         if (200...299).contains(response.statusCode) {
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
 84 |             logMessage.append("Remaining: \(response.pexelsRemaining?.string ?? "Fetching failed"),")
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:83:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
 81 |         logMessage.append("URL: \(response.url?.absoluteString ?? "Invalid URL"),")
 82 |         if (200...299).contains(response.statusCode) {
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
    |                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
 84 |             logMessage.append("Remaining: \(response.pexelsRemaining?.string ?? "Fetching failed"),")
 85 |             logMessage.append("Reset on: \(response.pexelsReset?.description ?? "Fetching Failed")")
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:84:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
 82 |         if (200...299).contains(response.statusCode) {
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
 84 |             logMessage.append("Remaining: \(response.pexelsRemaining?.string ?? "Fetching failed"),")
    |                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
 85 |             logMessage.append("Reset on: \(response.pexelsReset?.description ?? "Fetching Failed")")
 86 |         } else {
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:85:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
 84 |             logMessage.append("Remaining: \(response.pexelsRemaining?.string ?? "Fetching failed"),")
 85 |             logMessage.append("Reset on: \(response.pexelsReset?.description ?? "Fetching Failed")")
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
 86 |         } else {
 87 |             logMessage.append("Response: \(response.description)")
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:87:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
 85 |             logMessage.append("Reset on: \(response.pexelsReset?.description ?? "Fetching Failed")")
 86 |         } else {
 87 |             logMessage.append("Response: \(response.description)")
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
 88 |         }
 89 |         print(logMessage)
[16/26] Compiling PexelsSwift PSLogLevel.swift
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:77:31: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |     /// ``PSLogLevel/info`` or ``PSLogLevel/debug``.
 76 |     /// - Parameter response: The response to log.
 77 |     func response(_ response: HTTPURLResponse) {
    |                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |         guard logLevel == .info || logLevel == .debug else { return }
 79 |         var logMessage = logTitle(for: .info)
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/PexelsSwift/Logger/PSLogger.swift:80:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 78 |         guard logLevel == .info || logLevel == .debug else { return }
 79 |         var logMessage = logTitle(for: .info)
 80 |         logMessage.append("Code: \(response.statusCode),")
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 81 |         logMessage.append("URL: \(response.url?.absoluteString ?? "Invalid URL"),")
 82 |         if (200...299).contains(response.statusCode) {
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:81:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 79 |         var logMessage = logTitle(for: .info)
 80 |         logMessage.append("Code: \(response.statusCode),")
 81 |         logMessage.append("URL: \(response.url?.absoluteString ?? "Invalid URL"),")
    |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 82 |         if (200...299).contains(response.statusCode) {
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:82:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |         logMessage.append("Code: \(response.statusCode),")
 81 |         logMessage.append("URL: \(response.url?.absoluteString ?? "Invalid URL"),")
 82 |         if (200...299).contains(response.statusCode) {
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
 84 |             logMessage.append("Remaining: \(response.pexelsRemaining?.string ?? "Fetching failed"),")
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:83:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
 81 |         logMessage.append("URL: \(response.url?.absoluteString ?? "Invalid URL"),")
 82 |         if (200...299).contains(response.statusCode) {
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
    |                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
 84 |             logMessage.append("Remaining: \(response.pexelsRemaining?.string ?? "Fetching failed"),")
 85 |             logMessage.append("Reset on: \(response.pexelsReset?.description ?? "Fetching Failed")")
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:84:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
 82 |         if (200...299).contains(response.statusCode) {
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
 84 |             logMessage.append("Remaining: \(response.pexelsRemaining?.string ?? "Fetching failed"),")
    |                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
 85 |             logMessage.append("Reset on: \(response.pexelsReset?.description ?? "Fetching Failed")")
 86 |         } else {
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:85:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
 84 |             logMessage.append("Remaining: \(response.pexelsRemaining?.string ?? "Fetching failed"),")
 85 |             logMessage.append("Reset on: \(response.pexelsReset?.description ?? "Fetching Failed")")
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
 86 |         } else {
 87 |             logMessage.append("Response: \(response.description)")
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:87:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
 85 |             logMessage.append("Reset on: \(response.pexelsReset?.description ?? "Fetching Failed")")
 86 |         } else {
 87 |             logMessage.append("Response: \(response.description)")
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
 88 |         }
 89 |         print(logMessage)
[17/26] Compiling PexelsSwift PSLogger.swift
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:77:31: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |     /// ``PSLogLevel/info`` or ``PSLogLevel/debug``.
 76 |     /// - Parameter response: The response to log.
 77 |     func response(_ response: HTTPURLResponse) {
    |                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |         guard logLevel == .info || logLevel == .debug else { return }
 79 |         var logMessage = logTitle(for: .info)
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/PexelsSwift/Logger/PSLogger.swift:80:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 78 |         guard logLevel == .info || logLevel == .debug else { return }
 79 |         var logMessage = logTitle(for: .info)
 80 |         logMessage.append("Code: \(response.statusCode),")
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 81 |         logMessage.append("URL: \(response.url?.absoluteString ?? "Invalid URL"),")
 82 |         if (200...299).contains(response.statusCode) {
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:81:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 79 |         var logMessage = logTitle(for: .info)
 80 |         logMessage.append("Code: \(response.statusCode),")
 81 |         logMessage.append("URL: \(response.url?.absoluteString ?? "Invalid URL"),")
    |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 82 |         if (200...299).contains(response.statusCode) {
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:82:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |         logMessage.append("Code: \(response.statusCode),")
 81 |         logMessage.append("URL: \(response.url?.absoluteString ?? "Invalid URL"),")
 82 |         if (200...299).contains(response.statusCode) {
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
 84 |             logMessage.append("Remaining: \(response.pexelsRemaining?.string ?? "Fetching failed"),")
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:83:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
 81 |         logMessage.append("URL: \(response.url?.absoluteString ?? "Invalid URL"),")
 82 |         if (200...299).contains(response.statusCode) {
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
    |                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
 84 |             logMessage.append("Remaining: \(response.pexelsRemaining?.string ?? "Fetching failed"),")
 85 |             logMessage.append("Reset on: \(response.pexelsReset?.description ?? "Fetching Failed")")
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:84:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
 82 |         if (200...299).contains(response.statusCode) {
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
 84 |             logMessage.append("Remaining: \(response.pexelsRemaining?.string ?? "Fetching failed"),")
    |                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
 85 |             logMessage.append("Reset on: \(response.pexelsReset?.description ?? "Fetching Failed")")
 86 |         } else {
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:85:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
 83 |             logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
 84 |             logMessage.append("Remaining: \(response.pexelsRemaining?.string ?? "Fetching failed"),")
 85 |             logMessage.append("Reset on: \(response.pexelsReset?.description ?? "Fetching Failed")")
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
 86 |         } else {
 87 |             logMessage.append("Response: \(response.description)")
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:87:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
 85 |             logMessage.append("Reset on: \(response.pexelsReset?.description ?? "Fetching Failed")")
 86 |         } else {
 87 |             logMessage.append("Response: \(response.description)")
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
 88 |         }
 89 |         print(logMessage)
[18/26] Compiling PexelsSwift PexelsSwift+Videos.swift
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:13:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 | public class PexelsSwift {
 12 |
 13 |     let urlSession: URLSession
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     internal init(urlSession: URLSession = .shared) {
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/PexelsSwift/PexelsSwift.swift:15:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     let urlSession: URLSession
 14 |
 15 |     internal init(urlSession: URLSession = .shared) {
    |                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         self.urlSession = urlSession
 17 |     }
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/PexelsSwift/PexelsSwift.swift:15:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 13 |     let urlSession: URLSession
 14 |
 15 |     internal init(urlSession: URLSession = .shared) {
    |                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 16 |         self.urlSession = urlSession
 17 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:26:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |         data: [PSVideo],
 25 |         paging: PSPagingInfo,
 26 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |     ), PSError>
 28 |
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/PexelsSwift/PexelsSwift.swift:32:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     public typealias VideoResult = Result<(
 31 |         data: PSVideo,
 32 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |     ), PSError>
 34 |
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/PexelsSwift/PexelsSwift.swift:39:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |         data: [PSPhoto],
 38 |         paging: PSPagingInfo,
 39 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |     ), PSError>
 41 |
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/PexelsSwift/PexelsSwift.swift:45:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |     public typealias PhotoResult = Result<(
 44 |         data: PSPhoto,
 45 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |     ), PSError>
 47 |
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/PexelsSwift/PexelsSwift.swift:52:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |         data: [PSCollection],
 51 |         paging: PSPagingInfo,
 52 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |     ), PSError>
 54 |
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/PexelsSwift/PexelsSwift.swift:56:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |
 55 |     /// Result type for a generic type of `<T>`.
 56 |     internal typealias PSResult<T> = Result<(data: T, response: HTTPURLResponse), PSError>
    |                                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |
 58 |     /// The singleton instance of ``PexelsSwift``
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/PexelsSwift/PexelsSwift.swift:198:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     /// ``PexelsSwift/PexelsSwift/rateLimit-swift.property``, if possible
197 |     /// - Parameter response: The response to fetch the rate limit data from
198 |     private func saveRateLimits(for response: HTTPURLResponse) {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |         guard let limit = response.pexelsLimit,
200 |               let remaining = response.pexelsRemaining,
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/PexelsSwift/PexelsSwift.swift:159:19: error: cannot find 'URLRequest' in scope
157 |             return .failure(.noAPIKey)
158 |         }
159 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
160 |         req.setValue(apiKey, forHTTPHeaderField: apiHeader)
161 |         do {
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:163:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 |         do {
162 |             var data: Data
163 |             var response: URLResponse
    |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |             if #available(macOS 12.0, iOS 15.0, *) {
165 |                 (data, response) = try await urlSession.data(for: req)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:165:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
163 |             var response: URLResponse
164 |             if #available(macOS 12.0, iOS 15.0, *) {
165 |                 (data, response) = try await urlSession.data(for: req)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
166 |             } else { // async/await compatibility for iOS 13 & macOS 10.15
167 |                 (data, response) = try await urlSession._data(for: req)
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:167:57: error: value of type 'URLSession' (aka 'AnyObject') has no member '_data'
165 |                 (data, response) = try await urlSession.data(for: req)
166 |             } else { // async/await compatibility for iOS 13 & macOS 10.15
167 |                 (data, response) = try await urlSession._data(for: req)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member '_data'
168 |             }
169 |
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:170:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
168 |             }
169 |
170 |             guard let response = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
171 |                 logger.error(.noResponse(req.debugDescription))
172 |                 return .failure(.noResponse(req.debugDescription))
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:170:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 |             }
169 |
170 |             guard let response = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |                 logger.error(.noResponse(req.debugDescription))
172 |                 return .failure(.noResponse(req.debugDescription))
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/PexelsSwift/PexelsSwift.swift:178:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
176 |             saveRateLimits(for: response)
177 |
178 |             guard (200...299).contains(response.statusCode) else {
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
179 |                 logger.error(.httpResponse(response.statusCode))
180 |                 return .failure(.httpResponse(response.statusCode))
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:179:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
177 |
178 |             guard (200...299).contains(response.statusCode) else {
179 |                 logger.error(.httpResponse(response.statusCode))
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
180 |                 return .failure(.httpResponse(response.statusCode))
181 |             }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:180:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
178 |             guard (200...299).contains(response.statusCode) else {
179 |                 logger.error(.httpResponse(response.statusCode))
180 |                 return .failure(.httpResponse(response.statusCode))
    |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
181 |             }
182 |
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:199:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
197 |     /// - Parameter response: The response to fetch the rate limit data from
198 |     private func saveRateLimits(for response: HTTPURLResponse) {
199 |         guard let limit = response.pexelsLimit,
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
200 |               let remaining = response.pexelsRemaining,
201 |               let reset = response.pexelsReset
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:200:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
198 |     private func saveRateLimits(for response: HTTPURLResponse) {
199 |         guard let limit = response.pexelsLimit,
200 |               let remaining = response.pexelsRemaining,
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
201 |               let reset = response.pexelsReset
202 |         else { return }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:201:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
199 |         guard let limit = response.pexelsLimit,
200 |               let remaining = response.pexelsRemaining,
201 |               let reset = response.pexelsReset
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
202 |         else { return }
203 |
[19/26] Compiling PexelsSwift PexelsSwift.swift
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:13:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 | public class PexelsSwift {
 12 |
 13 |     let urlSession: URLSession
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     internal init(urlSession: URLSession = .shared) {
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/PexelsSwift/PexelsSwift.swift:15:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     let urlSession: URLSession
 14 |
 15 |     internal init(urlSession: URLSession = .shared) {
    |                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         self.urlSession = urlSession
 17 |     }
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/PexelsSwift/PexelsSwift.swift:15:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 13 |     let urlSession: URLSession
 14 |
 15 |     internal init(urlSession: URLSession = .shared) {
    |                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 16 |         self.urlSession = urlSession
 17 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:26:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |         data: [PSVideo],
 25 |         paging: PSPagingInfo,
 26 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |     ), PSError>
 28 |
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/PexelsSwift/PexelsSwift.swift:32:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     public typealias VideoResult = Result<(
 31 |         data: PSVideo,
 32 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |     ), PSError>
 34 |
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/PexelsSwift/PexelsSwift.swift:39:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |         data: [PSPhoto],
 38 |         paging: PSPagingInfo,
 39 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |     ), PSError>
 41 |
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/PexelsSwift/PexelsSwift.swift:45:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |     public typealias PhotoResult = Result<(
 44 |         data: PSPhoto,
 45 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |     ), PSError>
 47 |
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/PexelsSwift/PexelsSwift.swift:52:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |         data: [PSCollection],
 51 |         paging: PSPagingInfo,
 52 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |     ), PSError>
 54 |
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/PexelsSwift/PexelsSwift.swift:56:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |
 55 |     /// Result type for a generic type of `<T>`.
 56 |     internal typealias PSResult<T> = Result<(data: T, response: HTTPURLResponse), PSError>
    |                                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |
 58 |     /// The singleton instance of ``PexelsSwift``
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/PexelsSwift/PexelsSwift.swift:198:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     /// ``PexelsSwift/PexelsSwift/rateLimit-swift.property``, if possible
197 |     /// - Parameter response: The response to fetch the rate limit data from
198 |     private func saveRateLimits(for response: HTTPURLResponse) {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |         guard let limit = response.pexelsLimit,
200 |               let remaining = response.pexelsRemaining,
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/PexelsSwift/PexelsSwift.swift:159:19: error: cannot find 'URLRequest' in scope
157 |             return .failure(.noAPIKey)
158 |         }
159 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
160 |         req.setValue(apiKey, forHTTPHeaderField: apiHeader)
161 |         do {
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:163:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 |         do {
162 |             var data: Data
163 |             var response: URLResponse
    |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |             if #available(macOS 12.0, iOS 15.0, *) {
165 |                 (data, response) = try await urlSession.data(for: req)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:165:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
163 |             var response: URLResponse
164 |             if #available(macOS 12.0, iOS 15.0, *) {
165 |                 (data, response) = try await urlSession.data(for: req)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
166 |             } else { // async/await compatibility for iOS 13 & macOS 10.15
167 |                 (data, response) = try await urlSession._data(for: req)
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:167:57: error: value of type 'URLSession' (aka 'AnyObject') has no member '_data'
165 |                 (data, response) = try await urlSession.data(for: req)
166 |             } else { // async/await compatibility for iOS 13 & macOS 10.15
167 |                 (data, response) = try await urlSession._data(for: req)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member '_data'
168 |             }
169 |
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:170:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
168 |             }
169 |
170 |             guard let response = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
171 |                 logger.error(.noResponse(req.debugDescription))
172 |                 return .failure(.noResponse(req.debugDescription))
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:170:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 |             }
169 |
170 |             guard let response = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |                 logger.error(.noResponse(req.debugDescription))
172 |                 return .failure(.noResponse(req.debugDescription))
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/PexelsSwift/PexelsSwift.swift:178:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
176 |             saveRateLimits(for: response)
177 |
178 |             guard (200...299).contains(response.statusCode) else {
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
179 |                 logger.error(.httpResponse(response.statusCode))
180 |                 return .failure(.httpResponse(response.statusCode))
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:179:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
177 |
178 |             guard (200...299).contains(response.statusCode) else {
179 |                 logger.error(.httpResponse(response.statusCode))
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
180 |                 return .failure(.httpResponse(response.statusCode))
181 |             }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:180:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
178 |             guard (200...299).contains(response.statusCode) else {
179 |                 logger.error(.httpResponse(response.statusCode))
180 |                 return .failure(.httpResponse(response.statusCode))
    |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
181 |             }
182 |
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:199:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
197 |     /// - Parameter response: The response to fetch the rate limit data from
198 |     private func saveRateLimits(for response: HTTPURLResponse) {
199 |         guard let limit = response.pexelsLimit,
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
200 |               let remaining = response.pexelsRemaining,
201 |               let reset = response.pexelsReset
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:200:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
198 |     private func saveRateLimits(for response: HTTPURLResponse) {
199 |         guard let limit = response.pexelsLimit,
200 |               let remaining = response.pexelsRemaining,
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
201 |               let reset = response.pexelsReset
202 |         else { return }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:201:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
199 |         guard let limit = response.pexelsLimit,
200 |               let remaining = response.pexelsRemaining,
201 |               let reset = response.pexelsReset
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
202 |         else { return }
203 |
[20/26] Compiling PexelsSwift PSCollection.swift
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:13:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 | public class PexelsSwift {
 12 |
 13 |     let urlSession: URLSession
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     internal init(urlSession: URLSession = .shared) {
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/PexelsSwift/PexelsSwift.swift:15:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     let urlSession: URLSession
 14 |
 15 |     internal init(urlSession: URLSession = .shared) {
    |                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         self.urlSession = urlSession
 17 |     }
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/PexelsSwift/PexelsSwift.swift:15:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 13 |     let urlSession: URLSession
 14 |
 15 |     internal init(urlSession: URLSession = .shared) {
    |                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 16 |         self.urlSession = urlSession
 17 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:26:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |         data: [PSVideo],
 25 |         paging: PSPagingInfo,
 26 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |     ), PSError>
 28 |
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/PexelsSwift/PexelsSwift.swift:32:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     public typealias VideoResult = Result<(
 31 |         data: PSVideo,
 32 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |     ), PSError>
 34 |
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/PexelsSwift/PexelsSwift.swift:39:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |         data: [PSPhoto],
 38 |         paging: PSPagingInfo,
 39 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |     ), PSError>
 41 |
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/PexelsSwift/PexelsSwift.swift:45:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |     public typealias PhotoResult = Result<(
 44 |         data: PSPhoto,
 45 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |     ), PSError>
 47 |
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/PexelsSwift/PexelsSwift.swift:52:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |         data: [PSCollection],
 51 |         paging: PSPagingInfo,
 52 |         response: HTTPURLResponse
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |     ), PSError>
 54 |
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/PexelsSwift/PexelsSwift.swift:56:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |
 55 |     /// Result type for a generic type of `<T>`.
 56 |     internal typealias PSResult<T> = Result<(data: T, response: HTTPURLResponse), PSError>
    |                                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |
 58 |     /// The singleton instance of ``PexelsSwift``
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/PexelsSwift/PexelsSwift.swift:198:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     /// ``PexelsSwift/PexelsSwift/rateLimit-swift.property``, if possible
197 |     /// - Parameter response: The response to fetch the rate limit data from
198 |     private func saveRateLimits(for response: HTTPURLResponse) {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |         guard let limit = response.pexelsLimit,
200 |               let remaining = response.pexelsRemaining,
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/PexelsSwift/PexelsSwift.swift:159:19: error: cannot find 'URLRequest' in scope
157 |             return .failure(.noAPIKey)
158 |         }
159 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
160 |         req.setValue(apiKey, forHTTPHeaderField: apiHeader)
161 |         do {
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:163:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 |         do {
162 |             var data: Data
163 |             var response: URLResponse
    |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |             if #available(macOS 12.0, iOS 15.0, *) {
165 |                 (data, response) = try await urlSession.data(for: req)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:165:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
163 |             var response: URLResponse
164 |             if #available(macOS 12.0, iOS 15.0, *) {
165 |                 (data, response) = try await urlSession.data(for: req)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
166 |             } else { // async/await compatibility for iOS 13 & macOS 10.15
167 |                 (data, response) = try await urlSession._data(for: req)
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:167:57: error: value of type 'URLSession' (aka 'AnyObject') has no member '_data'
165 |                 (data, response) = try await urlSession.data(for: req)
166 |             } else { // async/await compatibility for iOS 13 & macOS 10.15
167 |                 (data, response) = try await urlSession._data(for: req)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member '_data'
168 |             }
169 |
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:170:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
168 |             }
169 |
170 |             guard let response = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
171 |                 logger.error(.noResponse(req.debugDescription))
172 |                 return .failure(.noResponse(req.debugDescription))
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:170:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 |             }
169 |
170 |             guard let response = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |                 logger.error(.noResponse(req.debugDescription))
172 |                 return .failure(.noResponse(req.debugDescription))
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/PexelsSwift/PexelsSwift.swift:178:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
176 |             saveRateLimits(for: response)
177 |
178 |             guard (200...299).contains(response.statusCode) else {
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
179 |                 logger.error(.httpResponse(response.statusCode))
180 |                 return .failure(.httpResponse(response.statusCode))
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:179:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
177 |
178 |             guard (200...299).contains(response.statusCode) else {
179 |                 logger.error(.httpResponse(response.statusCode))
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
180 |                 return .failure(.httpResponse(response.statusCode))
181 |             }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:180:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
178 |             guard (200...299).contains(response.statusCode) else {
179 |                 logger.error(.httpResponse(response.statusCode))
180 |                 return .failure(.httpResponse(response.statusCode))
    |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
181 |             }
182 |
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:199:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
197 |     /// - Parameter response: The response to fetch the rate limit data from
198 |     private func saveRateLimits(for response: HTTPURLResponse) {
199 |         guard let limit = response.pexelsLimit,
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
200 |               let remaining = response.pexelsRemaining,
201 |               let reset = response.pexelsReset
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:200:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
198 |     private func saveRateLimits(for response: HTTPURLResponse) {
199 |         guard let limit = response.pexelsLimit,
200 |               let remaining = response.pexelsRemaining,
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
201 |               let reset = response.pexelsReset
202 |         else { return }
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:201:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
199 |         guard let limit = response.pexelsLimit,
200 |               let remaining = response.pexelsRemaining,
201 |               let reset = response.pexelsReset
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
202 |         else { return }
203 |
[21/26] Compiling PexelsSwift MockURLProtocol.swift
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:13:47: error: cannot find type 'URLRequest' in scope
11 | final class MockURLProtocol: URLProtocol {
12 |
13 |     override class func canInit(with request: URLRequest) -> Bool {
   |                                               `- error: cannot find type 'URLRequest' in scope
14 |         return true
15 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:70: error: cannot find type 'URLRequest' in scope
15 |     }
16 |
17 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                                      `- error: cannot find type 'URLRequest' in scope
18 |         return request
19 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:55: error: cannot find type 'URLRequest' in scope
15 |     }
16 |
17 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
18 |         return request
19 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:21:34: error: cannot find type 'URLRequest' in scope
19 |     }
20 |
21 |     static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
   |                                  `- error: cannot find type 'URLRequest' in scope
22 |
23 |     override func startLoading() {
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:23:19: error: method does not override any method from its superclass
21 |     static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
22 |
23 |     override func startLoading() {
   |                   `- error: method does not override any method from its superclass
24 |         guard let handler = MockURLProtocol.requestHandler else {
25 |             fatalError("Handler is unavailable.")
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:43:19: error: method does not override any method from its superclass
41 |     }
42 |
43 |     override func stopLoading() {
   |                   `- error: method does not override any method from its superclass
44 |
45 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:11:30: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | /// A subclass of `URLProtocol` to intercept URL requests for testing purposes.
11 | final class MockURLProtocol: URLProtocol {
   |                              `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 |     override class func canInit(with request: URLRequest) -> Bool {
Foundation.URLProtocol:2:18: note: 'URLProtocol' 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 URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:29:48: error: cannot find 'request' in scope
27 |
28 |         do {
29 |             let (response, data) = try handler(request)
   |                                                `- error: cannot find 'request' in scope
30 |
31 |             client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:31:13: error: cannot find 'client' in scope
29 |             let (response, data) = try handler(request)
30 |
31 |             client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
   |             `- error: cannot find 'client' in scope
32 |
33 |             if let data = data {
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:31:82: error: cannot infer contextual base in reference to member 'notAllowed'
29 |             let (response, data) = try handler(request)
30 |
31 |             client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
   |                                                                                  `- error: cannot infer contextual base in reference to member 'notAllowed'
32 |
33 |             if let data = data {
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:34:17: error: cannot find 'client' in scope
32 |
33 |             if let data = data {
34 |                 client?.urlProtocol(self, didLoad: data)
   |                 `- error: cannot find 'client' in scope
35 |             }
36 |
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:37:13: error: cannot find 'client' in scope
35 |             }
36 |
37 |             client?.urlProtocolDidFinishLoading(self)
   |             `- error: cannot find 'client' in scope
38 |         } catch {
39 |             client?.urlProtocol(self, didFailWithError: error)
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:39:13: error: cannot find 'client' in scope
37 |             client?.urlProtocolDidFinishLoading(self)
38 |         } catch {
39 |             client?.urlProtocol(self, didFailWithError: error)
   |             `- error: cannot find 'client' in scope
40 |         }
41 |     }
[22/26] Compiling PexelsSwift PexelsSwift+Collections.swift
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:13:47: error: cannot find type 'URLRequest' in scope
11 | final class MockURLProtocol: URLProtocol {
12 |
13 |     override class func canInit(with request: URLRequest) -> Bool {
   |                                               `- error: cannot find type 'URLRequest' in scope
14 |         return true
15 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:70: error: cannot find type 'URLRequest' in scope
15 |     }
16 |
17 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                                      `- error: cannot find type 'URLRequest' in scope
18 |         return request
19 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:55: error: cannot find type 'URLRequest' in scope
15 |     }
16 |
17 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
18 |         return request
19 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:21:34: error: cannot find type 'URLRequest' in scope
19 |     }
20 |
21 |     static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
   |                                  `- error: cannot find type 'URLRequest' in scope
22 |
23 |     override func startLoading() {
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:23:19: error: method does not override any method from its superclass
21 |     static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
22 |
23 |     override func startLoading() {
   |                   `- error: method does not override any method from its superclass
24 |         guard let handler = MockURLProtocol.requestHandler else {
25 |             fatalError("Handler is unavailable.")
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:43:19: error: method does not override any method from its superclass
41 |     }
42 |
43 |     override func stopLoading() {
   |                   `- error: method does not override any method from its superclass
44 |
45 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:11:30: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | /// A subclass of `URLProtocol` to intercept URL requests for testing purposes.
11 | final class MockURLProtocol: URLProtocol {
   |                              `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 |     override class func canInit(with request: URLRequest) -> Bool {
Foundation.URLProtocol:2:18: note: 'URLProtocol' 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 URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:29:48: error: cannot find 'request' in scope
27 |
28 |         do {
29 |             let (response, data) = try handler(request)
   |                                                `- error: cannot find 'request' in scope
30 |
31 |             client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:31:13: error: cannot find 'client' in scope
29 |             let (response, data) = try handler(request)
30 |
31 |             client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
   |             `- error: cannot find 'client' in scope
32 |
33 |             if let data = data {
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:31:82: error: cannot infer contextual base in reference to member 'notAllowed'
29 |             let (response, data) = try handler(request)
30 |
31 |             client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
   |                                                                                  `- error: cannot infer contextual base in reference to member 'notAllowed'
32 |
33 |             if let data = data {
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:34:17: error: cannot find 'client' in scope
32 |
33 |             if let data = data {
34 |                 client?.urlProtocol(self, didLoad: data)
   |                 `- error: cannot find 'client' in scope
35 |             }
36 |
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:37:13: error: cannot find 'client' in scope
35 |             }
36 |
37 |             client?.urlProtocolDidFinishLoading(self)
   |             `- error: cannot find 'client' in scope
38 |         } catch {
39 |             client?.urlProtocol(self, didFailWithError: error)
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:39:13: error: cannot find 'client' in scope
37 |             client?.urlProtocolDidFinishLoading(self)
38 |         } catch {
39 |             client?.urlProtocol(self, didFailWithError: error)
   |             `- error: cannot find 'client' in scope
40 |         }
41 |     }
[23/26] Compiling PexelsSwift PexelsSwift+API.swift
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:13:47: error: cannot find type 'URLRequest' in scope
11 | final class MockURLProtocol: URLProtocol {
12 |
13 |     override class func canInit(with request: URLRequest) -> Bool {
   |                                               `- error: cannot find type 'URLRequest' in scope
14 |         return true
15 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:70: error: cannot find type 'URLRequest' in scope
15 |     }
16 |
17 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                                      `- error: cannot find type 'URLRequest' in scope
18 |         return request
19 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:55: error: cannot find type 'URLRequest' in scope
15 |     }
16 |
17 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
18 |         return request
19 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:21:34: error: cannot find type 'URLRequest' in scope
19 |     }
20 |
21 |     static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
   |                                  `- error: cannot find type 'URLRequest' in scope
22 |
23 |     override func startLoading() {
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:23:19: error: method does not override any method from its superclass
21 |     static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
22 |
23 |     override func startLoading() {
   |                   `- error: method does not override any method from its superclass
24 |         guard let handler = MockURLProtocol.requestHandler else {
25 |             fatalError("Handler is unavailable.")
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:43:19: error: method does not override any method from its superclass
41 |     }
42 |
43 |     override func stopLoading() {
   |                   `- error: method does not override any method from its superclass
44 |
45 |     }
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:11:30: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | /// A subclass of `URLProtocol` to intercept URL requests for testing purposes.
11 | final class MockURLProtocol: URLProtocol {
   |                              `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 |     override class func canInit(with request: URLRequest) -> Bool {
Foundation.URLProtocol:2:18: note: 'URLProtocol' 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 URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:29:48: error: cannot find 'request' in scope
27 |
28 |         do {
29 |             let (response, data) = try handler(request)
   |                                                `- error: cannot find 'request' in scope
30 |
31 |             client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:31:13: error: cannot find 'client' in scope
29 |             let (response, data) = try handler(request)
30 |
31 |             client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
   |             `- error: cannot find 'client' in scope
32 |
33 |             if let data = data {
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:31:82: error: cannot infer contextual base in reference to member 'notAllowed'
29 |             let (response, data) = try handler(request)
30 |
31 |             client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
   |                                                                                  `- error: cannot infer contextual base in reference to member 'notAllowed'
32 |
33 |             if let data = data {
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:34:17: error: cannot find 'client' in scope
32 |
33 |             if let data = data {
34 |                 client?.urlProtocol(self, didLoad: data)
   |                 `- error: cannot find 'client' in scope
35 |             }
36 |
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:37:13: error: cannot find 'client' in scope
35 |             }
36 |
37 |             client?.urlProtocolDidFinishLoading(self)
   |             `- error: cannot find 'client' in scope
38 |         } catch {
39 |             client?.urlProtocol(self, didFailWithError: error)
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:39:13: error: cannot find 'client' in scope
37 |             client?.urlProtocolDidFinishLoading(self)
38 |         } catch {
39 |             client?.urlProtocol(self, didFailWithError: error)
   |             `- error: cannot find 'client' in scope
40 |         }
41 |     }
[24/26] Compiling PexelsSwift PexelsSwift+RateLimit.swift
[25/26] Compiling PexelsSwift PexelsSwift+Results.swift
[26/26] Compiling PexelsSwift PexelsSwift+Photos.swift
BUILD FAILURE 6.1 linux