Build Information
Failed to build PexelsSwift with Swift 5.9 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.39.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: 5.9
Building package at path: $workDir
https://github.com/lukepistrol/Pexels-Swift.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-docc-symbolkit
[1/1458] Fetching swift-docc-plugin
[483/4311] Fetching swift-docc-plugin, swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit (0.35s)
Fetched https://github.com/apple/swift-docc-plugin (0.36s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.2.0 (0.34s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.37s)
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
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values
switch dependency {
^
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: note: handle unknown values using "@unknown default"
switch dependency {
^
[1/1] Compiling plugin Swift-DocC
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values
switch dependency {
^
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: note: handle unknown values using "@unknown default"
switch dependency {
^
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/23] 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 {
^ ~~~~~~~~~~
[4/25] 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: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
guard let limit = response.pexelsLimit,
~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:200:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
let remaining = response.pexelsRemaining,
~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:201:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
let reset = response.pexelsReset
~~~~~~~~ ^~~~~~~~~~~
[5/25] 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: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
guard let limit = response.pexelsLimit,
~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:200:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
let remaining = response.pexelsRemaining,
~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:201:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
let reset = response.pexelsReset
~~~~~~~~ ^~~~~~~~~~~
[6/25] 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: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsLimit'
guard let limit = response.pexelsLimit,
~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:200:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsRemaining'
let remaining = response.pexelsRemaining,
~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:201:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'pexelsReset'
let reset = response.pexelsReset
~~~~~~~~ ^~~~~~~~~~~
[7/25] 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 {
^ ~~~~~~~~~~~~~~~
[8/25] 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 {
^ ~~~~~~~~~~~~~~~
[9/25] 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 {
^ ~~~~~~~~~~~~~~~
[10/25] Compiling PexelsSwift PSPagingInfo.swift
[11/25] Compiling PexelsSwift PSPhoto.swift
[12/25] 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)")
~~~~~~~~ ^~~~~~~~~~~
[13/25] 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)")
~~~~~~~~ ^~~~~~~~~~~
[14/25] 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)")
~~~~~~~~ ^~~~~~~~~~~
[15/25] Compiling PexelsSwift PexelsSwift+Color.swift
[16/25] Compiling PexelsSwift PexelsSwift+Orientation+Size+Locale.swift
[17/25] Compiling PexelsSwift PexelsSwift+QueryParameter.swift
[18/25] Compiling PexelsSwift PexelsSwift+RateLimit.swift
[19/25] Compiling PexelsSwift PexelsSwift+Results.swift
[20/25] Compiling PexelsSwift PexelsSwift+Photos.swift
[21/25] 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: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:31:82: error: cannot infer contextual base in reference to member 'notAllowed'
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)
^~~~~~
[22/25] 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: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:31:82: error: cannot infer contextual base in reference to member 'notAllowed'
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)
^~~~~~
[23/25] 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: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:31:82: error: cannot infer contextual base in reference to member 'notAllowed'
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)
^~~~~~
[24/25] 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) {
^~~~~~~~~~
[25/25] 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) {
^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux