Build Information
Failed to build PodcastAPI, reference 3.1.0 (c3cd7b), with Swift 6.2 for Wasm on 30 Sep 2026 07:10:27 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-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
========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ListenNotes/podcast-api-swift.git
Reference: 3.1.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/ListenNotes/podcast-api-swift
* tag 3.1.0 -> FETCH_HEAD
HEAD is now at c3cd7bf Add deletePlaylist support for Swift SDK 3.1.0
Cloned https://github.com/ListenNotes/podcast-api-swift.git
Revision (git rev-parse @):
c3cd7bf23cbbc0f28fa64501eb66d2c6171bbd04
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ListenNotes/podcast-api-swift.git at 3.1.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/ListenNotes/podcast-api-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:ff44196b45f83e5a0a99a627b185f548850d9bc1242e3dee2178fb1570812fe8
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/13] Compiling PodcastAPI PodcastApiError.swift
/host/spi-builder-workspace/Sources/PodcastAPI/ApiResponse.swift:10:25: error: cannot find type 'URLRequest' in scope
8 | public let data: Data?
9 | public let response: HTTPURLResponse?
10 | public let request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
11 | public let httpError: (any Error)?
12 | public let error: PodcastApiError?
[5/13] Compiling PodcastAPI PodcastAPI.swift
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:16:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | private let apiKey: String
15 | private let baseURL: URL
16 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let synchronousRequest: Bool
18 | private let lock = NSLock()
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/PodcastAPI/PodcastAPI.swift:38:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | /// Redirects are rejected, including when a custom configuration is provided.
37 | public init(apiKey: String, synchronousRequest: Bool = false,
38 | configuration: URLSessionConfiguration, baseURL: URL? = nil) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | self.apiKey = apiKey.trimmingCharacters(in: .whitespacesAndNewlines)
40 | self.baseURL = baseURL ?? URL(string: self.apiKey.isEmpty ? BASE_URL_TEST : BASE_URL_PROD)!
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:73:62: error: cannot find type 'URLRequest' in scope
71 |
72 | func makeRequest(path: String, method: String, pathNames: [String], queryNames: [String],
73 | parameters: [String: String]) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
74 | guard ["http", "https"].contains(baseURL.scheme), baseURL.host != nil,
75 | baseURL.user == nil, baseURL.password == nil, baseURL.query == nil, baseURL.fragment == nil else {
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:132:106: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
130 | @discardableResult
131 | func request(path: String, method: String, pathNames: [String], queryNames: [String],
132 | parameters: [String: String], completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 | let request: URLRequest
134 | do {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:155:51: error: cannot find type 'URLSessionTaskDelegate' in scope
153 | }
154 |
155 | private final class NoRedirectDelegate: NSObject, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
156 | func urlSession(_ session: URLSession, task: URLSessionTask,
157 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:157:95: error: cannot find type 'URLRequest' in scope
155 | private final class NoRedirectDelegate: NSObject, URLSessionTaskDelegate {
156 | func urlSession(_ session: URLSession, task: URLSessionTask,
157 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
158 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
159 | completionHandler(nil)
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:158:61: error: cannot find type 'URLRequest' in scope
156 | func urlSession(_ session: URLSession, task: URLSessionTask,
157 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
158 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
159 | completionHandler(nil)
160 | }
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:156:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 |
155 | private final class NoRedirectDelegate: NSObject, URLSessionTaskDelegate {
156 | func urlSession(_ session: URLSession, task: URLSessionTask,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
158 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
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/PodcastAPI/PodcastAPI.swift:156:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 |
155 | private final class NoRedirectDelegate: NSObject, URLSessionTaskDelegate {
156 | func urlSession(_ session: URLSession, task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
158 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:157:58: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 | private final class NoRedirectDelegate: NSObject, URLSessionTaskDelegate {
156 | func urlSession(_ session: URLSession, task: URLSessionTask,
157 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
159 | completionHandler(nil)
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/PodcastAPI/PodcastAPI.swift:28:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
26 | /// The synchronous option affects callback methods only. Prefer async/await in new code.
27 | public convenience init(apiKey: String, synchronousRequest: Bool) {
28 | let configuration = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
29 | configuration.timeoutIntervalForRequest = 30
30 | configuration.timeoutIntervalForResource = 30
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:42:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
40 | self.baseURL = baseURL ?? URL(string: self.apiKey.isEmpty ? BASE_URL_TEST : BASE_URL_PROD)!
41 | self.synchronousRequest = synchronousRequest
42 | let config = configuration.copy() as! URLSessionConfiguration
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
43 | self.responseTimeoutSec = config.timeoutIntervalForRequest
44 | config.httpCookieStorage = nil
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:46:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
44 | config.httpCookieStorage = nil
45 | config.urlCache = nil
46 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
47 | self.session = URLSession(configuration: config, delegate: NoRedirectDelegate(), delegateQueue: nil)
48 | }
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:47:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
45 | config.urlCache = nil
46 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
47 | self.session = URLSession(configuration: config, delegate: NoRedirectDelegate(), delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
48 | }
49 |
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:47:105: error: 'nil' requires a contextual type
45 | config.urlCache = nil
46 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
47 | self.session = URLSession(configuration: config, delegate: NoRedirectDelegate(), delegateQueue: nil)
| `- error: 'nil' requires a contextual type
48 | }
49 |
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:54:9: error: cannot find 'DispatchQueue' in scope
52 | // Linux Foundation synchronously enters that queue when invalidating a session.
53 | let session = self.session
54 | DispatchQueue.global().async { session.invalidateAndCancel() }
| `- error: cannot find 'DispatchQueue' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:54:48: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
52 | // Linux Foundation synchronously enters that queue when invalidating a session.
53 | let session = self.session
54 | DispatchQueue.global().async { session.invalidateAndCancel() }
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
55 | }
56 |
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:99:23: error: cannot find 'URLRequest' in scope
97 | components.percentEncodedQuery = query.isEmpty ? nil : form(query)
98 | guard let url = components.url else { throw PodcastApiError.invalidRequestError }
99 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
100 | request.httpMethod = method
101 | if !apiKey.isEmpty { request.setValue(apiKey, forHTTPHeaderField: "X-ListenAPI-Key") }
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:119:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
117 | let result: ApiResponse
118 | do {
119 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
120 | result = ApiResponse(request: request, data: data, response: response, httpError: nil, apiError: nil)
121 | } catch {
/host/spi-builder-workspace/Sources/PodcastAPI/ApiResponse.swift:15:26: error: cannot find type 'URLRequest' in scope
13 | public var statusCode: Int? { response?.statusCode }
14 |
15 | public init(request: URLRequest?, data: Data?, response: URLResponse?, httpError: (any Error)?, apiError: PodcastApiError?) {
| `- error: cannot find type 'URLRequest' in scope
16 | self.request = request
17 | self.data = data
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:120:95: error: 'nil' requires a contextual type
118 | do {
119 | let (data, response) = try await session.data(for: request)
120 | result = ApiResponse(request: request, data: data, response: response, httpError: nil, apiError: nil)
| `- error: 'nil' requires a contextual type
121 | } catch {
122 | if Task.isCancelled { throw CancellationError() }
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:120:110: error: 'nil' requires a contextual type
118 | do {
119 | let (data, response) = try await session.data(for: request)
120 | result = ApiResponse(request: request, data: data, response: response, httpError: nil, apiError: nil)
| `- error: 'nil' requires a contextual type
121 | } catch {
122 | if Task.isCancelled { throw CancellationError() }
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:123:81: error: 'nil' requires a contextual type
121 | } catch {
122 | if Task.isCancelled { throw CancellationError() }
123 | throw ApiRequestError(response: ApiResponse(request: request, data: nil, response: nil,
| `- error: 'nil' requires a contextual type
124 | httpError: error, apiError: .apiConnectionError))
125 | }
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:123:96: error: 'nil' requires a contextual type
121 | } catch {
122 | if Task.isCancelled { throw CancellationError() }
123 | throw ApiRequestError(response: ApiResponse(request: request, data: nil, response: nil,
| `- error: 'nil' requires a contextual type
124 | httpError: error, apiError: .apiConnectionError))
125 | }
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:124:64: error: cannot infer contextual base in reference to member 'apiConnectionError'
122 | if Task.isCancelled { throw CancellationError() }
123 | throw ApiRequestError(response: ApiResponse(request: request, data: nil, response: nil,
124 | httpError: error, apiError: .apiConnectionError))
| `- error: cannot infer contextual base in reference to member 'apiConnectionError'
125 | }
126 | if result.error != nil { throw ApiRequestError(response: result) }
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:133:22: error: cannot find type 'URLRequest' in scope
131 | func request(path: String, method: String, pathNames: [String], queryNames: [String],
132 | parameters: [String: String], completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
133 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
134 | do {
135 | request = try makeRequest(path: path, method: method, pathNames: pathNames,
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:138:45: error: 'nil' requires a contextual type
136 | queryNames: queryNames, parameters: parameters)
137 | } catch {
138 | completion(ApiResponse(request: nil, data: nil, response: nil, httpError: error, apiError: .invalidRequestError))
| `- error: 'nil' requires a contextual type
139 | return nil
140 | }
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:138:56: error: 'nil' requires a contextual type
136 | queryNames: queryNames, parameters: parameters)
137 | } catch {
138 | completion(ApiResponse(request: nil, data: nil, response: nil, httpError: error, apiError: .invalidRequestError))
| `- error: 'nil' requires a contextual type
139 | return nil
140 | }
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:138:71: error: 'nil' requires a contextual type
136 | queryNames: queryNames, parameters: parameters)
137 | } catch {
138 | completion(ApiResponse(request: nil, data: nil, response: nil, httpError: error, apiError: .invalidRequestError))
| `- error: 'nil' requires a contextual type
139 | return nil
140 | }
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:138:105: error: cannot infer contextual base in reference to member 'invalidRequestError'
136 | queryNames: queryNames, parameters: parameters)
137 | } catch {
138 | completion(ApiResponse(request: nil, data: nil, response: nil, httpError: error, apiError: .invalidRequestError))
| `- error: cannot infer contextual base in reference to member 'invalidRequestError'
139 | return nil
140 | }
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:141:46: error: cannot find 'DispatchSemaphore' in scope
139 | return nil
140 | }
141 | let semaphore = synchronousRequest ? DispatchSemaphore(value: 0) : nil
| `- error: cannot find 'DispatchSemaphore' in scope
142 | let task = session.dataTask(with: request) { [self] data, response, error in
143 | defer { semaphore?.signal() }
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:142:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
140 | }
141 | let semaphore = synchronousRequest ? DispatchSemaphore(value: 0) : nil
142 | let task = session.dataTask(with: request) { [self] data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
143 | defer { semaphore?.signal() }
144 | withExtendedLifetime(self) {
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:142:61: error: cannot infer type of closure parameter 'data' without a type annotation
140 | }
141 | let semaphore = synchronousRequest ? DispatchSemaphore(value: 0) : nil
142 | let task = session.dataTask(with: request) { [self] data, response, error in
| `- error: cannot infer type of closure parameter 'data' without a type annotation
143 | defer { semaphore?.signal() }
144 | withExtendedLifetime(self) {
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:142:67: error: cannot infer type of closure parameter 'response' without a type annotation
140 | }
141 | let semaphore = synchronousRequest ? DispatchSemaphore(value: 0) : nil
142 | let task = session.dataTask(with: request) { [self] data, response, error in
| `- error: cannot infer type of closure parameter 'response' without a type annotation
143 | defer { semaphore?.signal() }
144 | withExtendedLifetime(self) {
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:142:77: error: cannot infer type of closure parameter 'error' without a type annotation
140 | }
141 | let semaphore = synchronousRequest ? DispatchSemaphore(value: 0) : nil
142 | let task = session.dataTask(with: request) { [self] data, response, error in
| `- error: cannot infer type of closure parameter 'error' without a type annotation
143 | defer { semaphore?.signal() }
144 | withExtendedLifetime(self) {
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:146:72: error: cannot infer contextual base in reference to member 'apiConnectionError'
144 | withExtendedLifetime(self) {
145 | completion(ApiResponse(request: request, data: data, response: response, httpError: error,
146 | apiError: error == nil ? nil : .apiConnectionError))
| `- error: cannot infer contextual base in reference to member 'apiConnectionError'
147 | }
148 | }
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:159:27: error: 'nil' requires a contextual type
157 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
158 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
159 | completionHandler(nil)
| `- error: 'nil' requires a contextual type
160 | }
161 | }
[6/13] Compiling PodcastAPI ApiResponse.swift
/host/spi-builder-workspace/Sources/PodcastAPI/ApiResponse.swift:9:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | public final class ApiResponse: Sendable {
8 | public let data: Data?
9 | public let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | public let request: URLRequest?
11 | public let httpError: (any Error)?
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/PodcastAPI/ApiResponse.swift:10:25: error: cannot find type 'URLRequest' in scope
8 | public let data: Data?
9 | public let response: HTTPURLResponse?
10 | public let request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
11 | public let httpError: (any Error)?
12 | public let error: PodcastApiError?
/host/spi-builder-workspace/Sources/PodcastAPI/ApiResponse.swift:15:26: error: cannot find type 'URLRequest' in scope
13 | public var statusCode: Int? { response?.statusCode }
14 |
15 | public init(request: URLRequest?, data: Data?, response: URLResponse?, httpError: (any Error)?, apiError: PodcastApiError?) {
| `- error: cannot find type 'URLRequest' in scope
16 | self.request = request
17 | self.data = data
/host/spi-builder-workspace/Sources/PodcastAPI/ApiResponse.swift:15:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | public var statusCode: Int? { response?.statusCode }
14 |
15 | public init(request: URLRequest?, data: Data?, response: URLResponse?, httpError: (any Error)?, apiError: PodcastApiError?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | self.request = request
17 | self.data = data
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiResponse.swift:9:16: error: stored property 'response' of 'Sendable'-conforming class 'ApiResponse' contains non-Sendable type 'HTTPURLResponse' (aka 'AnyObject')
7 | public final class ApiResponse: Sendable {
8 | public let data: Data?
9 | public let response: HTTPURLResponse?
| `- error: stored property 'response' of 'Sendable'-conforming class 'ApiResponse' contains non-Sendable type 'HTTPURLResponse' (aka 'AnyObject')
10 | public let request: URLRequest?
11 | public let httpError: (any Error)?
/host/spi-builder-workspace/Sources/PodcastAPI/ApiResponse.swift:13:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
11 | public let httpError: (any Error)?
12 | public let error: PodcastApiError?
13 | public var statusCode: Int? { response?.statusCode }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
14 |
15 | public init(request: URLRequest?, data: Data?, response: URLResponse?, httpError: (any Error)?, apiError: PodcastApiError?) {
/host/spi-builder-workspace/Sources/PodcastAPI/ApiResponse.swift:18:34: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
16 | self.request = request
17 | self.data = data
18 | self.response = response as? HTTPURLResponse
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
19 | self.httpError = httpError
20 | // A body read can fail after receiving HTTP 200; retain the connection error.
/host/spi-builder-workspace/Sources/PodcastAPI/ApiResponse.swift:18:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | self.request = request
17 | self.data = data
18 | self.response = response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | self.httpError = httpError
20 | // A body read can fail after receiving HTTP 200; retain the connection error.
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/PodcastAPI/ApiResponse.swift:24:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 | else if httpError != nil { self.error = .apiConnectionError }
23 | else {
24 | switch self.response?.statusCode ?? 0 {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
25 | case 200..<300: self.error = nil
26 | case 401: self.error = .authenticationError
/host/spi-builder-workspace/Sources/PodcastAPI/ApiResponse.swift:48:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
46 | }
47 |
48 | public func header(_ name: String) -> String? { response?.value(forHTTPHeaderField: name) }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
49 | public func getFreeQuota() -> Int { header("X-ListenAPI-FreeQuota").flatMap(Int.init) ?? -1 }
50 | public func getUsage() -> Int { header("X-ListenAPI-Usage").flatMap(Int.init) ?? -1 }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/13] Emitting module PodcastAPI
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:17:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | @discardableResult
16 | public func search(parameters: [String: String] = [:],
17 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | request(path: "/search", method: "GET",
19 | pathNames: [], queryNames: ["q", "sort_by_date", "type", "offset", "len_min", "len_max", "episode_count_min", "episode_count_max", "update_freq_min", "update_freq_max", "genre_ids", "published_before", "published_after", "only_in", "language", "region", "ocid", "ncid", "safe_mode", "unique_podcasts", "interviews_only", "sponsored_only", "page_size"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:31:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | @discardableResult
30 | public func typeahead(parameters: [String: String] = [:],
31 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | request(path: "/typeahead", method: "GET",
33 | pathNames: [], queryNames: ["q", "show_podcasts", "show_genres", "safe_mode"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:45:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | @discardableResult
44 | public func searchEpisodeTitles(parameters: [String: String] = [:],
45 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | request(path: "/search_episode_titles", method: "GET",
47 | pathNames: [], queryNames: ["q", "podcast_id", "podcast_id_type"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:59:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | @discardableResult
58 | public func spellcheck(parameters: [String: String] = [:],
59 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | request(path: "/spellcheck", method: "GET",
61 | pathNames: [], queryNames: ["q"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:73:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | @discardableResult
72 | public func fetchRelatedSearches(parameters: [String: String] = [:],
73 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | request(path: "/related_searches", method: "GET",
75 | pathNames: [], queryNames: ["q"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:87:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | @discardableResult
86 | public func fetchTrendingSearches(parameters: [String: String] = [:],
87 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | request(path: "/trending_searches", method: "GET",
89 | pathNames: [], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:101:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
99 | @discardableResult
100 | public func fetchBestPodcasts(parameters: [String: String] = [:],
101 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | request(path: "/best_podcasts", method: "GET",
103 | pathNames: [], queryNames: ["genre_id", "page", "region", "publisher_region", "language", "sort", "safe_mode"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:115:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | @discardableResult
114 | public func fetchPodcastById(parameters: [String: String] = [:],
115 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | request(path: "/podcasts/{id}", method: "GET",
117 | pathNames: ["id"], queryNames: ["next_episode_pub_date", "sort"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:129:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 | @discardableResult
128 | public func deletePodcast(parameters: [String: String] = [:],
129 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
130 | request(path: "/podcasts/{id}", method: "DELETE",
131 | pathNames: ["id"], queryNames: ["reason"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:143:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 | @discardableResult
142 | public func fetchEpisodeById(parameters: [String: String] = [:],
143 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 | request(path: "/episodes/{id}", method: "GET",
145 | pathNames: ["id"], queryNames: ["show_transcript"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:157:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 | @discardableResult
156 | public func batchFetchEpisodes(parameters: [String: String] = [:],
157 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | request(path: "/episodes", method: "POST",
159 | pathNames: [], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:171:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 | @discardableResult
170 | public func batchFetchPodcasts(parameters: [String: String] = [:],
171 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 | request(path: "/podcasts", method: "POST",
173 | pathNames: [], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:185:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 | @discardableResult
184 | public func fetchCuratedPodcastsListById(parameters: [String: String] = [:],
185 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 | request(path: "/curated_podcasts/{id}", method: "GET",
187 | pathNames: ["id"], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:199:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | @discardableResult
198 | public func fetchPodcastGenres(parameters: [String: String] = [:],
199 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | request(path: "/genres", method: "GET",
201 | pathNames: [], queryNames: ["top_level_only"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:213:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 | @discardableResult
212 | public func fetchPodcastRegions(parameters: [String: String] = [:],
213 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 | request(path: "/regions", method: "GET",
215 | pathNames: [], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:227:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 | @discardableResult
226 | public func fetchPodcastLanguages(parameters: [String: String] = [:],
227 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 | request(path: "/languages", method: "GET",
229 | pathNames: [], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:241:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
239 | @discardableResult
240 | public func justListen(parameters: [String: String] = [:],
241 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 | request(path: "/just_listen", method: "GET",
243 | pathNames: [], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:255:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
253 | @discardableResult
254 | public func fetchCuratedPodcastsLists(parameters: [String: String] = [:],
255 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
256 | request(path: "/curated_podcasts", method: "GET",
257 | pathNames: [], queryNames: ["page"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:269:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
267 | @discardableResult
268 | public func fetchRecommendationsForPodcast(parameters: [String: String] = [:],
269 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
270 | request(path: "/podcasts/{id}/recommendations", method: "GET",
271 | pathNames: ["id"], queryNames: ["safe_mode"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:283:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
281 | @discardableResult
282 | public func fetchRecommendationsForEpisode(parameters: [String: String] = [:],
283 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
284 | request(path: "/episodes/{id}/recommendations", method: "GET",
285 | pathNames: ["id"], queryNames: ["safe_mode"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:297:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
295 | @discardableResult
296 | public func submitPodcast(parameters: [String: String] = [:],
297 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
298 | request(path: "/podcasts/submit", method: "POST",
299 | pathNames: [], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:311:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
309 | @discardableResult
310 | public func fetchPlaylistById(parameters: [String: String] = [:],
311 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
312 | request(path: "/playlists/{id}", method: "GET",
313 | pathNames: ["id"], queryNames: ["type", "last_timestamp_ms", "sort"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:325:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
323 | @discardableResult
324 | public func fetchMyPlaylists(parameters: [String: String] = [:],
325 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 | request(path: "/playlists", method: "GET",
327 | pathNames: [], queryNames: ["sort", "page"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:339:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
337 | @discardableResult
338 | public func fetchAudienceForPodcast(parameters: [String: String] = [:],
339 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
340 | request(path: "/podcasts/{id}/audience", method: "GET",
341 | pathNames: ["id"], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:353:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
351 | @discardableResult
352 | public func fetchPodcastsByDomain(parameters: [String: String] = [:],
353 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
354 | request(path: "/podcasts/domains/{domain_name}", method: "GET",
355 | pathNames: ["domain_name"], queryNames: ["page"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:367:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
365 | @discardableResult
366 | public func createPlaylist(parameters: [String: String] = [:],
367 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
368 | request(path: "/playlists", method: "POST",
369 | pathNames: [], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:381:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
379 | @discardableResult
380 | public func updatePlaylist(parameters: [String: String] = [:],
381 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
382 | request(path: "/playlists/{id}", method: "PUT",
383 | pathNames: ["id"], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:395:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
393 | @discardableResult
394 | public func deletePlaylist(parameters: [String: String] = [:],
395 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
396 | request(path: "/playlists/{id}", method: "DELETE",
397 | pathNames: ["id"], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:409:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
407 | @discardableResult
408 | public func addPlaylistItem(parameters: [String: String] = [:],
409 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
410 | request(path: "/playlists/{id}/items", method: "POST",
411 | pathNames: ["id"], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:423:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
421 | @discardableResult
422 | public func deletePlaylistItem(parameters: [String: String] = [:],
423 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
424 | request(path: "/playlists/{id}/items/{item_id}", method: "DELETE",
425 | pathNames: ["id", "item_id"], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:437:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
435 | @discardableResult
436 | public func updatePlaylistItemNotes(parameters: [String: String] = [:],
437 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
438 | request(path: "/playlists/{id}/items/{item_id}", method: "PUT",
439 | pathNames: ["id", "item_id"], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiResponse.swift:9:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | public final class ApiResponse: Sendable {
8 | public let data: Data?
9 | public let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | public let request: URLRequest?
11 | public let httpError: (any Error)?
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/PodcastAPI/ApiResponse.swift:10:25: error: cannot find type 'URLRequest' in scope
8 | public let data: Data?
9 | public let response: HTTPURLResponse?
10 | public let request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
11 | public let httpError: (any Error)?
12 | public let error: PodcastApiError?
/host/spi-builder-workspace/Sources/PodcastAPI/ApiResponse.swift:15:26: error: cannot find type 'URLRequest' in scope
13 | public var statusCode: Int? { response?.statusCode }
14 |
15 | public init(request: URLRequest?, data: Data?, response: URLResponse?, httpError: (any Error)?, apiError: PodcastApiError?) {
| `- error: cannot find type 'URLRequest' in scope
16 | self.request = request
17 | self.data = data
/host/spi-builder-workspace/Sources/PodcastAPI/ApiResponse.swift:15:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | public var statusCode: Int? { response?.statusCode }
14 |
15 | public init(request: URLRequest?, data: Data?, response: URLResponse?, httpError: (any Error)?, apiError: PodcastApiError?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | self.request = request
17 | self.data = data
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiResponse.swift:9:16: error: stored property 'response' of 'Sendable'-conforming class 'ApiResponse' contains non-Sendable type 'HTTPURLResponse' (aka 'AnyObject')
7 | public final class ApiResponse: Sendable {
8 | public let data: Data?
9 | public let response: HTTPURLResponse?
| `- error: stored property 'response' of 'Sendable'-conforming class 'ApiResponse' contains non-Sendable type 'HTTPURLResponse' (aka 'AnyObject')
10 | public let request: URLRequest?
11 | public let httpError: (any Error)?
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:16:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | private let apiKey: String
15 | private let baseURL: URL
16 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let synchronousRequest: Bool
18 | private let lock = NSLock()
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/PodcastAPI/PodcastAPI.swift:38:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | /// Redirects are rejected, including when a custom configuration is provided.
37 | public init(apiKey: String, synchronousRequest: Bool = false,
38 | configuration: URLSessionConfiguration, baseURL: URL? = nil) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | self.apiKey = apiKey.trimmingCharacters(in: .whitespacesAndNewlines)
40 | self.baseURL = baseURL ?? URL(string: self.apiKey.isEmpty ? BASE_URL_TEST : BASE_URL_PROD)!
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:73:62: error: cannot find type 'URLRequest' in scope
71 |
72 | func makeRequest(path: String, method: String, pathNames: [String], queryNames: [String],
73 | parameters: [String: String]) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
74 | guard ["http", "https"].contains(baseURL.scheme), baseURL.host != nil,
75 | baseURL.user == nil, baseURL.password == nil, baseURL.query == nil, baseURL.fragment == nil else {
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:132:106: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
130 | @discardableResult
131 | func request(path: String, method: String, pathNames: [String], queryNames: [String],
132 | parameters: [String: String], completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 | let request: URLRequest
134 | do {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:155:51: error: cannot find type 'URLSessionTaskDelegate' in scope
153 | }
154 |
155 | private final class NoRedirectDelegate: NSObject, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
156 | func urlSession(_ session: URLSession, task: URLSessionTask,
157 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:157:95: error: cannot find type 'URLRequest' in scope
155 | private final class NoRedirectDelegate: NSObject, URLSessionTaskDelegate {
156 | func urlSession(_ session: URLSession, task: URLSessionTask,
157 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
158 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
159 | completionHandler(nil)
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:158:61: error: cannot find type 'URLRequest' in scope
156 | func urlSession(_ session: URLSession, task: URLSessionTask,
157 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
158 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
159 | completionHandler(nil)
160 | }
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:156:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 |
155 | private final class NoRedirectDelegate: NSObject, URLSessionTaskDelegate {
156 | func urlSession(_ session: URLSession, task: URLSessionTask,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
158 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
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/PodcastAPI/PodcastAPI.swift:156:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 |
155 | private final class NoRedirectDelegate: NSObject, URLSessionTaskDelegate {
156 | func urlSession(_ session: URLSession, task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
158 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/PodcastAPI.swift:157:58: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 | private final class NoRedirectDelegate: NSObject, URLSessionTaskDelegate {
156 | func urlSession(_ session: URLSession, task: URLSessionTask,
157 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
159 | completionHandler(nil)
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
[8/13] Compiling PodcastAPI ApiMethods.swift
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:17:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | @discardableResult
16 | public func search(parameters: [String: String] = [:],
17 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | request(path: "/search", method: "GET",
19 | pathNames: [], queryNames: ["q", "sort_by_date", "type", "offset", "len_min", "len_max", "episode_count_min", "episode_count_max", "update_freq_min", "update_freq_max", "genre_ids", "published_before", "published_after", "only_in", "language", "region", "ocid", "ncid", "safe_mode", "unique_podcasts", "interviews_only", "sponsored_only", "page_size"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:31:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | @discardableResult
30 | public func typeahead(parameters: [String: String] = [:],
31 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | request(path: "/typeahead", method: "GET",
33 | pathNames: [], queryNames: ["q", "show_podcasts", "show_genres", "safe_mode"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:45:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | @discardableResult
44 | public func searchEpisodeTitles(parameters: [String: String] = [:],
45 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | request(path: "/search_episode_titles", method: "GET",
47 | pathNames: [], queryNames: ["q", "podcast_id", "podcast_id_type"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:59:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | @discardableResult
58 | public func spellcheck(parameters: [String: String] = [:],
59 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | request(path: "/spellcheck", method: "GET",
61 | pathNames: [], queryNames: ["q"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:73:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | @discardableResult
72 | public func fetchRelatedSearches(parameters: [String: String] = [:],
73 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | request(path: "/related_searches", method: "GET",
75 | pathNames: [], queryNames: ["q"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:87:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | @discardableResult
86 | public func fetchTrendingSearches(parameters: [String: String] = [:],
87 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | request(path: "/trending_searches", method: "GET",
89 | pathNames: [], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:101:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
99 | @discardableResult
100 | public func fetchBestPodcasts(parameters: [String: String] = [:],
101 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | request(path: "/best_podcasts", method: "GET",
103 | pathNames: [], queryNames: ["genre_id", "page", "region", "publisher_region", "language", "sort", "safe_mode"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:115:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | @discardableResult
114 | public func fetchPodcastById(parameters: [String: String] = [:],
115 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | request(path: "/podcasts/{id}", method: "GET",
117 | pathNames: ["id"], queryNames: ["next_episode_pub_date", "sort"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:129:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 | @discardableResult
128 | public func deletePodcast(parameters: [String: String] = [:],
129 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
130 | request(path: "/podcasts/{id}", method: "DELETE",
131 | pathNames: ["id"], queryNames: ["reason"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:143:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 | @discardableResult
142 | public func fetchEpisodeById(parameters: [String: String] = [:],
143 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 | request(path: "/episodes/{id}", method: "GET",
145 | pathNames: ["id"], queryNames: ["show_transcript"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:157:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 | @discardableResult
156 | public func batchFetchEpisodes(parameters: [String: String] = [:],
157 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | request(path: "/episodes", method: "POST",
159 | pathNames: [], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:171:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 | @discardableResult
170 | public func batchFetchPodcasts(parameters: [String: String] = [:],
171 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 | request(path: "/podcasts", method: "POST",
173 | pathNames: [], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:185:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 | @discardableResult
184 | public func fetchCuratedPodcastsListById(parameters: [String: String] = [:],
185 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 | request(path: "/curated_podcasts/{id}", method: "GET",
187 | pathNames: ["id"], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:199:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | @discardableResult
198 | public func fetchPodcastGenres(parameters: [String: String] = [:],
199 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | request(path: "/genres", method: "GET",
201 | pathNames: [], queryNames: ["top_level_only"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:213:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 | @discardableResult
212 | public func fetchPodcastRegions(parameters: [String: String] = [:],
213 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 | request(path: "/regions", method: "GET",
215 | pathNames: [], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:227:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 | @discardableResult
226 | public func fetchPodcastLanguages(parameters: [String: String] = [:],
227 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 | request(path: "/languages", method: "GET",
229 | pathNames: [], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:241:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
239 | @discardableResult
240 | public func justListen(parameters: [String: String] = [:],
241 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 | request(path: "/just_listen", method: "GET",
243 | pathNames: [], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:255:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
253 | @discardableResult
254 | public func fetchCuratedPodcastsLists(parameters: [String: String] = [:],
255 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
256 | request(path: "/curated_podcasts", method: "GET",
257 | pathNames: [], queryNames: ["page"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:269:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
267 | @discardableResult
268 | public func fetchRecommendationsForPodcast(parameters: [String: String] = [:],
269 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
270 | request(path: "/podcasts/{id}/recommendations", method: "GET",
271 | pathNames: ["id"], queryNames: ["safe_mode"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:283:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
281 | @discardableResult
282 | public func fetchRecommendationsForEpisode(parameters: [String: String] = [:],
283 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
284 | request(path: "/episodes/{id}/recommendations", method: "GET",
285 | pathNames: ["id"], queryNames: ["safe_mode"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:297:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
295 | @discardableResult
296 | public func submitPodcast(parameters: [String: String] = [:],
297 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
298 | request(path: "/podcasts/submit", method: "POST",
299 | pathNames: [], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:311:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
309 | @discardableResult
310 | public func fetchPlaylistById(parameters: [String: String] = [:],
311 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
312 | request(path: "/playlists/{id}", method: "GET",
313 | pathNames: ["id"], queryNames: ["type", "last_timestamp_ms", "sort"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:325:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
323 | @discardableResult
324 | public func fetchMyPlaylists(parameters: [String: String] = [:],
325 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 | request(path: "/playlists", method: "GET",
327 | pathNames: [], queryNames: ["sort", "page"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:339:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
337 | @discardableResult
338 | public func fetchAudienceForPodcast(parameters: [String: String] = [:],
339 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
340 | request(path: "/podcasts/{id}/audience", method: "GET",
341 | pathNames: ["id"], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:353:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
351 | @discardableResult
352 | public func fetchPodcastsByDomain(parameters: [String: String] = [:],
353 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
354 | request(path: "/podcasts/domains/{domain_name}", method: "GET",
355 | pathNames: ["domain_name"], queryNames: ["page"], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:367:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
365 | @discardableResult
366 | public func createPlaylist(parameters: [String: String] = [:],
367 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
368 | request(path: "/playlists", method: "POST",
369 | pathNames: [], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:381:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
379 | @discardableResult
380 | public func updatePlaylist(parameters: [String: String] = [:],
381 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
382 | request(path: "/playlists/{id}", method: "PUT",
383 | pathNames: ["id"], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:395:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
393 | @discardableResult
394 | public func deletePlaylist(parameters: [String: String] = [:],
395 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
396 | request(path: "/playlists/{id}", method: "DELETE",
397 | pathNames: ["id"], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:409:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
407 | @discardableResult
408 | public func addPlaylistItem(parameters: [String: String] = [:],
409 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
410 | request(path: "/playlists/{id}/items", method: "POST",
411 | pathNames: ["id"], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:423:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
421 | @discardableResult
422 | public func deletePlaylistItem(parameters: [String: String] = [:],
423 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
424 | request(path: "/playlists/{id}/items/{item_id}", method: "DELETE",
425 | pathNames: ["id", "item_id"], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PodcastAPI/ApiMethods.swift:437:80: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
435 | @discardableResult
436 | public func updatePlaylistItemNotes(parameters: [String: String] = [:],
437 | completion: @escaping @Sendable (ApiResponse) -> Void) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
438 | request(path: "/playlists/{id}/items/{item_id}", method: "PUT",
439 | pathNames: ["id", "item_id"], queryNames: [], parameters: parameters, completion: completion)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
[9/13] Compiling PodcastAPI SwiftyJSON.swift
BUILD FAILURE 6.2 wasm