Build Information
Failed to build RealHTTP, reference 1.9.0 (fcec34
), with Swift 6.1 for Wasm on 30 May 2025 05:35:12 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
375 |
376 | func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
377 | guard let request = dataLoadersMap[task.taskIdentifier]?.request else {
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
378 | return
379 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:381:9: error: cannot find 'DispatchQueue' in scope
379 | }
380 |
381 | DispatchQueue.main.async { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
382 | guard let client = self?.client else { return }
383 | client.delegate?.client(client, taskIsWaitingForConnectivity: (request, task))
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:424:34: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
422 | }
423 |
424 | self.dataLoadersMap[task.taskIdentifier]?.urlResponse = task.response
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
425 |
426 | if handler.request.transferMode == .largeData,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:424:70: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
422 | }
423 |
424 | self.dataLoadersMap[task.taskIdentifier]?.urlResponse = task.response
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
425 |
426 | if handler.request.transferMode == .largeData,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:428:49: error: cannot find 'NSURLSessionDownloadTaskResumeData' in scope
426 | if handler.request.transferMode == .largeData,
427 | let error = error, let nsError = error as NSError?,
428 | let resumableData = nsError.userInfo[NSURLSessionDownloadTaskResumeData] as? Data {
| `- error: cannot find 'NSURLSessionDownloadTaskResumeData' in scope
429 | // When download fails task will be completed with an error and the error contains
430 | // a resumable set of data.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:432:61: error: cannot infer contextual base in reference to member 'failed'
430 | // a resumable set of data.
431 | // <https://developer.apple.com/forums/thread/24770>
432 | handler.request.progress = HTTPProgress(event: .failed,
| `- error: cannot infer contextual base in reference to member 'failed'
433 | currentLength: 0,
434 | expectedLength: 0, partialData: resumableData)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
56 | /// except when the server has responded to the initial request with a
57 | /// redirect to a different URL.
58 | var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | // MARK: - Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
56 | /// except when the server has responded to the initial request with a
57 | /// redirect to a different URL.
58 | var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | // MARK: - Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:439:37: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
437 | }
438 |
439 | handler.urlRequests = (task.originalRequest, task.currentRequest)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
440 |
441 | if let error = error {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:439:59: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'currentRequest'
437 | }
438 |
439 | handler.urlRequests = (task.originalRequest, task.currentRequest)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'currentRequest'
440 |
441 | if let error = error {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:445:34: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
443 | }
444 |
445 | self.dataLoadersMap[task.taskIdentifier] = nil
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
446 |
447 | let response = HTTPResponse(response: handler)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:450:9: error: cannot find 'DispatchQueue' in scope
448 | handler.completion(response)
449 |
450 | DispatchQueue.main.async { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
451 | guard let client = self?.client else { return }
452 | client.delegate?.client(client, didFinish: (handler.request, task), response: response)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:466:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
464 | completion: @escaping (URLRequest?) -> Void) {
465 | // missing components, continue to the default behaviour
466 | let handler = dataLoadersMap[task.taskIdentifier]
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
467 | guard let client = client, let handler = handler else {
468 | completion(request)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:477:30: error: cannot find type 'URLRequest' in scope
475 |
476 | // For some reason both body, headers and method is not copied
477 | var redirectRequest: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
478 |
479 | switch redirectMode {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:485:46: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
483 | // maintain http body, headers and method of the original request.
484 | redirectRequest = request
485 | redirectRequest?.httpBody = task.originalRequest?.httpBody
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
486 | redirectRequest?.allHTTPHeaderFields = task.originalRequest?.allHTTPHeaderFields
487 | redirectRequest?.httpMethod = task.originalRequest?.httpMethod
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:486:57: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
484 | redirectRequest = request
485 | redirectRequest?.httpBody = task.originalRequest?.httpBody
486 | redirectRequest?.allHTTPHeaderFields = task.originalRequest?.allHTTPHeaderFields
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
487 | redirectRequest?.httpMethod = task.originalRequest?.httpMethod
488 | case .followCustom(let urlRequestBuilder):
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:487:48: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
485 | redirectRequest?.httpBody = task.originalRequest?.httpBody
486 | redirectRequest?.allHTTPHeaderFields = task.originalRequest?.allHTTPHeaderFields
487 | redirectRequest?.httpMethod = task.originalRequest?.httpMethod
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
488 | case .followCustom(let urlRequestBuilder):
489 | redirectRequest = urlRequestBuilder(request)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:505:49: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
503 | func evaluateAuthChallange(_ task: URLSessionTask, challenge: URLAuthenticationChallenge,
504 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
505 | guard let request = dataLoadersMap[task.taskIdentifier]?.request,
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
506 | let security = request.security ?? client?.security else {
507 | // if not security is settings for both client and request we can use the default handling
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:508:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
506 | let security = request.security ?? client?.security else {
507 | // if not security is settings for both client and request we can use the default handling
508 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
509 | return
510 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:508:56: error: 'nil' requires a contextual type
506 | let security = request.security ?? client?.security else {
507 | // if not security is settings for both client and request we can use the default handling
508 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
509 | return
510 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:512:9: error: cannot find 'DispatchQueue' in scope
510 | }
511 |
512 | DispatchQueue.main.async { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
513 | guard let client = self?.client else { return }
514 | client.delegate?.client(client, didReceiveAuthChallangeFor: (request, task), authChallenge: challenge)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/HTTPSecurityService.swift:35:68: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
33 | func receiveChallenge(_ challenge: URLAuthenticationChallenge,
34 | forRequest request: HTTPRequest, task: URLSessionTask,
35 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void)
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
36 |
37 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/HTTPSecurityService.swift:33:40: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | /// - task: task associated with request.
32 | /// - completionHandler: completion handler.
33 | func receiveChallenge(_ challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | forRequest request: HTTPRequest, task: URLSessionTask,
35 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void)
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/RealHTTP/Client/Internal/HTTPSecurity/HTTPSecurityService.swift:34:66: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | /// - completionHandler: completion handler.
33 | func receiveChallenge(_ challenge: URLAuthenticationChallenge,
34 | forRequest request: HTTPRequest, task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void)
36 |
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/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:33:22: error: cannot find type 'SecKey' in scope
31 |
32 | /// The public keys
33 | var publicKeys: [SecKey]?
| `- error: cannot find type 'SecKey' in scope
34 |
35 | /// Use public keys or certificate validation?
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:82:73: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
80 | forRequest request: HTTPRequest,
81 | task: URLSessionTask,
82 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
83 | guard challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
84 | let trust = challenge.protectionSpace.serverTrust,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:79:45: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | // MARK: - Conformance
78 |
79 | open func receiveChallenge(_ challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | forRequest request: HTTPRequest,
81 | task: URLSessionTask,
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/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:81:38: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | open func receiveChallenge(_ challenge: URLAuthenticationChallenge,
80 | forRequest request: HTTPRequest,
81 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
83 | guard challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
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/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:95:30: error: cannot find type 'SecTrust' in scope
93 | // MARK: - Public Functions
94 |
95 | open func isValid(trust: SecTrust, forDomain domain: String?) -> Bool {
| `- error: cannot find type 'SecTrust' in scope
96 | SecTrustSetPolicies(trust, trustPolicyForDomain(domain))
97 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:113:61: error: cannot find type 'SecPolicy' in scope
111 | /// - Parameter domain: domain.
112 | /// - Returns: SecPolicy
113 | private func trustPolicyForDomain(_ domain: String?) -> SecPolicy {
| `- error: cannot find type 'SecPolicy' in scope
114 | switch validatedDomainName {
115 | case true:
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:122:62: error: cannot find type 'SecTrust' in scope
120 | }
121 |
122 | private func isValidCertificates(_ certs: [Data], trust: SecTrust, domain: String?) -> Bool {
| `- error: cannot find type 'SecTrust' in scope
123 | let serverCerts = trust.certificateChain()
124 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:152:43: error: cannot find type 'SecTrust' in scope
150 | }
151 |
152 | private func isValidPublicKeys(trust: SecTrust, domain: String?) -> Bool {
| `- error: cannot find type 'SecTrust' in scope
153 | guard let keys = publicKeys else {
154 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:180:32: error: cannot find type 'SecKey' in scope
178 | ///
179 | /// - Returns: SecKey?
180 | func extractPublicKey() -> SecKey? {
| `- error: cannot find type 'SecKey' in scope
181 | let possibleCert = SecCertificateCreateWithData(nil, self as CFData)
182 | return possibleCert?.extractPublicKeyFromCert(policy: SecPolicyCreateBasicX509())
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:189:23: error: cannot find type 'SecTrust' in scope
187 | // MARK: - SecTrust Extension
188 |
189 | fileprivate extension SecTrust {
| `- error: cannot find type 'SecTrust' in scope
190 |
191 | /// Get the public key chain for the trust instance.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:218:23: error: cannot find type 'SecCertificate' in scope
216 | // MARK: - SecCertificate Extension
217 |
218 | fileprivate extension SecCertificate {
| `- error: cannot find type 'SecCertificate' in scope
219 |
220 | /// Get the public key from a certificate data
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/SSLCertificate.swift:30:41: error: cannot find type 'SecKey' in scope
28 |
29 | /// Public key to be used.
30 | public internal(set) var publicKey: SecKey?
| `- error: cannot find type 'SecKey' in scope
31 |
32 | // MARK: - Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:49:44: error: generic parameter 'ElementOfResult' could not be inferred
47 |
48 | if self.usePublicKeys {
49 | self.publicKeys = certificates.compactMap { cert in
| `- error: generic parameter 'ElementOfResult' could not be inferred
50 | if let data = cert.certData, cert.publicKey == nil {
51 | cert.publicKey = data.extractPublicKey()
Swift.Sequence.compactMap:2:24: note: in call to function 'compactMap'
1 | protocol Sequence {
2 | @inlinable public func compactMap<ElementOfResult>(_ transform: (Self.Element) throws -> ElementOfResult?) rethrows -> [ElementOfResult]}
| `- note: in call to function 'compactMap'
3 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:83:65: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
81 | task: URLSessionTask,
82 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
83 | guard challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
84 | let trust = challenge.protectionSpace.serverTrust,
85 | isValid(trust: trust, forDomain: challenge.protectionSpace.host) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:83:25: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
81 | task: URLSessionTask,
82 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
83 | guard challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
84 | let trust = challenge.protectionSpace.serverTrust,
85 | isValid(trust: trust, forDomain: challenge.protectionSpace.host) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:84:37: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
82 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
83 | guard challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
84 | let trust = challenge.protectionSpace.serverTrust,
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
85 | isValid(trust: trust, forDomain: challenge.protectionSpace.host) else {
86 | completionHandler(.cancelAuthenticationChallenge, nil)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:85:58: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
83 | guard challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
84 | let trust = challenge.protectionSpace.serverTrust,
85 | isValid(trust: trust, forDomain: challenge.protectionSpace.host) else {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
86 | completionHandler(.cancelAuthenticationChallenge, nil)
87 | return
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:86:32: error: cannot infer contextual base in reference to member 'cancelAuthenticationChallenge'
84 | let trust = challenge.protectionSpace.serverTrust,
85 | isValid(trust: trust, forDomain: challenge.protectionSpace.host) else {
86 | completionHandler(.cancelAuthenticationChallenge, nil)
| `- error: cannot infer contextual base in reference to member 'cancelAuthenticationChallenge'
87 | return
88 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:86:63: error: 'nil' requires a contextual type
84 | let trust = challenge.protectionSpace.serverTrust,
85 | isValid(trust: trust, forDomain: challenge.protectionSpace.host) else {
86 | completionHandler(.cancelAuthenticationChallenge, nil)
| `- error: 'nil' requires a contextual type
87 | return
88 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:90:28: error: cannot infer contextual base in reference to member 'useCredential'
88 | }
89 |
90 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
91 | }
92 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:90:43: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
88 | }
89 |
90 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | }
92 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:96:9: error: cannot find 'SecTrustSetPolicies' in scope
94 |
95 | open func isValid(trust: SecTrust, forDomain domain: String?) -> Bool {
96 | SecTrustSetPolicies(trust, trustPolicyForDomain(domain))
| `- error: cannot find 'SecTrustSetPolicies' in scope
97 |
98 | if usePublicKeys {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:125:23: error: cannot find type 'SecCertificate' in scope
123 | let serverCerts = trust.certificateChain()
124 |
125 | let collect: [SecCertificate] = certs.map {
| `- error: cannot find type 'SecCertificate' in scope
126 | SecCertificateCreateWithData(nil, $0 as CFData)!
127 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:129:9: error: cannot find 'SecTrustSetAnchorCertificates' in scope
127 | }
128 |
129 | SecTrustSetAnchorCertificates(trust, collect as CFArray)
| `- error: cannot find 'SecTrustSetAnchorCertificates' in scope
130 | var result: SecTrustResultType = SecTrustResultType(rawValue: UInt32(0))!
131 | if SecTrustEvaluateWithError(trust, nil) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:129:57: error: cannot find type 'CFArray' in scope
127 | }
128 |
129 | SecTrustSetAnchorCertificates(trust, collect as CFArray)
| `- error: cannot find type 'CFArray' in scope
130 | var result: SecTrustResultType = SecTrustResultType(rawValue: UInt32(0))!
131 | if SecTrustEvaluateWithError(trust, nil) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:130:21: error: cannot find type 'SecTrustResultType' in scope
128 |
129 | SecTrustSetAnchorCertificates(trust, collect as CFArray)
130 | var result: SecTrustResultType = SecTrustResultType(rawValue: UInt32(0))!
| `- error: cannot find type 'SecTrustResultType' in scope
131 | if SecTrustEvaluateWithError(trust, nil) == false {
132 | result = .fatalTrustFailure
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:131:12: error: cannot find 'SecTrustEvaluateWithError' in scope
129 | SecTrustSetAnchorCertificates(trust, collect as CFArray)
130 | var result: SecTrustResultType = SecTrustResultType(rawValue: UInt32(0))!
131 | if SecTrustEvaluateWithError(trust, nil) == false {
| `- error: cannot find 'SecTrustEvaluateWithError' in scope
132 | result = .fatalTrustFailure
133 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:131:45: error: 'nil' requires a contextual type
129 | SecTrustSetAnchorCertificates(trust, collect as CFArray)
130 | var result: SecTrustResultType = SecTrustResultType(rawValue: UInt32(0))!
131 | if SecTrustEvaluateWithError(trust, nil) == false {
| `- error: 'nil' requires a contextual type
132 | result = .fatalTrustFailure
133 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:181:28: error: cannot find 'SecCertificateCreateWithData' in scope
179 | /// - Returns: SecKey?
180 | func extractPublicKey() -> SecKey? {
181 | let possibleCert = SecCertificateCreateWithData(nil, self as CFData)
| `- error: cannot find 'SecCertificateCreateWithData' in scope
182 | return possibleCert?.extractPublicKeyFromCert(policy: SecPolicyCreateBasicX509())
183 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:181:70: error: cannot find type 'CFData' in scope
179 | /// - Returns: SecKey?
180 | func extractPublicKey() -> SecKey? {
181 | let possibleCert = SecCertificateCreateWithData(nil, self as CFData)
| `- error: cannot find type 'CFData' in scope
182 | return possibleCert?.extractPublicKeyFromCert(policy: SecPolicyCreateBasicX509())
183 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:181:57: error: 'nil' requires a contextual type
179 | /// - Returns: SecKey?
180 | func extractPublicKey() -> SecKey? {
181 | let possibleCert = SecCertificateCreateWithData(nil, self as CFData)
| `- error: 'nil' requires a contextual type
182 | return possibleCert?.extractPublicKeyFromCert(policy: SecPolicyCreateBasicX509())
183 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/SSLCertificate.swift:44:28: error: cannot find type 'SecKey' in scope
42 | ///
43 | /// - Parameter key: public key to be used.
44 | public init(publicKey: SecKey) {
| `- error: cannot find type 'SecKey' in scope
45 | self.publicKey = publicKey
46 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:193:31: error: cannot find type 'SecKey' in scope
191 | /// Get the public key chain for the trust instance.
192 | /// - Returns: [SecKey]
193 | func publicKeyChain() -> [SecKey] {
| `- error: cannot find type 'SecKey' in scope
194 | let policy = SecPolicyCreateBasicX509()
195 | let list: [SecKey] = (0..<SecTrustGetCertificateCount(self)).compactMap { index in
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:224:57: error: cannot find type 'SecKey' in scope
222 | /// - Parameter policy: policty to use.
223 | /// - Returns: SecKey
224 | func extractPublicKeyFromCert(policy: SecPolicy) -> SecKey? {
| `- error: cannot find type 'SecKey' in scope
225 | var possibleTrust: SecTrust?
226 | SecTrustCreateWithCertificates(self, policy, &possibleTrust)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:224:43: error: cannot find type 'SecPolicy' in scope
222 | /// - Parameter policy: policty to use.
223 | /// - Returns: SecKey
224 | func extractPublicKeyFromCert(policy: SecPolicy) -> SecKey? {
| `- error: cannot find type 'SecPolicy' in scope
225 | var possibleTrust: SecTrust?
226 | SecTrustCreateWithCertificates(self, policy, &possibleTrust)
[61/80] Compiling RealHTTP HTTPMetrics+Console.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 | var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
61 | public struct cURLHelper {
62 |
63 | fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | guard let client = client,
65 | let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
90 | /// - client: where the request is running in.
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
94 | let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 | /// - client: where the request is running in.
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
120 | let configuration = client.session.configuration
121 | guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 | /// - client: where the request is running in.
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
143 | let configuration = client.session.configuration
144 | var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 | /// - client: where the request is running in.
165 | /// - components: components array.
166 | private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
167 | if let httpBodyData = request.httpBody {
168 | let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 | /// - Parameter client: client instance.
450 | /// - Returns: `URLRequest`
451 | internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
452 | guard let client = client,
453 | let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
50 | /// - Returns: String
51 | public func cURLDescription() -> String {
52 | cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
53 | }
54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
94 | let url = request.url,
95 | let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 | protocol: url.scheme,
102 | realm: host,
103 | authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
| `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 | if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
97 | }
98 |
99 | let protectionSpace = URLProtectionSpace(host: host,
| `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | port: url.port ?? 0,
101 | protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 | guard configuration.httpShouldSetCookies,
122 | let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 | var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 | // MARK: - Internal Functions
82 |
83 | internal func matches(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
84 | for matcher in matchers {
85 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Conformance
40 |
41 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
42 | guard let data = request.body else {
43 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: @escaping attribute only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: @escaping attribute only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 | // MARK: - Protocol
38 |
39 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
40 | callback(request, source)
41 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 | // MARK: - Conformance
55 |
56 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
57 | guard let data = request.body,
58 | let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Conformances
49 |
50 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | switch location {
52 | case .url:
[62/80] Compiling RealHTTP HTTPMetricsRender.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 | var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
61 | public struct cURLHelper {
62 |
63 | fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | guard let client = client,
65 | let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
90 | /// - client: where the request is running in.
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
94 | let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 | /// - client: where the request is running in.
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
120 | let configuration = client.session.configuration
121 | guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 | /// - client: where the request is running in.
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
143 | let configuration = client.session.configuration
144 | var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 | /// - client: where the request is running in.
165 | /// - components: components array.
166 | private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
167 | if let httpBodyData = request.httpBody {
168 | let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 | /// - Parameter client: client instance.
450 | /// - Returns: `URLRequest`
451 | internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
452 | guard let client = client,
453 | let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
50 | /// - Returns: String
51 | public func cURLDescription() -> String {
52 | cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
53 | }
54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
94 | let url = request.url,
95 | let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 | protocol: url.scheme,
102 | realm: host,
103 | authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
| `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 | if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
97 | }
98 |
99 | let protectionSpace = URLProtectionSpace(host: host,
| `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | port: url.port ?? 0,
101 | protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 | guard configuration.httpShouldSetCookies,
122 | let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 | var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 | // MARK: - Internal Functions
82 |
83 | internal func matches(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
84 | for matcher in matchers {
85 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Conformance
40 |
41 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
42 | guard let data = request.body else {
43 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: @escaping attribute only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: @escaping attribute only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 | // MARK: - Protocol
38 |
39 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
40 | callback(request, source)
41 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 | // MARK: - Conformance
55 |
56 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
57 | guard let data = request.body,
58 | let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Conformances
49 |
50 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | switch location {
52 | case .url:
[63/80] Compiling RealHTTP URITemplate.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 | var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
61 | public struct cURLHelper {
62 |
63 | fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | guard let client = client,
65 | let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
90 | /// - client: where the request is running in.
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
94 | let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 | /// - client: where the request is running in.
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
120 | let configuration = client.session.configuration
121 | guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 | /// - client: where the request is running in.
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
143 | let configuration = client.session.configuration
144 | var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 | /// - client: where the request is running in.
165 | /// - components: components array.
166 | private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
167 | if let httpBodyData = request.httpBody {
168 | let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 | /// - Parameter client: client instance.
450 | /// - Returns: `URLRequest`
451 | internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
452 | guard let client = client,
453 | let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
50 | /// - Returns: String
51 | public func cURLDescription() -> String {
52 | cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
53 | }
54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
94 | let url = request.url,
95 | let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 | protocol: url.scheme,
102 | realm: host,
103 | authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
| `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 | if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
97 | }
98 |
99 | let protectionSpace = URLProtectionSpace(host: host,
| `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | port: url.port ?? 0,
101 | protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 | guard configuration.httpShouldSetCookies,
122 | let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 | var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 | // MARK: - Internal Functions
82 |
83 | internal func matches(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
84 | for matcher in matchers {
85 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Conformance
40 |
41 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
42 | guard let data = request.body else {
43 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: @escaping attribute only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: @escaping attribute only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 | // MARK: - Protocol
38 |
39 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
40 | callback(request, source)
41 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 | // MARK: - Conformance
55 |
56 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
57 | guard let data = request.body,
58 | let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Conformances
49 |
50 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | switch location {
52 | case .url:
[64/80] Compiling RealHTTP cURLHelper.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 | var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
61 | public struct cURLHelper {
62 |
63 | fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | guard let client = client,
65 | let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
90 | /// - client: where the request is running in.
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
94 | let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 | /// - client: where the request is running in.
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
120 | let configuration = client.session.configuration
121 | guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 | /// - client: where the request is running in.
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
143 | let configuration = client.session.configuration
144 | var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 | /// - client: where the request is running in.
165 | /// - components: components array.
166 | private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
167 | if let httpBodyData = request.httpBody {
168 | let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 | /// - Parameter client: client instance.
450 | /// - Returns: `URLRequest`
451 | internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
452 | guard let client = client,
453 | let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
50 | /// - Returns: String
51 | public func cURLDescription() -> String {
52 | cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
53 | }
54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
94 | let url = request.url,
95 | let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 | protocol: url.scheme,
102 | realm: host,
103 | authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
| `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 | if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
97 | }
98 |
99 | let protectionSpace = URLProtectionSpace(host: host,
| `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | port: url.port ?? 0,
101 | protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 | guard configuration.httpShouldSetCookies,
122 | let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 | var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 | // MARK: - Internal Functions
82 |
83 | internal func matches(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
84 | for matcher in matchers {
85 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Conformance
40 |
41 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
42 | guard let data = request.body else {
43 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: @escaping attribute only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: @escaping attribute only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 | // MARK: - Protocol
38 |
39 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
40 | callback(request, source)
41 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 | // MARK: - Conformance
55 |
56 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
57 | guard let data = request.body,
58 | let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Conformances
49 |
50 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | switch location {
52 | case .url:
[65/80] Compiling RealHTTP RealHTTP.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 | var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
61 | public struct cURLHelper {
62 |
63 | fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | guard let client = client,
65 | let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
90 | /// - client: where the request is running in.
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
94 | let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 | /// - client: where the request is running in.
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
120 | let configuration = client.session.configuration
121 | guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 | /// - client: where the request is running in.
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
143 | let configuration = client.session.configuration
144 | var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 | /// - client: where the request is running in.
165 | /// - components: components array.
166 | private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
167 | if let httpBodyData = request.httpBody {
168 | let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 | /// - Parameter client: client instance.
450 | /// - Returns: `URLRequest`
451 | internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
452 | guard let client = client,
453 | let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
50 | /// - Returns: String
51 | public func cURLDescription() -> String {
52 | cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
53 | }
54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
94 | let url = request.url,
95 | let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 | protocol: url.scheme,
102 | realm: host,
103 | authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
| `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 | if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
97 | }
98 |
99 | let protectionSpace = URLProtectionSpace(host: host,
| `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | port: url.port ?? 0,
101 | protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 | guard configuration.httpShouldSetCookies,
122 | let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 | var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 | // MARK: - Internal Functions
82 |
83 | internal func matches(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
84 | for matcher in matchers {
85 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Conformance
40 |
41 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
42 | guard let data = request.body else {
43 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: @escaping attribute only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: @escaping attribute only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 | // MARK: - Protocol
38 |
39 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
40 | callback(request, source)
41 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 | // MARK: - Conformance
55 |
56 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
57 | guard let data = request.body,
58 | let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Conformances
49 |
50 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | switch location {
52 | case .url:
[66/80] Compiling RealHTTP HTTPStubIgnoreRule.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 | var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
61 | public struct cURLHelper {
62 |
63 | fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | guard let client = client,
65 | let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
90 | /// - client: where the request is running in.
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
94 | let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 | /// - client: where the request is running in.
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
120 | let configuration = client.session.configuration
121 | guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 | /// - client: where the request is running in.
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
143 | let configuration = client.session.configuration
144 | var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 | /// - client: where the request is running in.
165 | /// - components: components array.
166 | private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
167 | if let httpBodyData = request.httpBody {
168 | let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 | /// - Parameter client: client instance.
450 | /// - Returns: `URLRequest`
451 | internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
452 | guard let client = client,
453 | let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
50 | /// - Returns: String
51 | public func cURLDescription() -> String {
52 | cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
53 | }
54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
94 | let url = request.url,
95 | let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 | protocol: url.scheme,
102 | realm: host,
103 | authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
| `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 | if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
97 | }
98 |
99 | let protectionSpace = URLProtectionSpace(host: host,
| `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | port: url.port ?? 0,
101 | protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 | guard configuration.httpShouldSetCookies,
122 | let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 | var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 | // MARK: - Internal Functions
82 |
83 | internal func matches(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
84 | for matcher in matchers {
85 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Conformance
40 |
41 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
42 | guard let data = request.body else {
43 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: @escaping attribute only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: @escaping attribute only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 | // MARK: - Protocol
38 |
39 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
40 | callback(request, source)
41 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 | // MARK: - Conformance
55 |
56 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
57 | guard let data = request.body,
58 | let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Conformances
49 |
50 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | switch location {
52 | case .url:
[67/80] Compiling RealHTTP HTTPStubBodyMatcher.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 | var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
61 | public struct cURLHelper {
62 |
63 | fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | guard let client = client,
65 | let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
90 | /// - client: where the request is running in.
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
94 | let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 | /// - client: where the request is running in.
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
120 | let configuration = client.session.configuration
121 | guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 | /// - client: where the request is running in.
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
143 | let configuration = client.session.configuration
144 | var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 | /// - client: where the request is running in.
165 | /// - components: components array.
166 | private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
167 | if let httpBodyData = request.httpBody {
168 | let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 | /// - Parameter client: client instance.
450 | /// - Returns: `URLRequest`
451 | internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
452 | guard let client = client,
453 | let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
50 | /// - Returns: String
51 | public func cURLDescription() -> String {
52 | cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
53 | }
54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
94 | let url = request.url,
95 | let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 | protocol: url.scheme,
102 | realm: host,
103 | authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
| `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 | if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
97 | }
98 |
99 | let protectionSpace = URLProtectionSpace(host: host,
| `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | port: url.port ?? 0,
101 | protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 | guard configuration.httpShouldSetCookies,
122 | let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 | var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 | // MARK: - Internal Functions
82 |
83 | internal func matches(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
84 | for matcher in matchers {
85 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Conformance
40 |
41 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
42 | guard let data = request.body else {
43 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: @escaping attribute only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: @escaping attribute only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 | // MARK: - Protocol
38 |
39 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
40 | callback(request, source)
41 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 | // MARK: - Conformance
55 |
56 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
57 | guard let data = request.body,
58 | let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Conformances
49 |
50 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | switch location {
52 | case .url:
[68/80] Compiling RealHTTP HTTPStubCustomMatcher.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 | var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
61 | public struct cURLHelper {
62 |
63 | fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | guard let client = client,
65 | let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
90 | /// - client: where the request is running in.
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
94 | let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 | /// - client: where the request is running in.
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
120 | let configuration = client.session.configuration
121 | guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 | /// - client: where the request is running in.
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
143 | let configuration = client.session.configuration
144 | var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 | /// - client: where the request is running in.
165 | /// - components: components array.
166 | private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
167 | if let httpBodyData = request.httpBody {
168 | let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 | /// - Parameter client: client instance.
450 | /// - Returns: `URLRequest`
451 | internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
452 | guard let client = client,
453 | let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
50 | /// - Returns: String
51 | public func cURLDescription() -> String {
52 | cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
53 | }
54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
94 | let url = request.url,
95 | let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 | protocol: url.scheme,
102 | realm: host,
103 | authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
| `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 | if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
97 | }
98 |
99 | let protectionSpace = URLProtectionSpace(host: host,
| `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | port: url.port ?? 0,
101 | protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 | guard configuration.httpShouldSetCookies,
122 | let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 | var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 | // MARK: - Internal Functions
82 |
83 | internal func matches(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
84 | for matcher in matchers {
85 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Conformance
40 |
41 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
42 | guard let data = request.body else {
43 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: @escaping attribute only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: @escaping attribute only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 | // MARK: - Protocol
38 |
39 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
40 | callback(request, source)
41 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 | // MARK: - Conformance
55 |
56 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
57 | guard let data = request.body,
58 | let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Conformances
49 |
50 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | switch location {
52 | case .url:
[69/80] Compiling RealHTTP HTTPStubJSONMatcher.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 | var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
61 | public struct cURLHelper {
62 |
63 | fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | guard let client = client,
65 | let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
90 | /// - client: where the request is running in.
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
94 | let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 | /// - client: where the request is running in.
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
120 | let configuration = client.session.configuration
121 | guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 | /// - client: where the request is running in.
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
143 | let configuration = client.session.configuration
144 | var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 | /// - client: where the request is running in.
165 | /// - components: components array.
166 | private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
167 | if let httpBodyData = request.httpBody {
168 | let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 | /// - Parameter client: client instance.
450 | /// - Returns: `URLRequest`
451 | internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
452 | guard let client = client,
453 | let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
50 | /// - Returns: String
51 | public func cURLDescription() -> String {
52 | cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
53 | }
54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
94 | let url = request.url,
95 | let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 | protocol: url.scheme,
102 | realm: host,
103 | authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
| `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 | if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
97 | }
98 |
99 | let protectionSpace = URLProtectionSpace(host: host,
| `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | port: url.port ?? 0,
101 | protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 | guard configuration.httpShouldSetCookies,
122 | let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 | var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 | // MARK: - Internal Functions
82 |
83 | internal func matches(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
84 | for matcher in matchers {
85 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Conformance
40 |
41 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
42 | guard let data = request.body else {
43 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: @escaping attribute only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: @escaping attribute only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 | // MARK: - Protocol
38 |
39 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
40 | callback(request, source)
41 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 | // MARK: - Conformance
55 |
56 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
57 | guard let data = request.body,
58 | let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Conformances
49 |
50 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | switch location {
52 | case .url:
[70/80] Compiling RealHTTP HTTPStubRegExMatcher.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 | var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
61 | public struct cURLHelper {
62 |
63 | fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | guard let client = client,
65 | let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
90 | /// - client: where the request is running in.
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
94 | let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 | /// - client: where the request is running in.
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
120 | let configuration = client.session.configuration
121 | guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 | /// - client: where the request is running in.
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
143 | let configuration = client.session.configuration
144 | var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 | /// - client: where the request is running in.
165 | /// - components: components array.
166 | private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
167 | if let httpBodyData = request.httpBody {
168 | let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 | /// - Parameter client: client instance.
450 | /// - Returns: `URLRequest`
451 | internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
452 | guard let client = client,
453 | let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
50 | /// - Returns: String
51 | public func cURLDescription() -> String {
52 | cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
53 | }
54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
94 | let url = request.url,
95 | let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 | protocol: url.scheme,
102 | realm: host,
103 | authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
| `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 | if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
97 | }
98 |
99 | let protectionSpace = URLProtectionSpace(host: host,
| `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | port: url.port ?? 0,
101 | protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 | guard configuration.httpShouldSetCookies,
122 | let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 | var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 | // MARK: - Internal Functions
82 |
83 | internal func matches(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
84 | for matcher in matchers {
85 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Conformance
40 |
41 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
42 | guard let data = request.body else {
43 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: @escaping attribute only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: @escaping attribute only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 | // MARK: - Protocol
38 |
39 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
40 | callback(request, source)
41 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 | // MARK: - Conformance
55 |
56 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
57 | guard let data = request.body,
58 | let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Conformances
49 |
50 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | switch location {
52 | case .url:
[71/80] Compiling RealHTTP HTTPBody+FormValues.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/Support/MultipartForm.swift:113:31: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
111 | !fileExtension.isEmpty, // extension is set
112 | fileURL.isFileURL, // is it a file?
113 | try fileURL.checkPromisedItemIsReachable() else { // is file reachable
| `- error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
114 | throw HTTPError(.multipartInvalidFile)
115 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:35:29: error: cannot find type 'URLSessionTaskMetrics' in scope
33 |
34 | /// `URLSessionTaskMetrics` received data.
35 | var sessionTaskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
36 |
37 | /// Parsed HTTP Metrics from `sessionTaskMetrics`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:44:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |
43 | /// response received from fetch.
44 | var urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Completion callback called by the data loader in order to incapsulate the async/await logic.
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/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
56 | /// except when the server has responded to the initial request with a
57 | /// redirect to a different URL.
58 | var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | // MARK: - Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
56 | /// except when the server has responded to the initial request with a
57 | /// redirect to a different URL.
58 | var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | // MARK: - Initialization
[72/80] Compiling RealHTTP HTTPBody+Multipart.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/Support/MultipartForm.swift:113:31: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
111 | !fileExtension.isEmpty, // extension is set
112 | fileURL.isFileURL, // is it a file?
113 | try fileURL.checkPromisedItemIsReachable() else { // is file reachable
| `- error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
114 | throw HTTPError(.multipartInvalidFile)
115 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:35:29: error: cannot find type 'URLSessionTaskMetrics' in scope
33 |
34 | /// `URLSessionTaskMetrics` received data.
35 | var sessionTaskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
36 |
37 | /// Parsed HTTP Metrics from `sessionTaskMetrics`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:44:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |
43 | /// response received from fetch.
44 | var urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Completion callback called by the data loader in order to incapsulate the async/await logic.
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/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
56 | /// except when the server has responded to the initial request with a
57 | /// redirect to a different URL.
58 | var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | // MARK: - Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
56 | /// except when the server has responded to the initial request with a
57 | /// redirect to a different URL.
58 | var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | // MARK: - Initialization
[73/80] Compiling RealHTTP MultipartForm+Boundary.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/Support/MultipartForm.swift:113:31: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
111 | !fileExtension.isEmpty, // extension is set
112 | fileURL.isFileURL, // is it a file?
113 | try fileURL.checkPromisedItemIsReachable() else { // is file reachable
| `- error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
114 | throw HTTPError(.multipartInvalidFile)
115 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:35:29: error: cannot find type 'URLSessionTaskMetrics' in scope
33 |
34 | /// `URLSessionTaskMetrics` received data.
35 | var sessionTaskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
36 |
37 | /// Parsed HTTP Metrics from `sessionTaskMetrics`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:44:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |
43 | /// response received from fetch.
44 | var urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Completion callback called by the data loader in order to incapsulate the async/await logic.
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/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
56 | /// except when the server has responded to the initial request with a
57 | /// redirect to a different URL.
58 | var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | // MARK: - Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
56 | /// except when the server has responded to the initial request with a
57 | /// redirect to a different URL.
58 | var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | // MARK: - Initialization
[74/80] Compiling RealHTTP MultipartForm+Item.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/Support/MultipartForm.swift:113:31: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
111 | !fileExtension.isEmpty, // extension is set
112 | fileURL.isFileURL, // is it a file?
113 | try fileURL.checkPromisedItemIsReachable() else { // is file reachable
| `- error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
114 | throw HTTPError(.multipartInvalidFile)
115 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:35:29: error: cannot find type 'URLSessionTaskMetrics' in scope
33 |
34 | /// `URLSessionTaskMetrics` received data.
35 | var sessionTaskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
36 |
37 | /// Parsed HTTP Metrics from `sessionTaskMetrics`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:44:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |
43 | /// response received from fetch.
44 | var urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Completion callback called by the data loader in order to incapsulate the async/await logic.
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/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
56 | /// except when the server has responded to the initial request with a
57 | /// redirect to a different URL.
58 | var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | // MARK: - Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
56 | /// except when the server has responded to the initial request with a
57 | /// redirect to a different URL.
58 | var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | // MARK: - Initialization
[75/80] Compiling RealHTTP MultipartForm.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/Support/MultipartForm.swift:113:31: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
111 | !fileExtension.isEmpty, // extension is set
112 | fileURL.isFileURL, // is it a file?
113 | try fileURL.checkPromisedItemIsReachable() else { // is file reachable
| `- error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
114 | throw HTTPError(.multipartInvalidFile)
115 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:35:29: error: cannot find type 'URLSessionTaskMetrics' in scope
33 |
34 | /// `URLSessionTaskMetrics` received data.
35 | var sessionTaskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
36 |
37 | /// Parsed HTTP Metrics from `sessionTaskMetrics`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:44:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |
43 | /// response received from fetch.
44 | var urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Completion callback called by the data loader in order to incapsulate the async/await logic.
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/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
56 | /// except when the server has responded to the initial request with a
57 | /// redirect to a different URL.
58 | var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | // MARK: - Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
56 | /// except when the server has responded to the initial request with a
57 | /// redirect to a different URL.
58 | var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | // MARK: - Initialization
[76/80] Compiling RealHTTP HTTPBody+Stream.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/Support/MultipartForm.swift:113:31: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
111 | !fileExtension.isEmpty, // extension is set
112 | fileURL.isFileURL, // is it a file?
113 | try fileURL.checkPromisedItemIsReachable() else { // is file reachable
| `- error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
114 | throw HTTPError(.multipartInvalidFile)
115 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:35:29: error: cannot find type 'URLSessionTaskMetrics' in scope
33 |
34 | /// `URLSessionTaskMetrics` received data.
35 | var sessionTaskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
36 |
37 | /// Parsed HTTP Metrics from `sessionTaskMetrics`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:44:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |
43 | /// response received from fetch.
44 | var urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Completion callback called by the data loader in order to incapsulate the async/await logic.
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/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
56 | /// except when the server has responded to the initial request with a
57 | /// redirect to a different URL.
58 | var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | // MARK: - Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
56 | /// except when the server has responded to the initial request with a
57 | /// redirect to a different URL.
58 | var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | // MARK: - Initialization
[77/80] Compiling RealHTTP StreamContent.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/Support/MultipartForm.swift:113:31: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
111 | !fileExtension.isEmpty, // extension is set
112 | fileURL.isFileURL, // is it a file?
113 | try fileURL.checkPromisedItemIsReachable() else { // is file reachable
| `- error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
114 | throw HTTPError(.multipartInvalidFile)
115 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:35:29: error: cannot find type 'URLSessionTaskMetrics' in scope
33 |
34 | /// `URLSessionTaskMetrics` received data.
35 | var sessionTaskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
36 |
37 | /// Parsed HTTP Metrics from `sessionTaskMetrics`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:44:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |
43 | /// response received from fetch.
44 | var urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Completion callback called by the data loader in order to incapsulate the async/await logic.
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/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
56 | /// except when the server has responded to the initial request with a
57 | /// redirect to a different URL.
58 | var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | // MARK: - Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
56 | /// except when the server has responded to the initial request with a
57 | /// redirect to a different URL.
58 | var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | // MARK: - Initialization
[78/80] Compiling RealHTTP HTTPBody+QueryString.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/Support/MultipartForm.swift:113:31: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
111 | !fileExtension.isEmpty, // extension is set
112 | fileURL.isFileURL, // is it a file?
113 | try fileURL.checkPromisedItemIsReachable() else { // is file reachable
| `- error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
114 | throw HTTPError(.multipartInvalidFile)
115 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:35:29: error: cannot find type 'URLSessionTaskMetrics' in scope
33 |
34 | /// `URLSessionTaskMetrics` received data.
35 | var sessionTaskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
36 |
37 | /// Parsed HTTP Metrics from `sessionTaskMetrics`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:44:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |
43 | /// response received from fetch.
44 | var urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Completion callback called by the data loader in order to incapsulate the async/await logic.
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/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
56 | /// except when the server has responded to the initial request with a
57 | /// redirect to a different URL.
58 | var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | // MARK: - Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
56 | /// except when the server has responded to the initial request with a
57 | /// redirect to a different URL.
58 | var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | // MARK: - Initialization
[79/80] Compiling RealHTTP URLParametersData.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/Support/MultipartForm.swift:113:31: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
111 | !fileExtension.isEmpty, // extension is set
112 | fileURL.isFileURL, // is it a file?
113 | try fileURL.checkPromisedItemIsReachable() else { // is file reachable
| `- error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
114 | throw HTTPError(.multipartInvalidFile)
115 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:35:29: error: cannot find type 'URLSessionTaskMetrics' in scope
33 |
34 | /// `URLSessionTaskMetrics` received data.
35 | var sessionTaskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
36 |
37 | /// Parsed HTTP Metrics from `sessionTaskMetrics`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:44:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |
43 | /// response received from fetch.
44 | var urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Completion callback called by the data loader in order to incapsulate the async/await logic.
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/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
56 | /// except when the server has responded to the initial request with a
57 | /// redirect to a different URL.
58 | var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | // MARK: - Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
56 | /// except when the server has responded to the initial request with a
57 | /// redirect to a different URL.
58 | var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | // MARK: - Initialization
[80/80] Compiling RealHTTP HTTPDataLoader+Response.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/Support/MultipartForm.swift:113:31: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
111 | !fileExtension.isEmpty, // extension is set
112 | fileURL.isFileURL, // is it a file?
113 | try fileURL.checkPromisedItemIsReachable() else { // is file reachable
| `- error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
114 | throw HTTPError(.multipartInvalidFile)
115 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:35:29: error: cannot find type 'URLSessionTaskMetrics' in scope
33 |
34 | /// `URLSessionTaskMetrics` received data.
35 | var sessionTaskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
36 |
37 | /// Parsed HTTP Metrics from `sessionTaskMetrics`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:44:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |
43 | /// response received from fetch.
44 | var urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Completion callback called by the data loader in order to incapsulate the async/await logic.
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/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
56 | /// except when the server has responded to the initial request with a
57 | /// redirect to a different URL.
58 | var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | // MARK: - Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
56 | /// except when the server has responded to the initial request with a
57 | /// redirect to a different URL.
58 | var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | // MARK: - Initialization
BUILD FAILURE 6.1 wasm