The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftExtras, reference main (5c6dcf), with Swift 6.3 for Wasm on 16 Apr 2026 22:29:13 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/0xWDG/SwiftExtras.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/0xWDG/SwiftExtras
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 5c6dcf1 Update ConfirmationButton
Cloned https://github.com/0xWDG/SwiftExtras.git
Revision (git rev-parse @):
5c6dcf1734f08134e0b061cad08d9aa14ce879cb
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/0xWDG/SwiftExtras.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/0xWDG/SwiftExtras.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/0xWDG/OSLogViewer.git
[1/1585] Fetching oslogviewer
Fetched https://github.com/0xWDG/OSLogViewer.git from cache (0.41s)
Creating working copy for https://github.com/0xWDG/OSLogViewer.git
Working copy of https://github.com/0xWDG/OSLogViewer.git resolved at main (e45ebc5)
Building for debugging...
[0/8] Copying Info.plist
[1/8] Copying Localizable.xcstrings
[1/8] Copying Info.plist
[3/8] Copying Localizable.xcstrings
[4/8] Write sources
[6/8] Copying Assets.xcassets
[7/8] Write swift-version-24593BA9C3E375BF.txt
[9/13] Compiling OSLogViewer resource_bundle_accessor.swift
[10/13] Compiling OSLogViewer OSLogViewer.swift
[11/13] Compiling OSLogViewer OSLogViewer.Colors.swift
[12/13] Emitting module OSLogViewer
[13/13] Compiling OSLogViewer OSLogExtractor.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/127] Emitting module SwiftExtras
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:49: error: cannot find type 'URLSessionDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                 `- error: cannot find type 'URLSessionDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:69: error: cannot find type 'URLSessionTaskDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                     `- error: cannot find type 'URLSessionTaskDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:26:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | #if os(Linux)
28 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:24:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
23 |     public func urlSession(
24 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:25:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     public func urlSession(
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
27 | #if os(Linux)
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/SwiftExtras/Extensions/URLSession.swift:43:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
41 | }
42 |
43 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 |     /// A URLSession that ignores SSL certificate errors.
45 |     public static let ignoreCertificateErrors: URLSession = {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[16/127] Compiling SwiftExtras View+View+onChange.swift.swift
[17/127] Compiling SwiftExtras View+adaptiveColor.swift
[18/127] Compiling SwiftExtras View+colorScheme.swift
[19/127] Compiling SwiftExtras View+getRootViewController.swift
[20/127] Compiling SwiftExtras View+horizontallyCentered.swift
[21/127] Compiling SwiftExtras View+modifier.swift
[22/127] Compiling SwiftExtras View+onFirstAppear.swift
[23/127] Compiling SwiftExtras View+onLandscape.swift
[24/127] Compiling SwiftExtras View+onNotification.swift
[25/127] Compiling SwiftExtras View+onboarding.swift
[26/127] Compiling SwiftExtras View+readOffsetX.swift
[27/127] Compiling SwiftExtras View+render.swift
[28/127] Compiling SwiftExtras View+sizeSaver.swift
[29/127] Compiling SwiftExtras View+snapshot.swift
[30/127] Compiling SwiftExtras View+stretchy.swift
[31/127] Compiling SwiftExtras kMeansCluster.swift
[32/127] Compiling SwiftExtras WStack.swift
[33/127] Compiling SwiftExtras Button+longPress.swift
[34/127] Compiling SwiftExtras KeyboardDismissModifier.swift
[35/127] Compiling SwiftExtras PulsatingEffect.swift
[36/127] Compiling SwiftExtras ShakeEffect.swift
[37/127] Compiling SwiftExtras NSPasteboard+string.swift
[38/127] Compiling SwiftExtras PlatformTypes.swift
[39/127] Compiling SwiftExtras PlatformViewRepresentable.swift
[40/127] Compiling SwiftExtras openURL.swift
[41/127] Compiling SwiftExtras RegularExpressionOperator.swift
[42/127] Compiling SwiftExtras optionalBinding.swift
[43/127] Compiling SwiftExtras MailView.swift
[44/127] Compiling SwiftExtras SFSafari.swift
[45/127] Compiling SwiftExtras WebView.swift
[46/127] Compiling SwiftExtras HexShape.swift
[47/127] Compiling SwiftExtras SEAcknowledgement.swift
[48/127] Compiling SwiftExtras BackgroundRemover.swift
[49/127] Compiling SwiftExtras SensoryFeedback.swift
[50/127] Compiling SwiftExtras AppInfo.swift
[51/127] Compiling SwiftExtras Device.swift
[52/127] Compiling SwiftExtras Binding+for.swift
[53/127] Compiling SwiftExtras Binding+onChange.swift
[54/127] Compiling SwiftExtras Binding+optional.swift
[55/127] Compiling SwiftExtras CGFloat+.swift
[56/127] Compiling SwiftExtras CGSize+device.swift
[57/127] Compiling SwiftExtras Collection+.swift
[58/127] Compiling SwiftExtras Collection+safeIndex.swift
[59/127] Compiling SwiftExtras Color+Codable.swift
[60/127] Compiling SwiftExtras Color+Identifiable.swift
[61/127] Compiling SwiftExtras Color+colorBlind.swift
[62/127] Compiling SwiftExtras Color+components.swift
[63/127] Compiling SwiftExtras Color+default.swift
[64/127] Compiling SwiftExtras Color+dynamicColor.swift
[65/127] Compiling SwiftExtras Color+init.swift
[66/127] Compiling SwiftExtras Color+random.swift
[67/127] Compiling SwiftExtras Data+Compression.swift
[68/127] Compiling SwiftExtras Date+.swift
[69/127] Compiling SwiftExtras Date+Identifiable.swift
[70/127] Compiling SwiftExtras Date+getFormattedDate.swift
[71/127] Compiling SwiftExtras Double+.swift
[72/127] Compiling SwiftExtras Error+errorCode.swift
[73/127] Compiling SwiftExtras Float.swift
[74/127] Compiling SwiftExtras Image+Platform.swift
[75/127] Compiling SwiftExtras Image+centerCropped.swift
[76/127] Compiling SwiftExtras Int+.swift
[77/127] Compiling SwiftExtras Locale+Utilities.swift
[78/127] Compiling SwiftExtras LocalizedStringKey+.swift
[79/127] Compiling SwiftExtras LocalizedStringKey+Identifiable.swift
[80/127] Compiling SwiftExtras String+slugified.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:49: error: cannot find type 'URLSessionDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                 `- error: cannot find type 'URLSessionDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:69: error: cannot find type 'URLSessionTaskDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                     `- error: cannot find type 'URLSessionTaskDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:26:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | #if os(Linux)
28 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:24:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
23 |     public func urlSession(
24 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:25:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     public func urlSession(
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
27 | #if os(Linux)
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/SwiftExtras/Extensions/URLSession.swift:43:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
41 | }
42 |
43 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 |     /// A URLSession that ignores SSL certificate errors.
45 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:31:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
29 |         return (.performDefaultHandling, nil)
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:32:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
32 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:22: error: cannot infer contextual base in reference to member 'useCredential'
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
35 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
36 |         default:
37 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
35 |             return (.useCredential, cred)
36 |         default:
37 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |         }
39 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[81/127] Compiling SwiftExtras String+subscript.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:49: error: cannot find type 'URLSessionDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                 `- error: cannot find type 'URLSessionDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:69: error: cannot find type 'URLSessionTaskDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                     `- error: cannot find type 'URLSessionTaskDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:26:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | #if os(Linux)
28 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:24:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
23 |     public func urlSession(
24 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:25:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     public func urlSession(
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
27 | #if os(Linux)
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/SwiftExtras/Extensions/URLSession.swift:43:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
41 | }
42 |
43 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 |     /// A URLSession that ignores SSL certificate errors.
45 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:31:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
29 |         return (.performDefaultHandling, nil)
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:32:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
32 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:22: error: cannot infer contextual base in reference to member 'useCredential'
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
35 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
36 |         default:
37 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
35 |             return (.useCredential, cred)
36 |         default:
37 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |         }
39 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[82/127] Compiling SwiftExtras String+trimmed.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:49: error: cannot find type 'URLSessionDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                 `- error: cannot find type 'URLSessionDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:69: error: cannot find type 'URLSessionTaskDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                     `- error: cannot find type 'URLSessionTaskDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:26:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | #if os(Linux)
28 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:24:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
23 |     public func urlSession(
24 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:25:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     public func urlSession(
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
27 | #if os(Linux)
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/SwiftExtras/Extensions/URLSession.swift:43:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
41 | }
42 |
43 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 |     /// A URLSession that ignores SSL certificate errors.
45 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:31:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
29 |         return (.performDefaultHandling, nil)
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:32:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
32 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:22: error: cannot infer contextual base in reference to member 'useCredential'
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
35 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
36 |         default:
37 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
35 |             return (.useCredential, cred)
36 |         default:
37 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |         }
39 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[83/127] Compiling SwiftExtras String+url.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:49: error: cannot find type 'URLSessionDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                 `- error: cannot find type 'URLSessionDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:69: error: cannot find type 'URLSessionTaskDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                     `- error: cannot find type 'URLSessionTaskDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:26:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | #if os(Linux)
28 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:24:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
23 |     public func urlSession(
24 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:25:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     public func urlSession(
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
27 | #if os(Linux)
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/SwiftExtras/Extensions/URLSession.swift:43:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
41 | }
42 |
43 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 |     /// A URLSession that ignores SSL certificate errors.
45 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:31:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
29 |         return (.performDefaultHandling, nil)
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:32:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
32 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:22: error: cannot infer contextual base in reference to member 'useCredential'
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
35 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
36 |         default:
37 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
35 |             return (.useCredential, cred)
36 |         default:
37 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |         }
39 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[84/127] Compiling SwiftExtras StringProtocol+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:49: error: cannot find type 'URLSessionDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                 `- error: cannot find type 'URLSessionDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:69: error: cannot find type 'URLSessionTaskDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                     `- error: cannot find type 'URLSessionTaskDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:26:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | #if os(Linux)
28 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:24:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
23 |     public func urlSession(
24 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:25:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     public func urlSession(
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
27 | #if os(Linux)
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/SwiftExtras/Extensions/URLSession.swift:43:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
41 | }
42 |
43 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 |     /// A URLSession that ignores SSL certificate errors.
45 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:31:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
29 |         return (.performDefaultHandling, nil)
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:32:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
32 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:22: error: cannot infer contextual base in reference to member 'useCredential'
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
35 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
36 |         default:
37 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
35 |             return (.useCredential, cred)
36 |         default:
37 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |         }
39 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[85/127] Compiling SwiftExtras Task+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:49: error: cannot find type 'URLSessionDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                 `- error: cannot find type 'URLSessionDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:69: error: cannot find type 'URLSessionTaskDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                     `- error: cannot find type 'URLSessionTaskDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:26:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | #if os(Linux)
28 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:24:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
23 |     public func urlSession(
24 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:25:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     public func urlSession(
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
27 | #if os(Linux)
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/SwiftExtras/Extensions/URLSession.swift:43:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
41 | }
42 |
43 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 |     /// A URLSession that ignores SSL certificate errors.
45 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:31:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
29 |         return (.performDefaultHandling, nil)
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:32:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
32 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:22: error: cannot infer contextual base in reference to member 'useCredential'
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
35 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
36 |         default:
37 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
35 |             return (.useCredential, cred)
36 |         default:
37 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |         }
39 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[86/127] Compiling SwiftExtras Text+Gradient.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:49: error: cannot find type 'URLSessionDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                 `- error: cannot find type 'URLSessionDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:69: error: cannot find type 'URLSessionTaskDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                     `- error: cannot find type 'URLSessionTaskDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:26:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | #if os(Linux)
28 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:24:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
23 |     public func urlSession(
24 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:25:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     public func urlSession(
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
27 | #if os(Linux)
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/SwiftExtras/Extensions/URLSession.swift:43:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
41 | }
42 |
43 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 |     /// A URLSession that ignores SSL certificate errors.
45 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:31:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
29 |         return (.performDefaultHandling, nil)
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:32:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
32 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:22: error: cannot infer contextual base in reference to member 'useCredential'
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
35 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
36 |         default:
37 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
35 |             return (.useCredential, cred)
36 |         default:
37 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |         }
39 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[87/127] Compiling SwiftExtras TimeInterval+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:49: error: cannot find type 'URLSessionDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                 `- error: cannot find type 'URLSessionDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:69: error: cannot find type 'URLSessionTaskDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                     `- error: cannot find type 'URLSessionTaskDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:26:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | #if os(Linux)
28 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:24:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
23 |     public func urlSession(
24 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:25:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     public func urlSession(
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
27 | #if os(Linux)
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/SwiftExtras/Extensions/URLSession.swift:43:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
41 | }
42 |
43 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 |     /// A URLSession that ignores SSL certificate errors.
45 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:31:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
29 |         return (.performDefaultHandling, nil)
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:32:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
32 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:22: error: cannot infer contextual base in reference to member 'useCredential'
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
35 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
36 |         default:
37 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
35 |             return (.useCredential, cred)
36 |         default:
37 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |         }
39 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[88/127] Compiling SwiftExtras UIDevice+Utilities.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:49: error: cannot find type 'URLSessionDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                 `- error: cannot find type 'URLSessionDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:69: error: cannot find type 'URLSessionTaskDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                     `- error: cannot find type 'URLSessionTaskDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:26:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | #if os(Linux)
28 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:24:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
23 |     public func urlSession(
24 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:25:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     public func urlSession(
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
27 | #if os(Linux)
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/SwiftExtras/Extensions/URLSession.swift:43:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
41 | }
42 |
43 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 |     /// A URLSession that ignores SSL certificate errors.
45 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:31:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
29 |         return (.performDefaultHandling, nil)
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:32:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
32 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:22: error: cannot infer contextual base in reference to member 'useCredential'
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
35 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
36 |         default:
37 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
35 |             return (.useCredential, cred)
36 |         default:
37 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |         }
39 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[89/127] Compiling SwiftExtras URL+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:49: error: cannot find type 'URLSessionDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                 `- error: cannot find type 'URLSessionDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:69: error: cannot find type 'URLSessionTaskDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                     `- error: cannot find type 'URLSessionTaskDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:26:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | #if os(Linux)
28 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:24:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
23 |     public func urlSession(
24 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:25:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     public func urlSession(
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
27 | #if os(Linux)
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/SwiftExtras/Extensions/URLSession.swift:43:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
41 | }
42 |
43 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 |     /// A URLSession that ignores SSL certificate errors.
45 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:31:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
29 |         return (.performDefaultHandling, nil)
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:32:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
32 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:22: error: cannot infer contextual base in reference to member 'useCredential'
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
35 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
36 |         default:
37 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
35 |             return (.useCredential, cred)
36 |         default:
37 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |         }
39 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[90/127] Compiling SwiftExtras URLSession.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:49: error: cannot find type 'URLSessionDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                 `- error: cannot find type 'URLSessionDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:69: error: cannot find type 'URLSessionTaskDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                     `- error: cannot find type 'URLSessionTaskDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:26:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | #if os(Linux)
28 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:24:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
23 |     public func urlSession(
24 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:25:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     public func urlSession(
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
27 | #if os(Linux)
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/SwiftExtras/Extensions/URLSession.swift:43:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
41 | }
42 |
43 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 |     /// A URLSession that ignores SSL certificate errors.
45 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:31:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
29 |         return (.performDefaultHandling, nil)
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:32:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
32 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:22: error: cannot infer contextual base in reference to member 'useCredential'
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
35 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
36 |         default:
37 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
35 |             return (.useCredential, cred)
36 |         default:
37 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |         }
39 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[91/127] Compiling SwiftExtras UserDefaults+subscript.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:49: error: cannot find type 'URLSessionDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                 `- error: cannot find type 'URLSessionDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:69: error: cannot find type 'URLSessionTaskDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                     `- error: cannot find type 'URLSessionTaskDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:26:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | #if os(Linux)
28 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:24:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
23 |     public func urlSession(
24 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:25:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     public func urlSession(
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
27 | #if os(Linux)
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/SwiftExtras/Extensions/URLSession.swift:43:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
41 | }
42 |
43 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 |     /// A URLSession that ignores SSL certificate errors.
45 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:31:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
29 |         return (.performDefaultHandling, nil)
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:32:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
32 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:22: error: cannot infer contextual base in reference to member 'useCredential'
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
35 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
36 |         default:
37 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
35 |             return (.useCredential, cred)
36 |         default:
37 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |         }
39 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[92/127] Compiling SwiftExtras View+Error.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:49: error: cannot find type 'URLSessionDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                 `- error: cannot find type 'URLSessionDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:69: error: cannot find type 'URLSessionTaskDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                     `- error: cannot find type 'URLSessionTaskDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:26:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | #if os(Linux)
28 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:24:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
23 |     public func urlSession(
24 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:25:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     public func urlSession(
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
27 | #if os(Linux)
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/SwiftExtras/Extensions/URLSession.swift:43:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
41 | }
42 |
43 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 |     /// A URLSession that ignores SSL certificate errors.
45 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:31:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
29 |         return (.performDefaultHandling, nil)
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:32:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
32 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:22: error: cannot infer contextual base in reference to member 'useCredential'
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
35 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
36 |         default:
37 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
35 |             return (.useCredential, cred)
36 |         default:
37 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |         }
39 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[93/127] Compiling SwiftExtras View+Frame.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:49: error: cannot find type 'URLSessionDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                 `- error: cannot find type 'URLSessionDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:69: error: cannot find type 'URLSessionTaskDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                     `- error: cannot find type 'URLSessionTaskDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:26:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | #if os(Linux)
28 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:24:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
23 |     public func urlSession(
24 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:25:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     public func urlSession(
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
27 | #if os(Linux)
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/SwiftExtras/Extensions/URLSession.swift:43:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
41 | }
42 |
43 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 |     /// A URLSession that ignores SSL certificate errors.
45 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:31:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
29 |         return (.performDefaultHandling, nil)
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:32:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
32 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:22: error: cannot infer contextual base in reference to member 'useCredential'
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
35 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
36 |         default:
37 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
35 |             return (.useCredential, cred)
36 |         default:
37 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |         }
39 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[94/127] Compiling SwiftExtras View+Log.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:49: error: cannot find type 'URLSessionDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                 `- error: cannot find type 'URLSessionDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:69: error: cannot find type 'URLSessionTaskDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                     `- error: cannot find type 'URLSessionTaskDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:26:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | #if os(Linux)
28 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:24:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
23 |     public func urlSession(
24 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:25:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     public func urlSession(
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
27 | #if os(Linux)
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/SwiftExtras/Extensions/URLSession.swift:43:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
41 | }
42 |
43 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 |     /// A URLSession that ignores SSL certificate errors.
45 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:31:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
29 |         return (.performDefaultHandling, nil)
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:32:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
32 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:22: error: cannot infer contextual base in reference to member 'useCredential'
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
35 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
36 |         default:
37 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
35 |             return (.useCredential, cred)
36 |         default:
37 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |         }
39 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[95/127] Compiling SwiftExtras View+Task.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:49: error: cannot find type 'URLSessionDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                 `- error: cannot find type 'URLSessionDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:17:69: error: cannot find type 'URLSessionTaskDelegate' in scope
15 | #endif
16 |
17 | public class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                     `- error: cannot find type 'URLSessionTaskDelegate' in scope
18 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
19 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:26:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | #if os(Linux)
28 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:24:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
23 |     public func urlSession(
24 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         didReceive challenge: URLAuthenticationChallenge
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:25:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     public func urlSession(
24 |         _ session: URLSession,
25 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
27 | #if os(Linux)
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/SwiftExtras/Extensions/URLSession.swift:43:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
41 | }
42 |
43 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 |     /// A URLSession that ignores SSL certificate errors.
45 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:31:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
29 |         return (.performDefaultHandling, nil)
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:32:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
30 | #else
31 |         switch challenge.protectionSpace.authenticationMethod {
32 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 |         case NSURLAuthenticationMethodServerTrust:
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |             return (.useCredential, cred)
36 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:22: error: cannot infer contextual base in reference to member 'useCredential'
33 |             // No trust APIs on Linux
34 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
35 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
36 |         default:
37 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
35 |             return (.useCredential, cred)
36 |         default:
37 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |         }
39 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[96/127] Compiling SwiftExtras SEChangeLogEntry.swift
[97/127] Compiling SwiftExtras SocialIcons.swift
[98/127] Compiling SwiftExtras BorderedToggleStyle.swift
[99/127] Compiling SwiftExtras ColoredButtonStyle.swift
[100/127] Compiling SwiftExtras GrayButtonStyle.swift
[101/127] Compiling SwiftExtras ListButtonStyle.swift
[102/127] Compiling SwiftExtras PlainBorderedToggleStyle.swift
[103/127] Compiling SwiftExtras ToggleButtonStyle.swift
[104/127] Compiling SwiftExtras SwiftExtras.swift
[105/127] Compiling SwiftExtras AsyncTask.swift
[106/127] Compiling SwiftExtras AsyncView.swift
[107/127] Compiling SwiftExtras CardView.swift
[108/127] Compiling SwiftExtras CarouselView.swift
[109/127] Compiling SwiftExtras ConfettiView.swift
[110/127] Compiling SwiftExtras ConfirmationButton.swift
[111/127] Compiling SwiftExtras CopyableLabeledContent.swift
[112/127] Compiling SwiftExtras Logger+.swift
[113/127] Compiling SwiftExtras NotificationName+.swift
[114/127] Compiling SwiftExtras Optional+isNilOrEmpty.swift
[115/127] Compiling SwiftExtras PlatformColor+.swift
[116/127] Compiling SwiftExtras PlatformImage+.swift
[117/127] Compiling SwiftExtras ProcessInfo+Utilities.swift
[118/127] Compiling SwiftExtras Sequence+.swift
[119/127] Compiling SwiftExtras String+ANSIColors.swift
[120/127] Compiling SwiftExtras String+Base64.swift
[121/127] Compiling SwiftExtras String+HTML.swift
[122/127] Compiling SwiftExtras String+IdentifiableString.swift
[123/127] Compiling SwiftExtras String+clean.swift
[124/127] Compiling SwiftExtras String+contains.swift
[125/127] Compiling SwiftExtras String+error.swift
[126/127] Compiling SwiftExtras String+hashed.swift
[127/127] Compiling SwiftExtras String+slice.swift
[128/143] Compiling SwiftExtras DisclosureSection.swift
[129/143] Compiling SwiftExtras FloatingTextField.swift
[130/143] Compiling SwiftExtras HorizontalStepper.swift
[131/143] Compiling SwiftExtras IndexedList.swift
[132/143] Compiling SwiftExtras LimitedTextField.swift
[133/143] Compiling SwiftExtras MonthYearPickerView.swift
[134/143] Compiling SwiftExtras MultiSelectPickerView.swift
[135/143] Compiling SwiftExtras MultiSelectView.swift
[136/143] Compiling SwiftExtras NavigationViewIfNeeded.swift
[137/143] Compiling SwiftExtras NotificationOnboarding.swift
[138/143] Compiling SwiftExtras NotificationView.swift
[139/143] Compiling SwiftExtras Onboarding.swift
[140/143] Compiling SwiftExtras SEAcknowledgementView.swift
[141/143] Compiling SwiftExtras SEChangeLogView.swift
[142/143] Compiling SwiftExtras SESettingsView.swift
[143/143] Compiling SwiftExtras resource_bundle_accessor.swift
BUILD FAILURE 6.3 wasm