The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PexelsSwift with Swift 5.7 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/lukepistrol/Pexels-Swift.git
Reference: main
Cloned https://github.com/lukepistrol/Pexels-Swift.git into spi-builder-workspace
SUCCESS checkout https://github.com/lukepistrol/Pexels-Swift.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.7
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build 2>&1
Fetching https://github.com/apple/swift-docc-symbolkit
Fetching https://github.com/apple/swift-docc-plugin
[1/1423] Fetching swift-docc-plugin
[1311/3557] Fetching swift-docc-plugin, swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit (0.43s)
Fetched https://github.com/apple/swift-docc-plugin (0.44s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.2.0 (0.33s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.36s)
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/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.2.0
Compiling plugin Swift-DocC...
Compiling plugin Swift-DocC Preview...
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)[1/21] Emitting module PexelsSwift
/host/spi-builder-workspace/Sources/PexelsSwift/Extensions/HTTPURLResponse+.swift:10:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
public extension HTTPURLResponse {
       ^         ~~~~~~~~~~~~~~~
/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.
    func response(_ response: HTTPURLResponse) {
                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:13:47: error: cannot find type 'URLRequest' in scope
    override class func canInit(with request: URLRequest) -> Bool {
                                              ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:13:25: error: method does not override any method from its superclass
    override class func canInit(with request: URLRequest) -> Bool {
    ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:70: error: cannot find type 'URLRequest' in scope
    override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:55: error: cannot find type 'URLRequest' in scope
    override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:25: error: method does not override any method from its superclass
    override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:21:34: error: cannot find type 'URLRequest' in scope
    static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
                                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:23:19: error: method does not override any method from its superclass
    override func startLoading() {
    ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:43:19: error: method does not override any method from its superclass
    override func stopLoading() {
    ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:11:13: error: only protocols can inherit from 'AnyObject'
final class MockURLProtocol: URLProtocol {
            ^
/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.
final class MockURLProtocol: URLProtocol {
                             ^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
                 ^
/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.
    let urlSession: URLSession
                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/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.
    internal init(urlSession: URLSession = .shared) {
                              ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:15:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    internal init(urlSession: URLSession = .shared) {
                                           ~^~~~~~
/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.
        response: HTTPURLResponse
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/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.
        response: HTTPURLResponse
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/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.
        response: HTTPURLResponse
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/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.
        response: HTTPURLResponse
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/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.
        response: HTTPURLResponse
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/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.
    internal typealias PSResult<T> = Result<(data: T, response: HTTPURLResponse), PSError>
                                                                ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/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.
    private func saveRateLimits(for response: HTTPURLResponse) {
                                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/PexelsSwift/_Deprecated/URLSession+DataForRequest.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^         ~~~~~~~~~~
[2/23] Compiling PexelsSwift PexelsSwift+Color.swift
[3/23] Compiling PexelsSwift PexelsSwift+Orientation+Size+Locale.swift
[4/23] Compiling PexelsSwift PexelsSwift+QueryParameter.swift
[5/23] Compiling PexelsSwift PSPagingInfo.swift
[6/23] Compiling PexelsSwift PSPhoto.swift
[7/23] Compiling PexelsSwift PexelsSwift+RateLimit.swift
[8/23] Compiling PexelsSwift PexelsSwift+Results.swift
[9/23] Compiling PexelsSwift PexelsSwift+Photos.swift
[10/23] 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
public extension HTTPURLResponse {
       ^         ~~~~~~~~~~~~~~~
[11/23] 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
public extension HTTPURLResponse {
       ^         ~~~~~~~~~~~~~~~
[12/23] 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
public extension HTTPURLResponse {
       ^         ~~~~~~~~~~~~~~~
[13/23] 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.
    func response(_ response: HTTPURLResponse) {
                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:80:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        logMessage.append("Code: \(response.statusCode),")
                                   ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:81:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
        logMessage.append("URL: \(response.url?.absoluteString ?? "Invalid URL"),")
                                  ~~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:82:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        if (200...299).contains(response.statusCode) {
                                ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:83:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
            logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
                                             ~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:84:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
            logMessage.append("Remaining: \(response.pexelsRemaining?.string ?? "Fetching failed"),")
                                            ~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:85:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
            logMessage.append("Reset on: \(response.pexelsReset?.description ?? "Fetching Failed")")
                                           ~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:87:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
            logMessage.append("Response: \(response.description)")
                                           ~~~~~~~~ ^~~~~~~~~~~
[14/23] 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.
    func response(_ response: HTTPURLResponse) {
                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:80:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        logMessage.append("Code: \(response.statusCode),")
                                   ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:81:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
        logMessage.append("URL: \(response.url?.absoluteString ?? "Invalid URL"),")
                                  ~~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:82:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        if (200...299).contains(response.statusCode) {
                                ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:83:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
            logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
                                             ~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:84:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
            logMessage.append("Remaining: \(response.pexelsRemaining?.string ?? "Fetching failed"),")
                                            ~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:85:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
            logMessage.append("Reset on: \(response.pexelsReset?.description ?? "Fetching Failed")")
                                           ~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:87:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
            logMessage.append("Response: \(response.description)")
                                           ~~~~~~~~ ^~~~~~~~~~~
[15/23] 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.
    func response(_ response: HTTPURLResponse) {
                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:80:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        logMessage.append("Code: \(response.statusCode),")
                                   ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:81:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
        logMessage.append("URL: \(response.url?.absoluteString ?? "Invalid URL"),")
                                  ~~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:82:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        if (200...299).contains(response.statusCode) {
                                ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:83:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
            logMessage.append("Rate Limit: \(response.pexelsLimit?.string ?? "Fetching failed"),")
                                             ~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:84:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
            logMessage.append("Remaining: \(response.pexelsRemaining?.string ?? "Fetching failed"),")
                                            ~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:85:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
            logMessage.append("Reset on: \(response.pexelsReset?.description ?? "Fetching Failed")")
                                           ~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/Logger/PSLogger.swift:87:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
            logMessage.append("Response: \(response.description)")
                                           ~~~~~~~~ ^~~~~~~~~~~
[16/23] Compiling PexelsSwift MockURLProtocol.swift
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:13:47: error: cannot find type 'URLRequest' in scope
    override class func canInit(with request: URLRequest) -> Bool {
                                              ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:13:25: error: method does not override any method from its superclass
    override class func canInit(with request: URLRequest) -> Bool {
    ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:70: error: cannot find type 'URLRequest' in scope
    override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:55: error: cannot find type 'URLRequest' in scope
    override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:25: error: method does not override any method from its superclass
    override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:21:34: error: cannot find type 'URLRequest' in scope
    static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
                                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:23:19: error: method does not override any method from its superclass
    override func startLoading() {
    ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:43:19: error: method does not override any method from its superclass
    override func stopLoading() {
    ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:11:13: error: only protocols can inherit from 'AnyObject'
final class MockURLProtocol: URLProtocol {
            ^
/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.
final class MockURLProtocol: URLProtocol {
                             ^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
                 ^
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:24:45: error: type of expression is ambiguous without more context
        guard let handler = MockURLProtocol.requestHandler else {
                            ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:29:48: error: cannot find 'request' in scope
            let (response, data) = try handler(request)
                                               ^~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:31:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
            ^~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:34:17: error: cannot find 'client' in scope
                client?.urlProtocol(self, didLoad: data)
                ^~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:37:13: error: cannot find 'client' in scope
            client?.urlProtocolDidFinishLoading(self)
            ^~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:39:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didFailWithError: error)
            ^~~~~~
[17/23] Compiling PexelsSwift PexelsSwift+Collections.swift
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:13:47: error: cannot find type 'URLRequest' in scope
    override class func canInit(with request: URLRequest) -> Bool {
                                              ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:13:25: error: method does not override any method from its superclass
    override class func canInit(with request: URLRequest) -> Bool {
    ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:70: error: cannot find type 'URLRequest' in scope
    override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:55: error: cannot find type 'URLRequest' in scope
    override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:25: error: method does not override any method from its superclass
    override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:21:34: error: cannot find type 'URLRequest' in scope
    static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
                                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:23:19: error: method does not override any method from its superclass
    override func startLoading() {
    ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:43:19: error: method does not override any method from its superclass
    override func stopLoading() {
    ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:11:13: error: only protocols can inherit from 'AnyObject'
final class MockURLProtocol: URLProtocol {
            ^
/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.
final class MockURLProtocol: URLProtocol {
                             ^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
                 ^
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:24:45: error: type of expression is ambiguous without more context
        guard let handler = MockURLProtocol.requestHandler else {
                            ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:29:48: error: cannot find 'request' in scope
            let (response, data) = try handler(request)
                                               ^~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:31:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
            ^~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:34:17: error: cannot find 'client' in scope
                client?.urlProtocol(self, didLoad: data)
                ^~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:37:13: error: cannot find 'client' in scope
            client?.urlProtocolDidFinishLoading(self)
            ^~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:39:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didFailWithError: error)
            ^~~~~~
[18/23] Compiling PexelsSwift PexelsSwift+API.swift
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:13:47: error: cannot find type 'URLRequest' in scope
    override class func canInit(with request: URLRequest) -> Bool {
                                              ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:13:25: error: method does not override any method from its superclass
    override class func canInit(with request: URLRequest) -> Bool {
    ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:70: error: cannot find type 'URLRequest' in scope
    override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:55: error: cannot find type 'URLRequest' in scope
    override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:17:25: error: method does not override any method from its superclass
    override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:21:34: error: cannot find type 'URLRequest' in scope
    static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
                                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:23:19: error: method does not override any method from its superclass
    override func startLoading() {
    ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:43:19: error: method does not override any method from its superclass
    override func stopLoading() {
    ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:11:13: error: only protocols can inherit from 'AnyObject'
final class MockURLProtocol: URLProtocol {
            ^
/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.
final class MockURLProtocol: URLProtocol {
                             ^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
                 ^
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:24:45: error: type of expression is ambiguous without more context
        guard let handler = MockURLProtocol.requestHandler else {
                            ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:29:48: error: cannot find 'request' in scope
            let (response, data) = try handler(request)
                                               ^~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:31:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
            ^~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:34:17: error: cannot find 'client' in scope
                client?.urlProtocol(self, didLoad: data)
                ^~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:37:13: error: cannot find 'client' in scope
            client?.urlProtocolDidFinishLoading(self)
            ^~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:39:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didFailWithError: error)
            ^~~~~~
[19/23] 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.
    let urlSession: URLSession
                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/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.
    internal init(urlSession: URLSession = .shared) {
                              ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:15:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    internal init(urlSession: URLSession = .shared) {
                                           ~^~~~~~
/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.
        response: HTTPURLResponse
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/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.
        response: HTTPURLResponse
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/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.
        response: HTTPURLResponse
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/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.
        response: HTTPURLResponse
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/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.
        response: HTTPURLResponse
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/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.
    internal typealias PSResult<T> = Result<(data: T, response: HTTPURLResponse), PSError>
                                                                ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/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.
    private func saveRateLimits(for response: HTTPURLResponse) {
                                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:159:19: error: cannot find 'URLRequest' in scope
        var req = URLRequest(url: url)
                  ^~~~~~~~~~
/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.
            var response: URLResponse
                          ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:165:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
                (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'
                (data, response) = try await urlSession._data(for: req)
                                             ~~~~~~~~~~ ^~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:170:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
            guard let response = response as? HTTPURLResponse else {
                                          ^
/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.
            guard let response = response as? HTTPURLResponse else {
                                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:178:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            guard (200...299).contains(response.statusCode) else {
                                       ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:179:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                logger.error(.httpResponse(response.statusCode))
                                           ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:180:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                return .failure(.httpResponse(response.statusCode))
                                              ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:199:36: error: type of expression is ambiguous without more context
        guard let limit = response.pexelsLimit,
                          ~~~~~~~~~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:200:40: error: type of expression is ambiguous without more context
              let remaining = response.pexelsRemaining,
                              ~~~~~~~~~^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:201:36: error: type of expression is ambiguous without more context
              let reset = response.pexelsReset
                          ~~~~~~~~~^~~~~~~~~~~
[20/23] 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.
    let urlSession: URLSession
                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/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.
    internal init(urlSession: URLSession = .shared) {
                              ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:15:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    internal init(urlSession: URLSession = .shared) {
                                           ~^~~~~~
/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.
        response: HTTPURLResponse
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/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.
        response: HTTPURLResponse
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/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.
        response: HTTPURLResponse
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/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.
        response: HTTPURLResponse
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/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.
        response: HTTPURLResponse
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/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.
    internal typealias PSResult<T> = Result<(data: T, response: HTTPURLResponse), PSError>
                                                                ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/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.
    private func saveRateLimits(for response: HTTPURLResponse) {
                                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:159:19: error: cannot find 'URLRequest' in scope
        var req = URLRequest(url: url)
                  ^~~~~~~~~~
/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.
            var response: URLResponse
                          ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:165:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
                (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'
                (data, response) = try await urlSession._data(for: req)
                                             ~~~~~~~~~~ ^~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:170:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
            guard let response = response as? HTTPURLResponse else {
                                          ^
/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.
            guard let response = response as? HTTPURLResponse else {
                                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:178:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            guard (200...299).contains(response.statusCode) else {
                                       ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:179:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                logger.error(.httpResponse(response.statusCode))
                                           ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:180:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                return .failure(.httpResponse(response.statusCode))
                                              ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:199:36: error: type of expression is ambiguous without more context
        guard let limit = response.pexelsLimit,
                          ~~~~~~~~~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:200:40: error: type of expression is ambiguous without more context
              let remaining = response.pexelsRemaining,
                              ~~~~~~~~~^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:201:36: error: type of expression is ambiguous without more context
              let reset = response.pexelsReset
                          ~~~~~~~~~^~~~~~~~~~~
[21/23] 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.
    let urlSession: URLSession
                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/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.
    internal init(urlSession: URLSession = .shared) {
                              ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:15:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    internal init(urlSession: URLSession = .shared) {
                                           ~^~~~~~
/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.
        response: HTTPURLResponse
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/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.
        response: HTTPURLResponse
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/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.
        response: HTTPURLResponse
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/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.
        response: HTTPURLResponse
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/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.
        response: HTTPURLResponse
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/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.
    internal typealias PSResult<T> = Result<(data: T, response: HTTPURLResponse), PSError>
                                                                ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/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.
    private func saveRateLimits(for response: HTTPURLResponse) {
                                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:159:19: error: cannot find 'URLRequest' in scope
        var req = URLRequest(url: url)
                  ^~~~~~~~~~
/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.
            var response: URLResponse
                          ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:165:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
                (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'
                (data, response) = try await urlSession._data(for: req)
                                             ~~~~~~~~~~ ^~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:170:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
            guard let response = response as? HTTPURLResponse else {
                                          ^
/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.
            guard let response = response as? HTTPURLResponse else {
                                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:178:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            guard (200...299).contains(response.statusCode) else {
                                       ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:179:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                logger.error(.httpResponse(response.statusCode))
                                           ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:180:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                return .failure(.httpResponse(response.statusCode))
                                              ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:199:36: error: type of expression is ambiguous without more context
        guard let limit = response.pexelsLimit,
                          ~~~~~~~~~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:200:40: error: type of expression is ambiguous without more context
              let remaining = response.pexelsRemaining,
                              ~~~~~~~~~^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:201:36: error: type of expression is ambiguous without more context
              let reset = response.pexelsReset
                          ~~~~~~~~~^~~~~~~~~~~
[22/23] 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
extension URLSession {
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/_Deprecated/URLSession+DataForRequest.swift:20:29: error: cannot find type 'URLRequest' in scope
    func _data(for request: URLRequest) async throws -> (Data, URLResponse) {
                            ^~~~~~~~~~
[23/23] 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
extension URLSession {
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/_Deprecated/URLSession+DataForRequest.swift:20:29: error: cannot find type 'URLRequest' in scope
    func _data(for request: URLRequest) async throws -> (Data, URLResponse) {
                            ^~~~~~~~~~
BUILD FAILURE 5.7 linux

Build Machine: Linux 2