Build Information
Failed to build RealHTTP, reference 1.9.0 (fcec34), with Swift 6.3 for Android on 15 Apr 2026 15:26:19 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
49 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:47:55: error: 'nil' requires a contextual type
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
| `- error: 'nil' requires a contextual type
48 | return
49 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:51:28: error: cannot infer contextual base in reference to member 'useCredential'
49 | }
50 |
51 | completionHandler(.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
52 | }
53 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:32:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | forRequest request: HTTPRequest,
31 | task: URLSessionTask,
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:29:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | public struct SelfSignedCertsSecurity: HTTPSecurityService {
28 |
29 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | forRequest request: HTTPRequest,
31 | 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/SelfSignedCertsSecurity.swift:31:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
30 | forRequest request: HTTPRequest,
31 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
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/SelfSignedCertsSecurity.swift:33:37: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
31 | task: URLSessionTask,
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
34 | completionHandler(.useCredential, nil)
35 | return
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:32: error: cannot infer contextual base in reference to member 'useCredential'
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
35 | return
36 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:47: error: 'nil' requires a contextual type
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
| `- error: 'nil' requires a contextual type
35 | return
36 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:28: error: cannot infer contextual base in reference to member 'useCredential'
36 | }
37 |
38 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | }
40 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:43: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
36 | }
37 |
38 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
39 | }
40 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:277:51: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 | /// - request: request.
276 | /// - Returns: URL?
277 | internal func copyFileToDefaultLocation(task: URLSessionDownloadTask,
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 | forRequest request: HTTPRequest) -> URL? {
279 |
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:21: error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:59: error: cannot find 'kUTTagClassFilenameExtension' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find 'kUTTagClassFilenameExtension' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:97: error: cannot find type 'CFString' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find type 'CFString' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:107: error: 'nil' requires a contextual type
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: 'nil' requires a contextual type
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:141:31: error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
| `- error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
142 | return contentType as String
143 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:141:67: error: cannot find 'kUTTagClassMIMEType' in scope
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
| `- error: cannot find 'kUTTagClassMIMEType' in scope
142 | return contentType as String
143 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:21:11: error: cannot find type 'URLRequest' in scope
19 | import Foundation
20 |
21 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 |
23 | // MARK: - Additional Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:35:30: error: cannot find type 'URLRequest' in scope
33 | /// - Throws: throw an exception if url is not valid and cannot be converted to request.
34 | public init(url: URL, method: HTTPMethod,
35 | cachePolicy: URLRequest.CachePolicy,
| `- error: cannot find type 'URLRequest' in scope
36 | timeout: TimeInterval,
37 | headers: HTTPHeaders? = nil) throws {
[73/81] Compiling RealHTTP SelfSignedCertsSecurity.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:24:49: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | /// authenticated session using the `URLSession`'s `URLAuthenticationChallenge`.
23 | public struct CredentialSecurity: HTTPSecurityService {
24 | public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | // MARK: - Public Properties
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/CredentialSecurity.swift:24:80: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | /// authenticated session using the `URLSession`'s `URLAuthenticationChallenge`.
23 | public struct CredentialSecurity: HTTPSecurityService {
24 | public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
| `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | // MARK: - Public Properties
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
| `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:45:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
43 | forRequest request: HTTPRequest,
44 | task: URLSessionTask,
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:42:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | // MARK: - Conformance
41 |
42 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | forRequest request: HTTPRequest,
44 | 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/CredentialSecurity.swift:44:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
43 | forRequest request: HTTPRequest,
44 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
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/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/Options/CredentialSecurity.swift:47:32: error: cannot infer contextual base in reference to member 'rejectProtectionSpace'
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
| `- error: cannot infer contextual base in reference to member 'rejectProtectionSpace'
48 | return
49 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:47:55: error: 'nil' requires a contextual type
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
| `- error: 'nil' requires a contextual type
48 | return
49 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:51:28: error: cannot infer contextual base in reference to member 'useCredential'
49 | }
50 |
51 | completionHandler(.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
52 | }
53 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:32:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | forRequest request: HTTPRequest,
31 | task: URLSessionTask,
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:29:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | public struct SelfSignedCertsSecurity: HTTPSecurityService {
28 |
29 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | forRequest request: HTTPRequest,
31 | 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/SelfSignedCertsSecurity.swift:31:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
30 | forRequest request: HTTPRequest,
31 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
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/SelfSignedCertsSecurity.swift:33:37: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
31 | task: URLSessionTask,
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
34 | completionHandler(.useCredential, nil)
35 | return
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:32: error: cannot infer contextual base in reference to member 'useCredential'
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
35 | return
36 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:47: error: 'nil' requires a contextual type
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
| `- error: 'nil' requires a contextual type
35 | return
36 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:28: error: cannot infer contextual base in reference to member 'useCredential'
36 | }
37 |
38 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | }
40 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:43: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
36 | }
37 |
38 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
39 | }
40 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:277:51: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 | /// - request: request.
276 | /// - Returns: URL?
277 | internal func copyFileToDefaultLocation(task: URLSessionDownloadTask,
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 | forRequest request: HTTPRequest) -> URL? {
279 |
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:21: error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:59: error: cannot find 'kUTTagClassFilenameExtension' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find 'kUTTagClassFilenameExtension' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:97: error: cannot find type 'CFString' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find type 'CFString' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:107: error: 'nil' requires a contextual type
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: 'nil' requires a contextual type
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:141:31: error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
| `- error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
142 | return contentType as String
143 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:141:67: error: cannot find 'kUTTagClassMIMEType' in scope
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
| `- error: cannot find 'kUTTagClassMIMEType' in scope
142 | return contentType as String
143 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:21:11: error: cannot find type 'URLRequest' in scope
19 | import Foundation
20 |
21 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 |
23 | // MARK: - Additional Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:35:30: error: cannot find type 'URLRequest' in scope
33 | /// - Throws: throw an exception if url is not valid and cannot be converted to request.
34 | public init(url: URL, method: HTTPMethod,
35 | cachePolicy: URLRequest.CachePolicy,
| `- error: cannot find type 'URLRequest' in scope
36 | timeout: TimeInterval,
37 | headers: HTTPHeaders? = nil) throws {
[74/81] Compiling RealHTTP Foundation+Extension.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:24:49: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | /// authenticated session using the `URLSession`'s `URLAuthenticationChallenge`.
23 | public struct CredentialSecurity: HTTPSecurityService {
24 | public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | // MARK: - Public Properties
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/CredentialSecurity.swift:24:80: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | /// authenticated session using the `URLSession`'s `URLAuthenticationChallenge`.
23 | public struct CredentialSecurity: HTTPSecurityService {
24 | public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
| `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | // MARK: - Public Properties
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
| `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:45:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
43 | forRequest request: HTTPRequest,
44 | task: URLSessionTask,
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:42:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | // MARK: - Conformance
41 |
42 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | forRequest request: HTTPRequest,
44 | 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/CredentialSecurity.swift:44:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
43 | forRequest request: HTTPRequest,
44 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
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/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/Options/CredentialSecurity.swift:47:32: error: cannot infer contextual base in reference to member 'rejectProtectionSpace'
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
| `- error: cannot infer contextual base in reference to member 'rejectProtectionSpace'
48 | return
49 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:47:55: error: 'nil' requires a contextual type
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
| `- error: 'nil' requires a contextual type
48 | return
49 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:51:28: error: cannot infer contextual base in reference to member 'useCredential'
49 | }
50 |
51 | completionHandler(.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
52 | }
53 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:32:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | forRequest request: HTTPRequest,
31 | task: URLSessionTask,
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:29:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | public struct SelfSignedCertsSecurity: HTTPSecurityService {
28 |
29 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | forRequest request: HTTPRequest,
31 | 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/SelfSignedCertsSecurity.swift:31:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
30 | forRequest request: HTTPRequest,
31 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
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/SelfSignedCertsSecurity.swift:33:37: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
31 | task: URLSessionTask,
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
34 | completionHandler(.useCredential, nil)
35 | return
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:32: error: cannot infer contextual base in reference to member 'useCredential'
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
35 | return
36 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:47: error: 'nil' requires a contextual type
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
| `- error: 'nil' requires a contextual type
35 | return
36 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:28: error: cannot infer contextual base in reference to member 'useCredential'
36 | }
37 |
38 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | }
40 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:43: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
36 | }
37 |
38 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
39 | }
40 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:277:51: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 | /// - request: request.
276 | /// - Returns: URL?
277 | internal func copyFileToDefaultLocation(task: URLSessionDownloadTask,
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 | forRequest request: HTTPRequest) -> URL? {
279 |
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:21: error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:59: error: cannot find 'kUTTagClassFilenameExtension' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find 'kUTTagClassFilenameExtension' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:97: error: cannot find type 'CFString' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find type 'CFString' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:107: error: 'nil' requires a contextual type
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: 'nil' requires a contextual type
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:141:31: error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
| `- error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
142 | return contentType as String
143 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:141:67: error: cannot find 'kUTTagClassMIMEType' in scope
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
| `- error: cannot find 'kUTTagClassMIMEType' in scope
142 | return contentType as String
143 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:21:11: error: cannot find type 'URLRequest' in scope
19 | import Foundation
20 |
21 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 |
23 | // MARK: - Additional Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:35:30: error: cannot find type 'URLRequest' in scope
33 | /// - Throws: throw an exception if url is not valid and cannot be converted to request.
34 | public init(url: URL, method: HTTPMethod,
35 | cachePolicy: URLRequest.CachePolicy,
| `- error: cannot find type 'URLRequest' in scope
36 | timeout: TimeInterval,
37 | headers: HTTPHeaders? = nil) throws {
[75/81] Compiling RealHTTP HTTPFormattable.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:24:49: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | /// authenticated session using the `URLSession`'s `URLAuthenticationChallenge`.
23 | public struct CredentialSecurity: HTTPSecurityService {
24 | public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | // MARK: - Public Properties
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/CredentialSecurity.swift:24:80: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | /// authenticated session using the `URLSession`'s `URLAuthenticationChallenge`.
23 | public struct CredentialSecurity: HTTPSecurityService {
24 | public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
| `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | // MARK: - Public Properties
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
| `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:45:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
43 | forRequest request: HTTPRequest,
44 | task: URLSessionTask,
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:42:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | // MARK: - Conformance
41 |
42 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | forRequest request: HTTPRequest,
44 | 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/CredentialSecurity.swift:44:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
43 | forRequest request: HTTPRequest,
44 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
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/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/Options/CredentialSecurity.swift:47:32: error: cannot infer contextual base in reference to member 'rejectProtectionSpace'
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
| `- error: cannot infer contextual base in reference to member 'rejectProtectionSpace'
48 | return
49 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:47:55: error: 'nil' requires a contextual type
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
| `- error: 'nil' requires a contextual type
48 | return
49 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:51:28: error: cannot infer contextual base in reference to member 'useCredential'
49 | }
50 |
51 | completionHandler(.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
52 | }
53 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:32:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | forRequest request: HTTPRequest,
31 | task: URLSessionTask,
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:29:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | public struct SelfSignedCertsSecurity: HTTPSecurityService {
28 |
29 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | forRequest request: HTTPRequest,
31 | 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/SelfSignedCertsSecurity.swift:31:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
30 | forRequest request: HTTPRequest,
31 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
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/SelfSignedCertsSecurity.swift:33:37: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
31 | task: URLSessionTask,
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
34 | completionHandler(.useCredential, nil)
35 | return
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:32: error: cannot infer contextual base in reference to member 'useCredential'
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
35 | return
36 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:47: error: 'nil' requires a contextual type
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
| `- error: 'nil' requires a contextual type
35 | return
36 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:28: error: cannot infer contextual base in reference to member 'useCredential'
36 | }
37 |
38 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | }
40 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:43: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
36 | }
37 |
38 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
39 | }
40 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:277:51: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 | /// - request: request.
276 | /// - Returns: URL?
277 | internal func copyFileToDefaultLocation(task: URLSessionDownloadTask,
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 | forRequest request: HTTPRequest) -> URL? {
279 |
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:21: error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:59: error: cannot find 'kUTTagClassFilenameExtension' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find 'kUTTagClassFilenameExtension' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:97: error: cannot find type 'CFString' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find type 'CFString' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:107: error: 'nil' requires a contextual type
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: 'nil' requires a contextual type
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:141:31: error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
| `- error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
142 | return contentType as String
143 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:141:67: error: cannot find 'kUTTagClassMIMEType' in scope
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
| `- error: cannot find 'kUTTagClassMIMEType' in scope
142 | return contentType as String
143 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:21:11: error: cannot find type 'URLRequest' in scope
19 | import Foundation
20 |
21 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 |
23 | // MARK: - Additional Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:35:30: error: cannot find type 'URLRequest' in scope
33 | /// - Throws: throw an exception if url is not valid and cannot be converted to request.
34 | public init(url: URL, method: HTTPMethod,
35 | cachePolicy: URLRequest.CachePolicy,
| `- error: cannot find type 'URLRequest' in scope
36 | timeout: TimeInterval,
37 | headers: HTTPHeaders? = nil) throws {
[76/81] Compiling RealHTTP ThreadSafeDictionary.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:24:49: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | /// authenticated session using the `URLSession`'s `URLAuthenticationChallenge`.
23 | public struct CredentialSecurity: HTTPSecurityService {
24 | public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | // MARK: - Public Properties
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/CredentialSecurity.swift:24:80: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | /// authenticated session using the `URLSession`'s `URLAuthenticationChallenge`.
23 | public struct CredentialSecurity: HTTPSecurityService {
24 | public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
| `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | // MARK: - Public Properties
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
| `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:45:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
43 | forRequest request: HTTPRequest,
44 | task: URLSessionTask,
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:42:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | // MARK: - Conformance
41 |
42 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | forRequest request: HTTPRequest,
44 | 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/CredentialSecurity.swift:44:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
43 | forRequest request: HTTPRequest,
44 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
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/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/Options/CredentialSecurity.swift:47:32: error: cannot infer contextual base in reference to member 'rejectProtectionSpace'
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
| `- error: cannot infer contextual base in reference to member 'rejectProtectionSpace'
48 | return
49 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:47:55: error: 'nil' requires a contextual type
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
| `- error: 'nil' requires a contextual type
48 | return
49 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:51:28: error: cannot infer contextual base in reference to member 'useCredential'
49 | }
50 |
51 | completionHandler(.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
52 | }
53 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:32:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | forRequest request: HTTPRequest,
31 | task: URLSessionTask,
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:29:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | public struct SelfSignedCertsSecurity: HTTPSecurityService {
28 |
29 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | forRequest request: HTTPRequest,
31 | 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/SelfSignedCertsSecurity.swift:31:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
30 | forRequest request: HTTPRequest,
31 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
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/SelfSignedCertsSecurity.swift:33:37: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
31 | task: URLSessionTask,
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
34 | completionHandler(.useCredential, nil)
35 | return
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:32: error: cannot infer contextual base in reference to member 'useCredential'
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
35 | return
36 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:47: error: 'nil' requires a contextual type
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
| `- error: 'nil' requires a contextual type
35 | return
36 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:28: error: cannot infer contextual base in reference to member 'useCredential'
36 | }
37 |
38 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | }
40 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:43: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
36 | }
37 |
38 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
39 | }
40 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:277:51: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 | /// - request: request.
276 | /// - Returns: URL?
277 | internal func copyFileToDefaultLocation(task: URLSessionDownloadTask,
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 | forRequest request: HTTPRequest) -> URL? {
279 |
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:21: error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:59: error: cannot find 'kUTTagClassFilenameExtension' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find 'kUTTagClassFilenameExtension' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:97: error: cannot find type 'CFString' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find type 'CFString' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:107: error: 'nil' requires a contextual type
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: 'nil' requires a contextual type
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:141:31: error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
| `- error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
142 | return contentType as String
143 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:141:67: error: cannot find 'kUTTagClassMIMEType' in scope
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
| `- error: cannot find 'kUTTagClassMIMEType' in scope
142 | return contentType as String
143 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:21:11: error: cannot find type 'URLRequest' in scope
19 | import Foundation
20 |
21 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 |
23 | // MARK: - Additional Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:35:30: error: cannot find type 'URLRequest' in scope
33 | /// - Throws: throw an exception if url is not valid and cannot be converted to request.
34 | public init(url: URL, method: HTTPMethod,
35 | cachePolicy: URLRequest.CachePolicy,
| `- error: cannot find type 'URLRequest' in scope
36 | timeout: TimeInterval,
37 | headers: HTTPHeaders? = nil) throws {
[77/81] Compiling RealHTTP URLRequest+Extension.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:24:49: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | /// authenticated session using the `URLSession`'s `URLAuthenticationChallenge`.
23 | public struct CredentialSecurity: HTTPSecurityService {
24 | public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | // MARK: - Public Properties
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/CredentialSecurity.swift:24:80: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | /// authenticated session using the `URLSession`'s `URLAuthenticationChallenge`.
23 | public struct CredentialSecurity: HTTPSecurityService {
24 | public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
| `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | // MARK: - Public Properties
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
| `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:45:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
43 | forRequest request: HTTPRequest,
44 | task: URLSessionTask,
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:42:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | // MARK: - Conformance
41 |
42 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | forRequest request: HTTPRequest,
44 | 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/CredentialSecurity.swift:44:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
43 | forRequest request: HTTPRequest,
44 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
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/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/Options/CredentialSecurity.swift:47:32: error: cannot infer contextual base in reference to member 'rejectProtectionSpace'
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
| `- error: cannot infer contextual base in reference to member 'rejectProtectionSpace'
48 | return
49 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:47:55: error: 'nil' requires a contextual type
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
| `- error: 'nil' requires a contextual type
48 | return
49 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:51:28: error: cannot infer contextual base in reference to member 'useCredential'
49 | }
50 |
51 | completionHandler(.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
52 | }
53 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:32:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | forRequest request: HTTPRequest,
31 | task: URLSessionTask,
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:29:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | public struct SelfSignedCertsSecurity: HTTPSecurityService {
28 |
29 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | forRequest request: HTTPRequest,
31 | 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/SelfSignedCertsSecurity.swift:31:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
30 | forRequest request: HTTPRequest,
31 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
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/SelfSignedCertsSecurity.swift:33:37: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
31 | task: URLSessionTask,
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
34 | completionHandler(.useCredential, nil)
35 | return
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:32: error: cannot infer contextual base in reference to member 'useCredential'
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
35 | return
36 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:47: error: 'nil' requires a contextual type
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
| `- error: 'nil' requires a contextual type
35 | return
36 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:28: error: cannot infer contextual base in reference to member 'useCredential'
36 | }
37 |
38 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | }
40 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:43: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
36 | }
37 |
38 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
39 | }
40 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:277:51: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 | /// - request: request.
276 | /// - Returns: URL?
277 | internal func copyFileToDefaultLocation(task: URLSessionDownloadTask,
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 | forRequest request: HTTPRequest) -> URL? {
279 |
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:21: error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:59: error: cannot find 'kUTTagClassFilenameExtension' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find 'kUTTagClassFilenameExtension' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:97: error: cannot find type 'CFString' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find type 'CFString' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:107: error: 'nil' requires a contextual type
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: 'nil' requires a contextual type
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:141:31: error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
| `- error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
142 | return contentType as String
143 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:141:67: error: cannot find 'kUTTagClassMIMEType' in scope
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
| `- error: cannot find 'kUTTagClassMIMEType' in scope
142 | return contentType as String
143 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:21:11: error: cannot find type 'URLRequest' in scope
19 | import Foundation
20 |
21 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 |
23 | // MARK: - Additional Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:35:30: error: cannot find type 'URLRequest' in scope
33 | /// - Throws: throw an exception if url is not valid and cannot be converted to request.
34 | public init(url: URL, method: HTTPMethod,
35 | cachePolicy: URLRequest.CachePolicy,
| `- error: cannot find type 'URLRequest' in scope
36 | timeout: TimeInterval,
37 | headers: HTTPHeaders? = nil) throws {
[78/81] Compiling RealHTTP HTTPCacheControl.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:24:49: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | /// authenticated session using the `URLSession`'s `URLAuthenticationChallenge`.
23 | public struct CredentialSecurity: HTTPSecurityService {
24 | public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | // MARK: - Public Properties
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/CredentialSecurity.swift:24:80: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | /// authenticated session using the `URLSession`'s `URLAuthenticationChallenge`.
23 | public struct CredentialSecurity: HTTPSecurityService {
24 | public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
| `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | // MARK: - Public Properties
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
| `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:45:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
43 | forRequest request: HTTPRequest,
44 | task: URLSessionTask,
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:42:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | // MARK: - Conformance
41 |
42 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | forRequest request: HTTPRequest,
44 | 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/CredentialSecurity.swift:44:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
43 | forRequest request: HTTPRequest,
44 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
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/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/Options/CredentialSecurity.swift:47:32: error: cannot infer contextual base in reference to member 'rejectProtectionSpace'
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
| `- error: cannot infer contextual base in reference to member 'rejectProtectionSpace'
48 | return
49 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:47:55: error: 'nil' requires a contextual type
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
| `- error: 'nil' requires a contextual type
48 | return
49 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:51:28: error: cannot infer contextual base in reference to member 'useCredential'
49 | }
50 |
51 | completionHandler(.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
52 | }
53 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:32:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | forRequest request: HTTPRequest,
31 | task: URLSessionTask,
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:29:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | public struct SelfSignedCertsSecurity: HTTPSecurityService {
28 |
29 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | forRequest request: HTTPRequest,
31 | 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/SelfSignedCertsSecurity.swift:31:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
30 | forRequest request: HTTPRequest,
31 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
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/SelfSignedCertsSecurity.swift:33:37: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
31 | task: URLSessionTask,
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
34 | completionHandler(.useCredential, nil)
35 | return
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:32: error: cannot infer contextual base in reference to member 'useCredential'
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
35 | return
36 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:47: error: 'nil' requires a contextual type
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
| `- error: 'nil' requires a contextual type
35 | return
36 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:28: error: cannot infer contextual base in reference to member 'useCredential'
36 | }
37 |
38 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | }
40 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:43: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
36 | }
37 |
38 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
39 | }
40 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:277:51: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 | /// - request: request.
276 | /// - Returns: URL?
277 | internal func copyFileToDefaultLocation(task: URLSessionDownloadTask,
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 | forRequest request: HTTPRequest) -> URL? {
279 |
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:21: error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:59: error: cannot find 'kUTTagClassFilenameExtension' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find 'kUTTagClassFilenameExtension' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:97: error: cannot find type 'CFString' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find type 'CFString' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:107: error: 'nil' requires a contextual type
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: 'nil' requires a contextual type
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:141:31: error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
| `- error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
142 | return contentType as String
143 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:141:67: error: cannot find 'kUTTagClassMIMEType' in scope
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
| `- error: cannot find 'kUTTagClassMIMEType' in scope
142 | return contentType as String
143 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:21:11: error: cannot find type 'URLRequest' in scope
19 | import Foundation
20 |
21 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 |
23 | // MARK: - Additional Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:35:30: error: cannot find type 'URLRequest' in scope
33 | /// - Throws: throw an exception if url is not valid and cannot be converted to request.
34 | public init(url: URL, method: HTTPMethod,
35 | cachePolicy: URLRequest.CachePolicy,
| `- error: cannot find type 'URLRequest' in scope
36 | timeout: TimeInterval,
37 | headers: HTTPHeaders? = nil) throws {
[79/81] Compiling RealHTTP HTTPContentType.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:24:49: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | /// authenticated session using the `URLSession`'s `URLAuthenticationChallenge`.
23 | public struct CredentialSecurity: HTTPSecurityService {
24 | public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | // MARK: - Public Properties
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/CredentialSecurity.swift:24:80: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | /// authenticated session using the `URLSession`'s `URLAuthenticationChallenge`.
23 | public struct CredentialSecurity: HTTPSecurityService {
24 | public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
| `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | // MARK: - Public Properties
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
| `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:45:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
43 | forRequest request: HTTPRequest,
44 | task: URLSessionTask,
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:42:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | // MARK: - Conformance
41 |
42 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | forRequest request: HTTPRequest,
44 | 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/CredentialSecurity.swift:44:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
43 | forRequest request: HTTPRequest,
44 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
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/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/Options/CredentialSecurity.swift:47:32: error: cannot infer contextual base in reference to member 'rejectProtectionSpace'
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
| `- error: cannot infer contextual base in reference to member 'rejectProtectionSpace'
48 | return
49 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:47:55: error: 'nil' requires a contextual type
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
| `- error: 'nil' requires a contextual type
48 | return
49 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:51:28: error: cannot infer contextual base in reference to member 'useCredential'
49 | }
50 |
51 | completionHandler(.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
52 | }
53 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:32:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | forRequest request: HTTPRequest,
31 | task: URLSessionTask,
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:29:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | public struct SelfSignedCertsSecurity: HTTPSecurityService {
28 |
29 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | forRequest request: HTTPRequest,
31 | 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/SelfSignedCertsSecurity.swift:31:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
30 | forRequest request: HTTPRequest,
31 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
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/SelfSignedCertsSecurity.swift:33:37: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
31 | task: URLSessionTask,
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
34 | completionHandler(.useCredential, nil)
35 | return
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:32: error: cannot infer contextual base in reference to member 'useCredential'
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
35 | return
36 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:47: error: 'nil' requires a contextual type
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
| `- error: 'nil' requires a contextual type
35 | return
36 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:28: error: cannot infer contextual base in reference to member 'useCredential'
36 | }
37 |
38 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | }
40 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:43: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
36 | }
37 |
38 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
39 | }
40 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:277:51: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 | /// - request: request.
276 | /// - Returns: URL?
277 | internal func copyFileToDefaultLocation(task: URLSessionDownloadTask,
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 | forRequest request: HTTPRequest) -> URL? {
279 |
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:21: error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:59: error: cannot find 'kUTTagClassFilenameExtension' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find 'kUTTagClassFilenameExtension' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:97: error: cannot find type 'CFString' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find type 'CFString' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:107: error: 'nil' requires a contextual type
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: 'nil' requires a contextual type
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:141:31: error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
| `- error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
142 | return contentType as String
143 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:141:67: error: cannot find 'kUTTagClassMIMEType' in scope
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
| `- error: cannot find 'kUTTagClassMIMEType' in scope
142 | return contentType as String
143 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:21:11: error: cannot find type 'URLRequest' in scope
19 | import Foundation
20 |
21 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 |
23 | // MARK: - Additional Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:35:30: error: cannot find type 'URLRequest' in scope
33 | /// - Throws: throw an exception if url is not valid and cannot be converted to request.
34 | public init(url: URL, method: HTTPMethod,
35 | cachePolicy: URLRequest.CachePolicy,
| `- error: cannot find type 'URLRequest' in scope
36 | timeout: TimeInterval,
37 | headers: HTTPHeaders? = nil) throws {
[80/81] Compiling RealHTTP HTTPError.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:24:49: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | /// authenticated session using the `URLSession`'s `URLAuthenticationChallenge`.
23 | public struct CredentialSecurity: HTTPSecurityService {
24 | public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | // MARK: - Public Properties
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/CredentialSecurity.swift:24:80: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | /// authenticated session using the `URLSession`'s `URLAuthenticationChallenge`.
23 | public struct CredentialSecurity: HTTPSecurityService {
24 | public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
| `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | // MARK: - Public Properties
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
| `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:45:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
43 | forRequest request: HTTPRequest,
44 | task: URLSessionTask,
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:42:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | // MARK: - Conformance
41 |
42 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | forRequest request: HTTPRequest,
44 | 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/CredentialSecurity.swift:44:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
43 | forRequest request: HTTPRequest,
44 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
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/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/Options/CredentialSecurity.swift:47:32: error: cannot infer contextual base in reference to member 'rejectProtectionSpace'
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
| `- error: cannot infer contextual base in reference to member 'rejectProtectionSpace'
48 | return
49 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:47:55: error: 'nil' requires a contextual type
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
| `- error: 'nil' requires a contextual type
48 | return
49 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:51:28: error: cannot infer contextual base in reference to member 'useCredential'
49 | }
50 |
51 | completionHandler(.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
52 | }
53 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:32:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | forRequest request: HTTPRequest,
31 | task: URLSessionTask,
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:29:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | public struct SelfSignedCertsSecurity: HTTPSecurityService {
28 |
29 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | forRequest request: HTTPRequest,
31 | 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/SelfSignedCertsSecurity.swift:31:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
30 | forRequest request: HTTPRequest,
31 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
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/SelfSignedCertsSecurity.swift:33:37: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
31 | task: URLSessionTask,
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
34 | completionHandler(.useCredential, nil)
35 | return
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:32: error: cannot infer contextual base in reference to member 'useCredential'
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
35 | return
36 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:47: error: 'nil' requires a contextual type
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
| `- error: 'nil' requires a contextual type
35 | return
36 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:28: error: cannot infer contextual base in reference to member 'useCredential'
36 | }
37 |
38 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | }
40 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:43: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
36 | }
37 |
38 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
39 | }
40 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:277:51: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 | /// - request: request.
276 | /// - Returns: URL?
277 | internal func copyFileToDefaultLocation(task: URLSessionDownloadTask,
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 | forRequest request: HTTPRequest) -> URL? {
279 |
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:21: error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:59: error: cannot find 'kUTTagClassFilenameExtension' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find 'kUTTagClassFilenameExtension' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:97: error: cannot find type 'CFString' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find type 'CFString' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:107: error: 'nil' requires a contextual type
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: 'nil' requires a contextual type
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:141:31: error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
| `- error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
142 | return contentType as String
143 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:141:67: error: cannot find 'kUTTagClassMIMEType' in scope
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
| `- error: cannot find 'kUTTagClassMIMEType' in scope
142 | return contentType as String
143 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:21:11: error: cannot find type 'URLRequest' in scope
19 | import Foundation
20 |
21 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 |
23 | // MARK: - Additional Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:35:30: error: cannot find type 'URLRequest' in scope
33 | /// - Throws: throw an exception if url is not valid and cannot be converted to request.
34 | public init(url: URL, method: HTTPMethod,
35 | cachePolicy: URLRequest.CachePolicy,
| `- error: cannot find type 'URLRequest' in scope
36 | timeout: TimeInterval,
37 | headers: HTTPHeaders? = nil) throws {
[81/81] Compiling RealHTTP HTTPMethod.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:24:49: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | /// authenticated session using the `URLSession`'s `URLAuthenticationChallenge`.
23 | public struct CredentialSecurity: HTTPSecurityService {
24 | public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | // MARK: - Public Properties
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/CredentialSecurity.swift:24:80: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | /// authenticated session using the `URLSession`'s `URLAuthenticationChallenge`.
23 | public struct CredentialSecurity: HTTPSecurityService {
24 | public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
| `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | // MARK: - Public Properties
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
| `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:45:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
43 | forRequest request: HTTPRequest,
44 | task: URLSessionTask,
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:42:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | // MARK: - Conformance
41 |
42 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | forRequest request: HTTPRequest,
44 | 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/CredentialSecurity.swift:44:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
43 | forRequest request: HTTPRequest,
44 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
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/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/Options/CredentialSecurity.swift:47:32: error: cannot infer contextual base in reference to member 'rejectProtectionSpace'
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
| `- error: cannot infer contextual base in reference to member 'rejectProtectionSpace'
48 | return
49 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:47:55: error: 'nil' requires a contextual type
45 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 | guard let cred = callback(challenge) else {
47 | completionHandler(.rejectProtectionSpace, nil)
| `- error: 'nil' requires a contextual type
48 | return
49 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:51:28: error: cannot infer contextual base in reference to member 'useCredential'
49 | }
50 |
51 | completionHandler(.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
52 | }
53 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:32:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | forRequest request: HTTPRequest,
31 | task: URLSessionTask,
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:29:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | public struct SelfSignedCertsSecurity: HTTPSecurityService {
28 |
29 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | forRequest request: HTTPRequest,
31 | 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/SelfSignedCertsSecurity.swift:31:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
30 | forRequest request: HTTPRequest,
31 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
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/SelfSignedCertsSecurity.swift:33:37: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
31 | task: URLSessionTask,
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
34 | completionHandler(.useCredential, nil)
35 | return
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:32: error: cannot infer contextual base in reference to member 'useCredential'
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
35 | return
36 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:47: error: 'nil' requires a contextual type
32 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 | guard let trust = challenge.protectionSpace.serverTrust else {
34 | completionHandler(.useCredential, nil)
| `- error: 'nil' requires a contextual type
35 | return
36 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:28: error: cannot infer contextual base in reference to member 'useCredential'
36 | }
37 |
38 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | }
40 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:43: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
36 | }
37 |
38 | completionHandler(.useCredential, URLCredential(trust: trust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
39 | }
40 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:277:51: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 | /// - request: request.
276 | /// - Returns: URL?
277 | internal func copyFileToDefaultLocation(task: URLSessionDownloadTask,
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 | forRequest request: HTTPRequest) -> URL? {
279 |
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:21: error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:59: error: cannot find 'kUTTagClassFilenameExtension' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find 'kUTTagClassFilenameExtension' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:97: error: cannot find type 'CFString' in scope
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: cannot find type 'CFString' in scope
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:140:107: error: 'nil' requires a contextual type
138 | return HTTPContentType.octetStream.rawValue
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
| `- error: 'nil' requires a contextual type
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
142 | return contentType as String
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:141:31: error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
| `- error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
142 | return contentType as String
143 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:141:67: error: cannot find 'kUTTagClassMIMEType' in scope
139 | #else
140 | if let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, self as CFString, nil)?.takeRetainedValue(),
141 | let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() {
| `- error: cannot find 'kUTTagClassMIMEType' in scope
142 | return contentType as String
143 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:21:11: error: cannot find type 'URLRequest' in scope
19 | import Foundation
20 |
21 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 |
23 | // MARK: - Additional Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:35:30: error: cannot find type 'URLRequest' in scope
33 | /// - Throws: throw an exception if url is not valid and cannot be converted to request.
34 | public init(url: URL, method: HTTPMethod,
35 | cachePolicy: URLRequest.CachePolicy,
| `- error: cannot find type 'URLRequest' in scope
36 | timeout: TimeInterval,
37 | headers: HTTPHeaders? = nil) throws {
BUILD FAILURE 6.3 android