The Swift Package Index logo.Swift Package Index

Build Information

Failed to build podcast-feed-maker-vapor, reference main (0f53b5), with Swift 6.2 for Wasm on 26 Jun 2026 07:31:36 UTC.

Build Command

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

Build Log

292 |         guard let expectedType = entry.expectedType,
293 |             let contentType = response.value(forHTTPHeaderField: "Content-Type")
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
294 |         else { return [] }
295 |
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:298:38: error: cannot infer contextual base in reference to member 'whitespaces'
296 |         let actualBase =
297 |             contentType.components(separatedBy: ";").first?
298 |             .trimmingCharacters(in: .whitespaces) ?? contentType
    |                                      `- error: cannot infer contextual base in reference to member 'whitespaces'
299 |
300 |         if actualBase.lowercased() != expectedType.lowercased() {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: value of type '_' expected to be instance of class or class-constrained type
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: value of type '_' expected to be instance of class or class-constrained type
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: value of type '_' expected to be instance of class or class-constrained type
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:436:23: error: cannot find 'URLRequest' in scope
434 |         from url: URL, byteCount: Int
435 |     ) async throws -> Data {
436 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
437 |         request.setValue(
438 |             "bytes=0-\(byteCount - 1)",
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:442:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
440 |         request.timeoutInterval = timeout
441 |
442 |         let (data, _) = try await session.data(for: request)
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
443 |
444 |         if data.count > byteCount {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// The timeout interval per request, in seconds.
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: value of type '_' expected to be instance of class or class-constrained type
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:290:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
288 |
289 |     private func validateContentType(
290 |         _ response: HTTPURLResponse, entry: URLEntry
    |                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |         `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 45 |
 46 |     /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:221:23: error: cannot find 'URLRequest' in scope
