Build Information
Failed to build RKAPIService with Swift 5.9 for Linux.
Build Command
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/TheRakiburKhan/RKAPIService.git
Reference: main
Cloned https://github.com/TheRakiburKhan/RKAPIService.git into spi-builder-workspace
SUCCESS checkout https://github.com/TheRakiburKhan/RKAPIService.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/8] Compiling RKAPIUtility HTTPHeader.swift
[2/8] Compiling RKAPIUtility Attachment.swift
[3/8] Compiling RKAPIUtility HTTPMethod.swift
[4/8] Emitting module RKAPIUtility
[5/8] Compiling RKAPIUtility AttachedFile.swift
[6/9] Compiling RKAPIUtility NetworkResult.swift
[7/9] Compiling RKAPIUtility HTTPStatusCode.swift
[8/9] Compiling RKAPIUtility RKAPIHelper.swift
[9/9] Compiling RKAPIUtility UploadAttachment.swift
[12/15] Compiling RKAPIService RKAPIService+completion.swift
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:27:41: error: cannot find type 'URLRequest' in scope
func fetchItemsWithRequest(request: URLRequest, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:56:95: error: cannot find type 'URLRequest' in scope
public func fetchItemsBase(urlLink: URL?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy? = nil, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void ){
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:91:137: error: cannot find type 'URLRequest' in scope
func fetchItemsByHTTPMethodBase(urlLink: URL?, httpMethod: HTTPMethod, body: Data?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void ){
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:137:30: error: cannot find type 'URLRequest' in scope
func fetchItems(request: URLRequest, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:152:84: error: cannot find type 'URLRequest' in scope
func fetchItems(urlLink: URL?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy? = nil, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void ){
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:173:48: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:214:133: error: cannot find type 'URLRequest' in scope
func fetchItemsByHTTPMethod(urlLink: URL?, httpMethod: HTTPMethod, body: Data?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void ){
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:239:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:277:67: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:305:74: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:330:46: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:358:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:391:46: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:431:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:467:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:507:74: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:28:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
session.dataTask(with: request) { data, response, error in
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:38:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let status = HTTPStatusCode(rawValue: response.statusCode)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:63:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:23:41: error: cannot find type 'URLRequest' in scope
func fetchItemsWithRequest(request: URLRequest) async throws -> NetworkResult<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:98:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:57:88: error: cannot find type 'URLRequest' in scope
func fetchItemsBase(urlLink: URL?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy? = nil) async throws -> NetworkResult<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:94:143: error: cannot find type 'URLRequest' in scope
func fetchItemsByHTTPMethodBase(urlLink: URL?, httpMethod: HTTPMethod, body: Data? = nil, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy? = nil) async throws -> NetworkResult<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:265:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:240:46: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:354:46: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:292:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:328:74: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:382:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:492:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data>{
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:454:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error>{
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:533:74: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error>{
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:414:46: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data>{
^~~~~~~~~~
[13/15] Compiling RKAPIService RKAPIService.swift
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:25:87: error: cannot find type 'URLSessionDelegate' in scope
public init(sessionConfiguration: URLSessionConfiguration = .ephemeral, delegate: URLSessionDelegate? = nil, queue: OperationQueue? = nil) {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:12:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
internal var session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:13:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var config: URLSessionConfiguration
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:14:27: error: cannot find type 'URLSessionDelegate' in scope
private var delegate: URLSessionDelegate?
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:25:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(sessionConfiguration: URLSessionConfiguration = .ephemeral, delegate: URLSessionDelegate? = nil, queue: OperationQueue? = nil) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:25:66: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
public init(sessionConfiguration: URLSessionConfiguration = .ephemeral, delegate: URLSessionDelegate? = nil, queue: OperationQueue? = nil) {
~^~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:49:114: error: cannot find type 'URLSessionDelegate' in scope
public func invalidateAndReinitializeSession(sessionConfiguration: URLSessionConfiguration? = nil, delegate: URLSessionDelegate? = nil, queue: OperationQueue? = nil) {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:49:72: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func invalidateAndReinitializeSession(sessionConfiguration: URLSessionConfiguration? = nil, delegate: URLSessionDelegate? = nil, queue: OperationQueue? = nil) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:74:43: error: cannot find type 'URLRequest' in scope
internal func legacyDataTask(request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:74:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
internal func legacyDataTask(request: URLRequest) 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/RKAPIService/RKAPIService.swift:90:45: error: cannot find type 'URLRequest' in scope
internal func legacyUploadTask(request: URLRequest, data: Data) async throws -> (Data, URLResponse) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:90:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
internal func legacyUploadTask(request: URLRequest, data: Data) 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/RKAPIService/RKAPIService.swift:29:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.session = URLSession(configuration: sessionConfiguration, delegate: delegate, delegateQueue: queue)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:36:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
session.invalidateAndCancel()
~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:52:27: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var actualConfig: URLSessionConfiguration = self.config
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:53:29: error: cannot find type 'URLSessionDelegate' in scope
var actualDelegate: URLSessionDelegate? = self.delegate
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:68:26: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let newSession = URLSession(configuration: actualConfig, delegate: actualDelegate, delegateQueue: actualQueue)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:76:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
session.dataTask(with: request) { data, response, error in
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:92:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
session.uploadTask(with: request, from: data) { data, response, error in
~~~~~~~ ^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/15] Emitting module RKAPIService
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:23:41: error: cannot find type 'URLRequest' in scope
func fetchItemsWithRequest(request: URLRequest) async throws -> NetworkResult<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:57:88: error: cannot find type 'URLRequest' in scope
func fetchItemsBase(urlLink: URL?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy? = nil) async throws -> NetworkResult<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:94:143: error: cannot find type 'URLRequest' in scope
func fetchItemsByHTTPMethodBase(urlLink: URL?, httpMethod: HTTPMethod, body: Data? = nil, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy? = nil) async throws -> NetworkResult<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:136:30: error: cannot find type 'URLRequest' in scope
func fetchItems(request: URLRequest) async throws -> NetworkResult<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:154:34: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:176:48: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:202:44: error: cannot find type 'URLRequest' in scope
func fetchItems<D: Decodable>(request: URLRequest, _ model: D.Type, decoder: JSONDecoder = .init()) async throws -> Result<NetworkResult<D>, Error> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:240:46: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:265:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:292:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:328:74: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:354:46: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:382:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:414:46: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data>{
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:454:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error>{
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:492:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data>{
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:533:74: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error>{
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:27:41: error: cannot find type 'URLRequest' in scope
func fetchItemsWithRequest(request: URLRequest, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:56:95: error: cannot find type 'URLRequest' in scope
public func fetchItemsBase(urlLink: URL?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy? = nil, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void ){
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:91:137: error: cannot find type 'URLRequest' in scope
func fetchItemsByHTTPMethodBase(urlLink: URL?, httpMethod: HTTPMethod, body: Data?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void ){
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:137:30: error: cannot find type 'URLRequest' in scope
func fetchItems(request: URLRequest, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:152:84: error: cannot find type 'URLRequest' in scope
func fetchItems(urlLink: URL?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy? = nil, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void ){
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:173:48: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:214:133: error: cannot find type 'URLRequest' in scope
func fetchItemsByHTTPMethod(urlLink: URL?, httpMethod: HTTPMethod, body: Data?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void ){
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:239:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:277:67: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:305:74: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:330:46: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:358:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:391:46: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:431:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:467:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:507:74: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:25:87: error: cannot find type 'URLSessionDelegate' in scope
public init(sessionConfiguration: URLSessionConfiguration = .ephemeral, delegate: URLSessionDelegate? = nil, queue: OperationQueue? = nil) {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:12:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
internal var session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:13:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var config: URLSessionConfiguration
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:14:27: error: cannot find type 'URLSessionDelegate' in scope
private var delegate: URLSessionDelegate?
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:25:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(sessionConfiguration: URLSessionConfiguration = .ephemeral, delegate: URLSessionDelegate? = nil, queue: OperationQueue? = nil) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:25:66: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
public init(sessionConfiguration: URLSessionConfiguration = .ephemeral, delegate: URLSessionDelegate? = nil, queue: OperationQueue? = nil) {
~^~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:49:114: error: cannot find type 'URLSessionDelegate' in scope
public func invalidateAndReinitializeSession(sessionConfiguration: URLSessionConfiguration? = nil, delegate: URLSessionDelegate? = nil, queue: OperationQueue? = nil) {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:49:72: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func invalidateAndReinitializeSession(sessionConfiguration: URLSessionConfiguration? = nil, delegate: URLSessionDelegate? = nil, queue: OperationQueue? = nil) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:74:43: error: cannot find type 'URLRequest' in scope
internal func legacyDataTask(request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:74:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
internal func legacyDataTask(request: URLRequest) 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/RKAPIService/RKAPIService.swift:90:45: error: cannot find type 'URLRequest' in scope
internal func legacyUploadTask(request: URLRequest, data: Data) async throws -> (Data, URLResponse) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:90:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
internal func legacyUploadTask(request: URLRequest, data: Data) async throws -> (Data, URLResponse) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[15/15] Compiling RKAPIService RKAPIService+async.swift
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:23:41: error: cannot find type 'URLRequest' in scope
func fetchItemsWithRequest(request: URLRequest) async throws -> NetworkResult<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:57:88: error: cannot find type 'URLRequest' in scope
func fetchItemsBase(urlLink: URL?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy? = nil) async throws -> NetworkResult<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:94:143: error: cannot find type 'URLRequest' in scope
func fetchItemsByHTTPMethodBase(urlLink: URL?, httpMethod: HTTPMethod, body: Data? = nil, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy? = nil) async throws -> NetworkResult<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:136:30: error: cannot find type 'URLRequest' in scope
func fetchItems(request: URLRequest) async throws -> NetworkResult<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:154:34: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:176:48: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:202:44: error: cannot find type 'URLRequest' in scope
func fetchItems<D: Decodable>(request: URLRequest, _ model: D.Type, decoder: JSONDecoder = .init()) async throws -> Result<NetworkResult<D>, Error> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:240:46: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:265:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:292:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:328:74: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:354:46: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:382:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:414:46: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data>{
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:454:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error>{
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:492:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data>{
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:533:74: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error>{
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:25:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var rawResponse: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:28:56: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
(rawData, rawResponse) = try await session.data(for: request)
~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:74:43: error: cannot find type 'URLRequest' in scope
internal func legacyDataTask(request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:34:42: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
guard let response = rawResponse as? HTTPURLResponse else {
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:34:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
guard let response = rawResponse as? HTTPURLResponse else {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:39:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let status = HTTPStatusCode(rawValue: response.statusCode)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:62:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:27:41: error: cannot find type 'URLRequest' in scope
func fetchItemsWithRequest(request: URLRequest, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:99:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:56:95: error: cannot find type 'URLRequest' in scope
public func fetchItemsBase(urlLink: URL?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy? = nil, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void ){
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:91:137: error: cannot find type 'URLRequest' in scope
func fetchItemsByHTTPMethodBase(urlLink: URL?, httpMethod: HTTPMethod, body: Data?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void ){
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:277:67: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:214:133: error: cannot find type 'URLRequest' in scope
func fetchItemsByHTTPMethod(urlLink: URL?, httpMethod: HTTPMethod, body: Data?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void ){
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:330:46: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:239:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:305:74: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:358:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:467:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:431:60: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:507:74: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:391:46: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 1