Build Information
Failed to build ApiKit with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.30.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/danielsaidi/ApiKit.git
Reference: 0.7.0
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/danielsaidi/ApiKit
* tag 0.7.0 -> FETCH_HEAD
HEAD is now at c54cbb6 Bump to 0.7.0
Cloned https://github.com/danielsaidi/ApiKit.git
Revision (git rev-parse @):
c54cbb6ec76a2ac75f1d9980bbffa52c7ad5a120
SUCCESS checkout https://github.com/danielsaidi/ApiKit.git at 0.7.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/danielsaidi/ApiKit.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/18] Emitting module ApiKit
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:32:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: ApiClient {}
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:34:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
public extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:28:22: error: cannot find type 'URLRequest' in scope
for request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:29:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:47:20: error: cannot find type 'URLRequest' in scope
_ request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:67:23: error: cannot find type 'URLRequest' in scope
with request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:85:18: error: cannot find type 'URLRequest' in scope
request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:86:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: URLResponse,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:41: error: cannot find type 'URLRequest' in scope
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:15:13: error: type 'ApiError' does not conform to protocol 'Equatable'
public enum ApiError: Error, Equatable, LocalizedError {
^
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:41: note: associated value type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'ApiError' to 'Equatable'
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:53: note: associated value type 'URLResponse' (aka 'AnyObject') does not conform to protocol 'Equatable', preventing synthesized conformance of 'ApiError' to 'Equatable'
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^
Swift.==:1:24: note: candidate would match if 'ApiError' conformed to 'RawRepresentable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
^
Swift.FloatingPoint:2:24: note: candidate would match if 'ApiError' conformed to 'FloatingPoint'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.BinaryInteger:2:24: note: candidate would match if 'ApiError' conformed to 'BinaryInteger'
public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
^
Swift._Pointer:2:24: note: candidate would match if 'ApiError' conformed to '_Pointer'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift._Pointer:3:35: note: candidate would match if 'ApiError' conformed to '_Pointer'
@inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
^
Swift.Strideable:3:35: note: candidate would match if 'ApiError' conformed to 'Strideable'
@inlinable public static func == (x: Self, y: Self) -> Bool
^
Swift.StringProtocol:2:35: note: candidate would match if 'ApiError' conformed to 'StringProtocol'
@inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
^
Swift.SIMD:4:24: note: candidate would match if 'ApiError' conformed to 'SIMD'
public static func == (a: Self, b: Self) -> Bool
^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'ApiError' conformed to 'AttributedStringProtocol'
public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
^
Foundation.__BridgedNSError:2:24: note: candidate would match if 'ApiError' conformed to '__BridgedNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'ApiError' conformed to '_BridgedStoredNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(ApiError, ApiError) -> Bool'
static func == (lhs: Self, rhs: Self) -> Bool
^
/host/spi-builder-workspace/Sources/ApiKit/ApiRequest.swift:28:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
public extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiResult.swift:19:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiResult.swift:26:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiRoute.swift:63:56: error: cannot find type 'URLRequest' in scope
func urlRequest(for env: ApiEnvironment) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiRoute.swift:84:52: error: cannot find type 'URLRequest' in scope
func urlRequest(for route: ApiRoute) throws -> URLRequest {
^~~~~~~~~~
[4/20] Compiling ApiKit Yelp+Route.swift
[5/20] Compiling ApiKit Yelp.swift
[6/20] Compiling ApiKit TheMovieDb+Route.swift
[7/20] Compiling ApiKit TheMovieDb.swift
[8/20] Compiling ApiKit Yelp+Environment.swift
[9/20] Compiling ApiKit Yelp+Models.swift
[10/20] Compiling ApiKit TheMovieDb+Environment.swift
[11/20] Compiling ApiKit TheMovieDb+Models.swift
[12/20] Compiling ApiKit String+UrlEncode.swift
[13/20] Compiling ApiKit HttpMethod.swift
[14/20] Compiling ApiKit ApiRequest.swift
/host/spi-builder-workspace/Sources/ApiKit/ApiRequest.swift:28:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
public extension URLSession {
^ ~~~~~~~~~~
[15/20] Compiling ApiKit ApiRequestData.swift
/host/spi-builder-workspace/Sources/ApiKit/ApiRequest.swift:28:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
public extension URLSession {
^ ~~~~~~~~~~
[16/20] Compiling ApiKit ApiResult.swift
/host/spi-builder-workspace/Sources/ApiKit/ApiResult.swift:19:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiResult.swift:26:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiRoute.swift:63:56: error: cannot find type 'URLRequest' in scope
func urlRequest(for env: ApiEnvironment) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiRoute.swift:84:52: error: cannot find type 'URLRequest' in scope
func urlRequest(for route: ApiRoute) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiRoute.swift:69:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: requestUrl)
^~~~~~~~~~
[17/20] Compiling ApiKit ApiRoute.swift
/host/spi-builder-workspace/Sources/ApiKit/ApiResult.swift:19:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiResult.swift:26:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiRoute.swift:63:56: error: cannot find type 'URLRequest' in scope
func urlRequest(for env: ApiEnvironment) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiRoute.swift:84:52: error: cannot find type 'URLRequest' in scope
func urlRequest(for route: ApiRoute) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiRoute.swift:69:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: requestUrl)
^~~~~~~~~~
[18/20] Compiling ApiKit ApiClient.swift
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:32:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: ApiClient {}
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:34:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
public extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:28:22: error: cannot find type 'URLRequest' in scope
for request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:29:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:47:20: error: cannot find type 'URLRequest' in scope
_ request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:67:23: error: cannot find type 'URLRequest' in scope
with request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:85:18: error: cannot find type 'URLRequest' in scope
request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:86:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: URLResponse,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiRoute.swift:63:56: error: cannot find type 'URLRequest' in scope
func urlRequest(for env: ApiEnvironment) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:62:39: error: missing argument for parameter 'in' in call
return try await fetch(request)
^
, in: <#any ApiEnvironment#>
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:57:10: note: 'fetch(_:in:)' declared here
func fetch(
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:69:45: error: missing argument for parameter 'in' in call
let result = try await fetch(request)
^
, in: <#any ApiEnvironment#>
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:57:10: note: 'fetch(_:in:)' declared here
func fetch(
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:80:42: error: extra argument 'with' in call
return try await fetchItem(with: request)
~~~~~~~^~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:80:35: error: missing arguments for parameters 'at', 'in' in call
return try await fetchItem(with: request)
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:75:10: note: 'fetchItem(at:in:)' declared here
func fetchItem<T: Decodable>(
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:89:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let httpResponse = response as? HTTPURLResponse else { return }
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:89:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
guard let httpResponse = response as? HTTPURLResponse else { return }
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:90:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let status = httpResponse.statusCode
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:41: error: cannot find type 'URLRequest' in scope
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:15:13: error: type 'ApiError' does not conform to protocol 'Equatable'
public enum ApiError: Error, Equatable, LocalizedError {
^
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:41: note: associated value type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'ApiError' to 'Equatable'
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:53: note: associated value type 'URLResponse' (aka 'AnyObject') does not conform to protocol 'Equatable', preventing synthesized conformance of 'ApiError' to 'Equatable'
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^
Swift.==:1:24: note: candidate would match if 'ApiError' conformed to 'RawRepresentable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
^
Swift.FloatingPoint:2:24: note: candidate would match if 'ApiError' conformed to 'FloatingPoint'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.BinaryInteger:2:24: note: candidate would match if 'ApiError' conformed to 'BinaryInteger'
public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
^
Swift._Pointer:2:24: note: candidate would match if 'ApiError' conformed to '_Pointer'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift._Pointer:3:35: note: candidate would match if 'ApiError' conformed to '_Pointer'
@inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
^
Swift.Strideable:3:35: note: candidate would match if 'ApiError' conformed to 'Strideable'
@inlinable public static func == (x: Self, y: Self) -> Bool
^
Swift.StringProtocol:2:35: note: candidate would match if 'ApiError' conformed to 'StringProtocol'
@inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
^
Swift.SIMD:4:24: note: candidate would match if 'ApiError' conformed to 'SIMD'
public static func == (a: Self, b: Self) -> Bool
^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'ApiError' conformed to 'AttributedStringProtocol'
public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
^
Foundation.__BridgedNSError:2:24: note: candidate would match if 'ApiError' conformed to '__BridgedNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'ApiError' conformed to '_BridgedStoredNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(ApiError, ApiError) -> Bool'
static func == (lhs: Self, rhs: Self) -> Bool
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:37:22: error: cannot find type 'URLRequest' in scope
for request: URLRequest
^~~~~~~~~~
[19/20] Compiling ApiKit ApiEnvironment.swift
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:32:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: ApiClient {}
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:34:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
public extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:28:22: error: cannot find type 'URLRequest' in scope
for request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:29:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:47:20: error: cannot find type 'URLRequest' in scope
_ request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:67:23: error: cannot find type 'URLRequest' in scope
with request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:85:18: error: cannot find type 'URLRequest' in scope
request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:86:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: URLResponse,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiRoute.swift:63:56: error: cannot find type 'URLRequest' in scope
func urlRequest(for env: ApiEnvironment) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:62:39: error: missing argument for parameter 'in' in call
return try await fetch(request)
^
, in: <#any ApiEnvironment#>
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:57:10: note: 'fetch(_:in:)' declared here
func fetch(
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:69:45: error: missing argument for parameter 'in' in call
let result = try await fetch(request)
^
, in: <#any ApiEnvironment#>
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:57:10: note: 'fetch(_:in:)' declared here
func fetch(
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:80:42: error: extra argument 'with' in call
return try await fetchItem(with: request)
~~~~~~~^~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:80:35: error: missing arguments for parameters 'at', 'in' in call
return try await fetchItem(with: request)
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:75:10: note: 'fetchItem(at:in:)' declared here
func fetchItem<T: Decodable>(
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:89:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let httpResponse = response as? HTTPURLResponse else { return }
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:89:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
guard let httpResponse = response as? HTTPURLResponse else { return }
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:90:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let status = httpResponse.statusCode
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:41: error: cannot find type 'URLRequest' in scope
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:15:13: error: type 'ApiError' does not conform to protocol 'Equatable'
public enum ApiError: Error, Equatable, LocalizedError {
^
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:41: note: associated value type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'ApiError' to 'Equatable'
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:53: note: associated value type 'URLResponse' (aka 'AnyObject') does not conform to protocol 'Equatable', preventing synthesized conformance of 'ApiError' to 'Equatable'
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^
Swift.==:1:24: note: candidate would match if 'ApiError' conformed to 'RawRepresentable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
^
Swift.FloatingPoint:2:24: note: candidate would match if 'ApiError' conformed to 'FloatingPoint'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.BinaryInteger:2:24: note: candidate would match if 'ApiError' conformed to 'BinaryInteger'
public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
^
Swift._Pointer:2:24: note: candidate would match if 'ApiError' conformed to '_Pointer'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift._Pointer:3:35: note: candidate would match if 'ApiError' conformed to '_Pointer'
@inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
^
Swift.Strideable:3:35: note: candidate would match if 'ApiError' conformed to 'Strideable'
@inlinable public static func == (x: Self, y: Self) -> Bool
^
Swift.StringProtocol:2:35: note: candidate would match if 'ApiError' conformed to 'StringProtocol'
@inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
^
Swift.SIMD:4:24: note: candidate would match if 'ApiError' conformed to 'SIMD'
public static func == (a: Self, b: Self) -> Bool
^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'ApiError' conformed to 'AttributedStringProtocol'
public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
^
Foundation.__BridgedNSError:2:24: note: candidate would match if 'ApiError' conformed to '__BridgedNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'ApiError' conformed to '_BridgedStoredNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(ApiError, ApiError) -> Bool'
static func == (lhs: Self, rhs: Self) -> Bool
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:37:22: error: cannot find type 'URLRequest' in scope
for request: URLRequest
^~~~~~~~~~
[20/20] Compiling ApiKit ApiError.swift
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:32:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: ApiClient {}
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:34:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
public extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:28:22: error: cannot find type 'URLRequest' in scope
for request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:29:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:47:20: error: cannot find type 'URLRequest' in scope
_ request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:67:23: error: cannot find type 'URLRequest' in scope
with request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:85:18: error: cannot find type 'URLRequest' in scope
request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:86:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: URLResponse,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiRoute.swift:63:56: error: cannot find type 'URLRequest' in scope
func urlRequest(for env: ApiEnvironment) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:62:39: error: missing argument for parameter 'in' in call
return try await fetch(request)
^
, in: <#any ApiEnvironment#>
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:57:10: note: 'fetch(_:in:)' declared here
func fetch(
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:69:45: error: missing argument for parameter 'in' in call
let result = try await fetch(request)
^
, in: <#any ApiEnvironment#>
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:57:10: note: 'fetch(_:in:)' declared here
func fetch(
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:80:42: error: extra argument 'with' in call
return try await fetchItem(with: request)
~~~~~~~^~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:80:35: error: missing arguments for parameters 'at', 'in' in call
return try await fetchItem(with: request)
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:75:10: note: 'fetchItem(at:in:)' declared here
func fetchItem<T: Decodable>(
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:89:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let httpResponse = response as? HTTPURLResponse else { return }
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:89:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
guard let httpResponse = response as? HTTPURLResponse else { return }
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:90:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let status = httpResponse.statusCode
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:41: error: cannot find type 'URLRequest' in scope
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:15:13: error: type 'ApiError' does not conform to protocol 'Equatable'
public enum ApiError: Error, Equatable, LocalizedError {
^
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:41: note: associated value type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'ApiError' to 'Equatable'
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:53: note: associated value type 'URLResponse' (aka 'AnyObject') does not conform to protocol 'Equatable', preventing synthesized conformance of 'ApiError' to 'Equatable'
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^
Swift.==:1:24: note: candidate would match if 'ApiError' conformed to 'RawRepresentable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
^
Swift.FloatingPoint:2:24: note: candidate would match if 'ApiError' conformed to 'FloatingPoint'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.BinaryInteger:2:24: note: candidate would match if 'ApiError' conformed to 'BinaryInteger'
public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
^
Swift._Pointer:2:24: note: candidate would match if 'ApiError' conformed to '_Pointer'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift._Pointer:3:35: note: candidate would match if 'ApiError' conformed to '_Pointer'
@inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
^
Swift.Strideable:3:35: note: candidate would match if 'ApiError' conformed to 'Strideable'
@inlinable public static func == (x: Self, y: Self) -> Bool
^
Swift.StringProtocol:2:35: note: candidate would match if 'ApiError' conformed to 'StringProtocol'
@inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
^
Swift.SIMD:4:24: note: candidate would match if 'ApiError' conformed to 'SIMD'
public static func == (a: Self, b: Self) -> Bool
^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'ApiError' conformed to 'AttributedStringProtocol'
public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
^
Foundation.__BridgedNSError:2:24: note: candidate would match if 'ApiError' conformed to '__BridgedNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'ApiError' conformed to '_BridgedStoredNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(ApiError, ApiError) -> Bool'
static func == (lhs: Self, rhs: Self) -> Bool
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:37:22: error: cannot find type 'URLRequest' in scope
for request: URLRequest
^~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] Compiling ApiKit ApiRequest.swift
/host/spi-builder-workspace/Sources/ApiKit/ApiRequest.swift:28:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
public extension URLSession {
^ ~~~~~~~~~~
[3/9] Compiling ApiKit ApiClient.swift
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:32:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: ApiClient {}
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:34:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
public extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:28:22: error: cannot find type 'URLRequest' in scope
for request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:29:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:47:20: error: cannot find type 'URLRequest' in scope
_ request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:67:23: error: cannot find type 'URLRequest' in scope
with request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:85:18: error: cannot find type 'URLRequest' in scope
request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:86:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: URLResponse,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiRoute.swift:63:56: error: cannot find type 'URLRequest' in scope
func urlRequest(for env: ApiEnvironment) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:62:39: error: missing argument for parameter 'in' in call
return try await fetch(request)
^
, in: <#any ApiEnvironment#>
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:57:10: note: 'fetch(_:in:)' declared here
func fetch(
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:69:45: error: missing argument for parameter 'in' in call
let result = try await fetch(request)
^
, in: <#any ApiEnvironment#>
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:57:10: note: 'fetch(_:in:)' declared here
func fetch(
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:80:42: error: extra argument 'with' in call
return try await fetchItem(with: request)
~~~~~~~^~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:80:35: error: missing arguments for parameters 'at', 'in' in call
return try await fetchItem(with: request)
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:75:10: note: 'fetchItem(at:in:)' declared here
func fetchItem<T: Decodable>(
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:89:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let httpResponse = response as? HTTPURLResponse else { return }
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:89:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
guard let httpResponse = response as? HTTPURLResponse else { return }
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:90:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let status = httpResponse.statusCode
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:41: error: cannot find type 'URLRequest' in scope
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:37:22: error: cannot find type 'URLRequest' in scope
for request: URLRequest
^~~~~~~~~~
[4/9] Compiling ApiKit ApiEnvironment.swift
[5/9] Compiling ApiKit ApiError.swift
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:41: error: cannot find type 'URLRequest' in scope
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:15:13: error: type 'ApiError' does not conform to protocol 'Equatable'
public enum ApiError: Error, Equatable, LocalizedError {
^
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:41: note: associated value type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'ApiError' to 'Equatable'
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:53: note: associated value type 'URLResponse' (aka 'AnyObject') does not conform to protocol 'Equatable', preventing synthesized conformance of 'ApiError' to 'Equatable'
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^
Swift.==:1:24: note: candidate would match if 'ApiError' conformed to 'RawRepresentable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
^
Swift.FloatingPoint:2:24: note: candidate would match if 'ApiError' conformed to 'FloatingPoint'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.BinaryInteger:2:24: note: candidate would match if 'ApiError' conformed to 'BinaryInteger'
public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
^
Swift._Pointer:2:24: note: candidate would match if 'ApiError' conformed to '_Pointer'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift._Pointer:3:35: note: candidate would match if 'ApiError' conformed to '_Pointer'
@inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
^
Swift.Strideable:3:35: note: candidate would match if 'ApiError' conformed to 'Strideable'
@inlinable public static func == (x: Self, y: Self) -> Bool
^
Swift.StringProtocol:2:35: note: candidate would match if 'ApiError' conformed to 'StringProtocol'
@inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
^
Swift.SIMD:4:24: note: candidate would match if 'ApiError' conformed to 'SIMD'
public static func == (a: Self, b: Self) -> Bool
^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'ApiError' conformed to 'AttributedStringProtocol'
public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
^
Foundation.__BridgedNSError:2:24: note: candidate would match if 'ApiError' conformed to '__BridgedNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'ApiError' conformed to '_BridgedStoredNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(ApiError, ApiError) -> Bool'
static func == (lhs: Self, rhs: Self) -> Bool
^
[6/13] Compiling ApiKit ApiRequestData.swift
[7/13] Compiling ApiKit ApiRoute.swift
/host/spi-builder-workspace/Sources/ApiKit/ApiRoute.swift:63:56: error: cannot find type 'URLRequest' in scope
func urlRequest(for env: ApiEnvironment) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiRoute.swift:84:52: error: cannot find type 'URLRequest' in scope
func urlRequest(for route: ApiRoute) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiRoute.swift:69:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: requestUrl)
^~~~~~~~~~
[8/13] Compiling ApiKit ApiResult.swift
/host/spi-builder-workspace/Sources/ApiKit/ApiResult.swift:19:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiResult.swift:26:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/13] Emitting module ApiKit
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:32:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: ApiClient {}
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:34:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
public extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:28:22: error: cannot find type 'URLRequest' in scope
for request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:29:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:47:20: error: cannot find type 'URLRequest' in scope
_ request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:67:23: error: cannot find type 'URLRequest' in scope
with request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:85:18: error: cannot find type 'URLRequest' in scope
request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiClient.swift:86:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: URLResponse,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:41: error: cannot find type 'URLRequest' in scope
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:15:13: error: type 'ApiError' does not conform to protocol 'Equatable'
public enum ApiError: Error, Equatable, LocalizedError {
^
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:41: note: associated value type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'ApiError' to 'Equatable'
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^
/host/spi-builder-workspace/Sources/ApiKit/ApiError.swift:23:53: note: associated value type 'URLResponse' (aka 'AnyObject') does not conform to protocol 'Equatable', preventing synthesized conformance of 'ApiError' to 'Equatable'
case invalidResponseStatusCode(Int, URLRequest, URLResponse, Data)
^
Swift.==:1:24: note: candidate would match if 'ApiError' conformed to 'RawRepresentable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
^
Swift.FloatingPoint:2:24: note: candidate would match if 'ApiError' conformed to 'FloatingPoint'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.BinaryInteger:2:24: note: candidate would match if 'ApiError' conformed to 'BinaryInteger'
public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
^
Swift._Pointer:2:24: note: candidate would match if 'ApiError' conformed to '_Pointer'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift._Pointer:3:35: note: candidate would match if 'ApiError' conformed to '_Pointer'
@inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
^
Swift.Strideable:3:35: note: candidate would match if 'ApiError' conformed to 'Strideable'
@inlinable public static func == (x: Self, y: Self) -> Bool
^
Swift.StringProtocol:2:35: note: candidate would match if 'ApiError' conformed to 'StringProtocol'
@inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
^
Swift.SIMD:4:24: note: candidate would match if 'ApiError' conformed to 'SIMD'
public static func == (a: Self, b: Self) -> Bool
^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'ApiError' conformed to 'AttributedStringProtocol'
public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
^
Foundation.__BridgedNSError:2:24: note: candidate would match if 'ApiError' conformed to '__BridgedNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'ApiError' conformed to '_BridgedStoredNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(ApiError, ApiError) -> Bool'
static func == (lhs: Self, rhs: Self) -> Bool
^
/host/spi-builder-workspace/Sources/ApiKit/ApiRequest.swift:28:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
public extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiResult.swift:19:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiResult.swift:26:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ApiKit/ApiRoute.swift:63:56: error: cannot find type 'URLRequest' in scope
func urlRequest(for env: ApiEnvironment) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ApiKit/ApiRoute.swift:84:52: error: cannot find type 'URLRequest' in scope
func urlRequest(for route: ApiRoute) throws -> URLRequest {
^~~~~~~~~~
[10/13] Compiling ApiKit Yelp+Environment.swift
[11/13] Compiling ApiKit TheMovieDb+Route.swift
[12/13] Compiling ApiKit TheMovieDb+Environment.swift
[13/13] Compiling ApiKit Yelp+Route.swift
error: fatalError
BUILD FAILURE 5.10 linux
Build Machine: Linux 1