219 |
220 |     private func checkSingleURL(_ entry: URLEntry) async -> [ValidationResult] {
221 |         var request = URLRequest(url: entry.url)
    |                       `- error: cannot find 'URLRequest' in scope
222 |         request.httpMethod = "HEAD"
223 |         request.timeoutInterval = timeout
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:226:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
224 |
225 |         do {
226 |             let (_, response) = try await session.data(for: request)
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
227 |
228 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:293:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
293 |             let contentType = response.value(forHTTPHeaderField: "Content-Type")
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
294 |         else { return [] }
295 |
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:298:38: error: cannot infer contextual base in reference to member 'whitespaces'
296 |         let actualBase =
297 |             contentType.components(separatedBy: ";").first?
298 |             .trimmingCharacters(in: .whitespaces) ?? contentType
    |                                      `- error: cannot infer contextual base in reference to member 'whitespaces'
299 |
300 |         if actualBase.lowercased() != expectedType.lowercased() {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: value of type '_' expected to be instance of class or class-constrained type
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: value of type '_' expected to be instance of class or class-constrained type
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: value of type '_' expected to be instance of class or class-constrained type
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:436:23: error: cannot find 'URLRequest' in scope
434 |         from url: URL, byteCount: Int
435 |     ) async throws -> Data {
436 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
437 |         request.setValue(
438 |             "bytes=0-\(byteCount - 1)",
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:442:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
440 |         request.timeoutInterval = timeout
441 |
442 |         let (data, _) = try await session.data(for: request)
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
443 |
444 |         if data.count > byteCount {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// The timeout interval per request, in seconds.
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: value of type '_' expected to be instance of class or class-constrained type
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:290:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
288 |
289 |     private func validateContentType(
290 |         _ response: HTTPURLResponse, entry: URLEntry
    |                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |         `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 45 |
 46 |     /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:221:23: error: cannot find 'URLRequest' in scope
219 |
220 |     private func checkSingleURL(_ entry: URLEntry) async -> [ValidationResult] {
221 |         var request = URLRequest(url: entry.url)
    |                       `- error: cannot find 'URLRequest' in scope
222 |         request.httpMethod = "HEAD"
223 |         request.timeoutInterval = timeout
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:226:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
224 |
225 |         do {
226 |             let (_, response) = try await session.data(for: request)
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
227 |
228 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:293:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
293 |             let contentType = response.value(forHTTPHeaderField: "Content-Type")
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
294 |         else { return [] }
295 |
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:298:38: error: cannot infer contextual base in reference to member 'whitespaces'
296 |         let actualBase =
297 |             contentType.components(separatedBy: ";").first?
298 |             .trimmingCharacters(in: .whitespaces) ?? contentType
    |                                      `- error: cannot infer contextual base in reference to member 'whitespaces'
299 |
300 |         if actualBase.lowercased() != expectedType.lowercased() {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: value of type '_' expected to be instance of class or class-constrained type
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: value of type '_' expected to be instance of class or class-constrained type
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: value of type '_' expected to be instance of class or class-constrained type
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:436:23: error: cannot find 'URLRequest' in scope
434 |         from url: URL, byteCount: Int
435 |     ) async throws -> Data {
436 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
437 |         request.setValue(
438 |             "bytes=0-\(byteCount - 1)",
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:442:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
440 |         request.timeoutInterval = timeout
441 |
442 |         let (data, _) = try await session.data(for: request)
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
443 |
444 |         if data.count > byteCount {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// The timeout interval per request, in seconds.
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: value of type '_' expected to be instance of class or class-constrained type
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:290:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
288 |
289 |     private func validateContentType(
290 |         _ response: HTTPURLResponse, entry: URLEntry
    |                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |         `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 45 |
 46 |     /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:221:23: error: cannot find 'URLRequest' in scope
219 |
220 |     private func checkSingleURL(_ entry: URLEntry) async -> [ValidationResult] {
221 |         var request = URLRequest(url: entry.url)
    |                       `- error: cannot find 'URLRequest' in scope
222 |         request.httpMethod = "HEAD"
223 |         request.timeoutInterval = timeout
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:226:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
224 |
225 |         do {
226 |             let (_, response) = try await session.data(for: request)
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
227 |
228 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:293:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
293 |             let contentType = response.value(forHTTPHeaderField: "Content-Type")
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
294 |         else { return [] }
295 |
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:298:38: error: cannot infer contextual base in reference to member 'whitespaces'
296 |         let actualBase =
297 |             contentType.components(separatedBy: ";").first?
298 |             .trimmingCharacters(in: .whitespaces) ?? contentType
    |                                      `- error: cannot infer contextual base in reference to member 'whitespaces'
299 |
300 |         if actualBase.lowercased() != expectedType.lowercased() {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: value of type '_' expected to be instance of class or class-constrained type
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: value of type '_' expected to be instance of class or class-constrained type
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: value of type '_' expected to be instance of class or class-constrained type
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:436:23: error: cannot find 'URLRequest' in scope
434 |         from url: URL, byteCount: Int
435 |     ) async throws -> Data {
436 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
437 |         request.setValue(
438 |             "bytes=0-\(byteCount - 1)",
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:442:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
440 |         request.timeoutInterval = timeout
441 |
442 |         let (data, _) = try await session.data(for: request)
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
443 |
444 |         if data.count > byteCount {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// The timeout interval per request, in seconds.
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: value of type '_' expected to be instance of class or class-constrained type
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:290:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
288 |
289 |     private func validateContentType(
290 |         _ response: HTTPURLResponse, entry: URLEntry
    |                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |         `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 45 |
 46 |     /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:221:23: error: cannot find 'URLRequest' in scope
219 |
220 |     private func checkSingleURL(_ entry: URLEntry) async -> [ValidationResult] {
221 |         var request = URLRequest(url: entry.url)
    |                       `- error: cannot find 'URLRequest' in scope
222 |         request.httpMethod = "HEAD"
223 |         request.timeoutInterval = timeout
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:226:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
224 |
225 |         do {
226 |             let (_, response) = try await session.data(for: request)
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
227 |
228 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:293:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
293 |             let contentType = response.value(forHTTPHeaderField: "Content-Type")
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
294 |         else { return [] }
295 |
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:298:38: error: cannot infer contextual base in reference to member 'whitespaces'
296 |         let actualBase =
297 |             contentType.components(separatedBy: ";").first?
298 |             .trimmingCharacters(in: .whitespaces) ?? contentType
    |                                      `- error: cannot infer contextual base in reference to member 'whitespaces'
299 |
300 |         if actualBase.lowercased() != expectedType.lowercased() {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: value of type '_' expected to be instance of class or class-constrained type
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: value of type '_' expected to be instance of class or class-constrained type
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: value of type '_' expected to be instance of class or class-constrained type
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:436:23: error: cannot find 'URLRequest' in scope
434 |         from url: URL, byteCount: Int
435 |     ) async throws -> Data {
436 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
437 |         request.setValue(
438 |             "bytes=0-\(byteCount - 1)",
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:442:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
440 |         request.timeoutInterval = timeout
441 |
442 |         let (data, _) = try await session.data(for: request)
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
443 |
444 |         if data.count > byteCount {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// The timeout interval per request, in seconds.
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: value of type '_' expected to be instance of class or class-constrained type
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:290:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
288 |
289 |     private func validateContentType(
290 |         _ response: HTTPURLResponse, entry: URLEntry
    |                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |         `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 45 |
 46 |     /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:221:23: error: cannot find 'URLRequest' in scope
219 |
220 |     private func checkSingleURL(_ entry: URLEntry) async -> [ValidationResult] {
221 |         var request = URLRequest(url: entry.url)
    |                       `- error: cannot find 'URLRequest' in scope
222 |         request.httpMethod = "HEAD"
223 |         request.timeoutInterval = timeout
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:226:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
224 |
225 |         do {
226 |             let (_, response) = try await session.data(for: request)
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
227 |
228 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:293:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
293 |             let contentType = response.value(forHTTPHeaderField: "Content-Type")
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
294 |         else { return [] }
295 |
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:298:38: error: cannot infer contextual base in reference to member 'whitespaces'
296 |         let actualBase =
297 |             contentType.components(separatedBy: ";").first?
298 |             .trimmingCharacters(in: .whitespaces) ?? contentType
    |                                      `- error: cannot infer contextual base in reference to member 'whitespaces'
299 |
300 |         if actualBase.lowercased() != expectedType.lowercased() {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: value of type '_' expected to be instance of class or class-constrained type
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: value of type '_' expected to be instance of class or class-constrained type
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: value of type '_' expected to be instance of class or class-constrained type
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:436:23: error: cannot find 'URLRequest' in scope
434 |         from url: URL, byteCount: Int
435 |     ) async throws -> Data {
436 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
437 |         request.setValue(
438 |             "bytes=0-\(byteCount - 1)",
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:442:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
440 |         request.timeoutInterval = timeout
441 |
442 |         let (data, _) = try await session.data(for: request)
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
443 |
444 |         if data.count > byteCount {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// The timeout interval per request, in seconds.
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: value of type '_' expected to be instance of class or class-constrained type
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:290:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
288 |
289 |     private func validateContentType(
290 |         _ response: HTTPURLResponse, entry: URLEntry
    |                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |         `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 45 |
 46 |     /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:221:23: error: cannot find 'URLRequest' in scope
219 |
220 |     private func checkSingleURL(_ entry: URLEntry) async -> [ValidationResult] {
221 |         var request = URLRequest(url: entry.url)
    |                       `- error: cannot find 'URLRequest' in scope
222 |         request.httpMethod = "HEAD"
223 |         request.timeoutInterval = timeout
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:226:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
224 |
225 |         do {
226 |             let (_, response) = try await session.data(for: request)
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
227 |
228 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:293:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
293 |             let contentType = response.value(forHTTPHeaderField: "Content-Type")
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
294 |         else { return [] }
295 |
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:298:38: error: cannot infer contextual base in reference to member 'whitespaces'
296 |         let actualBase =
297 |             contentType.components(separatedBy: ";").first?
298 |             .trimmingCharacters(in: .whitespaces) ?? contentType
    |                                      `- error: cannot infer contextual base in reference to member 'whitespaces'
299 |
300 |         if actualBase.lowercased() != expectedType.lowercased() {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: value of type '_' expected to be instance of class or class-constrained type
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: value of type '_' expected to be instance of class or class-constrained type
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: value of type '_' expected to be instance of class or class-constrained type
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:436:23: error: cannot find 'URLRequest' in scope
434 |         from url: URL, byteCount: Int
435 |     ) async throws -> Data {
436 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
437 |         request.setValue(
438 |             "bytes=0-\(byteCount - 1)",
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:442:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
440 |         request.timeoutInterval = timeout
441 |
442 |         let (data, _) = try await session.data(for: request)
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
443 |
444 |         if data.count > byteCount {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// The timeout interval per request, in seconds.
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: value of type '_' expected to be instance of class or class-constrained type
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:290:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
288 |
289 |     private func validateContentType(
290 |         _ response: HTTPURLResponse, entry: URLEntry
    |                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |         `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 45 |
 46 |     /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:221:23: error: cannot find 'URLRequest' in scope
219 |
220 |     private func checkSingleURL(_ entry: URLEntry) async -> [ValidationResult] {
221 |         var request = URLRequest(url: entry.url)
    |                       `- error: cannot find 'URLRequest' in scope
222 |         request.httpMethod = "HEAD"
223 |         request.timeoutInterval = timeout
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:226:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
224 |
225 |         do {
226 |             let (_, response) = try await session.data(for: request)
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
227 |
228 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:293:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
293 |             let contentType = response.value(forHTTPHeaderField: "Content-Type")
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
294 |         else { return [] }
295 |
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:298:38: error: cannot infer contextual base in reference to member 'whitespaces'
296 |         let actualBase =
297 |             contentType.components(separatedBy: ";").first?
298 |             .trimmingCharacters(in: .whitespaces) ?? contentType
    |                                      `- error: cannot infer contextual base in reference to member 'whitespaces'
299 |
300 |         if actualBase.lowercased() != expectedType.lowercased() {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: value of type '_' expected to be instance of class or class-constrained type
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: value of type '_' expected to be instance of class or class-constrained type
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: value of type '_' expected to be instance of class or class-constrained type
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:436:23: error: cannot find 'URLRequest' in scope
434 |         from url: URL, byteCount: Int
435 |     ) async throws -> Data {
436 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
437 |         request.setValue(
438 |             "bytes=0-\(byteCount - 1)",
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:442:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
440 |         request.timeoutInterval = timeout
441 |
442 |         let (data, _) = try await session.data(for: request)
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
443 |
444 |         if data.count > byteCount {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// The timeout interval per request, in seconds.
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: value of type '_' expected to be instance of class or class-constrained type
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:290:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
288 |
289 |     private func validateContentType(
290 |         _ response: HTTPURLResponse, entry: URLEntry
    |                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |         `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 45 |
 46 |     /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:221:23: error: cannot find 'URLRequest' in scope
219 |
220 |     private func checkSingleURL(_ entry: URLEntry) async -> [ValidationResult] {
221 |         var request = URLRequest(url: entry.url)
    |                       `- error: cannot find 'URLRequest' in scope
222 |         request.httpMethod = "HEAD"
223 |         request.timeoutInterval = timeout
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:226:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
224 |
225 |         do {
226 |             let (_, response) = try await session.data(for: request)
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
227 |
228 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:293:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
293 |             let contentType = response.value(forHTTPHeaderField: "Content-Type")
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
294 |         else { return [] }
295 |
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:298:38: error: cannot infer contextual base in reference to member 'whitespaces'
296 |         let actualBase =
297 |             contentType.components(separatedBy: ";").first?
298 |             .trimmingCharacters(in: .whitespaces) ?? contentType
    |                                      `- error: cannot infer contextual base in reference to member 'whitespaces'
299 |
300 |         if actualBase.lowercased() != expectedType.lowercased() {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: value of type '_' expected to be instance of class or class-constrained type
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: value of type '_' expected to be instance of class or class-constrained type
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: value of type '_' expected to be instance of class or class-constrained type
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:436:23: error: cannot find 'URLRequest' in scope
434 |         from url: URL, byteCount: Int
435 |     ) async throws -> Data {
436 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
437 |         request.setValue(
438 |             "bytes=0-\(byteCount - 1)",
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:442:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
440 |         request.timeoutInterval = timeout
441 |
442 |         let (data, _) = try await session.data(for: request)
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
443 |
444 |         if data.count > byteCount {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// The timeout interval per request, in seconds.
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: value of type '_' expected to be instance of class or class-constrained type
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:290:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
288 |
289 |     private func validateContentType(
290 |         _ response: HTTPURLResponse, entry: URLEntry
    |                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |         `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 45 |
 46 |     /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:221:23: error: cannot find 'URLRequest' in scope
219 |
220 |     private func checkSingleURL(_ entry: URLEntry) async -> [ValidationResult] {
221 |         var request = URLRequest(url: entry.url)
    |                       `- error: cannot find 'URLRequest' in scope
222 |         request.httpMethod = "HEAD"
223 |         request.timeoutInterval = timeout
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:226:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
224 |
225 |         do {
226 |             let (_, response) = try await session.data(for: request)
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
227 |
228 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:293:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
293 |             let contentType = response.value(forHTTPHeaderField: "Content-Type")
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
294 |         else { return [] }
295 |
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:298:38: error: cannot infer contextual base in reference to member 'whitespaces'
296 |         let actualBase =
297 |             contentType.components(separatedBy: ";").first?
298 |             .trimmingCharacters(in: .whitespaces) ?? contentType
    |                                      `- error: cannot infer contextual base in reference to member 'whitespaces'
299 |
300 |         if actualBase.lowercased() != expectedType.lowercased() {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: value of type '_' expected to be instance of class or class-constrained type
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: value of type '_' expected to be instance of class or class-constrained type
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: value of type '_' expected to be instance of class or class-constrained type
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:436:23: error: cannot find 'URLRequest' in scope
434 |         from url: URL, byteCount: Int
435 |     ) async throws -> Data {
436 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
437 |         request.setValue(
438 |             "bytes=0-\(byteCount - 1)",
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:442:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
440 |         request.timeoutInterval = timeout
441 |
442 |         let (data, _) = try await session.data(for: request)
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
443 |
444 |         if data.count > byteCount {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// The timeout interval per request, in seconds.
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: value of type '_' expected to be instance of class or class-constrained type
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:290:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
288 |
289 |     private func validateContentType(
290 |         _ response: HTTPURLResponse, entry: URLEntry
    |                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |         `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 45 |
 46 |     /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:221:23: error: cannot find 'URLRequest' in scope
219 |
220 |     private func checkSingleURL(_ entry: URLEntry) async -> [ValidationResult] {
221 |         var request = URLRequest(url: entry.url)
    |                       `- error: cannot find 'URLRequest' in scope
222 |         request.httpMethod = "HEAD"
223 |         request.timeoutInterval = timeout
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:226:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
224 |
225 |         do {
226 |             let (_, response) = try await session.data(for: request)
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
227 |
228 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:293:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
293 |             let contentType = response.value(forHTTPHeaderField: "Content-Type")
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
294 |         else { return [] }
295 |
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:298:38: error: cannot infer contextual base in reference to member 'whitespaces'
296 |         let actualBase =
297 |             contentType.components(separatedBy: ";").first?
298 |             .trimmingCharacters(in: .whitespaces) ?? contentType
    |                                      `- error: cannot infer contextual base in reference to member 'whitespaces'
299 |
300 |         if actualBase.lowercased() != expectedType.lowercased() {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: value of type '_' expected to be instance of class or class-constrained type
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: value of type '_' expected to be instance of class or class-constrained type
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: value of type '_' expected to be instance of class or class-constrained type
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
[458/1486] Compiling DequeModule Deque+Extras.swift
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:436:23: error: cannot find 'URLRequest' in scope
434 |         from url: URL, byteCount: Int
435 |     ) async throws -> Data {
436 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
437 |         request.setValue(
438 |             "bytes=0-\(byteCount - 1)",
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:442:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
440 |         request.timeoutInterval = timeout
441 |
442 |         let (data, _) = try await session.data(for: request)
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
443 |
444 |         if data.count > byteCount {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// The timeout interval per request, in seconds.
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: value of type '_' expected to be instance of class or class-constrained type
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:290:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
288 |
289 |     private func validateContentType(
290 |         _ response: HTTPURLResponse, entry: URLEntry
    |                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |         `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 45 |
 46 |     /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:221:23: error: cannot find 'URLRequest' in scope
219 |
220 |     private func checkSingleURL(_ entry: URLEntry) async -> [ValidationResult] {
221 |         var request = URLRequest(url: entry.url)
    |                       `- error: cannot find 'URLRequest' in scope
222 |         request.httpMethod = "HEAD"
223 |         request.timeoutInterval = timeout
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:226:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
224 |
225 |         do {
226 |             let (_, response) = try await session.data(for: request)
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
227 |
228 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:293:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
293 |             let contentType = response.value(forHTTPHeaderField: "Content-Type")
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
294 |         else { return [] }
295 |
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:298:38: error: cannot infer contextual base in reference to member 'whitespaces'
296 |         let actualBase =
297 |             contentType.components(separatedBy: ";").first?
298 |             .trimmingCharacters(in: .whitespaces) ?? contentType
    |                                      `- error: cannot infer contextual base in reference to member 'whitespaces'
299 |
300 |         if actualBase.lowercased() != expectedType.lowercased() {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: value of type '_' expected to be instance of class or class-constrained type
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: value of type '_' expected to be instance of class or class-constrained type
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: value of type '_' expected to be instance of class or class-constrained type
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
[459/1486] Compiling DequeModule Deque+Hashable.swift
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:436:23: error: cannot find 'URLRequest' in scope
434 |         from url: URL, byteCount: Int
435 |     ) async throws -> Data {
436 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
437 |         request.setValue(
438 |             "bytes=0-\(byteCount - 1)",
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:442:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
440 |         request.timeoutInterval = timeout
441 |
442 |         let (data, _) = try await session.data(for: request)
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
443 |
444 |         if data.count > byteCount {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// The timeout interval per request, in seconds.
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: value of type '_' expected to be instance of class or class-constrained type
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:290:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
288 |
289 |     private func validateContentType(
290 |         _ response: HTTPURLResponse, entry: URLEntry
    |                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |         `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 45 |
 46 |     /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:221:23: error: cannot find 'URLRequest' in scope
219 |
220 |     private func checkSingleURL(_ entry: URLEntry) async -> [ValidationResult] {
221 |         var request = URLRequest(url: entry.url)
    |                       `- error: cannot find 'URLRequest' in scope
222 |         request.httpMethod = "HEAD"
223 |         request.timeoutInterval = timeout
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:226:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
224 |
225 |         do {
226 |             let (_, response) = try await session.data(for: request)
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
227 |
228 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:293:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
293 |             let contentType = response.value(forHTTPHeaderField: "Content-Type")
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
294 |         else { return [] }
295 |
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:298:38: error: cannot infer contextual base in reference to member 'whitespaces'
296 |         let actualBase =
297 |             contentType.components(separatedBy: ";").first?
298 |             .trimmingCharacters(in: .whitespaces) ?? contentType
    |                                      `- error: cannot infer contextual base in reference to member 'whitespaces'
299 |
300 |         if actualBase.lowercased() != expectedType.lowercased() {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: value of type '_' expected to be instance of class or class-constrained type
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: value of type '_' expected to be instance of class or class-constrained type
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: value of type '_' expected to be instance of class or class-constrained type
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
[460/1486] Compiling DequeModule Deque+Testing.swift
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:436:23: error: cannot find 'URLRequest' in scope
434 |         from url: URL, byteCount: Int
435 |     ) async throws -> Data {
436 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
437 |         request.setValue(
438 |             "bytes=0-\(byteCount - 1)",
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator+MediaVerification.swift:442:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
440 |         request.timeoutInterval = timeout
441 |
442 |         let (data, _) = try await session.data(for: request)
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
443 |
444 |         if data.count > byteCount {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// The timeout interval per request, in seconds.
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: value of type '_' expected to be instance of class or class-constrained type
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:59:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |     ///   - maxConcurrency: Maximum concurrent requests. Defaults to `5`.
 58 |     public init(
 59 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 60 |         timeout: TimeInterval = 10,
 61 |         maxConcurrency: Int = 5
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:290:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
288 |
289 |     private func validateContentType(
290 |         _ response: HTTPURLResponse, entry: URLEntry
    |                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 42 |
 43 |     /// The URL session used for HEAD requests.
 44 |     let session: URLSession
    |         `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
 45 |
 46 |     /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:221:23: error: cannot find 'URLRequest' in scope
219 |
220 |     private func checkSingleURL(_ entry: URLEntry) async -> [ValidationResult] {
221 |         var request = URLRequest(url: entry.url)
    |                       `- error: cannot find 'URLRequest' in scope
222 |         request.httpMethod = "HEAD"
223 |         request.timeoutInterval = timeout
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:226:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
224 |
225 |         do {
226 |             let (_, response) = try await session.data(for: request)
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
227 |
228 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:293:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
291 |     ) -> [ValidationResult] {
292 |         guard let expectedType = entry.expectedType,
293 |             let contentType = response.value(forHTTPHeaderField: "Content-Type")
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
294 |         else { return [] }
295 |
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:298:38: error: cannot infer contextual base in reference to member 'whitespaces'
296 |         let actualBase =
297 |             contentType.components(separatedBy: ";").first?
298 |             .trimmingCharacters(in: .whitespaces) ?? contentType
    |                                      `- error: cannot infer contextual base in reference to member 'whitespaces'
299 |
300 |         if actualBase.lowercased() != expectedType.lowercased() {
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:154:32: error: value of type '_' expected to be instance of class or class-constrained type
152 |     public func validateNetwork(
153 |         _ feed: PodcastFeed,
154 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
155 |     ) async throws -> [ValidationResult] {
156 |         try await NetworkValidator(session: session).checkAllURLs(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: value of type '_' expected to be instance of class or class-constrained type
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:172:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
170 |     public func verifyMediaTypes(
171 |         _ feed: PodcastFeed,
172 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 |     ) async throws -> [ValidationResult] {
174 |         try await NetworkValidator(session: session).verifyMediaTypes(feed)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
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/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: value of type '_' expected to be instance of class or class-constrained type
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Engine/PodcastFeedEngine.swift:191:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 |         _ feed: PodcastFeed,
190 |         for platform: ValidationPlatform,
191 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 |     ) async throws -> [ValidationResult] {
193 |         try await NetworkValidator(session: session)
[469/1486] Compiling DequeModule Deque._UnsafeHandle.swift
[470/1486] Compiling DequeModule Deque.swift
[492/1486] Compiling DequeModule UniqueDeque+Replacements.swift
[493/1486] Compiling DequeModule UniqueDeque.swift
[494/1486] Compiling DequeModule _DequeSlot.swift
[495/1486] Compiling DequeModule _UnsafeDequeHandle.swift
[501/1486] Compiling DequeModule Deque._Storage.swift
[506/1486] Compiling OrderedCollections OrderedSet+Sendable.swift
[507/1486] Compiling OrderedCollections OrderedSet+SubSequence.swift
[508/1486] Compiling OrderedCollections OrderedSet+Testing.swift
[509/1486] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[510/1486] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[511/1486] Compiling OrderedCollections OrderedSet.swift
[512/1486] Compiling OrderedCollections _UnsafeBitset.swift
[513/1486] Emitting module OrderedCollections
[546/1487] Emitting module _RopeModule
[589/1487] Compiling tls_method.cc
[590/1487] Compiling tls_record.cc
[607/1487] Compiling PodcastFeedMaker FeedParserDelegate+RSS.swift
[608/1487] Compiling PodcastFeedMaker FeedParserDelegate+XML.swift
[609/1487] Compiling PodcastFeedMaker FeedParserDelegate.swift
[610/1487] Compiling PodcastFeedMaker ParserError.swift
[611/1487] Compiling PodcastFeedMaker StreamingFeedParser.swift
[612/1487] Compiling PodcastFeedMaker PodcastFeedMaker.swift
[613/1487] Compiling PodcastFeedMaker AdvancedTemplate.swift
[614/1487] Compiling PodcastFeedMaker BasicTemplate.swift
[615/1487] Compiling PodcastFeedMaker ComposedTemplate.swift
[616/1487] Compiling PodcastFeedMaker ExpertTemplate.swift
[617/1487] Compiling PodcastFeedMaker ExpertiseLevel.swift
[618/1487] Compiling PodcastFeedMaker FeedTag.swift
[619/1487] Compiling PodcastFeedMaker FeedTemplate.swift
[620/1487] Compiling PodcastFeedMaker PlatformPreset.swift
[621/1487] Compiling _RopeModule Optional Utilities.swift
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Parser/FeedParser.swift:96:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 94 |         } else {
 95 |             do {
 96 |                 let (fetchedData, _) = try await URLSession.shared.data(
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 97 |                     from: url
 98 |                 )
[622/1487] Compiling _RopeModule String Utilities.swift
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Parser/FeedParser.swift:96:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 94 |         } else {
 95 |             do {
 96 |                 let (fetchedData, _) = try await URLSession.shared.data(
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 97 |                     from: url
 98 |                 )
[623/1487] Compiling _RopeModule String.Index+ABI.swift
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Parser/FeedParser.swift:96:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 94 |         } else {
 95 |             do {
 96 |                 let (fetchedData, _) = try await URLSession.shared.data(
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 97 |                     from: url
 98 |                 )
[624/1487] Compiling _RopeModule _CharacterRecognizer.swift
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Parser/FeedParser.swift:96:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 94 |         } else {
 95 |             do {
 96 |                 let (fetchedData, _) = try await URLSession.shared.data(
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 97 |                     from: url
 98 |                 )
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Parser/FeedParser.swift:96:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 94 |         } else {
 95 |             do {
 96 |                 let (fetchedData, _) = try await URLSession.shared.data(
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 97 |                     from: url
 98 |                 )
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Parser/FeedParser.swift:96:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 94 |         } else {
 95 |             do {
 96 |                 let (fetchedData, _) = try await URLSession.shared.data(
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 97 |                     from: url
 98 |                 )
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Parser/FeedParser.swift:96:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 94 |         } else {
 95 |             do {
 96 |                 let (fetchedData, _) = try await URLSession.shared.data(
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 97 |                     from: url
 98 |                 )
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Parser/FeedParser.swift:96:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 94 |         } else {
 95 |             do {
 96 |                 let (fetchedData, _) = try await URLSession.shared.data(
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 97 |                     from: url
 98 |                 )
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Parser/FeedParser.swift:96:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 94 |         } else {
 95 |             do {
 96 |                 let (fetchedData, _) = try await URLSession.shared.data(
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 97 |                     from: url
 98 |                 )
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Parser/FeedParser.swift:96:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 94 |         } else {
 95 |             do {
 96 |                 let (fetchedData, _) = try await URLSession.shared.data(
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 97 |                     from: url
 98 |                 )
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Parser/FeedParser.swift:96:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 94 |         } else {
 95 |             do {
 96 |                 let (fetchedData, _) = try await URLSession.shared.data(
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 97 |                     from: url
 98 |                 )
[632/1487] Compiling PodcastFeedMaker FeedParser.swift
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Parser/FeedParser.swift:96:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 94 |         } else {
 95 |             do {
 96 |                 let (fetchedData, _) = try await URLSession.shared.data(
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 97 |                     from: url
 98 |                 )
[633/1487] Compiling PodcastFeedMaker FeedParserDelegate+Helpers.swift
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Parser/FeedParser.swift:96:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 94 |         } else {
 95 |             do {
 96 |                 let (fetchedData, _) = try await URLSession.shared.data(
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 97 |                     from: url
 98 |                 )
[634/1487] Compiling PodcastFeedMaker FeedParserDelegate+Podcast.swift
/host/spi-builder-workspace/.build/checkouts/podcast-feed-maker/Sources/PodcastFeedMaker/Parser/FeedParser.swift:96:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 94 |         } else {
 95 |             do {
 96 |                 let (fetchedData, _) = try await URLSession.shared.data(
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 97 |                     from: url
 98 |                 )
[644/1487] Compiling _RopeModule Rope+Join.swift
[645/1487] Compiling _RopeModule Rope+MutatingForEach.swift
[646/1487] Compiling _RopeModule Rope+Remove.swift
[647/1487] Compiling _RopeModule Rope+RemoveSubrange.swift
[648/1487] Compiling _RopeModule Rope+Split.swift
[648/1487] Compiling tls13_server.cc
[659/1487] Compiling PodcastFeedMaker StandardTemplate.swift
[660/1487] Compiling PodcastFeedMaker TemplateComposition.swift
[661/1487] Compiling PodcastFeedMaker TemplateFeedFactory.swift
[662/1487] Compiling PodcastFeedMaker TemplateValidationResult.swift
[663/1487] Compiling PodcastFeedMaker TemplateValidator.swift
[664/1487] Compiling PodcastFeedMaker AmazonValidation.swift
[665/1487] Compiling PodcastFeedMaker AppleValidation.swift
[666/1487] Compiling PodcastFeedMaker CrossCuttingValidation.swift
[667/1487] Compiling PodcastFeedMaker FeedValidator.swift
[668/1487] Compiling PodcastFeedMaker PSP1Validation.swift
[669/1487] Compiling PodcastFeedMaker PodcastIndexValidation.swift
[670/1487] Compiling PodcastFeedMaker SpotifyValidation.swift
[671/1487] Compiling PodcastFeedMaker ValidationResult.swift
[672/1487] Compiling PodcastFeedMaker ValidationRule.swift
[677/1487] Compiling DequeModule _UnsafeDequeSegments.swift
[683/1488] Compiling tls13_enc.cc
[685/1488] Emitting module DequeModule
[686/1488] Emitting module HashTreeCollections
[687/1489] Compiling tls13_both.cc
[688/1489] Compiling t1_enc.cc
[689/1489] Compiling tls13_client.cc
[720/1489] Compiling ssl_transcript.cc
[720/1489] Compiling ssl_privkey.cc
[720/1489] Compiling ssl_stat.cc
[720/1489] Compiling ssl_session.cc
[720/1489] Compiling ssl_x509.cc
[720/1489] Compiling ssl_versions.cc
BUILD FAILURE 6.2 wasm