The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AsposeBarcodeCloud, reference v26.11.0 (1f9cd2), with Swift 6.3 for Wasm on 27 Nov 2026 18:09:45 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1

Build Log

    |                                                                                                                                                                                      `- error: cannot infer contextual base in reference to member 'failure'
433 |                 completion(.failure(ErrorResponse.error(httpResponse.statusCode, unwrappedData, httpResponse, error)))
434 |             }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:433:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
431 |             case let .failure(error):
432 |                 apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: unwrappedData, response: httpResponse, result: .failure(error))
433 |                 completion(.failure(ErrorResponse.error(httpResponse.statusCode, unwrappedData, httpResponse, error)))
    |                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
434 |             }
435 |         }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:441:37: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
439 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
440 |     func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @Sendable @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
441 |         var disposition: URLSession.AuthChallengeDisposition = .performDefaultHandling
    |                                     `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
442 |
443 |         var credential: URLCredential?
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:443:25: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
441 |         var disposition: URLSession.AuthChallengeDisposition = .performDefaultHandling
442 |
443 |         var credential: URLCredential?
    |                         `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
444 |
445 |         if challenge.previousFailureCount > 0 {
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:445:22: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'previousFailureCount'
443 |         var credential: URLCredential?
444 |
445 |         if challenge.previousFailureCount > 0 {
    |                      `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'previousFailureCount'
446 |             disposition = .rejectProtectionSpace
447 |         } else {
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:448:92: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
446 |             disposition = .rejectProtectionSpace
447 |         } else {
448 |             credential = URLSessionRequestBuilderConfiguration.shared.credentialStore[task.taskIdentifier] ?? session.configuration.urlCredentialStorage?.defaultCredential(for: challenge.protectionSpace)
    |                                                                                            `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
449 |
450 |             if credential != nil {
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:448:119: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
446 |             disposition = .rejectProtectionSpace
447 |         } else {
448 |             credential = URLSessionRequestBuilderConfiguration.shared.credentialStore[task.taskIdentifier] ?? session.configuration.urlCredentialStorage?.defaultCredential(for: challenge.protectionSpace)
    |                                                                                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
449 |
450 |             if credential != nil {
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:448:188: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
446 |             disposition = .rejectProtectionSpace
447 |         } else {
448 |             credential = URLSessionRequestBuilderConfiguration.shared.credentialStore[task.taskIdentifier] ?? session.configuration.urlCredentialStorage?.defaultCredential(for: challenge.protectionSpace)
    |                                                                                                                                                                                            `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
449 |
450 |             if credential != nil {
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:797:21: error: cannot infer contextual base in reference to member 'success'
795 |
796 |     public func intercept(urlRequest: URLRequest, urlSession _: URLSessionProtocol, requestBuilder _: RequestBuilder<some Any>, completion: @Sendable @escaping (Result<URLRequest, any Error>) -> Void) {
797 |         completion(.success(urlRequest))
    |                     `- error: cannot infer contextual base in reference to member 'success'
798 |     }
799 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:36:52: error: cannot find type 'URLRequest' in scope
 34 | extension URLSession: URLSessionProtocol {
 35 |     /// Passthrough to URLSession.dataTask(with:completionHandler) since URLSessionDataTask conforms to URLSessionDataTaskProtocol and fetches the network data.
 36 |     public func dataTaskFromProtocol(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, (any Error)?) -> Void) -> URLSessionDataTaskProtocol {
    |                                                    `- error: cannot find type 'URLRequest' in scope
 37 |         return dataTask(with: request, completionHandler: completionHandler)
 38 |     }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[24/62] Compiling AsposeBarcodeCloud ApiError.swift
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/Models.swift:73:28: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 |
 72 | public enum ErrorResponse: Error, Sendable {
 73 |     case error(Int, Data?, URLResponse?, Error)
    |                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 | }
 75 |
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/AsposeBarcodeCloud/Infrastructure/Models.swift:73:10: error: associated value 'error' of 'Sendable'-conforming enum 'ErrorResponse' contains non-Sendable type 'AnyObject'
 71 |
 72 | public enum ErrorResponse: Error, Sendable {
 73 |     case error(Int, Data?, URLResponse?, Error)
    |          `- error: associated value 'error' of 'Sendable'-conforming enum 'ErrorResponse' contains non-Sendable type 'AnyObject'
 74 | }
 75 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/Models.swift:105:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |     }
104 |
105 |     public init(response: HTTPURLResponse, body: T, bodyData: Data?) {
    |                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |         let rawHeader = response.allHeaderFields
107 |         var responseHeader = [String: String]()
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/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:22:19: error: cannot find type 'Progress' in scope
 20 |     var taskIdentifier: Int { get }
 21 |
 22 |     var progress: Progress { get }
    |                   `- error: cannot find type 'Progress' in scope
 23 |
 24 |     func cancel()
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/Models.swift:106:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
104 |
105 |     public init(response: HTTPURLResponse, body: T, bodyData: Data?) {
106 |         let rawHeader = response.allHeaderFields
    |                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
107 |         var responseHeader = [String: String]()
108 |         for (key, value) in rawHeader {
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/Models.swift:113:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
111 |             }
112 |         }
113 |         self.init(statusCode: response.statusCode, header: responseHeader, body: body, bodyData: bodyData)
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 |     }
115 | }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:31:45: error: cannot find type 'URLRequest' in scope
 29 |     /// Task which performs the network fetch. Expected to be from URLSession.dataTask(with:completionHandler:) such that a network request
 30 |     /// is sent off when `.resume()` is called.
 31 |     func dataTaskFromProtocol(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, (any Error)?) -> Void) -> URLSessionDataTaskProtocol
    |                                             `- error: cannot find type 'URLRequest' in scope
 32 | }
 33 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:31:104: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |     /// Task which performs the network fetch. Expected to be from URLSession.dataTask(with:completionHandler:) such that a network request
 30 |     /// is sent off when `.resume()` is called.
 31 |     func dataTaskFromProtocol(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, (any Error)?) -> Void) -> URLSessionDataTaskProtocol
    |                                                                                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 | }
 33 |
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/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:34:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 32 | }
 33 |
 34 | extension URLSession: URLSessionProtocol {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 35 |     /// Passthrough to URLSession.dataTask(with:completionHandler) since URLSessionDataTask conforms to URLSessionDataTaskProtocol and fetches the network data.
 36 |     public func dataTaskFromProtocol(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, (any Error)?) -> Void) -> URLSessionDataTaskProtocol {
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:41:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
 39 | }
 40 |
 41 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
    | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
 42 |
 43 | public enum URLSessionRequestBuilderError: Error, CustomStringConvertible, Sendable {
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:89:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 87 |
 88 |     /// Store the URLSession to retain its reference
 89 |     let defaultURLSession: URLSession
    |                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 90 |
 91 |     /// Store current URLCredential for every URLSessionTask
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/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:92:55: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 90 |
 91 |     /// Store current URLCredential for every URLSessionTask
 92 |     let credentialStore = SynchronizedDictionary<Int, URLCredential>()
    |                                                       `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 93 | }
 94 |
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:80:27: error: cannot find type 'DispatchQueue' in scope
 78 |         credential: URLCredential? = nil,
 79 |         requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory(),
 80 |         apiResponseQueue: DispatchQueue = .main,
    |                           `- error: cannot find type 'DispatchQueue' in scope
 81 |         codableHelper: CodableHelper = CodableHelper(),
 82 |         successfulStatusCodeRange: Range<Int> = 200 ..< 300,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:123:154: error: cannot find type 'URLRequest' in scope
121 |      configuration (e.g. to override the cache policy).
122 |      */
123 |     open func createURLRequest(urlSession _: URLSessionProtocol, method: HTTPMethod, encoding: ParameterEncoding, headers _: [String: String]) throws -> URLRequest {
    |                                                                                                                                                          `- error: cannot find type 'URLRequest' in scope
