Build Information
Failed to build PodcastFeedMaker, reference 0.3.2 (6a1fa8), with Swift 6.2 for Wasm on 27 Jun 2026 01:55:50 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
| `- 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/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/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/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)
[23/184] Compiling ArgumentParser CompletionsGenerator.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
42 |
43 | /// The URL session used for HEAD requests.
44 | let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
45 |
46 | /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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)
[24/184] Compiling ArgumentParser FishCompletionsGenerator.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
42 |
43 | /// The URL session used for HEAD requests.
44 | let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
45 |
46 | /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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)
[25/184] Compiling ArgumentParser ZshCompletionsGenerator.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
42 |
43 | /// The URL session used for HEAD requests.
44 | let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
45 |
46 | /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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)
[26/184] Compiling ArgumentParser Argument.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
42 |
43 | /// The URL session used for HEAD requests.
44 | let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
45 |
46 | /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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)
[27/184] Compiling ArgumentParser ArgumentDiscussion.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
42 |
43 | /// The URL session used for HEAD requests.
44 | let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
45 |
46 | /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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)
[28/184] Compiling ArgumentParser ArgumentHelp.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
42 |
43 | /// The URL session used for HEAD requests.
44 | let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
45 |
46 | /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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)
[29/185] Compiling ArgumentParser ParentCommand.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
42 |
43 | /// The URL session used for HEAD requests.
44 | let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
45 |
46 | /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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)
[30/188] Compiling ArgumentParser AsyncParsableCommand.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
42 |
43 | /// The URL session used for HEAD requests.
44 | let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
45 |
46 | /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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)
[31/188] Compiling ArgumentParser CommandConfiguration.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
42 |
43 | /// The URL session used for HEAD requests.
44 | let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
45 |
46 | /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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)
[32/188] Compiling ArgumentParser CommandGroup.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
42 |
43 | /// The URL session used for HEAD requests.
44 | let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
45 |
46 | /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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)
[33/188] Compiling ArgumentParser EnumerableFlag.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
42 |
43 | /// The URL session used for HEAD requests.
44 | let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
45 |
46 | /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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)
[34/190] Compiling ArgumentParser ExpressibleByArgument.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
42 |
43 | /// The URL session used for HEAD requests.
44 | let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
45 |
46 | /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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)
[35/190] Compiling ArgumentParser ParsableArguments.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
42 |
43 | /// The URL session used for HEAD requests.
44 | let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
45 |
46 | /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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)
[36/190] Compiling ArgumentParser ParsableCommand.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/Sources/PodcastFeedMaker/Engine/NetworkValidator.swift:44:9: error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
42 |
43 | /// The URL session used for HEAD requests.
44 | let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'NetworkValidator' has non-Sendable type 'URLSession' (aka 'AnyObject')
45 |
46 | /// The timeout interval per request, in seconds.
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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)
[37/190] Compiling PodcastFeedMaker StandardTemplate.swift
[38/190] Compiling PodcastFeedMaker TemplateComposition.swift
[39/190] Compiling PodcastFeedMaker TemplateFeedFactory.swift
[40/190] Compiling PodcastFeedMaker TemplateValidationResult.swift
[41/190] Compiling PodcastFeedMaker TemplateValidator.swift
[42/190] Compiling PodcastFeedMaker AmazonValidation.swift
[43/190] Compiling PodcastFeedMaker AppleValidation.swift
[44/190] Compiling PodcastFeedMaker CrossCuttingValidation.swift
[45/190] Compiling PodcastFeedMaker FeedValidator.swift
[46/190] Compiling PodcastFeedMaker PSP1Validation.swift
[47/190] Compiling PodcastFeedMaker PodcastIndexValidation.swift
[48/190] Compiling PodcastFeedMaker SpotifyValidation.swift
[49/190] Compiling PodcastFeedMaker ValidationResult.swift
[50/190] Compiling PodcastFeedMaker ValidationRule.swift
[51/190] Compiling ArgumentParser ArgumentDecoder.swift
/host/spi-builder-workspace/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 | )
[52/190] Compiling ArgumentParser ArgumentDefinition.swift
/host/spi-builder-workspace/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 | )
[53/190] Compiling ArgumentParser ArgumentSet.swift
/host/spi-builder-workspace/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 | )
[54/190] Compiling ArgumentParser CommandParser.swift
/host/spi-builder-workspace/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 | )
[55/190] Compiling ArgumentParser InputKey.swift
/host/spi-builder-workspace/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 | )
[56/190] Compiling ArgumentParser InputOrigin.swift
/host/spi-builder-workspace/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 | )
[57/190] Compiling ArgumentParser ArgumentVisibility.swift
/host/spi-builder-workspace/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 | )
[58/190] Compiling ArgumentParser CompletionKind.swift
/host/spi-builder-workspace/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 | )
[59/190] Compiling ArgumentParser Errors.swift
/host/spi-builder-workspace/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 | )
[60/190] Compiling ArgumentParser Flag.swift
/host/spi-builder-workspace/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 | )
[61/190] Compiling ArgumentParser NameSpecification.swift
/host/spi-builder-workspace/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 | )
[62/190] Compiling ArgumentParser Option.swift
/host/spi-builder-workspace/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 | )
[63/190] Compiling ArgumentParser OptionGroup.swift
/host/spi-builder-workspace/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 | )
[64/190] Compiling ArgumentParser Name.swift
/host/spi-builder-workspace/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 | )
[67/190] Compiling ArgumentParser AsyncCompletionsValidator.swift
[68/190] Compiling ArgumentParser CodingKeyValidator.swift
[69/190] Compiling ArgumentParser NonsenseFlagsValidator.swift
[70/190] Compiling ArgumentParser ParsableArgumentsValidation.swift
[71/190] Compiling ArgumentParser PositionalArgumentsValidator.swift
[72/190] Compiling ArgumentParser UniqueNamesValidator.swift
[73/190] Compiling PodcastFeedMaker PodcastMedium.swift
[74/190] Compiling PodcastFeedMaker PodcastNamespace.swift
[75/190] Compiling PodcastFeedMaker PodcastPerson.swift
[76/190] Compiling PodcastFeedMaker PodcastPublisher.swift
[77/190] Compiling PodcastFeedMaker PodcastSeason.swift
[78/190] Compiling PodcastFeedMaker PodcastSource.swift
[79/190] Compiling PodcastFeedMaker PodcastTxt.swift
[80/190] Compiling PodcastFeedMaker FeedParserDelegate+RSS.swift
[81/190] Compiling PodcastFeedMaker FeedParserDelegate+XML.swift
[82/190] Compiling PodcastFeedMaker FeedParserDelegate.swift
[83/190] Compiling PodcastFeedMaker ParserError.swift
[84/190] Compiling PodcastFeedMaker StreamingFeedParser.swift
[85/190] Compiling PodcastFeedMaker PodcastFeedMaker.swift
[86/190] Compiling PodcastFeedMaker AdvancedTemplate.swift
[87/190] Compiling PodcastFeedMaker BasicTemplate.swift
[88/190] Compiling PodcastFeedMaker ComposedTemplate.swift
[89/190] Compiling PodcastFeedMaker ExpertTemplate.swift
[90/190] Compiling PodcastFeedMaker ExpertiseLevel.swift
[91/190] Compiling PodcastFeedMaker FeedTag.swift
[92/190] Compiling PodcastFeedMaker FeedTemplate.swift
[93/190] Compiling PodcastFeedMaker PlatformPreset.swift
[94/190] Compiling PodcastFeedMaker AuditCategory.swift
[95/190] Compiling PodcastFeedMaker AuditComparison.swift
[96/190] Compiling PodcastFeedMaker AuditCriterion.swift
[97/190] Compiling PodcastFeedMaker AuditGrade.swift
[98/190] Compiling PodcastFeedMaker AuditRecommendation.swift
[99/190] Compiling PodcastFeedMaker AuditReport.swift
[100/190] Compiling PodcastFeedMaker AuditScoring+ComplianceAccessDiscover.swift
[101/190] Compiling PodcastFeedMaker AuditScoring+MetadataEpisodes.swift
[102/190] Compiling PodcastFeedMaker AuditScoring.swift
[103/190] Compiling PodcastFeedMaker FeedAuditor.swift
[104/190] Compiling PodcastFeedMaker PlatformCompatibility.swift
[105/190] Compiling PodcastFeedMaker ChannelBuilder.swift
[106/190] Compiling PodcastFeedMaker ItemBuilder.swift
[107/190] Compiling PodcastFeedMaker PSP1Helper.swift
[108/190] Compiling PodcastFeedMaker PodcastFeedBuilder.swift
[109/190] Compiling PodcastFeedMaker PodcastValue.swift
[110/190] Compiling PodcastFeedMaker PodloveChapter.swift
[111/190] Compiling PodcastFeedMaker Podroll.swift
[112/190] Compiling PodcastFeedMaker RSSCategory.swift
[113/190] Compiling PodcastFeedMaker RSSCloud.swift
[114/190] Compiling PodcastFeedMaker RSSImage.swift
[115/190] Compiling PodcastFeedMaker RSSSource.swift
[116/190] Compiling PodcastFeedMaker RSSTextInput.swift
[117/190] Compiling PodcastFeedMaker RemoteItem.swift
[118/190] Compiling PodcastFeedMaker SkipSchedule.swift
[119/190] Compiling PodcastFeedMaker SocialInteract.swift
[120/190] Compiling PodcastFeedMaker Soundbite.swift
[121/190] Compiling PodcastFeedMaker Trailer.swift
[122/190] Compiling PodcastFeedMaker Transcript.swift
[123/190] Compiling ArgumentParser Parsed.swift
[124/190] Compiling ArgumentParser ParsedValues.swift
[125/190] Compiling ArgumentParser ParserError.swift
[126/190] Compiling ArgumentParser SplitArguments.swift
[127/190] Compiling ArgumentParser DumpHelpGenerator.swift
[128/190] Compiling ArgumentParser HelpCommand.swift
[129/190] Compiling ArgumentParser HelpGenerator.swift
[130/190] Compiling ArgumentParser MessageInfo.swift
[131/190] Compiling ArgumentParser UsageGenerator.swift
[132/190] Compiling ArgumentParser CollectionExtensions.swift
[133/190] Compiling ArgumentParser Foundation.swift
BUILD FAILURE 6.2 wasm