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.0 for Linux on 1 Dec 2024 03:02:47 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/lukepistrol/Pexels-Swift.git
Reference: 1.0.1
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/lukepistrol/Pexels-Swift
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at feef363 Merge pull request #16 from itzaks/main
Cloned https://github.com/lukepistrol/Pexels-Swift.git
Revision (git rev-parse @):
feef3637b92ea25baf9588a25578090b6a01d2af
SUCCESS checkout https://github.com/lukepistrol/Pexels-Swift.git at 1.0.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/lukepistrol/Pexels-Swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-docc-plugin
[1/2038] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.36s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (0.53s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3188] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.35s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.54s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.3
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/25] 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:13:25: error: method does not override any method from its superclass
11 | final class MockURLProtocol: URLProtocol {
12 |
13 |     override class func canInit(with request: URLRequest) -> Bool {
   |                         `- error: method does not override any method from its superclass
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:17:25: error: method does not override any method from its superclass
15 |     }
16 |
17 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                         `- error: method does not override any method from its superclass
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: annotate 'requestHandler' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: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: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 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/_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 |     ///
[6/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
[7/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
[8/27] Compiling PexelsSwift PexelsSwift+Color.swift
[9/27] Compiling PexelsSwift PexelsSwift+Orientation+Size+Locale.swift
[10/27] Compiling PexelsSwift PexelsSwift+QueryParameter.swift
[11/27] Compiling PexelsSwift PSPagingInfo.swift
[12/27] Compiling PexelsSwift PSPhoto.swift
[13/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 |     }
[14/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 |     }
[15/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 |     }
[16/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:13:25: error: method does not override any method from its superclass
11 | final class MockURLProtocol: URLProtocol {
12 |
13 |     override class func canInit(with request: URLRequest) -> Bool {
   |                         `- error: method does not override any method from its superclass
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:17:25: error: method does not override any method from its superclass
15 |     }
16 |
17 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                         `- error: method does not override any method from its superclass
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: annotate 'requestHandler' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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+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:13:25: error: method does not override any method from its superclass
11 | final class MockURLProtocol: URLProtocol {
12 |
13 |     override class func canInit(with request: URLRequest) -> Bool {
   |                         `- error: method does not override any method from its superclass
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:17:25: error: method does not override any method from its superclass
15 |     }
16 |
17 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                         `- error: method does not override any method from its superclass
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: annotate 'requestHandler' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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 |     }
[18/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:13:25: error: method does not override any method from its superclass
11 | final class MockURLProtocol: URLProtocol {
12 |
13 |     override class func canInit(with request: URLRequest) -> Bool {
   |                         `- error: method does not override any method from its superclass
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:17:25: error: method does not override any method from its superclass
15 |     }
16 |
17 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                         `- error: method does not override any method from its superclass
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: annotate 'requestHandler' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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 |     }
[19/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: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 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 |
[20/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: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 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 |
[21/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: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 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 |
[22/27] 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)
[23/27] 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)
[24/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)
[25/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 |     ///
[26/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 |     ///
[27/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 |     ///
BUILD FAILURE 6.0 linux