This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build RKAPIService with Swift 6.0 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/TheRakiburKhan/RKAPIService.git
Reference: main
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/TheRakiburKhan/RKAPIService
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 13c1b2f JSON decoder patch
Cloned https://github.com/TheRakiburKhan/RKAPIService.git
Revision (git rev-parse @):
13c1b2fdd47265e29699c1e831954ed8125b23f1
SUCCESS checkout https://github.com/TheRakiburKhan/RKAPIService.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/TheRakiburKhan/RKAPIService.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/12] Emitting module RKAPIUtility
/host/spi-builder-workspace/Sources/RKAPIUtility/HTTPStatusCode.swift:15:10: warning: associated value 'standard(statusCode:)' of 'Sendable'-conforming enum 'HTTPStatusCode' has non-sendable type 'HTTPStatusCode.StandardCode'; this is an error in the Swift 6 language mode
  13 | public enum HTTPStatusCode: LocalizedError {
  14 |
  15 |     case standard(statusCode: StandardCode)
     |          `- warning: associated value 'standard(statusCode:)' of 'Sendable'-conforming enum 'HTTPStatusCode' has non-sendable type 'HTTPStatusCode.StandardCode'; this is an error in the Swift 6 language mode
  16 |     case custom(customCode: Int)
  17 |
     :
  47 |     }
  48 |
  49 |     public enum StandardCode: Int {
     |                 `- note: consider making enum 'StandardCode' conform to the 'Sendable' protocol
  50 |         //
  51 |         // Informational - 1xx
[6/13] Compiling RKAPIUtility HTTPStatusCode.swift
/host/spi-builder-workspace/Sources/RKAPIUtility/HTTPStatusCode.swift:15:10: warning: associated value 'standard(statusCode:)' of 'Sendable'-conforming enum 'HTTPStatusCode' has non-sendable type 'HTTPStatusCode.StandardCode'; this is an error in the Swift 6 language mode
  13 | public enum HTTPStatusCode: LocalizedError {
  14 |
  15 |     case standard(statusCode: StandardCode)
     |          `- warning: associated value 'standard(statusCode:)' of 'Sendable'-conforming enum 'HTTPStatusCode' has non-sendable type 'HTTPStatusCode.StandardCode'; this is an error in the Swift 6 language mode
  16 |     case custom(customCode: Int)
  17 |
     :
  47 |     }
  48 |
  49 |     public enum StandardCode: Int {
     |                 `- note: consider making enum 'StandardCode' conform to the 'Sendable' protocol
  50 |         //
  51 |         // Informational - 1xx
[7/13] Compiling RKAPIUtility NetworkResult.swift
[8/13] Compiling RKAPIUtility RKAPIHelper.swift
[9/13] Compiling RKAPIUtility Attachment.swift
[10/13] Compiling RKAPIUtility AttachedFile.swift
[11/13] Compiling RKAPIUtility HTTPMethod.swift
[12/13] Compiling RKAPIUtility HTTPHeader.swift
[13/13] Compiling RKAPIUtility UploadAttachment.swift
[15/18] Compiling RKAPIService RKAPIService+completion.swift
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:27:41: error: cannot find type 'URLRequest' in scope
 25 |         - completion: An `@escaping` closure parameter which provides a `Result<Success, Failure>` where `Success` is ``NetworkResult`` and `Failure` is `Error` as return of closure
 26 |      */
 27 |     func fetchItemsWithRequest(request: URLRequest, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void) {
    |                                         `- error: cannot find type 'URLRequest' in scope
 28 |         session.dataTask(with: request) { data, response, error in
 29 |             if let error = error {
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:56:95: error: cannot find type 'URLRequest' in scope
 54 |         - completion: An `@escaping` closure parameter which provides a `Result<Success, Failure>` where `Success` is ``NetworkResult`` and `Failure` is `Error` as return of closure
 55 |      */
 56 |     public func fetchItemsBase(urlLink: URL?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy? = nil, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void ){
    |                                                                                               `- error: cannot find type 'URLRequest' in scope
 57 |         guard let url = urlLink else {
 58 |             completion(.failure(URLError(.badURL)))
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:91:137: error: cannot find type 'URLRequest' in scope
 89 |         - completion: An `@escaping` closure parameter which provides a `Result<Success, Failure>` where `Success` is ``NetworkResult`` and `Failure` is `Error` as return of closure
 90 |      */
 91 |     func fetchItemsByHTTPMethodBase(urlLink: URL?, httpMethod: HTTPMethod, body: Data?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void ){
    |                                                                                                                                         `- error: cannot find type 'URLRequest' in scope
 92 |         guard let url = urlLink else {
 93 |             completion(.failure(URLError(.badURL)))
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:137:30: error: cannot find type 'URLRequest' in scope
135 |         - completion: An `@escaping` closure parameter which provides a `Result<Success, Failure>` where `Success` is ``NetworkResult`` and `Failure` is `Error` as return of closure
136 |      */
137 |     func fetchItems(request: URLRequest, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void) {
    |                              `- error: cannot find type 'URLRequest' in scope
138 |         fetchItemsWithRequest(request: request, completion)
139 |     }
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:152:84: error: cannot find type 'URLRequest' in scope
150 |         - completion: An `@escaping` closure parameter which provides a `Result<Success, Failure>` where `Success` is ``NetworkResult`` and `Failure` is `Error` as return of closure
151 |      */
152 |     func fetchItems(urlLink: URL?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy? = nil, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void ){
    |                                                                                    `- error: cannot find type 'URLRequest' in scope
153 |         fetchItemsBase(urlLink: urlLink, additionalHeader: additionalHeader, cachePolicy: cachePolicy, completion)
154 |     }
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:173:48: error: cannot find type 'URLRequest' in scope
171 |                                   _ model: D.Type,
172 |                                   decoder: JSONDecoder = .init(),
173 |                                   cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                                `- error: cannot find type 'URLRequest' in scope
174 |                                   _ completion: @escaping (Result<NetworkResult<D>, Error>)-> Void ) {
175 |         fetchItemsBase(urlLink: urlLink, additionalHeader: additionalHeader, cachePolicy: cachePolicy) { result in
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:214:133: error: cannot find type 'URLRequest' in scope
212 |         - completion: An `@escaping` closure parameter which provides a `Result<Success, Failure>` where `Success` is ``NetworkResult`` and `Failure` is `Error` as return of closure
213 |      */
214 |     func fetchItemsByHTTPMethod(urlLink: URL?, httpMethod: HTTPMethod, body: Data?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void ){
    |                                                                                                                                     `- error: cannot find type 'URLRequest' in scope
215 |         fetchItemsByHTTPMethodBase(urlLink: urlLink, httpMethod: httpMethod, body: body, additionalHeader: additionalHeader, cachePolicy: cachePolicy, completion)
216 |     }
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:239:60: error: cannot find type 'URLRequest' in scope
237 |                                               _ model: D.Type,
238 |                                               decoder: JSONDecoder = .init(),
239 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                                            `- error: cannot find type 'URLRequest' in scope
240 |                                               _ completion: @escaping (Result<NetworkResult<D>, Error>)-> Void) {
241 |         fetchItemsByHTTPMethodBase(urlLink: urlLink, httpMethod: httpMethod, body: body, additionalHeader: additionalHeader, cachePolicy: cachePolicy) { result in
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:277:67: error: cannot find type 'URLRequest' in scope
275 |                                                      body: E,
276 |                                                      additionalHeader: [Header]? = nil,
277 |                                                      cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                                                   `- error: cannot find type 'URLRequest' in scope
278 |                                                      _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void) {
279 |         let uploadData = RKAPIHelper.generateRequestBody(body)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:305:74: error: cannot find type 'URLRequest' in scope
303 |                                                             _ model: D.Type,
304 |                                                             decoder: JSONDecoder = .init(),
305 |                                                             cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                                                          `- error: cannot find type 'URLRequest' in scope
306 |                                                             _ completion: @escaping (Result<NetworkResult<D>, Error>)-> Void) {
307 |         let uploadData = RKAPIHelper.generateRequestBody(body)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:330:46: error: cannot find type 'URLRequest' in scope
328 |                                 body: [String: Any],
329 |                                 additionalHeader: [Header]? = nil,
330 |                                 cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                              `- error: cannot find type 'URLRequest' in scope
331 |                                 _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void){
332 |         let uploadData = RKAPIHelper.generateRequestBody(body)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:358:60: error: cannot find type 'URLRequest' in scope
356 |                                               _ model: D.Type,
357 |                                               decoder: JSONDecoder = .init(),
358 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                                            `- error: cannot find type 'URLRequest' in scope
359 |                                               _ completion: @escaping (Result<NetworkResult<D>, Error>)-> Void) {
360 |         let uploadData = RKAPIHelper.generateRequestBody(body)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:391:46: error: cannot find type 'URLRequest' in scope
389 |                                 multipartAttachment: [Attachment],
390 |                                 additionalHeader: [Header]? = nil,
391 |                                 cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                              `- error: cannot find type 'URLRequest' in scope
392 |                                 _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void){
393 |         let boundary = RKAPIHelper.generateBoundary()
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:431:60: error: cannot find type 'URLRequest' in scope
429 |                                               _ model: D.Type,
430 |                                               decoder: JSONDecoder = .init(),
431 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                                            `- error: cannot find type 'URLRequest' in scope
432 |                                               _ completion: @escaping (Result<NetworkResult<D>, Error>)-> Void) {
433 |         let boundary = RKAPIHelper.generateBoundary()
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:467:60: error: cannot find type 'URLRequest' in scope
465 |                                               multipartAttachment: [Attachment],
466 |                                               additionalHeader: [Header]? = nil,
467 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                                            `- error: cannot find type 'URLRequest' in scope
468 |                                               _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void) {
469 |         let boundary = RKAPIHelper.generateBoundary()
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:507:74: error: cannot find type 'URLRequest' in scope
505 |                                                             _ model: D.Type,
506 |                                                             decoder: JSONDecoder = .init(),
507 |                                                             cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                                                          `- error: cannot find type 'URLRequest' in scope
508 |                                                             _ completion: @escaping (Result<NetworkResult<D>, Error>)-> Void) {
509 |         let boundary = RKAPIHelper.generateBoundary()
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:28:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 26 |      */
 27 |     func fetchItemsWithRequest(request: URLRequest, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void) {
 28 |         session.dataTask(with: request) { data, response, error in
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 29 |             if let error = error {
 30 |                 completion(.failure(error))
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:38:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 36 |                 }
 37 |
 38 |                 let status = HTTPStatusCode(rawValue: response.statusCode)
    |                                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 39 |
 40 |                 completion(.success(NetworkResult(data: data, response: status)))
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:63:23: error: cannot find 'URLRequest' in scope
 61 |         }
 62 |
 63 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 64 |
 65 |         if let cachePolicy = cachePolicy {
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:23:41: error: cannot find type 'URLRequest' in scope
 21 |      - Returns: Returns a  ``NetworkResult``
 22 |      */
 23 |     func fetchItemsWithRequest(request: URLRequest) async throws -> NetworkResult<Data> {
    |                                         `- error: cannot find type 'URLRequest' in scope
 24 |         var rawData: Data?
 25 |         var rawResponse: URLResponse?
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:98:23: error: cannot find 'URLRequest' in scope
 96 |         }
 97 |
 98 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 99 |
100 |         request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:57:88: error: cannot find type 'URLRequest' in scope
 55 |      - Returns: Returns a  ``NetworkResult``
 56 |      */
 57 |     func fetchItemsBase(urlLink: URL?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy? = nil) async throws -> NetworkResult<Data> {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
 58 |         guard let url = urlLink else {
 59 |             throw URLError(.badURL)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:94:143: error: cannot find type 'URLRequest' in scope
 92 |      - Returns: Returns a  ``NetworkResult``
 93 |      */
 94 |     func fetchItemsByHTTPMethodBase(urlLink: URL?, httpMethod: HTTPMethod, body: Data? = nil, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy? = nil) async throws -> NetworkResult<Data> {
    |                                                                                                                                               `- error: cannot find type 'URLRequest' in scope
 95 |         guard let url = urlLink else {
 96 |             throw URLError(.badURL)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:265:60: error: cannot find type 'URLRequest' in scope
263 |                                               body: D,
264 |                                               additionalHeader: [Header]? = nil,
265 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data> {
    |                                                            `- error: cannot find type 'URLRequest' in scope
266 |         let uploadData = await RKAPIHelper.generateRequestBody(body)
267 |         return try await fetchItemsByHTTPMethodBase(urlLink: urlLink, httpMethod: httpMethod, body: uploadData, additionalHeader: additionalHeader, cachePolicy: cachePolicy)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:240:46: error: cannot find type 'URLRequest' in scope
238 |                                 body: Data? = nil,
239 |                                 additionalHeader: [Header]? = nil,
240 |                                 cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data> {
    |                                              `- error: cannot find type 'URLRequest' in scope
241 |
242 |         return try await fetchItemsByHTTPMethodBase(urlLink: urlLink, httpMethod: httpMethod, body: body, additionalHeader: additionalHeader)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:354:46: error: cannot find type 'URLRequest' in scope
352 |                                 body: [String: Any],
353 |                                 additionalHeader: [Header]? = nil,
354 |                                 cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data> {
    |                                              `- error: cannot find type 'URLRequest' in scope
355 |         let uploadData = await RKAPIHelper.generateRequestBody(body)
356 |
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:292:60: error: cannot find type 'URLRequest' in scope
290 |                                               _ model: D.Type,
291 |                                               decoder: JSONDecoder = .init(),
292 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error> {
    |                                                            `- error: cannot find type 'URLRequest' in scope
293 |         do {
294 |             let reply = try await fetchItemsByHTTPMethodBase(urlLink: urlLink, httpMethod: httpMethod, body: body, additionalHeader: additionalHeader, cachePolicy: cachePolicy)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:328:74: error: cannot find type 'URLRequest' in scope
326 |                                                             _ model: D.Type,
327 |                                                             decoder: JSONDecoder = .init(),
328 |                                                             cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error> {
    |                                                                          `- error: cannot find type 'URLRequest' in scope
329 |         let uploadData = await RKAPIHelper.generateRequestBody(body)
330 |         return await fetchItemsByHTTPMethod(urlLink: urlLink, httpMethod: httpMethod, body: uploadData, additionalHeader: additionalHeader, D.self, decoder: decoder, cachePolicy: cachePolicy)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:382:60: error: cannot find type 'URLRequest' in scope
380 |                                               _ model: D.Type,
381 |                                               decoder: JSONDecoder = .init(),
382 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error> {
    |                                                            `- error: cannot find type 'URLRequest' in scope
383 |         let uploadData = await RKAPIHelper.generateRequestBody(body)
384 |
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:492:60: error: cannot find type 'URLRequest' in scope
490 |                                               multipartAttachment: [Attachment],
491 |                                               additionalHeader: [Header]? = nil,
492 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data>{
    |                                                            `- error: cannot find type 'URLRequest' in scope
493 |         let boundary = await RKAPIHelper.generateBoundary()
494 |
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:454:60: error: cannot find type 'URLRequest' in scope
452 |                                               _ model: D.Type,
453 |                                               decoder: JSONDecoder = .init(),
454 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error>{
    |                                                            `- error: cannot find type 'URLRequest' in scope
455 |         let boundary = await RKAPIHelper.generateBoundary()
456 |
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:533:74: error: cannot find type 'URLRequest' in scope
531 |                                                             _ model: D.Type,
532 |                                                             decoder: JSONDecoder = .init(),
533 |                                                             cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error>{
    |                                                                          `- error: cannot find type 'URLRequest' in scope
534 |         let boundary = await RKAPIHelper.generateBoundary()
535 |
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:414:46: error: cannot find type 'URLRequest' in scope
412 |                                 multipartAttachment: [Attachment],
413 |                                 additionalHeader: [Header]? = nil,
414 |                                 cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data>{
    |                                              `- error: cannot find type 'URLRequest' in scope
415 |         let boundary = await RKAPIHelper.generateBoundary()
416 |
[16/18] Compiling RKAPIService RKAPIService.swift
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:25:87: error: cannot find type 'URLSessionDelegate' in scope
 23 |         - queue: Receiives an `Optional<OperationQueue>` or `OperationQueue?` from `Foundation`
 24 |      */
 25 |     public init(sessionConfiguration: URLSessionConfiguration = .ephemeral, delegate: URLSessionDelegate? = nil, queue: OperationQueue? = nil) {
    |                                                                                       `- error: cannot find type 'URLSessionDelegate' in scope
 26 |         self.config = sessionConfiguration
 27 |         self.delegate = delegate
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:10:23: warning: static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  8 |
  9 |     /// Static instance of `RKAPIService`. It has `URLSessionConfiguration.ephemeral` as configuration. `URLSessionDelegate` and `OperationQueue` are both nil.
 10 |     public static var shared = RKAPIService()
    |                       |- warning: static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 11 |
 12 |     internal var session: URLSession
/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.
 10 |     public static var shared = RKAPIService()
 11 |
 12 |     internal var session: URLSession
    |                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     private var config: URLSessionConfiguration
 14 |     private var delegate: URLSessionDelegate?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:13:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |
 12 |     internal var session: URLSession
 13 |     private var config: URLSessionConfiguration
    |                         `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |     private var delegate: URLSessionDelegate?
 15 |     private var queue: OperationQueue?
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:14:27: error: cannot find type 'URLSessionDelegate' in scope
 12 |     internal var session: URLSession
 13 |     private var config: URLSessionConfiguration
 14 |     private var delegate: URLSessionDelegate?
    |                           `- error: cannot find type 'URLSessionDelegate' in scope
 15 |     private var queue: OperationQueue?
 16 |
/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.
 23 |         - queue: Receiives an `Optional<OperationQueue>` or `OperationQueue?` from `Foundation`
 24 |      */
 25 |     public init(sessionConfiguration: URLSessionConfiguration = .ephemeral, delegate: URLSessionDelegate? = nil, queue: OperationQueue? = nil) {
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |         self.config = sessionConfiguration
 27 |         self.delegate = delegate
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:25:66: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 23 |         - queue: Receiives an `Optional<OperationQueue>` or `OperationQueue?` from `Foundation`
 24 |      */
 25 |     public init(sessionConfiguration: URLSessionConfiguration = .ephemeral, delegate: URLSessionDelegate? = nil, queue: OperationQueue? = nil) {
    |                                                                  `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 26 |         self.config = sessionConfiguration
 27 |         self.delegate = delegate
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:49:114: error: cannot find type 'URLSessionDelegate' in scope
 47 |         - queue: Receiives an `Optional<OperationQueue>` or `OperationQueue?` from `Foundation`
 48 |      */
 49 |     public func invalidateAndReinitializeSession(sessionConfiguration: URLSessionConfiguration? = nil, delegate: URLSessionDelegate? = nil, queue: OperationQueue? = nil) {
    |                                                                                                                  `- error: cannot find type 'URLSessionDelegate' in scope
 50 |         invalidateAndCancelSession()
 51 |
/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.
 47 |         - queue: Receiives an `Optional<OperationQueue>` or `OperationQueue?` from `Foundation`
 48 |      */
 49 |     public func invalidateAndReinitializeSession(sessionConfiguration: URLSessionConfiguration? = nil, delegate: URLSessionDelegate? = nil, queue: OperationQueue? = nil) {
    |                                                                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |         invalidateAndCancelSession()
 51 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:74:43: error: cannot find type 'URLRequest' in scope
 72 |
 73 |     @available(iOS 13.0, macOS 10.15.0, watchOS 6.0, tvOS 13.0, *)
 74 |     internal func legacyDataTask(request: URLRequest) async throws -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
 75 |         try await withCheckedThrowingContinuation({ (continuation: CheckedContinuation<(Data, URLResponse), Error>) in
 76 |             session.dataTask(with: request) { data, response, error in
/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.
 72 |
 73 |     @available(iOS 13.0, macOS 10.15.0, watchOS 6.0, tvOS 13.0, *)
 74 |     internal func legacyDataTask(request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |         try await withCheckedThrowingContinuation({ (continuation: CheckedContinuation<(Data, URLResponse), Error>) in
 76 |             session.dataTask(with: request) { data, response, error in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:90:45: error: cannot find type 'URLRequest' in scope
 88 |
 89 |     @available(iOS 13.0, macOS 10.15.0, watchOS 6.0, tvOS 13.0, *)
 90 |     internal func legacyUploadTask(request: URLRequest, data: Data) async throws -> (Data, URLResponse) {
    |                                             `- error: cannot find type 'URLRequest' in scope
 91 |         try await withCheckedThrowingContinuation({ (continuation: CheckedContinuation<(Data, URLResponse), Error>) in
 92 |             session.uploadTask(with: request, from: data) { data, response, error in
/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.
 88 |
 89 |     @available(iOS 13.0, macOS 10.15.0, watchOS 6.0, tvOS 13.0, *)
 90 |     internal func legacyUploadTask(request: URLRequest, data: Data) async throws -> (Data, URLResponse) {
    |                                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         try await withCheckedThrowingContinuation({ (continuation: CheckedContinuation<(Data, URLResponse), Error>) in
 92 |             session.uploadTask(with: request, from: data) { data, response, error in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:29:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 27 |         self.delegate = delegate
 28 |         self.queue = queue
 29 |         self.session = URLSession(configuration: sessionConfiguration, delegate: delegate, delegateQueue: queue)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 30 |     }
 31 |
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:36:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 34 |      */
 35 |     public func invalidateAndCancelSession() {
 36 |         session.invalidateAndCancel()
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 37 |     }
 38 |
/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.
 50 |         invalidateAndCancelSession()
 51 |
 52 |         var actualConfig: URLSessionConfiguration = self.config
    |                           `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |         var actualDelegate: URLSessionDelegate? = self.delegate
 54 |         var actualQueue: OperationQueue? = self.queue
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:53:29: error: cannot find type 'URLSessionDelegate' in scope
 51 |
 52 |         var actualConfig: URLSessionConfiguration = self.config
 53 |         var actualDelegate: URLSessionDelegate? = self.delegate
    |                             `- error: cannot find type 'URLSessionDelegate' in scope
 54 |         var actualQueue: OperationQueue? = self.queue
 55 |
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:68:26: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 66 |         }
 67 |
 68 |         let newSession = URLSession(configuration: actualConfig, delegate: actualDelegate, delegateQueue: actualQueue)
    |                          `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 69 |
 70 |         session = newSession
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:76:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 74 |     internal func legacyDataTask(request: URLRequest) async throws -> (Data, URLResponse) {
 75 |         try await withCheckedThrowingContinuation({ (continuation: CheckedContinuation<(Data, URLResponse), Error>) in
 76 |             session.dataTask(with: request) { data, response, error in
    |                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 77 |                 if let error = error {
 78 |                     continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:82:67: error: value of type '_' expected to be instance of class or class-constrained type
 80 |                 else {
 81 |                     if let data = data, let response = response {
 82 |                         continuation.resume(with: .success((data, response)))
    |                                                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 83 |                     }
 84 |                 }
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:92:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
 90 |     internal func legacyUploadTask(request: URLRequest, data: Data) async throws -> (Data, URLResponse) {
 91 |         try await withCheckedThrowingContinuation({ (continuation: CheckedContinuation<(Data, URLResponse), Error>) in
 92 |             session.uploadTask(with: request, from: data) { data, response, error in
    |                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
 93 |                 if let error = error {
 94 |                     continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:98:67: error: value of type '_' expected to be instance of class or class-constrained type
 96 |                 else {
 97 |                     if let data = data, let response = response {
 98 |                         continuation.resume(with: .success((data, response)))
    |                                                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 99 |                     }
100 |                 }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[17/18] Emitting module RKAPIService
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:23:41: error: cannot find type 'URLRequest' in scope
 21 |      - Returns: Returns a  ``NetworkResult``
 22 |      */
 23 |     func fetchItemsWithRequest(request: URLRequest) async throws -> NetworkResult<Data> {
    |                                         `- error: cannot find type 'URLRequest' in scope
 24 |         var rawData: Data?
 25 |         var rawResponse: URLResponse?
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:57:88: error: cannot find type 'URLRequest' in scope
 55 |      - Returns: Returns a  ``NetworkResult``
 56 |      */
 57 |     func fetchItemsBase(urlLink: URL?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy? = nil) async throws -> NetworkResult<Data> {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
 58 |         guard let url = urlLink else {
 59 |             throw URLError(.badURL)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:94:143: error: cannot find type 'URLRequest' in scope
 92 |      - Returns: Returns a  ``NetworkResult``
 93 |      */
 94 |     func fetchItemsByHTTPMethodBase(urlLink: URL?, httpMethod: HTTPMethod, body: Data? = nil, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy? = nil) async throws -> NetworkResult<Data> {
    |                                                                                                                                               `- error: cannot find type 'URLRequest' in scope
 95 |         guard let url = urlLink else {
 96 |             throw URLError(.badURL)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:136:30: error: cannot find type 'URLRequest' in scope
134 |      - Returns: Returns a  ``NetworkResult``
135 |      */
136 |     func fetchItems(request: URLRequest) async throws -> NetworkResult<Data> {
    |                              `- error: cannot find type 'URLRequest' in scope
137 |         try await fetchItemsWithRequest(request: request)
138 |     }
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:154:34: error: cannot find type 'URLRequest' in scope
152 |     func fetchItems(urlLink: URL?,
153 |                     additionalHeader: [Header]? = nil,
154 |                     cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data> {
    |                                  `- error: cannot find type 'URLRequest' in scope
155 |         try await fetchItemsBase(urlLink: urlLink, additionalHeader: additionalHeader, cachePolicy: cachePolicy)
156 |     }
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:176:48: error: cannot find type 'URLRequest' in scope
174 |                                   _ model: D.Type,
175 |                                   decoder: JSONDecoder = .init(),
176 |                                   cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error> {
    |                                                `- error: cannot find type 'URLRequest' in scope
177 |         do {
178 |             let reply = try await fetchItemsBase(urlLink: urlLink, additionalHeader: additionalHeader, cachePolicy: cachePolicy)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:202:44: error: cannot find type 'URLRequest' in scope
200 |      - Returns: Returns a  ``NetworkResult``
201 |      */
202 |     func fetchItems<D: Decodable>(request: URLRequest, _ model: D.Type, decoder: JSONDecoder = .init()) async throws -> Result<NetworkResult<D>, Error> {
    |                                            `- error: cannot find type 'URLRequest' in scope
203 |         do {
204 |             let reply = try await fetchItemsWithRequest(request: request)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:240:46: error: cannot find type 'URLRequest' in scope
238 |                                 body: Data? = nil,
239 |                                 additionalHeader: [Header]? = nil,
240 |                                 cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data> {
    |                                              `- error: cannot find type 'URLRequest' in scope
241 |
242 |         return try await fetchItemsByHTTPMethodBase(urlLink: urlLink, httpMethod: httpMethod, body: body, additionalHeader: additionalHeader)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:265:60: error: cannot find type 'URLRequest' in scope
263 |                                               body: D,
264 |                                               additionalHeader: [Header]? = nil,
265 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data> {
    |                                                            `- error: cannot find type 'URLRequest' in scope
266 |         let uploadData = await RKAPIHelper.generateRequestBody(body)
267 |         return try await fetchItemsByHTTPMethodBase(urlLink: urlLink, httpMethod: httpMethod, body: uploadData, additionalHeader: additionalHeader, cachePolicy: cachePolicy)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:292:60: error: cannot find type 'URLRequest' in scope
290 |                                               _ model: D.Type,
291 |                                               decoder: JSONDecoder = .init(),
292 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error> {
    |                                                            `- error: cannot find type 'URLRequest' in scope
293 |         do {
294 |             let reply = try await fetchItemsByHTTPMethodBase(urlLink: urlLink, httpMethod: httpMethod, body: body, additionalHeader: additionalHeader, cachePolicy: cachePolicy)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:328:74: error: cannot find type 'URLRequest' in scope
326 |                                                             _ model: D.Type,
327 |                                                             decoder: JSONDecoder = .init(),
328 |                                                             cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error> {
    |                                                                          `- error: cannot find type 'URLRequest' in scope
329 |         let uploadData = await RKAPIHelper.generateRequestBody(body)
330 |         return await fetchItemsByHTTPMethod(urlLink: urlLink, httpMethod: httpMethod, body: uploadData, additionalHeader: additionalHeader, D.self, decoder: decoder, cachePolicy: cachePolicy)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:354:46: error: cannot find type 'URLRequest' in scope
352 |                                 body: [String: Any],
353 |                                 additionalHeader: [Header]? = nil,
354 |                                 cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data> {
    |                                              `- error: cannot find type 'URLRequest' in scope
355 |         let uploadData = await RKAPIHelper.generateRequestBody(body)
356 |
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:382:60: error: cannot find type 'URLRequest' in scope
380 |                                               _ model: D.Type,
381 |                                               decoder: JSONDecoder = .init(),
382 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error> {
    |                                                            `- error: cannot find type 'URLRequest' in scope
383 |         let uploadData = await RKAPIHelper.generateRequestBody(body)
384 |
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:414:46: error: cannot find type 'URLRequest' in scope
412 |                                 multipartAttachment: [Attachment],
413 |                                 additionalHeader: [Header]? = nil,
414 |                                 cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data>{
    |                                              `- error: cannot find type 'URLRequest' in scope
415 |         let boundary = await RKAPIHelper.generateBoundary()
416 |
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:454:60: error: cannot find type 'URLRequest' in scope
452 |                                               _ model: D.Type,
453 |                                               decoder: JSONDecoder = .init(),
454 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error>{
    |                                                            `- error: cannot find type 'URLRequest' in scope
455 |         let boundary = await RKAPIHelper.generateBoundary()
456 |
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:492:60: error: cannot find type 'URLRequest' in scope
490 |                                               multipartAttachment: [Attachment],
491 |                                               additionalHeader: [Header]? = nil,
492 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data>{
    |                                                            `- error: cannot find type 'URLRequest' in scope
493 |         let boundary = await RKAPIHelper.generateBoundary()
494 |
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:533:74: error: cannot find type 'URLRequest' in scope
531 |                                                             _ model: D.Type,
532 |                                                             decoder: JSONDecoder = .init(),
533 |                                                             cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error>{
    |                                                                          `- error: cannot find type 'URLRequest' in scope
534 |         let boundary = await RKAPIHelper.generateBoundary()
535 |
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:27:41: error: cannot find type 'URLRequest' in scope
 25 |         - completion: An `@escaping` closure parameter which provides a `Result<Success, Failure>` where `Success` is ``NetworkResult`` and `Failure` is `Error` as return of closure
 26 |      */
 27 |     func fetchItemsWithRequest(request: URLRequest, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void) {
    |                                         `- error: cannot find type 'URLRequest' in scope
 28 |         session.dataTask(with: request) { data, response, error in
 29 |             if let error = error {
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:56:95: error: cannot find type 'URLRequest' in scope
 54 |         - completion: An `@escaping` closure parameter which provides a `Result<Success, Failure>` where `Success` is ``NetworkResult`` and `Failure` is `Error` as return of closure
 55 |      */
 56 |     public func fetchItemsBase(urlLink: URL?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy? = nil, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void ){
    |                                                                                               `- error: cannot find type 'URLRequest' in scope
 57 |         guard let url = urlLink else {
 58 |             completion(.failure(URLError(.badURL)))
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:91:137: error: cannot find type 'URLRequest' in scope
 89 |         - completion: An `@escaping` closure parameter which provides a `Result<Success, Failure>` where `Success` is ``NetworkResult`` and `Failure` is `Error` as return of closure
 90 |      */
 91 |     func fetchItemsByHTTPMethodBase(urlLink: URL?, httpMethod: HTTPMethod, body: Data?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void ){
    |                                                                                                                                         `- error: cannot find type 'URLRequest' in scope
 92 |         guard let url = urlLink else {
 93 |             completion(.failure(URLError(.badURL)))
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:137:30: error: cannot find type 'URLRequest' in scope
135 |         - completion: An `@escaping` closure parameter which provides a `Result<Success, Failure>` where `Success` is ``NetworkResult`` and `Failure` is `Error` as return of closure
136 |      */
137 |     func fetchItems(request: URLRequest, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void) {
    |                              `- error: cannot find type 'URLRequest' in scope
138 |         fetchItemsWithRequest(request: request, completion)
139 |     }
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:152:84: error: cannot find type 'URLRequest' in scope
150 |         - completion: An `@escaping` closure parameter which provides a `Result<Success, Failure>` where `Success` is ``NetworkResult`` and `Failure` is `Error` as return of closure
151 |      */
152 |     func fetchItems(urlLink: URL?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy? = nil, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void ){
    |                                                                                    `- error: cannot find type 'URLRequest' in scope
153 |         fetchItemsBase(urlLink: urlLink, additionalHeader: additionalHeader, cachePolicy: cachePolicy, completion)
154 |     }
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:173:48: error: cannot find type 'URLRequest' in scope
171 |                                   _ model: D.Type,
172 |                                   decoder: JSONDecoder = .init(),
173 |                                   cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                                `- error: cannot find type 'URLRequest' in scope
174 |                                   _ completion: @escaping (Result<NetworkResult<D>, Error>)-> Void ) {
175 |         fetchItemsBase(urlLink: urlLink, additionalHeader: additionalHeader, cachePolicy: cachePolicy) { result in
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:214:133: error: cannot find type 'URLRequest' in scope
212 |         - completion: An `@escaping` closure parameter which provides a `Result<Success, Failure>` where `Success` is ``NetworkResult`` and `Failure` is `Error` as return of closure
213 |      */
214 |     func fetchItemsByHTTPMethod(urlLink: URL?, httpMethod: HTTPMethod, body: Data?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void ){
    |                                                                                                                                     `- error: cannot find type 'URLRequest' in scope
215 |         fetchItemsByHTTPMethodBase(urlLink: urlLink, httpMethod: httpMethod, body: body, additionalHeader: additionalHeader, cachePolicy: cachePolicy, completion)
216 |     }
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:239:60: error: cannot find type 'URLRequest' in scope
237 |                                               _ model: D.Type,
238 |                                               decoder: JSONDecoder = .init(),
239 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                                            `- error: cannot find type 'URLRequest' in scope
240 |                                               _ completion: @escaping (Result<NetworkResult<D>, Error>)-> Void) {
241 |         fetchItemsByHTTPMethodBase(urlLink: urlLink, httpMethod: httpMethod, body: body, additionalHeader: additionalHeader, cachePolicy: cachePolicy) { result in
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:277:67: error: cannot find type 'URLRequest' in scope
275 |                                                      body: E,
276 |                                                      additionalHeader: [Header]? = nil,
277 |                                                      cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                                                   `- error: cannot find type 'URLRequest' in scope
278 |                                                      _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void) {
279 |         let uploadData = RKAPIHelper.generateRequestBody(body)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:305:74: error: cannot find type 'URLRequest' in scope
303 |                                                             _ model: D.Type,
304 |                                                             decoder: JSONDecoder = .init(),
305 |                                                             cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                                                          `- error: cannot find type 'URLRequest' in scope
306 |                                                             _ completion: @escaping (Result<NetworkResult<D>, Error>)-> Void) {
307 |         let uploadData = RKAPIHelper.generateRequestBody(body)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:330:46: error: cannot find type 'URLRequest' in scope
328 |                                 body: [String: Any],
329 |                                 additionalHeader: [Header]? = nil,
330 |                                 cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                              `- error: cannot find type 'URLRequest' in scope
331 |                                 _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void){
332 |         let uploadData = RKAPIHelper.generateRequestBody(body)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:358:60: error: cannot find type 'URLRequest' in scope
356 |                                               _ model: D.Type,
357 |                                               decoder: JSONDecoder = .init(),
358 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                                            `- error: cannot find type 'URLRequest' in scope
359 |                                               _ completion: @escaping (Result<NetworkResult<D>, Error>)-> Void) {
360 |         let uploadData = RKAPIHelper.generateRequestBody(body)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:391:46: error: cannot find type 'URLRequest' in scope
389 |                                 multipartAttachment: [Attachment],
390 |                                 additionalHeader: [Header]? = nil,
391 |                                 cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                              `- error: cannot find type 'URLRequest' in scope
392 |                                 _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void){
393 |         let boundary = RKAPIHelper.generateBoundary()
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:431:60: error: cannot find type 'URLRequest' in scope
429 |                                               _ model: D.Type,
430 |                                               decoder: JSONDecoder = .init(),
431 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                                            `- error: cannot find type 'URLRequest' in scope
432 |                                               _ completion: @escaping (Result<NetworkResult<D>, Error>)-> Void) {
433 |         let boundary = RKAPIHelper.generateBoundary()
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:467:60: error: cannot find type 'URLRequest' in scope
465 |                                               multipartAttachment: [Attachment],
466 |                                               additionalHeader: [Header]? = nil,
467 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                                            `- error: cannot find type 'URLRequest' in scope
468 |                                               _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void) {
469 |         let boundary = RKAPIHelper.generateBoundary()
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:507:74: error: cannot find type 'URLRequest' in scope
505 |                                                             _ model: D.Type,
506 |                                                             decoder: JSONDecoder = .init(),
507 |                                                             cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                                                          `- error: cannot find type 'URLRequest' in scope
508 |                                                             _ completion: @escaping (Result<NetworkResult<D>, Error>)-> Void) {
509 |         let boundary = RKAPIHelper.generateBoundary()
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:25:87: error: cannot find type 'URLSessionDelegate' in scope
 23 |         - queue: Receiives an `Optional<OperationQueue>` or `OperationQueue?` from `Foundation`
 24 |      */
 25 |     public init(sessionConfiguration: URLSessionConfiguration = .ephemeral, delegate: URLSessionDelegate? = nil, queue: OperationQueue? = nil) {
    |                                                                                       `- error: cannot find type 'URLSessionDelegate' in scope
 26 |         self.config = sessionConfiguration
 27 |         self.delegate = delegate
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:10:23: warning: static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  8 |
  9 |     /// Static instance of `RKAPIService`. It has `URLSessionConfiguration.ephemeral` as configuration. `URLSessionDelegate` and `OperationQueue` are both nil.
 10 |     public static var shared = RKAPIService()
    |                       |- warning: static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 11 |
 12 |     internal var session: URLSession
/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.
 10 |     public static var shared = RKAPIService()
 11 |
 12 |     internal var session: URLSession
    |                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     private var config: URLSessionConfiguration
 14 |     private var delegate: URLSessionDelegate?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:13:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |
 12 |     internal var session: URLSession
 13 |     private var config: URLSessionConfiguration
    |                         `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |     private var delegate: URLSessionDelegate?
 15 |     private var queue: OperationQueue?
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:14:27: error: cannot find type 'URLSessionDelegate' in scope
 12 |     internal var session: URLSession
 13 |     private var config: URLSessionConfiguration
 14 |     private var delegate: URLSessionDelegate?
    |                           `- error: cannot find type 'URLSessionDelegate' in scope
 15 |     private var queue: OperationQueue?
 16 |
/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.
 23 |         - queue: Receiives an `Optional<OperationQueue>` or `OperationQueue?` from `Foundation`
 24 |      */
 25 |     public init(sessionConfiguration: URLSessionConfiguration = .ephemeral, delegate: URLSessionDelegate? = nil, queue: OperationQueue? = nil) {
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |         self.config = sessionConfiguration
 27 |         self.delegate = delegate
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:25:66: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 23 |         - queue: Receiives an `Optional<OperationQueue>` or `OperationQueue?` from `Foundation`
 24 |      */
 25 |     public init(sessionConfiguration: URLSessionConfiguration = .ephemeral, delegate: URLSessionDelegate? = nil, queue: OperationQueue? = nil) {
    |                                                                  `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 26 |         self.config = sessionConfiguration
 27 |         self.delegate = delegate
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:49:114: error: cannot find type 'URLSessionDelegate' in scope
 47 |         - queue: Receiives an `Optional<OperationQueue>` or `OperationQueue?` from `Foundation`
 48 |      */
 49 |     public func invalidateAndReinitializeSession(sessionConfiguration: URLSessionConfiguration? = nil, delegate: URLSessionDelegate? = nil, queue: OperationQueue? = nil) {
    |                                                                                                                  `- error: cannot find type 'URLSessionDelegate' in scope
 50 |         invalidateAndCancelSession()
 51 |
/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.
 47 |         - queue: Receiives an `Optional<OperationQueue>` or `OperationQueue?` from `Foundation`
 48 |      */
 49 |     public func invalidateAndReinitializeSession(sessionConfiguration: URLSessionConfiguration? = nil, delegate: URLSessionDelegate? = nil, queue: OperationQueue? = nil) {
    |                                                                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |         invalidateAndCancelSession()
 51 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:74:43: error: cannot find type 'URLRequest' in scope
 72 |
 73 |     @available(iOS 13.0, macOS 10.15.0, watchOS 6.0, tvOS 13.0, *)
 74 |     internal func legacyDataTask(request: URLRequest) async throws -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
 75 |         try await withCheckedThrowingContinuation({ (continuation: CheckedContinuation<(Data, URLResponse), Error>) in
 76 |             session.dataTask(with: request) { data, response, error in
/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.
 72 |
 73 |     @available(iOS 13.0, macOS 10.15.0, watchOS 6.0, tvOS 13.0, *)
 74 |     internal func legacyDataTask(request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |         try await withCheckedThrowingContinuation({ (continuation: CheckedContinuation<(Data, URLResponse), Error>) in
 76 |             session.dataTask(with: request) { data, response, error in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:90:45: error: cannot find type 'URLRequest' in scope
 88 |
 89 |     @available(iOS 13.0, macOS 10.15.0, watchOS 6.0, tvOS 13.0, *)
 90 |     internal func legacyUploadTask(request: URLRequest, data: Data) async throws -> (Data, URLResponse) {
    |                                             `- error: cannot find type 'URLRequest' in scope
 91 |         try await withCheckedThrowingContinuation({ (continuation: CheckedContinuation<(Data, URLResponse), Error>) in
 92 |             session.uploadTask(with: request, from: data) { data, response, error in
/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.
 88 |
 89 |     @available(iOS 13.0, macOS 10.15.0, watchOS 6.0, tvOS 13.0, *)
 90 |     internal func legacyUploadTask(request: URLRequest, data: Data) async throws -> (Data, URLResponse) {
    |                                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         try await withCheckedThrowingContinuation({ (continuation: CheckedContinuation<(Data, URLResponse), Error>) in
 92 |             session.uploadTask(with: request, from: data) { data, response, error in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
[18/18] Compiling RKAPIService RKAPIService+async.swift
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:23:41: error: cannot find type 'URLRequest' in scope
 21 |      - Returns: Returns a  ``NetworkResult``
 22 |      */
 23 |     func fetchItemsWithRequest(request: URLRequest) async throws -> NetworkResult<Data> {
    |                                         `- error: cannot find type 'URLRequest' in scope
 24 |         var rawData: Data?
 25 |         var rawResponse: URLResponse?
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:57:88: error: cannot find type 'URLRequest' in scope
 55 |      - Returns: Returns a  ``NetworkResult``
 56 |      */
 57 |     func fetchItemsBase(urlLink: URL?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy? = nil) async throws -> NetworkResult<Data> {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
 58 |         guard let url = urlLink else {
 59 |             throw URLError(.badURL)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:94:143: error: cannot find type 'URLRequest' in scope
 92 |      - Returns: Returns a  ``NetworkResult``
 93 |      */
 94 |     func fetchItemsByHTTPMethodBase(urlLink: URL?, httpMethod: HTTPMethod, body: Data? = nil, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy? = nil) async throws -> NetworkResult<Data> {
    |                                                                                                                                               `- error: cannot find type 'URLRequest' in scope
 95 |         guard let url = urlLink else {
 96 |             throw URLError(.badURL)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:136:30: error: cannot find type 'URLRequest' in scope
134 |      - Returns: Returns a  ``NetworkResult``
135 |      */
136 |     func fetchItems(request: URLRequest) async throws -> NetworkResult<Data> {
    |                              `- error: cannot find type 'URLRequest' in scope
137 |         try await fetchItemsWithRequest(request: request)
138 |     }
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:154:34: error: cannot find type 'URLRequest' in scope
152 |     func fetchItems(urlLink: URL?,
153 |                     additionalHeader: [Header]? = nil,
154 |                     cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data> {
    |                                  `- error: cannot find type 'URLRequest' in scope
155 |         try await fetchItemsBase(urlLink: urlLink, additionalHeader: additionalHeader, cachePolicy: cachePolicy)
156 |     }
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:176:48: error: cannot find type 'URLRequest' in scope
174 |                                   _ model: D.Type,
175 |                                   decoder: JSONDecoder = .init(),
176 |                                   cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error> {
    |                                                `- error: cannot find type 'URLRequest' in scope
177 |         do {
178 |             let reply = try await fetchItemsBase(urlLink: urlLink, additionalHeader: additionalHeader, cachePolicy: cachePolicy)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:202:44: error: cannot find type 'URLRequest' in scope
200 |      - Returns: Returns a  ``NetworkResult``
201 |      */
202 |     func fetchItems<D: Decodable>(request: URLRequest, _ model: D.Type, decoder: JSONDecoder = .init()) async throws -> Result<NetworkResult<D>, Error> {
    |                                            `- error: cannot find type 'URLRequest' in scope
203 |         do {
204 |             let reply = try await fetchItemsWithRequest(request: request)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:240:46: error: cannot find type 'URLRequest' in scope
238 |                                 body: Data? = nil,
239 |                                 additionalHeader: [Header]? = nil,
240 |                                 cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data> {
    |                                              `- error: cannot find type 'URLRequest' in scope
241 |
242 |         return try await fetchItemsByHTTPMethodBase(urlLink: urlLink, httpMethod: httpMethod, body: body, additionalHeader: additionalHeader)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:265:60: error: cannot find type 'URLRequest' in scope
263 |                                               body: D,
264 |                                               additionalHeader: [Header]? = nil,
265 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data> {
    |                                                            `- error: cannot find type 'URLRequest' in scope
266 |         let uploadData = await RKAPIHelper.generateRequestBody(body)
267 |         return try await fetchItemsByHTTPMethodBase(urlLink: urlLink, httpMethod: httpMethod, body: uploadData, additionalHeader: additionalHeader, cachePolicy: cachePolicy)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:292:60: error: cannot find type 'URLRequest' in scope
290 |                                               _ model: D.Type,
291 |                                               decoder: JSONDecoder = .init(),
292 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error> {
    |                                                            `- error: cannot find type 'URLRequest' in scope
293 |         do {
294 |             let reply = try await fetchItemsByHTTPMethodBase(urlLink: urlLink, httpMethod: httpMethod, body: body, additionalHeader: additionalHeader, cachePolicy: cachePolicy)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:328:74: error: cannot find type 'URLRequest' in scope
326 |                                                             _ model: D.Type,
327 |                                                             decoder: JSONDecoder = .init(),
328 |                                                             cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error> {
    |                                                                          `- error: cannot find type 'URLRequest' in scope
329 |         let uploadData = await RKAPIHelper.generateRequestBody(body)
330 |         return await fetchItemsByHTTPMethod(urlLink: urlLink, httpMethod: httpMethod, body: uploadData, additionalHeader: additionalHeader, D.self, decoder: decoder, cachePolicy: cachePolicy)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:354:46: error: cannot find type 'URLRequest' in scope
352 |                                 body: [String: Any],
353 |                                 additionalHeader: [Header]? = nil,
354 |                                 cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data> {
    |                                              `- error: cannot find type 'URLRequest' in scope
355 |         let uploadData = await RKAPIHelper.generateRequestBody(body)
356 |
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:382:60: error: cannot find type 'URLRequest' in scope
380 |                                               _ model: D.Type,
381 |                                               decoder: JSONDecoder = .init(),
382 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error> {
    |                                                            `- error: cannot find type 'URLRequest' in scope
383 |         let uploadData = await RKAPIHelper.generateRequestBody(body)
384 |
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:414:46: error: cannot find type 'URLRequest' in scope
412 |                                 multipartAttachment: [Attachment],
413 |                                 additionalHeader: [Header]? = nil,
414 |                                 cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data>{
    |                                              `- error: cannot find type 'URLRequest' in scope
415 |         let boundary = await RKAPIHelper.generateBoundary()
416 |
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:454:60: error: cannot find type 'URLRequest' in scope
452 |                                               _ model: D.Type,
453 |                                               decoder: JSONDecoder = .init(),
454 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error>{
    |                                                            `- error: cannot find type 'URLRequest' in scope
455 |         let boundary = await RKAPIHelper.generateBoundary()
456 |
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:492:60: error: cannot find type 'URLRequest' in scope
490 |                                               multipartAttachment: [Attachment],
491 |                                               additionalHeader: [Header]? = nil,
492 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async throws -> NetworkResult<Data>{
    |                                                            `- error: cannot find type 'URLRequest' in scope
493 |         let boundary = await RKAPIHelper.generateBoundary()
494 |
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:533:74: error: cannot find type 'URLRequest' in scope
531 |                                                             _ model: D.Type,
532 |                                                             decoder: JSONDecoder = .init(),
533 |                                                             cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) async -> Result<NetworkResult<D>, Error>{
    |                                                                          `- error: cannot find type 'URLRequest' in scope
534 |         let boundary = await RKAPIHelper.generateBoundary()
535 |
/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.
 23 |     func fetchItemsWithRequest(request: URLRequest) async throws -> NetworkResult<Data> {
 24 |         var rawData: Data?
 25 |         var rawResponse: URLResponse?
    |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |
 27 |         if #available(iOS 15.0, macOS 12.0, watchOS 8.0, tvOS 15.0, *) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:28:56: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 26 |
 27 |         if #available(iOS 15.0, macOS 12.0, watchOS 8.0, tvOS 15.0, *) {
 28 |             (rawData, rawResponse) = try await session.data(for: request)
    |                                                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 29 |         }
 30 |         else {
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:74:43: error: cannot find type 'URLRequest' in scope
 72 |
 73 |     @available(iOS 13.0, macOS 10.15.0, watchOS 6.0, tvOS 13.0, *)
 74 |     internal func legacyDataTask(request: URLRequest) async throws -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
 75 |         try await withCheckedThrowingContinuation({ (continuation: CheckedContinuation<(Data, URLResponse), Error>) in
 76 |             session.dataTask(with: request) { data, response, error in
/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
 32 |         }
 33 |
 34 |         guard let response = rawResponse as? HTTPURLResponse else {
    |                                          `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 35 |
 36 |             throw URLError(.cannotParseResponse)
/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.
 32 |         }
 33 |
 34 |         guard let response = rawResponse as? HTTPURLResponse else {
    |                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |             throw URLError(.cannotParseResponse)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:39:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 37 |         }
 38 |
 39 |         let status = HTTPStatusCode(rawValue: response.statusCode)
    |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 40 |
 41 |         return NetworkResult(data: rawData, response: status)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:62:23: error: cannot find 'URLRequest' in scope
 60 |         }
 61 |
 62 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 63 |
 64 |         if let cachePolicy = cachePolicy {
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:27:41: error: cannot find type 'URLRequest' in scope
 25 |         - completion: An `@escaping` closure parameter which provides a `Result<Success, Failure>` where `Success` is ``NetworkResult`` and `Failure` is `Error` as return of closure
 26 |      */
 27 |     func fetchItemsWithRequest(request: URLRequest, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void) {
    |                                         `- error: cannot find type 'URLRequest' in scope
 28 |         session.dataTask(with: request) { data, response, error in
 29 |             if let error = error {
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+async.swift:99:23: error: cannot find 'URLRequest' in scope
 97 |         }
 98 |
 99 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
100 |
101 |         request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:56:95: error: cannot find type 'URLRequest' in scope
 54 |         - completion: An `@escaping` closure parameter which provides a `Result<Success, Failure>` where `Success` is ``NetworkResult`` and `Failure` is `Error` as return of closure
 55 |      */
 56 |     public func fetchItemsBase(urlLink: URL?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy? = nil, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void ){
    |                                                                                               `- error: cannot find type 'URLRequest' in scope
 57 |         guard let url = urlLink else {
 58 |             completion(.failure(URLError(.badURL)))
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:91:137: error: cannot find type 'URLRequest' in scope
 89 |         - completion: An `@escaping` closure parameter which provides a `Result<Success, Failure>` where `Success` is ``NetworkResult`` and `Failure` is `Error` as return of closure
 90 |      */
 91 |     func fetchItemsByHTTPMethodBase(urlLink: URL?, httpMethod: HTTPMethod, body: Data?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void ){
    |                                                                                                                                         `- error: cannot find type 'URLRequest' in scope
 92 |         guard let url = urlLink else {
 93 |             completion(.failure(URLError(.badURL)))
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:277:67: error: cannot find type 'URLRequest' in scope
275 |                                                      body: E,
276 |                                                      additionalHeader: [Header]? = nil,
277 |                                                      cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                                                   `- error: cannot find type 'URLRequest' in scope
278 |                                                      _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void) {
279 |         let uploadData = RKAPIHelper.generateRequestBody(body)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:214:133: error: cannot find type 'URLRequest' in scope
212 |         - completion: An `@escaping` closure parameter which provides a `Result<Success, Failure>` where `Success` is ``NetworkResult`` and `Failure` is `Error` as return of closure
213 |      */
214 |     func fetchItemsByHTTPMethod(urlLink: URL?, httpMethod: HTTPMethod, body: Data?, additionalHeader: [Header]? = nil, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy, _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void ){
    |                                                                                                                                     `- error: cannot find type 'URLRequest' in scope
215 |         fetchItemsByHTTPMethodBase(urlLink: urlLink, httpMethod: httpMethod, body: body, additionalHeader: additionalHeader, cachePolicy: cachePolicy, completion)
216 |     }
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:330:46: error: cannot find type 'URLRequest' in scope
328 |                                 body: [String: Any],
329 |                                 additionalHeader: [Header]? = nil,
330 |                                 cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                              `- error: cannot find type 'URLRequest' in scope
331 |                                 _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void){
332 |         let uploadData = RKAPIHelper.generateRequestBody(body)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:239:60: error: cannot find type 'URLRequest' in scope
237 |                                               _ model: D.Type,
238 |                                               decoder: JSONDecoder = .init(),
239 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                                            `- error: cannot find type 'URLRequest' in scope
240 |                                               _ completion: @escaping (Result<NetworkResult<D>, Error>)-> Void) {
241 |         fetchItemsByHTTPMethodBase(urlLink: urlLink, httpMethod: httpMethod, body: body, additionalHeader: additionalHeader, cachePolicy: cachePolicy) { result in
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:305:74: error: cannot find type 'URLRequest' in scope
303 |                                                             _ model: D.Type,
304 |                                                             decoder: JSONDecoder = .init(),
305 |                                                             cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                                                          `- error: cannot find type 'URLRequest' in scope
306 |                                                             _ completion: @escaping (Result<NetworkResult<D>, Error>)-> Void) {
307 |         let uploadData = RKAPIHelper.generateRequestBody(body)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:358:60: error: cannot find type 'URLRequest' in scope
356 |                                               _ model: D.Type,
357 |                                               decoder: JSONDecoder = .init(),
358 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                                            `- error: cannot find type 'URLRequest' in scope
359 |                                               _ completion: @escaping (Result<NetworkResult<D>, Error>)-> Void) {
360 |         let uploadData = RKAPIHelper.generateRequestBody(body)
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:467:60: error: cannot find type 'URLRequest' in scope
465 |                                               multipartAttachment: [Attachment],
466 |                                               additionalHeader: [Header]? = nil,
467 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                                            `- error: cannot find type 'URLRequest' in scope
468 |                                               _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void) {
469 |         let boundary = RKAPIHelper.generateBoundary()
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:431:60: error: cannot find type 'URLRequest' in scope
429 |                                               _ model: D.Type,
430 |                                               decoder: JSONDecoder = .init(),
431 |                                               cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                                            `- error: cannot find type 'URLRequest' in scope
432 |                                               _ completion: @escaping (Result<NetworkResult<D>, Error>)-> Void) {
433 |         let boundary = RKAPIHelper.generateBoundary()
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:507:74: error: cannot find type 'URLRequest' in scope
505 |                                                             _ model: D.Type,
506 |                                                             decoder: JSONDecoder = .init(),
507 |                                                             cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                                                          `- error: cannot find type 'URLRequest' in scope
508 |                                                             _ completion: @escaping (Result<NetworkResult<D>, Error>)-> Void) {
509 |         let boundary = RKAPIHelper.generateBoundary()
/host/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:391:46: error: cannot find type 'URLRequest' in scope
389 |                                 multipartAttachment: [Attachment],
390 |                                 additionalHeader: [Header]? = nil,
391 |                                 cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                                              `- error: cannot find type 'URLRequest' in scope
392 |                                 _ completion: @escaping (Result<NetworkResult<Data>, Error>)-> Void){
393 |         let boundary = RKAPIHelper.generateBoundary()
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.