The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftExtras, reference main (5c6dcf), with Swift 6.2 for Wasm on 15 Mar 2026 21:00:10 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.69.1
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.2
Building package at path:  $PWD
https://github.com/0xWDG/SwiftExtras.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:33aba1b4ee401c56e0fd7ee42e05ab1ffc0b6f44277ad19cffda5d456eb09500
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/swift-sdk.json
Fetching https://github.com/0xWDG/OSLogViewer.git
[1/1585] Fetching oslogviewer
Fetched https://github.com/0xWDG/OSLogViewer.git from cache (0.38s)
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 Localizable.xcstrings
[0/8] Write sources
[0/8] Copying Info.plist
[0/8] Write sources
[5/8] Copying Localizable.xcstrings
[6/8] Copying Assets.xcassets
[7/8] Write swift-version-24593BA9C3E375BF.txt
[9/13] Compiling OSLogViewer OSLogViewer.Colors.swift
[10/13] Emitting module OSLogViewer
[11/13] Compiling OSLogViewer OSLogExtractor.swift
[12/13] Compiling OSLogViewer OSLogViewer.swift
[13/13] Compiling OSLogViewer resource_bundle_accessor.swift
[15/127] Compiling SwiftExtras SEChangeLogEntry.swift
[16/127] Compiling SwiftExtras SocialIcons.swift
[17/127] Compiling SwiftExtras BorderedToggleStyle.swift
[18/127] Compiling SwiftExtras ColoredButtonStyle.swift
[19/127] Compiling SwiftExtras GrayButtonStyle.swift
[20/127] Compiling SwiftExtras ListButtonStyle.swift
[21/127] Compiling SwiftExtras PlainBorderedToggleStyle.swift
[22/127] Compiling SwiftExtras ToggleButtonStyle.swift
[23/127] Compiling SwiftExtras SwiftExtras.swift
[24/127] Compiling SwiftExtras AsyncTask.swift
[25/127] Compiling SwiftExtras AsyncView.swift
[26/127] Compiling SwiftExtras CardView.swift
[27/127] Compiling SwiftExtras CarouselView.swift
[28/127] Compiling SwiftExtras ConfettiView.swift
[29/127] Compiling SwiftExtras ConfirmationButton.swift
[30/127] Compiling SwiftExtras CopyableLabeledContent.swift
[31/143] Compiling SwiftExtras WStack.swift
[32/143] Compiling SwiftExtras Button+longPress.swift
[33/143] Compiling SwiftExtras KeyboardDismissModifier.swift
[34/143] Compiling SwiftExtras PulsatingEffect.swift
[35/143] Compiling SwiftExtras ShakeEffect.swift
[36/143] Compiling SwiftExtras NSPasteboard+string.swift
[37/143] Compiling SwiftExtras PlatformTypes.swift
[38/143] Compiling SwiftExtras PlatformViewRepresentable.swift
[39/143] Compiling SwiftExtras openURL.swift
[40/143] Compiling SwiftExtras RegularExpressionOperator.swift
[41/143] Compiling SwiftExtras optionalBinding.swift
[42/143] Compiling SwiftExtras MailView.swift
[43/143] Compiling SwiftExtras SFSafari.swift
[44/143] Compiling SwiftExtras WebView.swift
[45/143] Compiling SwiftExtras HexShape.swift
[46/143] Compiling SwiftExtras SEAcknowledgement.swift
[47/143] Compiling SwiftExtras DisclosureSection.swift
[48/143] Compiling SwiftExtras FloatingTextField.swift
[49/143] Compiling SwiftExtras HorizontalStepper.swift
[50/143] Compiling SwiftExtras IndexedList.swift
[51/143] Compiling SwiftExtras LimitedTextField.swift
[52/143] Compiling SwiftExtras MonthYearPickerView.swift
[53/143] Compiling SwiftExtras MultiSelectPickerView.swift
[54/143] Compiling SwiftExtras MultiSelectView.swift
[55/143] Compiling SwiftExtras NavigationViewIfNeeded.swift
[56/143] Compiling SwiftExtras NotificationOnboarding.swift
[57/143] Compiling SwiftExtras NotificationView.swift
[58/143] Compiling SwiftExtras Onboarding.swift
[59/143] Compiling SwiftExtras SEAcknowledgementView.swift
[60/143] Compiling SwiftExtras SEChangeLogView.swift
[61/143] Compiling SwiftExtras SESettingsView.swift
[62/143] Compiling SwiftExtras resource_bundle_accessor.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[63/143] Emitting module SwiftExtras
/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: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: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>
[64/143] Compiling SwiftExtras Color+dynamicColor.swift
[65/143] Compiling SwiftExtras Color+init.swift
[66/143] Compiling SwiftExtras Color+random.swift
[67/143] Compiling SwiftExtras Data+Compression.swift
[68/143] Compiling SwiftExtras Date+.swift
[69/143] Compiling SwiftExtras Date+Identifiable.swift
[70/143] Compiling SwiftExtras Date+getFormattedDate.swift
[71/143] Compiling SwiftExtras Double+.swift
[72/143] Compiling SwiftExtras Error+errorCode.swift
[73/143] Compiling SwiftExtras Float.swift
[74/143] Compiling SwiftExtras Image+Platform.swift
[75/143] Compiling SwiftExtras Image+centerCropped.swift
[76/143] Compiling SwiftExtras Int+.swift
[77/143] Compiling SwiftExtras Locale+Utilities.swift
[78/143] Compiling SwiftExtras LocalizedStringKey+.swift
[79/143] Compiling SwiftExtras LocalizedStringKey+Identifiable.swift
[80/143] Compiling SwiftExtras BackgroundRemover.swift
[81/143] Compiling SwiftExtras SensoryFeedback.swift
[82/143] Compiling SwiftExtras AppInfo.swift
[83/143] Compiling SwiftExtras Device.swift
[84/143] Compiling SwiftExtras Binding+for.swift
[85/143] Compiling SwiftExtras Binding+onChange.swift
[86/143] Compiling SwiftExtras Binding+optional.swift
[87/143] Compiling SwiftExtras CGFloat+.swift
[88/143] Compiling SwiftExtras CGSize+device.swift
[89/143] Compiling SwiftExtras Collection+.swift
[90/143] Compiling SwiftExtras Collection+safeIndex.swift
[91/143] Compiling SwiftExtras Color+Codable.swift
[92/143] Compiling SwiftExtras Color+Identifiable.swift
[93/143] Compiling SwiftExtras Color+colorBlind.swift
[94/143] Compiling SwiftExtras Color+components.swift
[95/143] Compiling SwiftExtras Color+default.swift
[96/143] Compiling SwiftExtras View+View+onChange.swift.swift
[97/143] Compiling SwiftExtras View+adaptiveColor.swift
[98/143] Compiling SwiftExtras View+colorScheme.swift
[99/143] Compiling SwiftExtras View+getRootViewController.swift
[100/143] Compiling SwiftExtras View+horizontallyCentered.swift
[101/143] Compiling SwiftExtras View+modifier.swift
[102/143] Compiling SwiftExtras View+onFirstAppear.swift
[103/143] Compiling SwiftExtras View+onLandscape.swift
[104/143] Compiling SwiftExtras View+onNotification.swift
[105/143] Compiling SwiftExtras View+onboarding.swift
[106/143] Compiling SwiftExtras View+readOffsetX.swift
[107/143] Compiling SwiftExtras View+render.swift
[108/143] Compiling SwiftExtras View+sizeSaver.swift
[109/143] Compiling SwiftExtras View+snapshot.swift
[110/143] Compiling SwiftExtras View+stretchy.swift
[111/143] Compiling SwiftExtras kMeansCluster.swift
[112/143] Compiling SwiftExtras Logger+.swift
[113/143] Compiling SwiftExtras NotificationName+.swift
[114/143] Compiling SwiftExtras Optional+isNilOrEmpty.swift
[115/143] Compiling SwiftExtras PlatformColor+.swift
[116/143] Compiling SwiftExtras PlatformImage+.swift
[117/143] Compiling SwiftExtras ProcessInfo+Utilities.swift
[118/143] Compiling SwiftExtras Sequence+.swift
[119/143] Compiling SwiftExtras String+ANSIColors.swift
[120/143] Compiling SwiftExtras String+Base64.swift
[121/143] Compiling SwiftExtras String+HTML.swift
[122/143] Compiling SwiftExtras String+IdentifiableString.swift
[123/143] Compiling SwiftExtras String+clean.swift
[124/143] Compiling SwiftExtras String+contains.swift
[125/143] Compiling SwiftExtras String+error.swift
[126/143] Compiling SwiftExtras String+hashed.swift
[127/143] Compiling SwiftExtras String+slice.swift
[128/143] 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: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: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: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:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[129/143] 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: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: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: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:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[130/143] 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: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: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: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:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[131/143] 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: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: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: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:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[132/143] 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: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: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: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:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[133/143] 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: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: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: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:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[134/143] 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: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: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: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:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[135/143] 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: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: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: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:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[136/143] 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: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: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: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:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[137/143] 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: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: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: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:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[138/143] 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: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: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: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:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[139/143] 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: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: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: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:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[140/143] 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: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: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: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:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[141/143] 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: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: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: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:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[142/143] 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: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: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: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:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[143/143] 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: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: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: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:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
BUILD FAILURE 6.2 wasm