Build Information
Failed to build podcast-feed-maker-vapor, reference 0.3.0 (9d15ab), with Swift 6.3 for Wasm on 18 Apr 2026 17:03:19 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
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: 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: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: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 '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 '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: 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: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: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: 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: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: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: 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/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/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: 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: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: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 '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 '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: 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: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: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: 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: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: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: 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/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)
[167/1096] Compiling PodcastFeedMaker NetworkValidator.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: 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: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: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 '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 '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: 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: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: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: 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: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: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: 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/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)
[168/1096] Compiling PodcastFeedMaker PodcastFeedEngine.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: 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: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: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 '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 '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: 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: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: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: 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: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: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: 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/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)
[169/1096] Compiling PodcastFeedMaker FeedGenerator+Podcast.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: 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: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: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 '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 '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: 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: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: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: 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: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: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: 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/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)
[170/1096] Compiling PodcastFeedMaker FeedGenerator+RSS.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: 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: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: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 '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 '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: 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: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: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: 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: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: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: 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/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)
[171/1096] Compiling PodcastFeedMaker FeedGenerator.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: 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: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: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 '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 '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: 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: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: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: 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: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: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: 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/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)
[172/1096] Compiling PodcastFeedMaker GeneratorError.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: 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: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: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 '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 '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: 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: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: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: 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: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: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: 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/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)
[173/1096] Compiling PodcastFeedMaker NamespaceResolver.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: 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: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: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 '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 '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: 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: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: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: 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: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: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: 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/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)
[174/1096] Compiling PodcastFeedMaker StreamingFeedGenerator.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: 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: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: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 '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 '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: 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: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: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: 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: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: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: 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/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)
[175/1096] Compiling PodcastFeedMaker XMLBuilder.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: 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: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: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 '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 '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: 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: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: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: 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: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: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: 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/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)
[176/1096] Compiling PodcastFeedMaker AlternateEnclosure.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: 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: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: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 '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 '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: 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: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: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: 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: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: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: 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/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)
[177/1096] Compiling PodcastFeedMaker AtomLink.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: 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: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: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 '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 '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: 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: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: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: 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: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: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: 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/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)
[178/1096] Compiling PodcastFeedMaker PodcastFeed.swift
[179/1096] Compiling PodcastFeedMaker PodcastGuid.swift
[180/1096] Compiling PodcastFeedMaker PodcastImage.swift
[181/1096] Compiling PodcastFeedMaker PodcastImages.swift
[182/1096] Compiling PodcastFeedMaker PodcastIntegrity.swift
[183/1096] Compiling PodcastFeedMaker PodcastLicense.swift
[184/1096] Compiling PodcastFeedMaker PodcastLiveItem.swift
[185/1096] Compiling PodcastFeedMaker PodcastLocation.swift
[186/1096] Compiling PodcastFeedMaker PodcastMedium.swift
[187/1096] Compiling PodcastFeedMaker PodcastNamespace.swift
[188/1096] Compiling PodcastFeedMaker PodcastPerson.swift
[189/1096] Compiling PodcastFeedMaker PodcastPublisher.swift
[190/1096] Compiling PodcastFeedMaker PodcastSeason.swift
[191/1096] Compiling PodcastFeedMaker PodcastSource.swift
[192/1096] Compiling PodcastFeedMaker PodcastTxt.swift
[192/1096] Compiling CVaporBcrypt blf.c
[194/1096] Emitting module UnixSignals
[195/1096] Compiling Tracing TracingTime.swift
[196/1096] Compiling UnixSignals UnixSignal.swift
[197/1096] Compiling UnixSignals UnixSignalsSequence.swift
[197/1097] Compiling CVaporBcrypt bcrypt.c
[199/1097] Compiling Tracing Tracer.swift
[200/1097] Compiling Tracing TracerProtocol.swift
[201/1097] Compiling InternalCollectionsUtilities Integer rank.swift
[202/1097] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[205/1098] Compiling CSystem shims.c
[207/1098] Compiling CNIOWindows shim.c
[209/1098] Compiling Logging Logging.swift
[210/1098] Compiling Logging LogHandler.swift
[212/1099] Compiling PodcastFeedMaker PodcastValue.swift
[213/1099] Compiling PodcastFeedMaker PodloveChapter.swift
[214/1099] Compiling PodcastFeedMaker Podroll.swift
[215/1099] Compiling PodcastFeedMaker RSSCategory.swift
[216/1099] Compiling PodcastFeedMaker RSSCloud.swift
[217/1099] Compiling PodcastFeedMaker RSSImage.swift
[218/1099] Compiling PodcastFeedMaker RSSSource.swift
[219/1099] Compiling PodcastFeedMaker RSSTextInput.swift
[220/1099] Compiling PodcastFeedMaker RemoteItem.swift
[221/1099] Compiling PodcastFeedMaker SkipSchedule.swift
[222/1099] Compiling PodcastFeedMaker SocialInteract.swift
[223/1099] Compiling PodcastFeedMaker Soundbite.swift
[224/1099] Compiling PodcastFeedMaker Trailer.swift
[225/1099] Compiling PodcastFeedMaker Transcript.swift
[226/1099] Compiling PodcastFeedMaker UnknownElement.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 | )
[227/1099] Compiling PodcastFeedMaker UpdateFrequency.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 | )
[228/1099] Compiling PodcastFeedMaker ValidationPlatform.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 | )
[229/1099] Compiling PodcastFeedMaker OPMLDocument.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 | )
[230/1099] Compiling PodcastFeedMaker OPMLFeedConverter.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 | )
[231/1099] Compiling PodcastFeedMaker OPMLGenerator.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 | )
[232/1099] Compiling PodcastFeedMaker OPMLHead.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 | )
[233/1099] Compiling PodcastFeedMaker OPMLOutline.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 | )
[234/1099] Compiling PodcastFeedMaker OPMLParser.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 | )
[235/1099] Compiling PodcastFeedMaker OPMLValidator.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 | )
[236/1099] Compiling PodcastFeedMaker DateParser.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 | )
[237/1099] 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 | )
[238/1099] 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 | )
[239/1099] 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 | )
[240/1099] Compiling PodcastFeedMaker FeedParserDelegate+RSS.swift
[241/1099] Compiling PodcastFeedMaker FeedParserDelegate+XML.swift
[242/1099] Compiling PodcastFeedMaker FeedParserDelegate.swift
[243/1099] Compiling PodcastFeedMaker ParserError.swift
[244/1099] Compiling PodcastFeedMaker StreamingFeedParser.swift
[245/1099] Compiling PodcastFeedMaker PodcastFeedMaker.swift
[246/1099] Compiling PodcastFeedMaker AdvancedTemplate.swift
[247/1099] Compiling PodcastFeedMaker BasicTemplate.swift
[248/1099] Compiling PodcastFeedMaker ComposedTemplate.swift
[249/1099] Compiling PodcastFeedMaker ExpertTemplate.swift
[250/1099] Compiling PodcastFeedMaker ExpertiseLevel.swift
[251/1099] Compiling PodcastFeedMaker FeedTag.swift
[252/1099] Compiling PodcastFeedMaker FeedTemplate.swift
[253/1099] Compiling PodcastFeedMaker PlatformPreset.swift
[253/1099] Compiling CNIOWindows WSAStartup.c
[256/1099] Compiling CoreMetrics Metrics.swift
[257/1099] Compiling CoreMetrics MappingMetricsFactory.swift
[257/1101] Compiling CNIOWASI CNIOWASI.c
[259/1110] Compiling CNIOSHA1 c_nio_sha1.c
[261/1126] Compiling Tracing TracerProtocol+Legacy.swift
[262/1240] Emitting module Metrics
[263/1240] Compiling Metrics Metrics.swift
[264/1265] Compiling _RopeModule BigString+Chunk+Description.swift
[265/1265] Compiling _RopeModule BigString+Chunk+Index.swift
[266/1265] Compiling _RopeModule BigString+Chunk+RopeElement.swift
[267/1265] Compiling _RopeModule BigString+Chunk+Splitting.swift
[269/1269] Compiling PodcastFeedMaker StandardTemplate.swift
[270/1269] Compiling PodcastFeedMaker TemplateComposition.swift
[271/1269] Compiling PodcastFeedMaker TemplateFeedFactory.swift
[272/1269] Compiling PodcastFeedMaker TemplateValidationResult.swift
[273/1269] Compiling PodcastFeedMaker TemplateValidator.swift
[274/1269] Compiling PodcastFeedMaker AmazonValidation.swift
[275/1269] Compiling PodcastFeedMaker AppleValidation.swift
[276/1269] Compiling PodcastFeedMaker CrossCuttingValidation.swift
[277/1269] Compiling PodcastFeedMaker FeedValidator.swift
[278/1269] Compiling PodcastFeedMaker PSP1Validation.swift
[279/1269] Compiling PodcastFeedMaker PodcastIndexValidation.swift
[280/1269] Compiling PodcastFeedMaker SpotifyValidation.swift
[281/1269] Compiling PodcastFeedMaker ValidationResult.swift
[282/1269] Compiling PodcastFeedMaker ValidationRule.swift
[283/1276] Compiling Tracing SpanProtocol.swift
[284/1276] Compiling Tracing NoOpTracer.swift
[285/1277] Compiling HeapModule Heap+ExpressibleByArrayLiteral.swift
[287/1277] Compiling _RopeModule BigString+BidirectionalCollection.swift
[288/1277] Compiling _RopeModule BigString+Comparable.swift
[289/1277] Compiling _RopeModule BigString+CustomDebugStringConvertible.swift
[290/1277] Compiling _RopeModule BigString+CustomStringConvertible.swift
[291/1277] Compiling HeapModule Heap+Descriptions.swift
[292/1277] Compiling SystemPackage Util.swift
[293/1277] Compiling SystemPackage UtilConsumers.swift
[294/1277] Compiling _RopeModule Rope.swift
[295/1277] Compiling _RopeModule RopeElement.swift
[296/1277] Compiling _RopeModule RopeMetric.swift
[297/1277] Compiling _RopeModule RopeSummary.swift
[298/1277] Compiling _RopeModule _RopeItem.swift
[299/1356] Compiling HeapModule Heap.swift
[300/1356] Compiling HeapModule _HeapNode.swift
[301/1360] Compiling HeapModule Heap+Invariants.swift
[302/1360] Compiling HeapModule Heap+UnsafeHandle.swift
[303/1360] Compiling HashTreeCollections _UnsafePath.swift
[304/1360] Compiling HashTreeCollections TreeDictionary+Codable.swift
[305/1360] Compiling HashTreeCollections TreeDictionary+Collection.swift
[306/1360] Compiling HashTreeCollections TreeDictionary+CustomReflectable.swift
[307/1360] Compiling HashTreeCollections TreeDictionary+Debugging.swift
[308/1360] Compiling HashTreeCollections TreeDictionary+Descriptions.swift
[309/1360] Compiling HashTreeCollections _HashNode+Primitive Removals.swift
[310/1360] Compiling HashTreeCollections _HashNode+Primitive Replacement.swift
[311/1360] Emitting module HeapModule
[312/1361] Compiling HashTreeCollections _HashNode+Builder.swift
[313/1361] Compiling HashTreeCollections _HashNode+Debugging.swift
[314/1361] Compiling HashTreeCollections _HashNode+Initializers.swift
[315/1361] Compiling HashTreeCollections _HashNode+Invariants.swift
[321/1361] Compiling HashTreeCollections _HashNode+Lookups.swift
[322/1361] Compiling HashTreeCollections _HashNode+Primitive Insertions.swift
[323/1361] Compiling HashTreeCollections _HashTreeIterator.swift
[324/1361] Compiling HashTreeCollections _HashTreeStatistics.swift
[325/1361] Emitting module SystemPackage
[326/1394] Compiling ContainersPreview Drain+Reduce.swift
[327/1394] Compiling ContainersPreview Drain.swift
[328/1394] Compiling ContainersPreview Producer+Collect.swift
[329/1394] Compiling ContainersPreview Producer+Filter.swift
[330/1394] Compiling ContainersPreview Producer+Map.swift
[331/1394] Compiling ContainersPreview Producer+Reduce.swift
[332/1394] Compiling ContainersPreview Producer.swift
[333/1394] Compiling ContainersPreview Borrow.swift
[334/1398] Compiling ContainersPreview RandomAccessContainer.swift
[335/1398] Compiling ContainersPreview RangeExpression2.swift
[336/1398] Compiling ContainersPreview RangeReplaceableContainer.swift
[337/1398] Compiling ContainersPreview Drain+Map.swift
[338/1398] Compiling ContainersPreview BorrowingIteratorProtocol.swift
[339/1398] Compiling ContainersPreview BorrowingSequence+Standard Conformances.swift
[340/1398] Compiling ContainersPreview Container.swift
[341/1398] Compiling ContainersPreview ContainerIterator.swift
[342/1398] Compiling ContainersPreview DynamicContainer.swift
[343/1398] Compiling ContainersPreview MutableContainer.swift
[344/1398] Compiling ContainersPreview PermutableContainer.swift
[345/1398] Compiling ContainersPreview BorrowingSequence+Utilities.swift
[346/1398] Compiling HashTreeCollections TreeDictionary+MapValues.swift
[347/1398] Compiling HashTreeCollections TreeDictionary+Merge.swift
[348/1398] Compiling HashTreeCollections TreeDictionary+Sendable.swift
[349/1398] Compiling HashTreeCollections TreeDictionary+Sequence.swift
[350/1398] Compiling HashTreeCollections TreeDictionary+Values.swift
[351/1398] Compiling HashTreeCollections _HashNode+Structural subtracting.swift
[352/1398] Compiling HashTreeCollections _HashNode+Structural symmetricDifference.swift
[353/1398] Compiling ContainersPreview BorrowingIteratorProtocol+Map.swift
[354/1398] Compiling ContainersPreview BorrowingIteratorProtocol+Reduce.swift
[355/1398] Compiling ContainersPreview BorrowingIteratorProtocol+SpanwiseZip.swift
[358/1398] Compiling HashTreeCollections _HashNode+Structural union.swift
[359/1398] Compiling HashTreeCollections _HashNode+Subtree Insertions.swift
[360/1398] Compiling HashTreeCollections _HashNode+Subtree Modify.swift
[361/1398] Compiling HashTreeCollections _HashNode+Subtree Removals.swift
[362/1398] Compiling HashTreeCollections _HashNode+UnsafeHandle.swift
[363/1398] Compiling HashTreeCollections _HashNode.swift
[364/1398] Compiling HashTreeCollections _HashNodeHeader.swift
[365/1398] Compiling HashTreeCollections _HashSlot.swift
[366/1398] Compiling ContainersPreview Box.swift
[367/1398] Compiling ContainersPreview Inout.swift
[368/1398] Compiling ContainersPreview InputSpan.swift
[369/1398] Compiling ContainersPreview Shared.swift
[379/1398] Compiling ContainersPreview BorrowingSequence.swift
[380/1398] Compiling ContainersPreview BidirectionalContainer.swift
[381/1398] Compiling ContainersPreview Container+Filter.swift
[382/1398] Compiling ContainersPreview Container+SpanwiseZip.swift
[388/1398] Emitting module ContainersPreview
[389/1398] Compiling ContainersPreview OutputSpan+Extras.swift
[390/1398] Compiling ContainersPreview TemporaryAllocation.swift
[391/1398] Compiling ContainersPreview BorrowingIteratorProtocol+Copy.swift
[392/1398] Compiling ContainersPreview BorrowingIteratorProtocol+ElementsEqual.swift
[393/1398] Compiling ContainersPreview BorrowingIteratorProtocol+Filter.swift
[405/1408] Compiling HashTreeCollections TreeSet+Hashable.swift
[406/1408] Compiling HashTreeCollections TreeSet+Sendable.swift
[407/1408] Compiling HashTreeCollections TreeSet+Sequence.swift
[408/1408] Compiling HashTreeCollections TreeSet+SetAlgebra Initializers.swift
[409/1408] Compiling _RopeModule Rope+Join.swift
[410/1408] Compiling _RopeModule Rope+MutatingForEach.swift
[411/1408] Compiling _RopeModule Rope+Remove.swift
[412/1408] Compiling _RopeModule Rope+RemoveSubrange.swift
[413/1408] Compiling _RopeModule Rope+Split.swift
[414/1408] Compiling _RopeModule Optional Utilities.swift
[414/1418] Compiling CNIOPosix event_loop_id.c
[420/1458] Compiling DequeModule Deque+Codable.swift
[421/1458] Compiling DequeModule Deque+Collection.swift
[422/1458] Compiling DequeModule Deque+CustomReflectable.swift
[423/1458] Compiling DequeModule Deque+Descriptions.swift
[424/1458] Compiling DequeModule Deque+Equatable.swift
[425/1458] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[426/1458] Compiling DequeModule Deque+Extras.swift
[427/1458] Compiling DequeModule Deque+Hashable.swift
[428/1458] Compiling DequeModule Deque+Testing.swift
[429/1458] Compiling DequeModule Deque._Storage.swift
[430/1458] Compiling DequeModule Deque._UnsafeHandle.swift
[431/1458] Compiling DequeModule Deque.swift
[432/1458] Compiling DequeModule RigidDeque+Equatable.swift
[433/1458] Compiling DequeModule RigidDeque+Experimental.swift
[434/1458] Compiling DequeModule RigidDeque+Hashable.swift
[435/1458] Compiling DequeModule RigidDeque+Append.swift
[436/1458] Compiling DequeModule RigidDeque+Consumption.swift
[437/1458] Compiling DequeModule RigidDeque+Container.swift
[438/1458] Compiling DequeModule RigidDeque+Descriptions.swift
[439/1458] Compiling DequeModule UniqueDeque+Hashable.swift
[440/1458] Compiling DequeModule UniqueDeque+Initializers.swift
[441/1458] Compiling DequeModule UniqueDeque+Insertions.swift
[442/1458] Compiling DequeModule UniqueDeque+Prepend.swift
[443/1458] Compiling DequeModule UniqueDeque+Removals.swift
[465/1458] Compiling KeccakP-1600-opt64.c
BUILD FAILURE 6.3 wasm