124 |         guard let url = URL(string: URLString) else {
125 |             throw DownloadException.requestMissingURL
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:267:43: error: cannot find type 'URLRequest' in scope
265 |     }
266 |
267 |     private func retryRequest(urlRequest: URLRequest, urlSession: URLSessionProtocol, statusCode: Int, data: Data?, response: URLResponse?, error: Error, completion: @Sendable @escaping (_ result: Swift.Result<Response<T>, ErrorResponse>) -> Void) {
    |                                           `- error: cannot find type 'URLRequest' in scope
268 |         apiConfiguration.interceptor.retry(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: data, response: response, error: error) { retry in
269 |             switch retry {
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:267:127: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
265 |     }
266 |
267 |     private func retryRequest(urlRequest: URLRequest, urlSession: URLSessionProtocol, statusCode: Int, data: Data?, response: URLResponse?, error: Error, completion: @Sendable @escaping (_ result: Swift.Result<Response<T>, ErrorResponse>) -> Void) {
    |                                                                                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
268 |         apiConfiguration.interceptor.retry(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: data, response: response, error: error) { retry in
269 |             switch retry {
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/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:282:57: error: cannot find type 'URLRequest' in scope
280 |     }
281 |
282 |     fileprivate func processRequestResponse(urlRequest: URLRequest, urlSession: URLSessionProtocol, data: Data?, httpResponse: HTTPURLResponse, error _: Error?, completion: @Sendable @escaping (_ result: Swift.Result<Response<T>, ErrorResponse>) -> Void) {
    |                                                         `- error: cannot find type 'URLRequest' in scope
283 |         switch T.self {
284 |         case is Void.Type:
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:282:128: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
280 |     }
281 |
282 |     fileprivate func processRequestResponse(urlRequest: URLRequest, urlSession: URLSessionProtocol, data: Data?, httpResponse: HTTPURLResponse, error _: Error?, completion: @Sendable @escaping (_ result: Swift.Result<Response<T>, ErrorResponse>) -> Void) {
    |                                                                                                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
283 |         switch T.self {
284 |         case is Void.Type:
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/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:345:46: error: cannot find type 'URLRequest' in scope
343 |     }
344 |
345 |     fileprivate func getURL(from urlRequest: URLRequest) throws -> URL {
    |                                              `- error: cannot find type 'URLRequest' in scope
346 |         guard let url = urlRequest.url else {
347 |             throw DownloadException.requestMissingURL
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:355:66: error: cannot find type 'URLRequest' in scope
353 |
354 | open class URLSessionDecodableRequestBuilder<T: Decodable & Sendable>: URLSessionRequestBuilder<T>, @unchecked Sendable {
355 |     override fileprivate func processRequestResponse(urlRequest: URLRequest, urlSession: URLSessionProtocol, data: Data?, httpResponse: HTTPURLResponse, error: Error?, completion: @Sendable @escaping (_ result: Swift.Result<Response<T>, ErrorResponse>) -> Void) {
    |                                                                  `- error: cannot find type 'URLRequest' in scope
356 |         switch T.self {
357 |         case is String.Type:
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:355:137: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
353 |
354 | open class URLSessionDecodableRequestBuilder<T: Decodable & Sendable>: URLSessionRequestBuilder<T>, @unchecked Sendable {
355 |     override fileprivate func processRequestResponse(urlRequest: URLRequest, urlSession: URLSessionProtocol, data: Data?, httpResponse: HTTPURLResponse, error: Error?, completion: @Sendable @escaping (_ result: Swift.Result<Response<T>, ErrorResponse>) -> Void) {
    |                                                                                                                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
356 |         switch T.self {
357 |         case is String.Type:
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/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:439:48: error: cannot find type 'URLSessionTaskDelegate' in scope
437 | }
438 |
439 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
    |                                                `- error: cannot find type 'URLSessionTaskDelegate' in scope
440 |     func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @Sendable @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
441 |         var disposition: URLSession.AuthChallengeDisposition = .performDefaultHandling
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:440:167: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
438 |
439 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
440 |     func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @Sendable @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
    |                                                                                                                                                                       `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
441 |         var disposition: URLSession.AuthChallengeDisposition = .performDefaultHandling
442 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:440:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
438 |
439 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
440 |     func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @Sendable @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
441 |         var disposition: URLSession.AuthChallengeDisposition = .performDefaultHandling
442 |
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/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:440:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
438 |
439 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
440 |     func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @Sendable @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
    |                                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
441 |         var disposition: URLSession.AuthChallengeDisposition = .performDefaultHandling
442 |
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:440:88: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
438 |
439 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
440 |     func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @Sendable @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
    |                                                                                        `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
441 |         var disposition: URLSession.AuthChallengeDisposition = .performDefaultHandling
442 |
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:472:90: error: cannot find type 'URLRequest' in scope
470 |
471 | public protocol ParameterEncoding {
472 |     func encode(request: URLRequest, with parameters: [String: any Sendable]?) throws -> URLRequest
    |                                                                                          `- error: cannot find type 'URLRequest' in scope
473 | }
474 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:472:26: error: cannot find type 'URLRequest' in scope
470 |
471 | public protocol ParameterEncoding {
472 |     func encode(request: URLRequest, with parameters: [String: any Sendable]?) throws -> URLRequest
    |                          `- error: cannot find type 'URLRequest' in scope
473 | }
474 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:476:90: error: cannot find type 'URLRequest' in scope
474 |
475 | private class URLEncoding: ParameterEncoding {
476 |     func encode(request: URLRequest, with parameters: [String: any Sendable]?) throws -> URLRequest {
    |                                                                                          `- error: cannot find type 'URLRequest' in scope
477 |         var urlRequest = request
478 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:476:26: error: cannot find type 'URLRequest' in scope
474 |
475 | private class URLEncoding: ParameterEncoding {
476 |     func encode(request: URLRequest, with parameters: [String: any Sendable]?) throws -> URLRequest {
    |                          `- error: cannot find type 'URLRequest' in scope
477 |         var urlRequest = request
478 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:501:90: error: cannot find type 'URLRequest' in scope
499 |     }
500 |
501 |     func encode(request: URLRequest, with parameters: [String: any Sendable]?) throws -> URLRequest {
    |                                                                                          `- error: cannot find type 'URLRequest' in scope
502 |         var urlRequest = request
503 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:501:26: error: cannot find type 'URLRequest' in scope
499 |     }
500 |
501 |     func encode(request: URLRequest, with parameters: [String: any Sendable]?) throws -> URLRequest {
    |                          `- error: cannot find type 'URLRequest' in scope
502 |         var urlRequest = request
503 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:576:125: error: cannot find type 'URLRequest' in scope
574 |     }
575 |
576 |     private func configureFileUploadRequest(urlRequest: URLRequest, boundary: String, name: String, fileURL: URL) throws -> URLRequest {
    |                                                                                                                             `- error: cannot find type 'URLRequest' in scope
577 |         var urlRequest = urlRequest
578 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:576:57: error: cannot find type 'URLRequest' in scope
574 |     }
575 |
576 |     private func configureFileUploadRequest(urlRequest: URLRequest, boundary: String, name: String, fileURL: URL) throws -> URLRequest {
    |                                                         `- error: cannot find type 'URLRequest' in scope
577 |         var urlRequest = urlRequest
578 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:610:116: error: cannot find type 'URLRequest' in scope
608 |     }
609 |
610 |     private func configureDataUploadRequest(urlRequest: URLRequest, boundary: String, name: String, data: Data) -> URLRequest {
    |                                                                                                                    `- error: cannot find type 'URLRequest' in scope
611 |         var urlRequest = urlRequest
612 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:610:57: error: cannot find type 'URLRequest' in scope
608 |     }
609 |
610 |     private func configureDataUploadRequest(urlRequest: URLRequest, boundary: String, name: String, data: Data) -> URLRequest {
    |                                                         `- error: cannot find type 'URLRequest' in scope
611 |         var urlRequest = urlRequest
612 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:637:118: error: cannot find type 'URLRequest' in scope
635 |     }
636 |
637 |     private func configureBinaryUploadRequest(urlRequest: URLRequest, boundary: String, name: String, data: Data) -> URLRequest {
    |                                                                                                                      `- error: cannot find type 'URLRequest' in scope
638 |         var urlRequest = urlRequest
639 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:637:59: error: cannot find type 'URLRequest' in scope
635 |     }
636 |
637 |     private func configureBinaryUploadRequest(urlRequest: URLRequest, boundary: String, name: String, data: Data) -> URLRequest {
    |                                                           `- error: cannot find type 'URLRequest' in scope
638 |         var urlRequest = urlRequest
639 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:680:90: error: cannot find type 'URLRequest' in scope
678 |
679 | private class FormURLEncoding: ParameterEncoding {
680 |     func encode(request: URLRequest, with parameters: [String: any Sendable]?) throws -> URLRequest {
    |                                                                                          `- error: cannot find type 'URLRequest' in scope
681 |         var urlRequest = request
682 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:680:26: error: cannot find type 'URLRequest' in scope
678 |
679 | private class FormURLEncoding: ParameterEncoding {
680 |     func encode(request: URLRequest, with parameters: [String: any Sendable]?) throws -> URLRequest {
    |                          `- error: cannot find type 'URLRequest' in scope
681 |         var urlRequest = request
682 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:710:90: error: cannot find type 'URLRequest' in scope
708 |
709 | private class OctetStreamEncoding: ParameterEncoding {
710 |     func encode(request: URLRequest, with parameters: [String: any Sendable]?) throws -> URLRequest {
    |                                                                                          `- error: cannot find type 'URLRequest' in scope
711 |         var urlRequest = request
712 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:710:26: error: cannot find type 'URLRequest' in scope
708 |
709 | private class OctetStreamEncoding: ParameterEncoding {
710 |     func encode(request: URLRequest, with parameters: [String: any Sendable]?) throws -> URLRequest {
    |                          `- error: cannot find type 'URLRequest' in scope
711 |         var urlRequest = request
712 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:763:32: error: cannot find type 'URLRequest' in scope
761 |
762 |     /// Called before the request is sent. Allows modifying the URLRequest (e.g., adding authentication headers).
763 |     func intercept(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, completion: @Sendable @escaping (Result<URLRequest, Error>) -> Void)
    |                                `- error: cannot find type 'URLRequest' in scope
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:763:158: error: cannot find type 'URLRequest' in scope
761 |
762 |     /// Called before the request is sent. Allows modifying the URLRequest (e.g., adding authentication headers).
763 |     func intercept(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, completion: @Sendable @escaping (Result<URLRequest, Error>) -> Void)
    |                                                                                                                                                              `- error: cannot find type 'URLRequest' in scope
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:766:28: error: cannot find type 'URLRequest' in scope
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
766 |     func retry(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, data: Data?, response: URLResponse?, error: Error, completion: @Sendable @escaping (OpenAPIInterceptorRetry) -> Void)
    |                            `- error: cannot find type 'URLRequest' in scope
767 |
768 |     // MARK: - Lifecycle Hooks
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:766:137: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
766 |     func retry(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, data: Data?, response: URLResponse?, error: Error, completion: @Sendable @escaping (OpenAPIInterceptorRetry) -> Void)
    |                                                                                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
767 |
768 |     // MARK: - Lifecycle Hooks
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/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:772:38: error: cannot find type 'URLRequest' in scope
770 |     /// Called right before the request is sent, after all modifications from `intercept()` have been applied.
771 |     /// Useful for logging the final request that will be sent.
772 |     func willSendRequest(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>)
    |                                      `- error: cannot find type 'URLRequest' in scope
773 |
774 |     /// Called when the raw response is received, before any processing or decoding.
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:776:41: error: cannot find type 'URLRequest' in scope
774 |     /// Called when the raw response is received, before any processing or decoding.
775 |     /// Useful for logging raw responses or performing custom validation.
776 |     func didReceiveResponse(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, data: Data?, response: URLResponse?, error: Error?)
    |                                         `- error: cannot find type 'URLRequest' in scope
777 |
778 |     /// Called after the request completes (either success or failure).
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:776:150: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
774 |     /// Called when the raw response is received, before any processing or decoding.
775 |     /// Useful for logging raw responses or performing custom validation.
776 |     func didReceiveResponse(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, data: Data?, response: URLResponse?, error: Error?)
    |                                                                                                                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
777 |
778 |     /// Called after the request completes (either success or failure).
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/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:780:37: error: cannot find type 'URLRequest' in scope
778 |     /// Called after the request completes (either success or failure).
779 |     /// Useful for cleanup, analytics, or performance monitoring.
780 |     func didComplete<T>(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<T>, data: Data?, response: URLResponse?, result: Result<T, Error>)
    |                                     `- error: cannot find type 'URLRequest' in scope
781 | }
782 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:780:139: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
778 |     /// Called after the request completes (either success or failure).
779 |     /// Useful for cleanup, analytics, or performance monitoring.
780 |     func didComplete<T>(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<T>, data: Data?, response: URLResponse?, result: Result<T, Error>)
    |                                                                                                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
781 | }
782 |
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/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:786:40: error: cannot find type 'URLRequest' in scope
784 |
785 | public extension OpenAPIInterceptor {
786 |     func willSendRequest(urlRequest _: URLRequest, urlSession _: URLSessionProtocol, requestBuilder _: RequestBuilder<some Any>) {}
    |                                        `- error: cannot find type 'URLRequest' in scope
787 |
788 |     func didReceiveResponse(urlRequest _: URLRequest, urlSession _: URLSessionProtocol, requestBuilder _: RequestBuilder<some Any>, data _: Data?, response _: URLResponse?, error _: Error?) {}
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:788:43: error: cannot find type 'URLRequest' in scope
786 |     func willSendRequest(urlRequest _: URLRequest, urlSession _: URLSessionProtocol, requestBuilder _: RequestBuilder<some Any>) {}
787 |
788 |     func didReceiveResponse(urlRequest _: URLRequest, urlSession _: URLSessionProtocol, requestBuilder _: RequestBuilder<some Any>, data _: Data?, response _: URLResponse?, error _: Error?) {}
    |                                           `- error: cannot find type 'URLRequest' in scope
789 |
790 |     func didComplete<T>(urlRequest _: URLRequest, urlSession _: URLSessionProtocol, requestBuilder _: RequestBuilder<T>, data _: Data?, response _: URLResponse?, result _: Result<T, Error>) {}
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:788:160: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
786 |     func willSendRequest(urlRequest _: URLRequest, urlSession _: URLSessionProtocol, requestBuilder _: RequestBuilder<some Any>) {}
787 |
788 |     func didReceiveResponse(urlRequest _: URLRequest, urlSession _: URLSessionProtocol, requestBuilder _: RequestBuilder<some Any>, data _: Data?, response _: URLResponse?, error _: Error?) {}
    |                                                                                                                                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
789 |
790 |     func didComplete<T>(urlRequest _: URLRequest, urlSession _: URLSessionProtocol, requestBuilder _: RequestBuilder<T>, data _: Data?, response _: URLResponse?, result _: Result<T, Error>) {}
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/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:790:39: error: cannot find type 'URLRequest' in scope
788 |     func didReceiveResponse(urlRequest _: URLRequest, urlSession _: URLSessionProtocol, requestBuilder _: RequestBuilder<some Any>, data _: Data?, response _: URLResponse?, error _: Error?) {}
789 |
790 |     func didComplete<T>(urlRequest _: URLRequest, urlSession _: URLSessionProtocol, requestBuilder _: RequestBuilder<T>, data _: Data?, response _: URLResponse?, result _: Result<T, Error>) {}
    |                                       `- error: cannot find type 'URLRequest' in scope
791 | }
792 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:790:149: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
788 |     func didReceiveResponse(urlRequest _: URLRequest, urlSession _: URLSessionProtocol, requestBuilder _: RequestBuilder<some Any>, data _: Data?, response _: URLResponse?, error _: Error?) {}
789 |
790 |     func didComplete<T>(urlRequest _: URLRequest, urlSession _: URLSessionProtocol, requestBuilder _: RequestBuilder<T>, data _: Data?, response _: URLResponse?, result _: Result<T, Error>) {}
    |                                                                                                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
791 | }
792 |
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/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:796:39: error: cannot find type 'URLRequest' in scope
794 |     public init() {}
795 |
796 |     public func intercept(urlRequest: URLRequest, urlSession _: URLSessionProtocol, requestBuilder _: RequestBuilder<some Any>, completion: @Sendable @escaping (Result<URLRequest, any Error>) -> Void) {
    |                                       `- error: cannot find type 'URLRequest' in scope
797 |         completion(.success(urlRequest))
798 |     }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:796:169: error: cannot find type 'URLRequest' in scope
794 |     public init() {}
795 |
796 |     public func intercept(urlRequest: URLRequest, urlSession _: URLSessionProtocol, requestBuilder _: RequestBuilder<some Any>, completion: @Sendable @escaping (Result<URLRequest, any Error>) -> Void) {
    |                                                                                                                                                                         `- error: cannot find type 'URLRequest' in scope
797 |         completion(.success(urlRequest))
798 |     }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:800:37: error: cannot find type 'URLRequest' in scope
798 |     }
799 |
800 |     public func retry(urlRequest _: URLRequest, urlSession _: URLSessionProtocol, requestBuilder _: RequestBuilder<some Any>, data _: Data?, response _: URLResponse?, error _: Error, completion: @Sendable @escaping (OpenAPIInterceptorRetry) -> Void) {
    |                                     `- error: cannot find type 'URLRequest' in scope
801 |         completion(.dontRetry)
802 |     }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:800:154: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
798 |     }
799 |
800 |     public func retry(urlRequest _: URLRequest, urlSession _: URLSessionProtocol, requestBuilder _: RequestBuilder<some Any>, data _: Data?, response _: URLResponse?, error _: Error, completion: @Sendable @escaping (OpenAPIInterceptorRetry) -> Void) {
    |                                                                                                                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
801 |         completion(.dontRetry)
802 |     }
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/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:80:29: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 78 | private class URLSessionRequestBuilderConfiguration: @unchecked Sendable {
 79 |     private init() {
 80 |         defaultURLSession = URLSession(configuration: .default, delegate: sessionDelegate, delegateQueue: nil)
    |                             `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 81 |     }
 82 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:80:56: error: cannot infer contextual base in reference to member 'default'
 78 | private class URLSessionRequestBuilderConfiguration: @unchecked Sendable {
 79 |     private init() {
 80 |         defaultURLSession = URLSession(configuration: .default, delegate: sessionDelegate, delegateQueue: nil)
    |                                                        `- error: cannot infer contextual base in reference to member 'default'
 81 |     }
 82 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:80:107: error: 'nil' requires a contextual type
 78 | private class URLSessionRequestBuilderConfiguration: @unchecked Sendable {
 79 |     private init() {
 80 |         defaultURLSession = URLSession(configuration: .default, delegate: sessionDelegate, delegateQueue: nil)
    |                                                                                                           `- error: 'nil' requires a contextual type
 81 |     }
 82 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:105:61: error: return expression of type 'URLSession' (aka 'AnyObject') does not conform to 'URLSessionProtocol'
103 |      */
104 |     open func createURLSession() -> URLSessionProtocol {
105 |         return URLSessionRequestBuilderConfiguration.shared.defaultURLSession
    |                                                             `- error: return expression of type 'URLSession' (aka 'AnyObject') does not conform to 'URLSessionProtocol'
106 |     }
107 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:128:31: error: cannot find 'URLRequest' in scope
126 |         }
127 |
128 |         var originalRequest = URLRequest(url: url)
    |                               `- error: cannot find 'URLRequest' in scope
129 |
130 |         originalRequest.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:50:34: error: cannot find type 'DispatchQueue' in scope
 48 |     }
 49 |
 50 |     public var apiResponseQueue: DispatchQueue {
    |                                  `- error: cannot find type 'DispatchQueue' in scope
 51 |         get { _state.value.apiResponseQueue }
 52 |         set { _state.withValue { $0.apiResponseQueue = newValue } }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:248:33: error: cannot find 'URLRequest' in scope
246 |             // Request creation failed - create a minimal request for error reporting
247 |             let failedURL = URL(string: URLString) ?? URL(string: "about:blank")!
248 |             var failedRequest = URLRequest(url: failedURL)
    |                                 `- error: cannot find 'URLRequest' in scope
249 |             failedRequest.httpMethod = method
250 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:251:133: error: 'nil' requires a contextual type
249 |             failedRequest.httpMethod = method
250 |
251 |             apiConfiguration.interceptor.didComplete(urlRequest: failedRequest, urlSession: urlSession, requestBuilder: self, data: nil, response: nil, result: .failure(error))
    |                                                                                                                                     `- error: 'nil' requires a contextual type
252 |
253 |             apiConfiguration.apiResponseQueue.async {
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:251:148: error: 'nil' requires a contextual type
249 |             failedRequest.httpMethod = method
250 |
251 |             apiConfiguration.interceptor.didComplete(urlRequest: failedRequest, urlSession: urlSession, requestBuilder: self, data: nil, response: nil, result: .failure(error))
    |                                                                                                                                                    `- error: 'nil' requires a contextual type
252 |
253 |             apiConfiguration.apiResponseQueue.async {
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:251:162: error: cannot infer contextual base in reference to member 'failure'
249 |             failedRequest.httpMethod = method
250 |
251 |             apiConfiguration.interceptor.didComplete(urlRequest: failedRequest, urlSession: urlSession, requestBuilder: self, data: nil, response: nil, result: .failure(error))
    |                                                                                                                                                                  `- error: cannot infer contextual base in reference to member 'failure'
252 |
253 |             apiConfiguration.apiResponseQueue.async {
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:286:169: error: cannot infer contextual base in reference to member 'success'
284 |         case is Void.Type:
285 |             let result = () as! T
286 |             apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: data, response: httpResponse, result: .success(result))
    |                                                                                                                                                                         `- error: cannot infer contextual base in reference to member 'success'
287 |             completion(.success(Response(response: httpResponse, body: result, bodyData: data)))
288 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:292:169: error: cannot infer contextual base in reference to member 'failure'
290 |             let typeName = String(describing: T.self)
291 |             let error = URLSessionRequestBuilderError.unsupportedResponseBodyType(typeName)
292 |             apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: data, response: httpResponse, result: .failure(ErrorResponse.error(-5, data, httpResponse, error)))
    |                                                                                                                                                                         `- error: cannot infer contextual base in reference to member 'failure'
293 |             completion(.failure(ErrorResponse.error(-5, data, httpResponse, error)))
294 |         }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:359:169: error: cannot infer contextual base in reference to member 'success'
357 |         case is String.Type:
358 |             let body = data.flatMap { String(data: $0, encoding: .utf8) } ?? ""
359 |             apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: data, response: httpResponse, result: .success(body as! T))
    |                                                                                                                                                                         `- error: cannot infer contextual base in reference to member 'success'
360 |             completion(.success(Response<T>(response: httpResponse, body: body as! T, bodyData: data)))
361 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:378:90: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
376 |                 var requestPath = try getPath(from: requestURL)
377 |
378 |                 if let headerFileName = getFileName(fromContentDisposition: httpResponse.allHeaderFields["Content-Disposition"] as? String) {
    |                                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
379 |                     requestPath = requestPath.appending("/\(headerFileName)")
380 |                 } else {
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:390:173: error: cannot infer contextual base in reference to member 'success'
388 |                 try data.write(to: filePath, options: .atomic)
389 |
390 |                 apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: data, response: httpResponse, result: .success(filePath as! T))
    |                                                                                                                                                                             `- error: cannot infer contextual base in reference to member 'success'
391 |                 completion(.success(Response(response: httpResponse, body: filePath as! T, bodyData: data)))
392 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:394:173: error: cannot infer contextual base in reference to member 'failure'
392 |
393 |             } catch let requestParserError as DownloadException {
394 |                 apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: data, response: httpResponse, result: .failure(requestParserError))
    |                                                                                                                                                                             `- error: cannot infer contextual base in reference to member 'failure'
395 |                 completion(.failure(ErrorResponse.error(400, data, httpResponse, requestParserError)))
396 |             } catch {
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:397:173: error: cannot infer contextual base in reference to member 'failure'
395 |                 completion(.failure(ErrorResponse.error(400, data, httpResponse, requestParserError)))
396 |             } catch {
397 |                 apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: data, response: httpResponse, result: .failure(error))
    |                                                                                                                                                                             `- error: cannot infer contextual base in reference to member 'failure'
398 |                 completion(.failure(ErrorResponse.error(400, data, httpResponse, error)))
399 |             }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:403:169: error: cannot infer contextual base in reference to member 'success'
401 |         case is Void.Type:
402 |             let result = () as! T
403 |             apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: data, response: httpResponse, result: .success(result))
    |                                                                                                                                                                         `- error: cannot infer contextual base in reference to member 'success'
404 |             completion(.success(Response(response: httpResponse, body: result, bodyData: data)))
405 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:408:169: error: cannot infer contextual base in reference to member 'success'
406 |         case is Data.Type:
407 |             let result = data as! T
408 |             apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: data, response: httpResponse, result: .success(result))
    |                                                                                                                                                                         `- error: cannot infer contextual base in reference to member 'success'
409 |             completion(.success(Response(response: httpResponse, body: result, bodyData: data)))
410 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:415:177: error: cannot infer contextual base in reference to member 'success'
413 |                 if let expressibleByNilLiteralType = T.self as? ExpressibleByNilLiteral.Type {
414 |                     let result = expressibleByNilLiteralType.init(nilLiteral: ()) as! T
415 |                     apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: data, response: httpResponse, result: .success(result))
    |                                                                                                                                                                                 `- error: cannot infer contextual base in reference to member 'success'
416 |                     completion(.success(Response(response: httpResponse, body: result, bodyData: data)))
417 |                 } else {
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:419:138: error: 'nil' requires a contextual type
417 |                 } else {
418 |                     let emptyDataError = DecodableRequestBuilderError.emptyDataResponse
419 |                     apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: nil, response: httpResponse, result: .failure(emptyDataError))
    |                                                                                                                                          `- error: 'nil' requires a contextual type
420 |                     completion(.failure(ErrorResponse.error(httpResponse.statusCode, nil, httpResponse, emptyDataError)))
421 |                 }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:419:176: error: cannot infer contextual base in reference to member 'failure'
417 |                 } else {
418 |                     let emptyDataError = DecodableRequestBuilderError.emptyDataResponse
419 |                     apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: nil, response: httpResponse, result: .failure(emptyDataError))
    |                                                                                                                                                                                `- error: cannot infer contextual base in reference to member 'failure'
420 |                     completion(.failure(ErrorResponse.error(httpResponse.statusCode, nil, httpResponse, emptyDataError)))
421 |                 }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:420:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
418 |                     let emptyDataError = DecodableRequestBuilderError.emptyDataResponse
419 |                     apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: nil, response: httpResponse, result: .failure(emptyDataError))
420 |                     completion(.failure(ErrorResponse.error(httpResponse.statusCode, nil, httpResponse, emptyDataError)))
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
421 |                 }
422 |                 return
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:429:182: error: cannot infer contextual base in reference to member 'success'
427 |             switch decodeResult {
428 |             case let .success(decodableObj):
429 |                 apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: unwrappedData, response: httpResponse, result: .success(decodableObj))
    |                                                                                                                                                                                      `- error: cannot infer contextual base in reference to member 'success'
430 |                 completion(.success(Response(response: httpResponse, body: decodableObj, bodyData: unwrappedData)))
431 |             case let .failure(error):
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:432:182: error: cannot infer contextual base in reference to member 'failure'
430 |                 completion(.success(Response(response: httpResponse, body: decodableObj, bodyData: unwrappedData)))
431 |             case let .failure(error):
432 |                 apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: unwrappedData, response: httpResponse, result: .failure(error))
    |                                                                                                                                                                                      `- error: cannot infer contextual base in reference to member 'failure'
433 |                 completion(.failure(ErrorResponse.error(httpResponse.statusCode, unwrappedData, httpResponse, error)))
434 |             }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:433:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
431 |             case let .failure(error):
432 |                 apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: unwrappedData, response: httpResponse, result: .failure(error))
433 |                 completion(.failure(ErrorResponse.error(httpResponse.statusCode, unwrappedData, httpResponse, error)))
    |                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
434 |             }
435 |         }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:441:37: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
439 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
440 |     func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @Sendable @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
441 |         var disposition: URLSession.AuthChallengeDisposition = .performDefaultHandling
    |                                     `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
442 |
443 |         var credential: URLCredential?
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:443:25: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
441 |         var disposition: URLSession.AuthChallengeDisposition = .performDefaultHandling
442 |
443 |         var credential: URLCredential?
    |                         `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
444 |
445 |         if challenge.previousFailureCount > 0 {
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:445:22: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'previousFailureCount'
443 |         var credential: URLCredential?
444 |
445 |         if challenge.previousFailureCount > 0 {
    |                      `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'previousFailureCount'
446 |             disposition = .rejectProtectionSpace
447 |         } else {
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:448:92: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
446 |             disposition = .rejectProtectionSpace
447 |         } else {
448 |             credential = URLSessionRequestBuilderConfiguration.shared.credentialStore[task.taskIdentifier] ?? session.configuration.urlCredentialStorage?.defaultCredential(for: challenge.protectionSpace)
    |                                                                                            `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
449 |
450 |             if credential != nil {
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:448:119: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
446 |             disposition = .rejectProtectionSpace
447 |         } else {
448 |             credential = URLSessionRequestBuilderConfiguration.shared.credentialStore[task.taskIdentifier] ?? session.configuration.urlCredentialStorage?.defaultCredential(for: challenge.protectionSpace)
    |                                                                                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
449 |
450 |             if credential != nil {
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:448:188: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
446 |             disposition = .rejectProtectionSpace
447 |         } else {
448 |             credential = URLSessionRequestBuilderConfiguration.shared.credentialStore[task.taskIdentifier] ?? session.configuration.urlCredentialStorage?.defaultCredential(for: challenge.protectionSpace)
    |                                                                                                                                                                                            `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
449 |
450 |             if credential != nil {
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:797:21: error: cannot infer contextual base in reference to member 'success'
795 |
796 |     public func intercept(urlRequest: URLRequest, urlSession _: URLSessionProtocol, requestBuilder _: RequestBuilder<some Any>, completion: @Sendable @escaping (Result<URLRequest, any Error>) -> Void) {
797 |         completion(.success(urlRequest))
    |                     `- error: cannot infer contextual base in reference to member 'success'
798 |     }
799 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:36:52: error: cannot find type 'URLRequest' in scope
 34 | extension URLSession: URLSessionProtocol {
 35 |     /// Passthrough to URLSession.dataTask(with:completionHandler) since URLSessionDataTask conforms to URLSessionDataTaskProtocol and fetches the network data.
 36 |     public func dataTaskFromProtocol(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, (any Error)?) -> Void) -> URLSessionDataTaskProtocol {
    |                                                    `- error: cannot find type 'URLRequest' in scope
 37 |         return dataTask(with: request, completionHandler: completionHandler)
 38 |     }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[25/62] Compiling AsposeBarcodeCloud APIs.swift
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:20:31: error: cannot find type 'DispatchQueue' in scope
 18 |         var credential: URLCredential?
 19 |         var requestBuilderFactory: RequestBuilderFactory
 20 |         var apiResponseQueue: DispatchQueue
    |                               `- error: cannot find type 'DispatchQueue' in scope
 21 |         var codableHelper: CodableHelper
 22 |         var successfulStatusCodeRange: Range<Int>
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:18:25: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         var basePath: String
 17 |         var customHeaders: [String: String]
 18 |         var credential: URLCredential?
    |                         `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |         var requestBuilderFactory: RequestBuilderFactory
 20 |         var apiResponseQueue: DispatchQueue
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:763:32: error: cannot find type 'URLRequest' in scope
761 |
762 |     /// Called before the request is sent. Allows modifying the URLRequest (e.g., adding authentication headers).
763 |     func intercept(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, completion: @Sendable @escaping (Result<URLRequest, Error>) -> Void)
    |                                `- error: cannot find type 'URLRequest' in scope
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:763:158: error: cannot find type 'URLRequest' in scope
761 |
762 |     /// Called before the request is sent. Allows modifying the URLRequest (e.g., adding authentication headers).
763 |     func intercept(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, completion: @Sendable @escaping (Result<URLRequest, Error>) -> Void)
    |                                                                                                                                                              `- error: cannot find type 'URLRequest' in scope
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:766:28: error: cannot find type 'URLRequest' in scope
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
766 |     func retry(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, data: Data?, response: URLResponse?, error: Error, completion: @Sendable @escaping (OpenAPIInterceptorRetry) -> Void)
    |                            `- error: cannot find type 'URLRequest' in scope
767 |
768 |     // MARK: - Lifecycle Hooks
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:772:38: error: cannot find type 'URLRequest' in scope
770 |     /// Called right before the request is sent, after all modifications from `intercept()` have been applied.
771 |     /// Useful for logging the final request that will be sent.
772 |     func willSendRequest(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>)
    |                                      `- error: cannot find type 'URLRequest' in scope
773 |
774 |     /// Called when the raw response is received, before any processing or decoding.
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:776:41: error: cannot find type 'URLRequest' in scope
774 |     /// Called when the raw response is received, before any processing or decoding.
775 |     /// Useful for logging raw responses or performing custom validation.
776 |     func didReceiveResponse(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, data: Data?, response: URLResponse?, error: Error?)
    |                                         `- error: cannot find type 'URLRequest' in scope
777 |
778 |     /// Called after the request completes (either success or failure).
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:780:37: error: cannot find type 'URLRequest' in scope
778 |     /// Called after the request completes (either success or failure).
779 |     /// Useful for cleanup, analytics, or performance monitoring.
780 |     func didComplete<T>(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<T>, data: Data?, response: URLResponse?, result: Result<T, Error>)
    |                                     `- error: cannot find type 'URLRequest' in scope
781 | }
782 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:40:28: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |     }
 39 |
 40 |     public var credential: URLCredential? {
    |                            `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |         get { _state.value.credential }
 42 |         set { _state.withValue { $0.credential = newValue } }
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:50:34: error: cannot find type 'DispatchQueue' in scope
 48 |     }
 49 |
 50 |     public var apiResponseQueue: DispatchQueue {
    |                                  `- error: cannot find type 'DispatchQueue' in scope
 51 |         get { _state.value.apiResponseQueue }
 52 |         set { _state.withValue { $0.apiResponseQueue = newValue } }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:80:27: error: cannot find type 'DispatchQueue' in scope
 78 |         credential: URLCredential? = nil,
 79 |         requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory(),
 80 |         apiResponseQueue: DispatchQueue = .main,
    |                           `- error: cannot find type 'DispatchQueue' in scope
 81 |         codableHelper: CodableHelper = CodableHelper(),
 82 |         successfulStatusCodeRange: Range<Int> = 200 ..< 300,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:78:21: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         basePath: String = "https://api.aspose.cloud/v4.0",
 77 |         customHeaders: [String: String] = [:],
 78 |         credential: URLCredential? = nil,
    |                     `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |         requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory(),
 80 |         apiResponseQueue: DispatchQueue = .main,
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:115:32: error: cannot find type 'Progress' in scope
113 |         var credential: URLCredential?
114 |         var headers: [String: String]
115 |         var onProgressReady: ((Progress) -> Void)?
    |                                `- error: cannot find type 'Progress' in scope
116 |     }
117 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:113:25: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |
112 |     private struct MutableState {
113 |         var credential: URLCredential?
    |                         `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |         var headers: [String: String]
115 |         var onProgressReady: ((Progress) -> Void)?
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:122:28: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |     // MARK: - Public mutable interface
121 |
122 |     public var credential: URLCredential? {
    |                            `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |         get { _state.value.credential }
124 |         set { _state.withValue { $0.credential = newValue } }
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:133:35: error: cannot find type 'Progress' in scope
131 |
132 |     /// Optional block to obtain a reference to the request's progress instance when available.
133 |     public var onProgressReady: ((Progress) -> Void)? {
    |                                   `- error: cannot find type 'Progress' in scope
134 |         get { _state.value.onProgressReady }
135 |         set { _state.withValue { $0.onProgressReady = newValue } }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:32:21: error: cannot find type 'URLRequest' in scope
 30 |
 31 |     func intercept(
 32 |         urlRequest: URLRequest,
    |                     `- error: cannot find type 'URLRequest' in scope
 33 |         urlSession _: URLSessionProtocol,
 34 |         requestBuilder: RequestBuilder<some Any>,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:35:49: error: cannot find type 'URLRequest' in scope
 33 |         urlSession _: URLSessionProtocol,
 34 |         requestBuilder: RequestBuilder<some Any>,
 35 |         completion: @Sendable @escaping (Result<URLRequest, any Error>) -> Void
    |                                                 `- error: cannot find type 'URLRequest' in scope
 36 |     ) {
 37 |         let timeoutInterval = configuration.timeoutInterval
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:60:23: error: cannot find type 'URLRequest' in scope
 58 |
 59 |     func retry(
 60 |         urlRequest _: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
 61 |         urlSession _: URLSessionProtocol,
 62 |         requestBuilder _: RequestBuilder<some Any>,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:64:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |         requestBuilder _: RequestBuilder<some Any>,
 63 |         data _: Data?,
 64 |         response _: URLResponse?,
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |         error _: any Error,
 66 |         completion: @Sendable @escaping (OpenAPIInterceptorRetry) -> Void
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/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:42:25: error: cannot infer contextual base in reference to member 'success'
 40 |             var modified = urlRequest
 41 |             modified.timeoutInterval = timeoutInterval
 42 |             completion(.success(modified))
    |                         `- error: cannot infer contextual base in reference to member 'success'
 43 |             return
 44 |         }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/JSONDataEncoding.swift:29:90: error: cannot find type 'URLRequest' in scope
27 |     ///
28 |     /// - returns: The encoded request.
29 |     public func encode(request: URLRequest, with parameters: [String: any Sendable]?) -> URLRequest {
   |                                                                                          `- error: cannot find type 'URLRequest' in scope
30 |         var urlRequest = request
31 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/JSONDataEncoding.swift:29:33: error: cannot find type 'URLRequest' in scope
27 |     ///
28 |     /// - returns: The encoded request.
29 |     public func encode(request: URLRequest, with parameters: [String: any Sendable]?) -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
30 |         var urlRequest = request
31 |
[26/62] Compiling AsposeBarcodeCloud BarcodeAuthInterceptor.swift
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:20:31: error: cannot find type 'DispatchQueue' in scope
 18 |         var credential: URLCredential?
 19 |         var requestBuilderFactory: RequestBuilderFactory
 20 |         var apiResponseQueue: DispatchQueue
    |                               `- error: cannot find type 'DispatchQueue' in scope
 21 |         var codableHelper: CodableHelper
 22 |         var successfulStatusCodeRange: Range<Int>
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:18:25: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         var basePath: String
 17 |         var customHeaders: [String: String]
 18 |         var credential: URLCredential?
    |                         `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |         var requestBuilderFactory: RequestBuilderFactory
 20 |         var apiResponseQueue: DispatchQueue
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:763:32: error: cannot find type 'URLRequest' in scope
761 |
762 |     /// Called before the request is sent. Allows modifying the URLRequest (e.g., adding authentication headers).
763 |     func intercept(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, completion: @Sendable @escaping (Result<URLRequest, Error>) -> Void)
    |                                `- error: cannot find type 'URLRequest' in scope
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:763:158: error: cannot find type 'URLRequest' in scope
761 |
762 |     /// Called before the request is sent. Allows modifying the URLRequest (e.g., adding authentication headers).
763 |     func intercept(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, completion: @Sendable @escaping (Result<URLRequest, Error>) -> Void)
    |                                                                                                                                                              `- error: cannot find type 'URLRequest' in scope
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:766:28: error: cannot find type 'URLRequest' in scope
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
766 |     func retry(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, data: Data?, response: URLResponse?, error: Error, completion: @Sendable @escaping (OpenAPIInterceptorRetry) -> Void)
    |                            `- error: cannot find type 'URLRequest' in scope
767 |
768 |     // MARK: - Lifecycle Hooks
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:772:38: error: cannot find type 'URLRequest' in scope
770 |     /// Called right before the request is sent, after all modifications from `intercept()` have been applied.
771 |     /// Useful for logging the final request that will be sent.
772 |     func willSendRequest(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>)
    |                                      `- error: cannot find type 'URLRequest' in scope
773 |
774 |     /// Called when the raw response is received, before any processing or decoding.
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:776:41: error: cannot find type 'URLRequest' in scope
774 |     /// Called when the raw response is received, before any processing or decoding.
775 |     /// Useful for logging raw responses or performing custom validation.
776 |     func didReceiveResponse(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, data: Data?, response: URLResponse?, error: Error?)
    |                                         `- error: cannot find type 'URLRequest' in scope
777 |
778 |     /// Called after the request completes (either success or failure).
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:780:37: error: cannot find type 'URLRequest' in scope
778 |     /// Called after the request completes (either success or failure).
779 |     /// Useful for cleanup, analytics, or performance monitoring.
780 |     func didComplete<T>(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<T>, data: Data?, response: URLResponse?, result: Result<T, Error>)
    |                                     `- error: cannot find type 'URLRequest' in scope
781 | }
782 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:40:28: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |     }
 39 |
 40 |     public var credential: URLCredential? {
    |                            `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |         get { _state.value.credential }
 42 |         set { _state.withValue { $0.credential = newValue } }
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:50:34: error: cannot find type 'DispatchQueue' in scope
 48 |     }
 49 |
 50 |     public var apiResponseQueue: DispatchQueue {
    |                                  `- error: cannot find type 'DispatchQueue' in scope
 51 |         get { _state.value.apiResponseQueue }
 52 |         set { _state.withValue { $0.apiResponseQueue = newValue } }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:80:27: error: cannot find type 'DispatchQueue' in scope
 78 |         credential: URLCredential? = nil,
 79 |         requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory(),
 80 |         apiResponseQueue: DispatchQueue = .main,
    |                           `- error: cannot find type 'DispatchQueue' in scope
 81 |         codableHelper: CodableHelper = CodableHelper(),
 82 |         successfulStatusCodeRange: Range<Int> = 200 ..< 300,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:78:21: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         basePath: String = "https://api.aspose.cloud/v4.0",
 77 |         customHeaders: [String: String] = [:],
 78 |         credential: URLCredential? = nil,
    |                     `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |         requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory(),
 80 |         apiResponseQueue: DispatchQueue = .main,
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:115:32: error: cannot find type 'Progress' in scope
113 |         var credential: URLCredential?
114 |         var headers: [String: String]
115 |         var onProgressReady: ((Progress) -> Void)?
    |                                `- error: cannot find type 'Progress' in scope
116 |     }
117 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:113:25: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |
112 |     private struct MutableState {
113 |         var credential: URLCredential?
    |                         `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |         var headers: [String: String]
115 |         var onProgressReady: ((Progress) -> Void)?
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:122:28: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |     // MARK: - Public mutable interface
121 |
122 |     public var credential: URLCredential? {
    |                            `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |         get { _state.value.credential }
124 |         set { _state.withValue { $0.credential = newValue } }
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:133:35: error: cannot find type 'Progress' in scope
131 |
132 |     /// Optional block to obtain a reference to the request's progress instance when available.
133 |     public var onProgressReady: ((Progress) -> Void)? {
    |                                   `- error: cannot find type 'Progress' in scope
134 |         get { _state.value.onProgressReady }
135 |         set { _state.withValue { $0.onProgressReady = newValue } }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:32:21: error: cannot find type 'URLRequest' in scope
 30 |
 31 |     func intercept(
 32 |         urlRequest: URLRequest,
    |                     `- error: cannot find type 'URLRequest' in scope
 33 |         urlSession _: URLSessionProtocol,
 34 |         requestBuilder: RequestBuilder<some Any>,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:35:49: error: cannot find type 'URLRequest' in scope
 33 |         urlSession _: URLSessionProtocol,
 34 |         requestBuilder: RequestBuilder<some Any>,
 35 |         completion: @Sendable @escaping (Result<URLRequest, any Error>) -> Void
    |                                                 `- error: cannot find type 'URLRequest' in scope
 36 |     ) {
 37 |         let timeoutInterval = configuration.timeoutInterval
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:60:23: error: cannot find type 'URLRequest' in scope
 58 |
 59 |     func retry(
 60 |         urlRequest _: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
 61 |         urlSession _: URLSessionProtocol,
 62 |         requestBuilder _: RequestBuilder<some Any>,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:64:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |         requestBuilder _: RequestBuilder<some Any>,
 63 |         data _: Data?,
 64 |         response _: URLResponse?,
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |         error _: any Error,
 66 |         completion: @Sendable @escaping (OpenAPIInterceptorRetry) -> Void
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/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:42:25: error: cannot infer contextual base in reference to member 'success'
 40 |             var modified = urlRequest
 41 |             modified.timeoutInterval = timeoutInterval
 42 |             completion(.success(modified))
    |                         `- error: cannot infer contextual base in reference to member 'success'
 43 |             return
 44 |         }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/JSONDataEncoding.swift:29:90: error: cannot find type 'URLRequest' in scope
27 |     ///
28 |     /// - returns: The encoded request.
29 |     public func encode(request: URLRequest, with parameters: [String: any Sendable]?) -> URLRequest {
   |                                                                                          `- error: cannot find type 'URLRequest' in scope
30 |         var urlRequest = request
31 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/JSONDataEncoding.swift:29:33: error: cannot find type 'URLRequest' in scope
27 |     ///
28 |     /// - returns: The encoded request.
29 |     public func encode(request: URLRequest, with parameters: [String: any Sendable]?) -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
30 |         var urlRequest = request
31 |
[27/62] Compiling AsposeBarcodeCloud CodableHelper.swift
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:20:31: error: cannot find type 'DispatchQueue' in scope
 18 |         var credential: URLCredential?
 19 |         var requestBuilderFactory: RequestBuilderFactory
 20 |         var apiResponseQueue: DispatchQueue
    |                               `- error: cannot find type 'DispatchQueue' in scope
 21 |         var codableHelper: CodableHelper
 22 |         var successfulStatusCodeRange: Range<Int>
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:18:25: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         var basePath: String
 17 |         var customHeaders: [String: String]
 18 |         var credential: URLCredential?
    |                         `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |         var requestBuilderFactory: RequestBuilderFactory
 20 |         var apiResponseQueue: DispatchQueue
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:763:32: error: cannot find type 'URLRequest' in scope
761 |
762 |     /// Called before the request is sent. Allows modifying the URLRequest (e.g., adding authentication headers).
763 |     func intercept(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, completion: @Sendable @escaping (Result<URLRequest, Error>) -> Void)
    |                                `- error: cannot find type 'URLRequest' in scope
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:763:158: error: cannot find type 'URLRequest' in scope
761 |
762 |     /// Called before the request is sent. Allows modifying the URLRequest (e.g., adding authentication headers).
763 |     func intercept(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, completion: @Sendable @escaping (Result<URLRequest, Error>) -> Void)
    |                                                                                                                                                              `- error: cannot find type 'URLRequest' in scope
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:766:28: error: cannot find type 'URLRequest' in scope
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
766 |     func retry(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, data: Data?, response: URLResponse?, error: Error, completion: @Sendable @escaping (OpenAPIInterceptorRetry) -> Void)
    |                            `- error: cannot find type 'URLRequest' in scope
767 |
768 |     // MARK: - Lifecycle Hooks
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:772:38: error: cannot find type 'URLRequest' in scope
770 |     /// Called right before the request is sent, after all modifications from `intercept()` have been applied.
771 |     /// Useful for logging the final request that will be sent.
772 |     func willSendRequest(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>)
    |                                      `- error: cannot find type 'URLRequest' in scope
773 |
774 |     /// Called when the raw response is received, before any processing or decoding.
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:776:41: error: cannot find type 'URLRequest' in scope
774 |     /// Called when the raw response is received, before any processing or decoding.
775 |     /// Useful for logging raw responses or performing custom validation.
776 |     func didReceiveResponse(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, data: Data?, response: URLResponse?, error: Error?)
    |                                         `- error: cannot find type 'URLRequest' in scope
777 |
778 |     /// Called after the request completes (either success or failure).
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:780:37: error: cannot find type 'URLRequest' in scope
778 |     /// Called after the request completes (either success or failure).
779 |     /// Useful for cleanup, analytics, or performance monitoring.
780 |     func didComplete<T>(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<T>, data: Data?, response: URLResponse?, result: Result<T, Error>)
    |                                     `- error: cannot find type 'URLRequest' in scope
781 | }
782 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:40:28: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |     }
 39 |
 40 |     public var credential: URLCredential? {
    |                            `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |         get { _state.value.credential }
 42 |         set { _state.withValue { $0.credential = newValue } }
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:50:34: error: cannot find type 'DispatchQueue' in scope
 48 |     }
 49 |
 50 |     public var apiResponseQueue: DispatchQueue {
    |                                  `- error: cannot find type 'DispatchQueue' in scope
 51 |         get { _state.value.apiResponseQueue }
 52 |         set { _state.withValue { $0.apiResponseQueue = newValue } }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:80:27: error: cannot find type 'DispatchQueue' in scope
 78 |         credential: URLCredential? = nil,
 79 |         requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory(),
 80 |         apiResponseQueue: DispatchQueue = .main,
    |                           `- error: cannot find type 'DispatchQueue' in scope
 81 |         codableHelper: CodableHelper = CodableHelper(),
 82 |         successfulStatusCodeRange: Range<Int> = 200 ..< 300,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:78:21: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         basePath: String = "https://api.aspose.cloud/v4.0",
 77 |         customHeaders: [String: String] = [:],
 78 |         credential: URLCredential? = nil,
    |                     `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |         requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory(),
 80 |         apiResponseQueue: DispatchQueue = .main,
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:115:32: error: cannot find type 'Progress' in scope
113 |         var credential: URLCredential?
114 |         var headers: [String: String]
115 |         var onProgressReady: ((Progress) -> Void)?
    |                                `- error: cannot find type 'Progress' in scope
116 |     }
117 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:113:25: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |
112 |     private struct MutableState {
113 |         var credential: URLCredential?
    |                         `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |         var headers: [String: String]
115 |         var onProgressReady: ((Progress) -> Void)?
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:122:28: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |     // MARK: - Public mutable interface
121 |
122 |     public var credential: URLCredential? {
    |                            `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |         get { _state.value.credential }
124 |         set { _state.withValue { $0.credential = newValue } }
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:133:35: error: cannot find type 'Progress' in scope
131 |
132 |     /// Optional block to obtain a reference to the request's progress instance when available.
133 |     public var onProgressReady: ((Progress) -> Void)? {
    |                                   `- error: cannot find type 'Progress' in scope
134 |         get { _state.value.onProgressReady }
135 |         set { _state.withValue { $0.onProgressReady = newValue } }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:32:21: error: cannot find type 'URLRequest' in scope
 30 |
 31 |     func intercept(
 32 |         urlRequest: URLRequest,
    |                     `- error: cannot find type 'URLRequest' in scope
 33 |         urlSession _: URLSessionProtocol,
 34 |         requestBuilder: RequestBuilder<some Any>,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:35:49: error: cannot find type 'URLRequest' in scope
 33 |         urlSession _: URLSessionProtocol,
 34 |         requestBuilder: RequestBuilder<some Any>,
 35 |         completion: @Sendable @escaping (Result<URLRequest, any Error>) -> Void
    |                                                 `- error: cannot find type 'URLRequest' in scope
 36 |     ) {
 37 |         let timeoutInterval = configuration.timeoutInterval
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:60:23: error: cannot find type 'URLRequest' in scope
 58 |
 59 |     func retry(
 60 |         urlRequest _: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
 61 |         urlSession _: URLSessionProtocol,
 62 |         requestBuilder _: RequestBuilder<some Any>,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:64:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |         requestBuilder _: RequestBuilder<some Any>,
 63 |         data _: Data?,
 64 |         response _: URLResponse?,
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |         error _: any Error,
 66 |         completion: @Sendable @escaping (OpenAPIInterceptorRetry) -> Void
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/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:42:25: error: cannot infer contextual base in reference to member 'success'
 40 |             var modified = urlRequest
 41 |             modified.timeoutInterval = timeoutInterval
 42 |             completion(.success(modified))
    |                         `- error: cannot infer contextual base in reference to member 'success'
 43 |             return
 44 |         }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/JSONDataEncoding.swift:29:90: error: cannot find type 'URLRequest' in scope
27 |     ///
28 |     /// - returns: The encoded request.
29 |     public func encode(request: URLRequest, with parameters: [String: any Sendable]?) -> URLRequest {
   |                                                                                          `- error: cannot find type 'URLRequest' in scope
30 |         var urlRequest = request
31 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/JSONDataEncoding.swift:29:33: error: cannot find type 'URLRequest' in scope
27 |     ///
28 |     /// - returns: The encoded request.
29 |     public func encode(request: URLRequest, with parameters: [String: any Sendable]?) -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
30 |         var urlRequest = request
31 |
[28/62] Compiling AsposeBarcodeCloud Extensions.swift
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:20:31: error: cannot find type 'DispatchQueue' in scope
 18 |         var credential: URLCredential?
 19 |         var requestBuilderFactory: RequestBuilderFactory
 20 |         var apiResponseQueue: DispatchQueue
    |                               `- error: cannot find type 'DispatchQueue' in scope
 21 |         var codableHelper: CodableHelper
 22 |         var successfulStatusCodeRange: Range<Int>
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:18:25: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         var basePath: String
 17 |         var customHeaders: [String: String]
 18 |         var credential: URLCredential?
    |                         `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |         var requestBuilderFactory: RequestBuilderFactory
 20 |         var apiResponseQueue: DispatchQueue
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:763:32: error: cannot find type 'URLRequest' in scope
761 |
762 |     /// Called before the request is sent. Allows modifying the URLRequest (e.g., adding authentication headers).
763 |     func intercept(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, completion: @Sendable @escaping (Result<URLRequest, Error>) -> Void)
    |                                `- error: cannot find type 'URLRequest' in scope
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:763:158: error: cannot find type 'URLRequest' in scope
761 |
762 |     /// Called before the request is sent. Allows modifying the URLRequest (e.g., adding authentication headers).
763 |     func intercept(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, completion: @Sendable @escaping (Result<URLRequest, Error>) -> Void)
    |                                                                                                                                                              `- error: cannot find type 'URLRequest' in scope
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:766:28: error: cannot find type 'URLRequest' in scope
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
766 |     func retry(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, data: Data?, response: URLResponse?, error: Error, completion: @Sendable @escaping (OpenAPIInterceptorRetry) -> Void)
    |                            `- error: cannot find type 'URLRequest' in scope
767 |
768 |     // MARK: - Lifecycle Hooks
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:772:38: error: cannot find type 'URLRequest' in scope
770 |     /// Called right before the request is sent, after all modifications from `intercept()` have been applied.
771 |     /// Useful for logging the final request that will be sent.
772 |     func willSendRequest(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>)
    |                                      `- error: cannot find type 'URLRequest' in scope
773 |
774 |     /// Called when the raw response is received, before any processing or decoding.
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:776:41: error: cannot find type 'URLRequest' in scope
774 |     /// Called when the raw response is received, before any processing or decoding.
775 |     /// Useful for logging raw responses or performing custom validation.
776 |     func didReceiveResponse(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, data: Data?, response: URLResponse?, error: Error?)
    |                                         `- error: cannot find type 'URLRequest' in scope
777 |
778 |     /// Called after the request completes (either success or failure).
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:780:37: error: cannot find type 'URLRequest' in scope
778 |     /// Called after the request completes (either success or failure).
779 |     /// Useful for cleanup, analytics, or performance monitoring.
780 |     func didComplete<T>(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<T>, data: Data?, response: URLResponse?, result: Result<T, Error>)
    |                                     `- error: cannot find type 'URLRequest' in scope
781 | }
782 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:40:28: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |     }
 39 |
 40 |     public var credential: URLCredential? {
    |                            `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |         get { _state.value.credential }
 42 |         set { _state.withValue { $0.credential = newValue } }
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:50:34: error: cannot find type 'DispatchQueue' in scope
 48 |     }
 49 |
 50 |     public var apiResponseQueue: DispatchQueue {
    |                                  `- error: cannot find type 'DispatchQueue' in scope
 51 |         get { _state.value.apiResponseQueue }
 52 |         set { _state.withValue { $0.apiResponseQueue = newValue } }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:80:27: error: cannot find type 'DispatchQueue' in scope
 78 |         credential: URLCredential? = nil,
 79 |         requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory(),
 80 |         apiResponseQueue: DispatchQueue = .main,
    |                           `- error: cannot find type 'DispatchQueue' in scope
 81 |         codableHelper: CodableHelper = CodableHelper(),
 82 |         successfulStatusCodeRange: Range<Int> = 200 ..< 300,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:78:21: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         basePath: String = "https://api.aspose.cloud/v4.0",
 77 |         customHeaders: [String: String] = [:],
 78 |         credential: URLCredential? = nil,
    |                     `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |         requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory(),
 80 |         apiResponseQueue: DispatchQueue = .main,
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:115:32: error: cannot find type 'Progress' in scope
113 |         var credential: URLCredential?
114 |         var headers: [String: String]
115 |         var onProgressReady: ((Progress) -> Void)?
    |                                `- error: cannot find type 'Progress' in scope
116 |     }
117 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:113:25: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |
112 |     private struct MutableState {
113 |         var credential: URLCredential?
    |                         `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |         var headers: [String: String]
115 |         var onProgressReady: ((Progress) -> Void)?
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:122:28: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |     // MARK: - Public mutable interface
121 |
122 |     public var credential: URLCredential? {
    |                            `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |         get { _state.value.credential }
124 |         set { _state.withValue { $0.credential = newValue } }
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:133:35: error: cannot find type 'Progress' in scope
131 |
132 |     /// Optional block to obtain a reference to the request's progress instance when available.
133 |     public var onProgressReady: ((Progress) -> Void)? {
    |                                   `- error: cannot find type 'Progress' in scope
134 |         get { _state.value.onProgressReady }
135 |         set { _state.withValue { $0.onProgressReady = newValue } }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:32:21: error: cannot find type 'URLRequest' in scope
 30 |
 31 |     func intercept(
 32 |         urlRequest: URLRequest,
    |                     `- error: cannot find type 'URLRequest' in scope
 33 |         urlSession _: URLSessionProtocol,
 34 |         requestBuilder: RequestBuilder<some Any>,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:35:49: error: cannot find type 'URLRequest' in scope
 33 |         urlSession _: URLSessionProtocol,
 34 |         requestBuilder: RequestBuilder<some Any>,
 35 |         completion: @Sendable @escaping (Result<URLRequest, any Error>) -> Void
    |                                                 `- error: cannot find type 'URLRequest' in scope
 36 |     ) {
 37 |         let timeoutInterval = configuration.timeoutInterval
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:60:23: error: cannot find type 'URLRequest' in scope
 58 |
 59 |     func retry(
 60 |         urlRequest _: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
 61 |         urlSession _: URLSessionProtocol,
 62 |         requestBuilder _: RequestBuilder<some Any>,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:64:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |         requestBuilder _: RequestBuilder<some Any>,
 63 |         data _: Data?,
 64 |         response _: URLResponse?,
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |         error _: any Error,
 66 |         completion: @Sendable @escaping (OpenAPIInterceptorRetry) -> Void
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/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:42:25: error: cannot infer contextual base in reference to member 'success'
 40 |             var modified = urlRequest
 41 |             modified.timeoutInterval = timeoutInterval
 42 |             completion(.success(modified))
    |                         `- error: cannot infer contextual base in reference to member 'success'
 43 |             return
 44 |         }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/JSONDataEncoding.swift:29:90: error: cannot find type 'URLRequest' in scope
27 |     ///
28 |     /// - returns: The encoded request.
29 |     public func encode(request: URLRequest, with parameters: [String: any Sendable]?) -> URLRequest {
   |                                                                                          `- error: cannot find type 'URLRequest' in scope
30 |         var urlRequest = request
31 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/JSONDataEncoding.swift:29:33: error: cannot find type 'URLRequest' in scope
27 |     ///
28 |     /// - returns: The encoded request.
29 |     public func encode(request: URLRequest, with parameters: [String: any Sendable]?) -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
30 |         var urlRequest = request
31 |
[29/62] Compiling AsposeBarcodeCloud JSONDataEncoding.swift
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:20:31: error: cannot find type 'DispatchQueue' in scope
 18 |         var credential: URLCredential?
 19 |         var requestBuilderFactory: RequestBuilderFactory
 20 |         var apiResponseQueue: DispatchQueue
    |                               `- error: cannot find type 'DispatchQueue' in scope
 21 |         var codableHelper: CodableHelper
 22 |         var successfulStatusCodeRange: Range<Int>
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:18:25: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         var basePath: String
 17 |         var customHeaders: [String: String]
 18 |         var credential: URLCredential?
    |                         `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |         var requestBuilderFactory: RequestBuilderFactory
 20 |         var apiResponseQueue: DispatchQueue
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:763:32: error: cannot find type 'URLRequest' in scope
761 |
762 |     /// Called before the request is sent. Allows modifying the URLRequest (e.g., adding authentication headers).
763 |     func intercept(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, completion: @Sendable @escaping (Result<URLRequest, Error>) -> Void)
    |                                `- error: cannot find type 'URLRequest' in scope
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:763:158: error: cannot find type 'URLRequest' in scope
761 |
762 |     /// Called before the request is sent. Allows modifying the URLRequest (e.g., adding authentication headers).
763 |     func intercept(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, completion: @Sendable @escaping (Result<URLRequest, Error>) -> Void)
    |                                                                                                                                                              `- error: cannot find type 'URLRequest' in scope
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:766:28: error: cannot find type 'URLRequest' in scope
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
766 |     func retry(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, data: Data?, response: URLResponse?, error: Error, completion: @Sendable @escaping (OpenAPIInterceptorRetry) -> Void)
    |                            `- error: cannot find type 'URLRequest' in scope
767 |
768 |     // MARK: - Lifecycle Hooks
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:772:38: error: cannot find type 'URLRequest' in scope
770 |     /// Called right before the request is sent, after all modifications from `intercept()` have been applied.
771 |     /// Useful for logging the final request that will be sent.
772 |     func willSendRequest(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>)
    |                                      `- error: cannot find type 'URLRequest' in scope
773 |
774 |     /// Called when the raw response is received, before any processing or decoding.
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:776:41: error: cannot find type 'URLRequest' in scope
774 |     /// Called when the raw response is received, before any processing or decoding.
775 |     /// Useful for logging raw responses or performing custom validation.
776 |     func didReceiveResponse(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, data: Data?, response: URLResponse?, error: Error?)
    |                                         `- error: cannot find type 'URLRequest' in scope
777 |
778 |     /// Called after the request completes (either success or failure).
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:780:37: error: cannot find type 'URLRequest' in scope
778 |     /// Called after the request completes (either success or failure).
779 |     /// Useful for cleanup, analytics, or performance monitoring.
780 |     func didComplete<T>(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<T>, data: Data?, response: URLResponse?, result: Result<T, Error>)
    |                                     `- error: cannot find type 'URLRequest' in scope
781 | }
782 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:40:28: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |     }
 39 |
 40 |     public var credential: URLCredential? {
    |                            `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |         get { _state.value.credential }
 42 |         set { _state.withValue { $0.credential = newValue } }
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:50:34: error: cannot find type 'DispatchQueue' in scope
 48 |     }
 49 |
 50 |     public var apiResponseQueue: DispatchQueue {
    |                                  `- error: cannot find type 'DispatchQueue' in scope
 51 |         get { _state.value.apiResponseQueue }
 52 |         set { _state.withValue { $0.apiResponseQueue = newValue } }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:80:27: error: cannot find type 'DispatchQueue' in scope
 78 |         credential: URLCredential? = nil,
 79 |         requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory(),
 80 |         apiResponseQueue: DispatchQueue = .main,
    |                           `- error: cannot find type 'DispatchQueue' in scope
 81 |         codableHelper: CodableHelper = CodableHelper(),
 82 |         successfulStatusCodeRange: Range<Int> = 200 ..< 300,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:78:21: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         basePath: String = "https://api.aspose.cloud/v4.0",
 77 |         customHeaders: [String: String] = [:],
 78 |         credential: URLCredential? = nil,
    |                     `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |         requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory(),
 80 |         apiResponseQueue: DispatchQueue = .main,
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:115:32: error: cannot find type 'Progress' in scope
113 |         var credential: URLCredential?
114 |         var headers: [String: String]
115 |         var onProgressReady: ((Progress) -> Void)?
    |                                `- error: cannot find type 'Progress' in scope
116 |     }
117 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:113:25: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |
112 |     private struct MutableState {
113 |         var credential: URLCredential?
    |                         `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |         var headers: [String: String]
115 |         var onProgressReady: ((Progress) -> Void)?
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:122:28: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |     // MARK: - Public mutable interface
121 |
122 |     public var credential: URLCredential? {
    |                            `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |         get { _state.value.credential }
124 |         set { _state.withValue { $0.credential = newValue } }
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:133:35: error: cannot find type 'Progress' in scope
131 |
132 |     /// Optional block to obtain a reference to the request's progress instance when available.
133 |     public var onProgressReady: ((Progress) -> Void)? {
    |                                   `- error: cannot find type 'Progress' in scope
134 |         get { _state.value.onProgressReady }
135 |         set { _state.withValue { $0.onProgressReady = newValue } }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:32:21: error: cannot find type 'URLRequest' in scope
 30 |
 31 |     func intercept(
 32 |         urlRequest: URLRequest,
    |                     `- error: cannot find type 'URLRequest' in scope
 33 |         urlSession _: URLSessionProtocol,
 34 |         requestBuilder: RequestBuilder<some Any>,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:35:49: error: cannot find type 'URLRequest' in scope
 33 |         urlSession _: URLSessionProtocol,
 34 |         requestBuilder: RequestBuilder<some Any>,
 35 |         completion: @Sendable @escaping (Result<URLRequest, any Error>) -> Void
    |                                                 `- error: cannot find type 'URLRequest' in scope
 36 |     ) {
 37 |         let timeoutInterval = configuration.timeoutInterval
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:60:23: error: cannot find type 'URLRequest' in scope
 58 |
 59 |     func retry(
 60 |         urlRequest _: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
 61 |         urlSession _: URLSessionProtocol,
 62 |         requestBuilder _: RequestBuilder<some Any>,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:64:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |         requestBuilder _: RequestBuilder<some Any>,
 63 |         data _: Data?,
 64 |         response _: URLResponse?,
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |         error _: any Error,
 66 |         completion: @Sendable @escaping (OpenAPIInterceptorRetry) -> Void
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/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:42:25: error: cannot infer contextual base in reference to member 'success'
 40 |             var modified = urlRequest
 41 |             modified.timeoutInterval = timeoutInterval
 42 |             completion(.success(modified))
    |                         `- error: cannot infer contextual base in reference to member 'success'
 43 |             return
 44 |         }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/JSONDataEncoding.swift:29:90: error: cannot find type 'URLRequest' in scope
27 |     ///
28 |     /// - returns: The encoded request.
29 |     public func encode(request: URLRequest, with parameters: [String: any Sendable]?) -> URLRequest {
   |                                                                                          `- error: cannot find type 'URLRequest' in scope
30 |         var urlRequest = request
31 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/JSONDataEncoding.swift:29:33: error: cannot find type 'URLRequest' in scope
27 |     ///
28 |     /// - returns: The encoded request.
29 |     public func encode(request: URLRequest, with parameters: [String: any Sendable]?) -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
30 |         var urlRequest = request
31 |
[30/62] Compiling AsposeBarcodeCloud JSONEncodingHelper.swift
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:20:31: error: cannot find type 'DispatchQueue' in scope
 18 |         var credential: URLCredential?
 19 |         var requestBuilderFactory: RequestBuilderFactory
 20 |         var apiResponseQueue: DispatchQueue
    |                               `- error: cannot find type 'DispatchQueue' in scope
 21 |         var codableHelper: CodableHelper
 22 |         var successfulStatusCodeRange: Range<Int>
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:18:25: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         var basePath: String
 17 |         var customHeaders: [String: String]
 18 |         var credential: URLCredential?
    |                         `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |         var requestBuilderFactory: RequestBuilderFactory
 20 |         var apiResponseQueue: DispatchQueue
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:763:32: error: cannot find type 'URLRequest' in scope
761 |
762 |     /// Called before the request is sent. Allows modifying the URLRequest (e.g., adding authentication headers).
763 |     func intercept(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, completion: @Sendable @escaping (Result<URLRequest, Error>) -> Void)
    |                                `- error: cannot find type 'URLRequest' in scope
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:763:158: error: cannot find type 'URLRequest' in scope
761 |
762 |     /// Called before the request is sent. Allows modifying the URLRequest (e.g., adding authentication headers).
763 |     func intercept(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, completion: @Sendable @escaping (Result<URLRequest, Error>) -> Void)
    |                                                                                                                                                              `- error: cannot find type 'URLRequest' in scope
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:766:28: error: cannot find type 'URLRequest' in scope
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
766 |     func retry(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, data: Data?, response: URLResponse?, error: Error, completion: @Sendable @escaping (OpenAPIInterceptorRetry) -> Void)
    |                            `- error: cannot find type 'URLRequest' in scope
767 |
768 |     // MARK: - Lifecycle Hooks
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:772:38: error: cannot find type 'URLRequest' in scope
770 |     /// Called right before the request is sent, after all modifications from `intercept()` have been applied.
771 |     /// Useful for logging the final request that will be sent.
772 |     func willSendRequest(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>)
    |                                      `- error: cannot find type 'URLRequest' in scope
773 |
774 |     /// Called when the raw response is received, before any processing or decoding.
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:776:41: error: cannot find type 'URLRequest' in scope
774 |     /// Called when the raw response is received, before any processing or decoding.
775 |     /// Useful for logging raw responses or performing custom validation.
776 |     func didReceiveResponse(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, data: Data?, response: URLResponse?, error: Error?)
    |                                         `- error: cannot find type 'URLRequest' in scope
777 |
778 |     /// Called after the request completes (either success or failure).
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:780:37: error: cannot find type 'URLRequest' in scope
778 |     /// Called after the request completes (either success or failure).
779 |     /// Useful for cleanup, analytics, or performance monitoring.
780 |     func didComplete<T>(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<T>, data: Data?, response: URLResponse?, result: Result<T, Error>)
    |                                     `- error: cannot find type 'URLRequest' in scope
781 | }
782 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:40:28: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |     }
 39 |
 40 |     public var credential: URLCredential? {
    |                            `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |         get { _state.value.credential }
 42 |         set { _state.withValue { $0.credential = newValue } }
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:50:34: error: cannot find type 'DispatchQueue' in scope
 48 |     }
 49 |
 50 |     public var apiResponseQueue: DispatchQueue {
    |                                  `- error: cannot find type 'DispatchQueue' in scope
 51 |         get { _state.value.apiResponseQueue }
 52 |         set { _state.withValue { $0.apiResponseQueue = newValue } }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:80:27: error: cannot find type 'DispatchQueue' in scope
 78 |         credential: URLCredential? = nil,
 79 |         requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory(),
 80 |         apiResponseQueue: DispatchQueue = .main,
    |                           `- error: cannot find type 'DispatchQueue' in scope
 81 |         codableHelper: CodableHelper = CodableHelper(),
 82 |         successfulStatusCodeRange: Range<Int> = 200 ..< 300,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:78:21: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         basePath: String = "https://api.aspose.cloud/v4.0",
 77 |         customHeaders: [String: String] = [:],
 78 |         credential: URLCredential? = nil,
    |                     `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |         requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory(),
 80 |         apiResponseQueue: DispatchQueue = .main,
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:115:32: error: cannot find type 'Progress' in scope
113 |         var credential: URLCredential?
114 |         var headers: [String: String]
115 |         var onProgressReady: ((Progress) -> Void)?
    |                                `- error: cannot find type 'Progress' in scope
116 |     }
117 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:113:25: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |
112 |     private struct MutableState {
113 |         var credential: URLCredential?
    |                         `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |         var headers: [String: String]
115 |         var onProgressReady: ((Progress) -> Void)?
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:122:28: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |     // MARK: - Public mutable interface
121 |
122 |     public var credential: URLCredential? {
    |                            `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |         get { _state.value.credential }
124 |         set { _state.withValue { $0.credential = newValue } }
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:133:35: error: cannot find type 'Progress' in scope
131 |
132 |     /// Optional block to obtain a reference to the request's progress instance when available.
133 |     public var onProgressReady: ((Progress) -> Void)? {
    |                                   `- error: cannot find type 'Progress' in scope
134 |         get { _state.value.onProgressReady }
135 |         set { _state.withValue { $0.onProgressReady = newValue } }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:32:21: error: cannot find type 'URLRequest' in scope
 30 |
 31 |     func intercept(
 32 |         urlRequest: URLRequest,
    |                     `- error: cannot find type 'URLRequest' in scope
 33 |         urlSession _: URLSessionProtocol,
 34 |         requestBuilder: RequestBuilder<some Any>,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:35:49: error: cannot find type 'URLRequest' in scope
 33 |         urlSession _: URLSessionProtocol,
 34 |         requestBuilder: RequestBuilder<some Any>,
 35 |         completion: @Sendable @escaping (Result<URLRequest, any Error>) -> Void
    |                                                 `- error: cannot find type 'URLRequest' in scope
 36 |     ) {
 37 |         let timeoutInterval = configuration.timeoutInterval
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:60:23: error: cannot find type 'URLRequest' in scope
 58 |
 59 |     func retry(
 60 |         urlRequest _: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
 61 |         urlSession _: URLSessionProtocol,
 62 |         requestBuilder _: RequestBuilder<some Any>,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:64:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |         requestBuilder _: RequestBuilder<some Any>,
 63 |         data _: Data?,
 64 |         response _: URLResponse?,
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |         error _: any Error,
 66 |         completion: @Sendable @escaping (OpenAPIInterceptorRetry) -> Void
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/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:42:25: error: cannot infer contextual base in reference to member 'success'
 40 |             var modified = urlRequest
 41 |             modified.timeoutInterval = timeoutInterval
 42 |             completion(.success(modified))
    |                         `- error: cannot infer contextual base in reference to member 'success'
 43 |             return
 44 |         }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/JSONDataEncoding.swift:29:90: error: cannot find type 'URLRequest' in scope
27 |     ///
28 |     /// - returns: The encoded request.
29 |     public func encode(request: URLRequest, with parameters: [String: any Sendable]?) -> URLRequest {
   |                                                                                          `- error: cannot find type 'URLRequest' in scope
30 |         var urlRequest = request
31 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/JSONDataEncoding.swift:29:33: error: cannot find type 'URLRequest' in scope
27 |     ///
28 |     /// - returns: The encoded request.
29 |     public func encode(request: URLRequest, with parameters: [String: any Sendable]?) -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
30 |         var urlRequest = request
31 |
[31/62] Compiling AsposeBarcodeCloud JSONValue.swift
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:20:31: error: cannot find type 'DispatchQueue' in scope
 18 |         var credential: URLCredential?
 19 |         var requestBuilderFactory: RequestBuilderFactory
 20 |         var apiResponseQueue: DispatchQueue
    |                               `- error: cannot find type 'DispatchQueue' in scope
 21 |         var codableHelper: CodableHelper
 22 |         var successfulStatusCodeRange: Range<Int>
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:18:25: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         var basePath: String
 17 |         var customHeaders: [String: String]
 18 |         var credential: URLCredential?
    |                         `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |         var requestBuilderFactory: RequestBuilderFactory
 20 |         var apiResponseQueue: DispatchQueue
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:763:32: error: cannot find type 'URLRequest' in scope
761 |
762 |     /// Called before the request is sent. Allows modifying the URLRequest (e.g., adding authentication headers).
763 |     func intercept(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, completion: @Sendable @escaping (Result<URLRequest, Error>) -> Void)
    |                                `- error: cannot find type 'URLRequest' in scope
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:763:158: error: cannot find type 'URLRequest' in scope
761 |
762 |     /// Called before the request is sent. Allows modifying the URLRequest (e.g., adding authentication headers).
763 |     func intercept(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, completion: @Sendable @escaping (Result<URLRequest, Error>) -> Void)
    |                                                                                                                                                              `- error: cannot find type 'URLRequest' in scope
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:766:28: error: cannot find type 'URLRequest' in scope
764 |
765 |     /// Called when a request fails. Allows the interceptor to decide whether to retry the request.
766 |     func retry(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, data: Data?, response: URLResponse?, error: Error, completion: @Sendable @escaping (OpenAPIInterceptorRetry) -> Void)
    |                            `- error: cannot find type 'URLRequest' in scope
767 |
768 |     // MARK: - Lifecycle Hooks
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:772:38: error: cannot find type 'URLRequest' in scope
770 |     /// Called right before the request is sent, after all modifications from `intercept()` have been applied.
771 |     /// Useful for logging the final request that will be sent.
772 |     func willSendRequest(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>)
    |                                      `- error: cannot find type 'URLRequest' in scope
773 |
774 |     /// Called when the raw response is received, before any processing or decoding.
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:776:41: error: cannot find type 'URLRequest' in scope
774 |     /// Called when the raw response is received, before any processing or decoding.
775 |     /// Useful for logging raw responses or performing custom validation.
776 |     func didReceiveResponse(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<some Any>, data: Data?, response: URLResponse?, error: Error?)
    |                                         `- error: cannot find type 'URLRequest' in scope
777 |
778 |     /// Called after the request completes (either success or failure).
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/URLSessionImplementations.swift:780:37: error: cannot find type 'URLRequest' in scope
778 |     /// Called after the request completes (either success or failure).
779 |     /// Useful for cleanup, analytics, or performance monitoring.
780 |     func didComplete<T>(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder<T>, data: Data?, response: URLResponse?, result: Result<T, Error>)
    |                                     `- error: cannot find type 'URLRequest' in scope
781 | }
782 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:40:28: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |     }
 39 |
 40 |     public var credential: URLCredential? {
    |                            `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |         get { _state.value.credential }
 42 |         set { _state.withValue { $0.credential = newValue } }
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:50:34: error: cannot find type 'DispatchQueue' in scope
 48 |     }
 49 |
 50 |     public var apiResponseQueue: DispatchQueue {
    |                                  `- error: cannot find type 'DispatchQueue' in scope
 51 |         get { _state.value.apiResponseQueue }
 52 |         set { _state.withValue { $0.apiResponseQueue = newValue } }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:80:27: error: cannot find type 'DispatchQueue' in scope
 78 |         credential: URLCredential? = nil,
 79 |         requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory(),
 80 |         apiResponseQueue: DispatchQueue = .main,
    |                           `- error: cannot find type 'DispatchQueue' in scope
 81 |         codableHelper: CodableHelper = CodableHelper(),
 82 |         successfulStatusCodeRange: Range<Int> = 200 ..< 300,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:78:21: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         basePath: String = "https://api.aspose.cloud/v4.0",
 77 |         customHeaders: [String: String] = [:],
 78 |         credential: URLCredential? = nil,
    |                     `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |         requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory(),
 80 |         apiResponseQueue: DispatchQueue = .main,
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:115:32: error: cannot find type 'Progress' in scope
113 |         var credential: URLCredential?
114 |         var headers: [String: String]
115 |         var onProgressReady: ((Progress) -> Void)?
    |                                `- error: cannot find type 'Progress' in scope
116 |     }
117 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:113:25: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |
112 |     private struct MutableState {
113 |         var credential: URLCredential?
    |                         `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |         var headers: [String: String]
115 |         var onProgressReady: ((Progress) -> Void)?
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:122:28: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |     // MARK: - Public mutable interface
121 |
122 |     public var credential: URLCredential? {
    |                            `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |         get { _state.value.credential }
124 |         set { _state.withValue { $0.credential = newValue } }
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:133:35: error: cannot find type 'Progress' in scope
131 |
132 |     /// Optional block to obtain a reference to the request's progress instance when available.
133 |     public var onProgressReady: ((Progress) -> Void)? {
    |                                   `- error: cannot find type 'Progress' in scope
134 |         get { _state.value.onProgressReady }
135 |         set { _state.withValue { $0.onProgressReady = newValue } }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:32:21: error: cannot find type 'URLRequest' in scope
 30 |
 31 |     func intercept(
 32 |         urlRequest: URLRequest,
    |                     `- error: cannot find type 'URLRequest' in scope
 33 |         urlSession _: URLSessionProtocol,
 34 |         requestBuilder: RequestBuilder<some Any>,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:35:49: error: cannot find type 'URLRequest' in scope
 33 |         urlSession _: URLSessionProtocol,
 34 |         requestBuilder: RequestBuilder<some Any>,
 35 |         completion: @Sendable @escaping (Result<URLRequest, any Error>) -> Void
    |                                                 `- error: cannot find type 'URLRequest' in scope
 36 |     ) {
 37 |         let timeoutInterval = configuration.timeoutInterval
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:60:23: error: cannot find type 'URLRequest' in scope
 58 |
 59 |     func retry(
 60 |         urlRequest _: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
 61 |         urlSession _: URLSessionProtocol,
 62 |         requestBuilder _: RequestBuilder<some Any>,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:64:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |         requestBuilder _: RequestBuilder<some Any>,
 63 |         data _: Data?,
 64 |         response _: URLResponse?,
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |         error _: any Error,
 66 |         completion: @Sendable @escaping (OpenAPIInterceptorRetry) -> Void
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/AsposeBarcodeCloud/Infrastructure/BarcodeAuthInterceptor.swift:42:25: error: cannot infer contextual base in reference to member 'success'
 40 |             var modified = urlRequest
 41 |             modified.timeoutInterval = timeoutInterval
 42 |             completion(.success(modified))
    |                         `- error: cannot infer contextual base in reference to member 'success'
 43 |             return
 44 |         }
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/JSONDataEncoding.swift:29:90: error: cannot find type 'URLRequest' in scope
27 |     ///
28 |     /// - returns: The encoded request.
29 |     public func encode(request: URLRequest, with parameters: [String: any Sendable]?) -> URLRequest {
   |                                                                                          `- error: cannot find type 'URLRequest' in scope
30 |         var urlRequest = request
31 |
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/JSONDataEncoding.swift:29:33: error: cannot find type 'URLRequest' in scope
27 |     ///
28 |     /// - returns: The encoded request.
29 |     public func encode(request: URLRequest, with parameters: [String: any Sendable]?) -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
30 |         var urlRequest = request
31 |
[32/62] Compiling AsposeBarcodeCloud BatchGenerateRequest.swift
[33/62] Compiling AsposeBarcodeCloud Code128EncodeMode.swift
[34/62] Compiling AsposeBarcodeCloud Code128Params.swift
[35/62] Compiling AsposeBarcodeCloud CodeLocation.swift
[36/62] Compiling AsposeBarcodeCloud DecodeBarcodeType.swift
[37/62] Compiling AsposeBarcodeCloud ECIEncodings.swift
[38/62] Compiling AsposeBarcodeCloud EncodeBarcodeType.swift
[39/62] Compiling AsposeBarcodeCloud GenerateAPI.swift
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:80:27: error: cannot find type 'DispatchQueue' in scope
 78 |         credential: URLCredential? = nil,
 79 |         requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory(),
 80 |         apiResponseQueue: DispatchQueue = .main,
    |                           `- error: cannot find type 'DispatchQueue' in scope
 81 |         codableHelper: CodableHelper = CodableHelper(),
 82 |         successfulStatusCodeRange: Range<Int> = 200 ..< 300,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudClient.swift:94:22: error: cannot find type 'URLRequest' in scope
 92 |         completion: @escaping @Sendable (Result<String, AsposeBarcodeCloudClientError>) -> Void
 93 |     ) {
 94 |         let request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 95 |         do {
 96 |             request = try configuration.makeTokenRequest()
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudConfiguration.swift:41:46: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     public func makeTokenRequest() throws -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
42 |         guard let clientId, !clientId.isEmpty,
43 |               let clientSecret, !clientSecret.isEmpty
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudClient.swift:105:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
103 |         }
104 |
105 |         URLSession.shared.dataTask(with: request) { data, response, error in
    |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 |             if let error {
107 |                 completion(.failure(.transportError(error)))
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudConfiguration.swift:59:23: error: cannot find 'URLRequest' in scope
57 |         ]
58 |
59 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
60 |         request.httpMethod = "POST"
61 |         request.timeoutInterval = timeoutInterval
[40/62] Compiling AsposeBarcodeCloud RecognizeAPI.swift
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:80:27: error: cannot find type 'DispatchQueue' in scope
 78 |         credential: URLCredential? = nil,
 79 |         requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory(),
 80 |         apiResponseQueue: DispatchQueue = .main,
    |                           `- error: cannot find type 'DispatchQueue' in scope
 81 |         codableHelper: CodableHelper = CodableHelper(),
 82 |         successfulStatusCodeRange: Range<Int> = 200 ..< 300,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudClient.swift:94:22: error: cannot find type 'URLRequest' in scope
 92 |         completion: @escaping @Sendable (Result<String, AsposeBarcodeCloudClientError>) -> Void
 93 |     ) {
 94 |         let request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 95 |         do {
 96 |             request = try configuration.makeTokenRequest()
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudConfiguration.swift:41:46: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     public func makeTokenRequest() throws -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
42 |         guard let clientId, !clientId.isEmpty,
43 |               let clientSecret, !clientSecret.isEmpty
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudClient.swift:105:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
103 |         }
104 |
105 |         URLSession.shared.dataTask(with: request) { data, response, error in
    |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 |             if let error {
107 |                 completion(.failure(.transportError(error)))
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudConfiguration.swift:59:23: error: cannot find 'URLRequest' in scope
57 |         ]
58 |
59 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
60 |         request.httpMethod = "POST"
61 |         request.timeoutInterval = timeoutInterval
[41/62] Compiling AsposeBarcodeCloud ScanAPI.swift
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:80:27: error: cannot find type 'DispatchQueue' in scope
 78 |         credential: URLCredential? = nil,
 79 |         requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory(),
 80 |         apiResponseQueue: DispatchQueue = .main,
    |                           `- error: cannot find type 'DispatchQueue' in scope
 81 |         codableHelper: CodableHelper = CodableHelper(),
 82 |         successfulStatusCodeRange: Range<Int> = 200 ..< 300,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudClient.swift:94:22: error: cannot find type 'URLRequest' in scope
 92 |         completion: @escaping @Sendable (Result<String, AsposeBarcodeCloudClientError>) -> Void
 93 |     ) {
 94 |         let request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 95 |         do {
 96 |             request = try configuration.makeTokenRequest()
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudConfiguration.swift:41:46: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     public func makeTokenRequest() throws -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
42 |         guard let clientId, !clientId.isEmpty,
43 |               let clientSecret, !clientSecret.isEmpty
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudClient.swift:105:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
103 |         }
104 |
105 |         URLSession.shared.dataTask(with: request) { data, response, error in
    |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 |             if let error {
107 |                 completion(.failure(.transportError(error)))
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudConfiguration.swift:59:23: error: cannot find 'URLRequest' in scope
57 |         ]
58 |
59 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
60 |         request.httpMethod = "POST"
61 |         request.timeoutInterval = timeoutInterval
[42/62] Compiling AsposeBarcodeCloud AsposeBarcodeCloudClient.swift
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:80:27: error: cannot find type 'DispatchQueue' in scope
 78 |         credential: URLCredential? = nil,
 79 |         requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory(),
 80 |         apiResponseQueue: DispatchQueue = .main,
    |                           `- error: cannot find type 'DispatchQueue' in scope
 81 |         codableHelper: CodableHelper = CodableHelper(),
 82 |         successfulStatusCodeRange: Range<Int> = 200 ..< 300,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudClient.swift:94:22: error: cannot find type 'URLRequest' in scope
 92 |         completion: @escaping @Sendable (Result<String, AsposeBarcodeCloudClientError>) -> Void
 93 |     ) {
 94 |         let request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 95 |         do {
 96 |             request = try configuration.makeTokenRequest()
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudConfiguration.swift:41:46: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     public func makeTokenRequest() throws -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
42 |         guard let clientId, !clientId.isEmpty,
43 |               let clientSecret, !clientSecret.isEmpty
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudClient.swift:105:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
103 |         }
104 |
105 |         URLSession.shared.dataTask(with: request) { data, response, error in
    |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 |             if let error {
107 |                 completion(.failure(.transportError(error)))
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudConfiguration.swift:59:23: error: cannot find 'URLRequest' in scope
57 |         ]
58 |
59 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
60 |         request.httpMethod = "POST"
61 |         request.timeoutInterval = timeoutInterval
[43/62] Compiling AsposeBarcodeCloud AsposeBarcodeCloudClientError.swift
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:80:27: error: cannot find type 'DispatchQueue' in scope
 78 |         credential: URLCredential? = nil,
 79 |         requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory(),
 80 |         apiResponseQueue: DispatchQueue = .main,
    |                           `- error: cannot find type 'DispatchQueue' in scope
 81 |         codableHelper: CodableHelper = CodableHelper(),
 82 |         successfulStatusCodeRange: Range<Int> = 200 ..< 300,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudClient.swift:94:22: error: cannot find type 'URLRequest' in scope
 92 |         completion: @escaping @Sendable (Result<String, AsposeBarcodeCloudClientError>) -> Void
 93 |     ) {
 94 |         let request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 95 |         do {
 96 |             request = try configuration.makeTokenRequest()
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudConfiguration.swift:41:46: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     public func makeTokenRequest() throws -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
42 |         guard let clientId, !clientId.isEmpty,
43 |               let clientSecret, !clientSecret.isEmpty
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudClient.swift:105:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
103 |         }
104 |
105 |         URLSession.shared.dataTask(with: request) { data, response, error in
    |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 |             if let error {
107 |                 completion(.failure(.transportError(error)))
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudConfiguration.swift:59:23: error: cannot find 'URLRequest' in scope
57 |         ]
58 |
59 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
60 |         request.httpMethod = "POST"
61 |         request.timeoutInterval = timeoutInterval
[44/62] Compiling AsposeBarcodeCloud AsposeBarcodeCloudConfiguration.swift
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:80:27: error: cannot find type 'DispatchQueue' in scope
 78 |         credential: URLCredential? = nil,
 79 |         requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory(),
 80 |         apiResponseQueue: DispatchQueue = .main,
    |                           `- error: cannot find type 'DispatchQueue' in scope
 81 |         codableHelper: CodableHelper = CodableHelper(),
 82 |         successfulStatusCodeRange: Range<Int> = 200 ..< 300,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudClient.swift:94:22: error: cannot find type 'URLRequest' in scope
 92 |         completion: @escaping @Sendable (Result<String, AsposeBarcodeCloudClientError>) -> Void
 93 |     ) {
 94 |         let request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 95 |         do {
 96 |             request = try configuration.makeTokenRequest()
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudConfiguration.swift:41:46: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     public func makeTokenRequest() throws -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
42 |         guard let clientId, !clientId.isEmpty,
43 |               let clientSecret, !clientSecret.isEmpty
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudClient.swift:105:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
103 |         }
104 |
105 |         URLSession.shared.dataTask(with: request) { data, response, error in
    |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 |             if let error {
107 |                 completion(.failure(.transportError(error)))
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudConfiguration.swift:59:23: error: cannot find 'URLRequest' in scope
57 |         ]
58 |
59 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
60 |         request.httpMethod = "POST"
61 |         request.timeoutInterval = timeoutInterval
[45/62] Compiling AsposeBarcodeCloud APIHelper.swift
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/Infrastructure/APIs.swift:80:27: error: cannot find type 'DispatchQueue' in scope
 78 |         credential: URLCredential? = nil,
 79 |         requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory(),
 80 |         apiResponseQueue: DispatchQueue = .main,
    |                           `- error: cannot find type 'DispatchQueue' in scope
 81 |         codableHelper: CodableHelper = CodableHelper(),
 82 |         successfulStatusCodeRange: Range<Int> = 200 ..< 300,
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudClient.swift:94:22: error: cannot find type 'URLRequest' in scope
 92 |         completion: @escaping @Sendable (Result<String, AsposeBarcodeCloudClientError>) -> Void
 93 |     ) {
 94 |         let request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 95 |         do {
 96 |             request = try configuration.makeTokenRequest()
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudConfiguration.swift:41:46: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     public func makeTokenRequest() throws -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
42 |         guard let clientId, !clientId.isEmpty,
43 |               let clientSecret, !clientSecret.isEmpty
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudClient.swift:105:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
103 |         }
104 |
105 |         URLSession.shared.dataTask(with: request) { data, response, error in
    |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 |             if let error {
107 |                 completion(.failure(.transportError(error)))
/host/spi-builder-workspace/Sources/AsposeBarcodeCloud/AsposeBarcodeCloudConfiguration.swift:59:23: error: cannot find 'URLRequest' in scope
57 |         ]
58 |
59 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
60 |         request.httpMethod = "POST"
61 |         request.timeoutInterval = timeoutInterval
[46/62] Compiling AsposeBarcodeCloud ApiErrorResponse.swift
[47/62] Compiling AsposeBarcodeCloud BarcodeImageFormat.swift
[48/62] Compiling AsposeBarcodeCloud BarcodeImageParams.swift
[49/62] Compiling AsposeBarcodeCloud BarcodeResponse.swift
[50/62] Compiling AsposeBarcodeCloud BarcodeResponseList.swift
[51/62] Compiling AsposeBarcodeCloud BatchArchiveFormat.swift
[52/62] Compiling AsposeBarcodeCloud BatchGenerateItem.swift
[53/62] Compiling AsposeBarcodeCloud RecognitionImageKind.swift
[54/62] Compiling AsposeBarcodeCloud RecognitionMode.swift
[55/62] Compiling AsposeBarcodeCloud RecognizeBase64Request.swift
[56/62] Compiling AsposeBarcodeCloud RectMicroQRVersion.swift
[57/62] Compiling AsposeBarcodeCloud RegionPoint.swift
[58/62] Compiling AsposeBarcodeCloud ScanBase64Request.swift
BUILD FAILURE 6.3 wasm