Build Information
Failed to build YouTubeKit, reference v2.7.0 (c5c1b3), with Swift 6.3 for Wasm on 18 Apr 2026 16:18:37 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
138 | case .failure(let error):
139 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: request, responseData: responseData, result: .failure(error)))
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:145:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
143 |
144 | /// Create task with the request
145 | let task = URLSession.shared.dataTask(with: request) { responseData, _, error in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
146 | /// Check if the task worked and gave back data.
147 | if let responseData = responseData {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:166:88: error: 'nil' requires a contextual type
164 | task.resume()
165 | } catch {
166 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: nil, responseData: nil, result: .failure(error)))
| `- error: 'nil' requires a contextual type
167 | result(.failure(error))
168 | }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:166:107: error: 'nil' requires a contextual type
164 | task.resume()
165 | } catch {
166 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: nil, responseData: nil, result: .failure(error)))
| `- error: 'nil' requires a contextual type
167 | result(.failure(error))
168 | }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:166:121: error: cannot infer contextual base in reference to member 'failure'
164 | task.resume()
165 | } catch {
166 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: nil, responseData: nil, result: .failure(error)))
| `- error: cannot infer contextual base in reference to member 'failure'
167 | result(.failure(error))
168 | }
[69/114] Compiling YouTubeKit AccountPlaylistsResponse.swift
/host/spi-builder-workspace/Sources/YouTubeKit/SwiftyJSON/SwiftyJSON.swift:1272:51: error: ambiguous use of operator '<'
1270 |
1271 | switch (lhs.type, rhs.type) {
1272 | case (.number, .number): return lhs.rawNumber < rhs.rawNumber
| `- error: ambiguous use of operator '<'
1273 | case (.string, .string): return lhs.rawString < rhs.rawString
1274 | default: return false
:
1306 | }
1307 |
1308 | func < (lhs: NSNumber, rhs: NSNumber) -> Bool {
| `- note: found this candidate
1309 |
1310 | switch (lhs.isBool, rhs.isBool) {
Foundation.NSNumber.<:2:20: note: found this candidate in module 'Foundation'
1 | class NSNumber {
2 | public static func < (lhs: NSNumber, rhs: NSNumber) -> Bool}
| `- note: found this candidate in module 'Foundation'
3 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:1794:1: warning: extension declares a conformance of imported type 'String' to imported protocols 'LocalizedError', 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
1792 | }
1793 | #else
1794 | extension String: LocalizedError {
| |- warning: extension declares a conformance of imported type 'String' to imported protocols 'LocalizedError', 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
1795 | public var errorDescription: String? { self }
1796 | }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:128:26: error: cannot find type 'URLRequest' in scope
126 |
127 | /// Create request
128 | let request: URLRequest = HeadersList.setHeadersAgentFor(
| `- error: cannot find type 'URLRequest' in scope
129 | content: headers,
130 | data: data
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:190:10: error: cannot find type 'URLRequest' in scope
188 | content: HeadersList,
189 | data: YouTubeResponse.RequestData
190 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
191 | var url = URL(string: data[.customURL] ?? "") ?? content.url
192 | if content.parameters != nil {
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:56:65: error: cannot find type 'URLRequest' in scope
54 | public let result: Result<LogType, Error>
55 |
56 | public init(providedParameters: RequestParameters, request: URLRequest?, responseData: Data?, result: Result<LogType, Error>) {
| `- error: cannot find type 'URLRequest' in scope
57 | self.providedParameters = providedParameters
58 | self.request = request
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:137:36: error: generic parameter 'ResponseType' could not be inferred
135 | switch responseResult {
136 | case .success(let success):
137 | logger?.addLog(RequestLog(providedParameters: data, request: request, responseData: responseData, result: .success(success)))
| |- error: generic parameter 'ResponseType' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
138 | case .failure(let error):
139 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: request, responseData: responseData, result: .failure(error)))
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:39:26: note: 'ResponseType' declared as parameter to type 'RequestLog'
37 |
38 | /// A structure representing a log.
39 | public struct RequestLog<ResponseType: YouTubeResponse>: Identifiable, GenericRequestLog {
| `- note: 'ResponseType' declared as parameter to type 'RequestLog'
40 | public typealias LogType = ResponseType
41 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:137:128: error: cannot infer contextual base in reference to member 'success'
135 | switch responseResult {
136 | case .success(let success):
137 | logger?.addLog(RequestLog(providedParameters: data, request: request, responseData: responseData, result: .success(success)))
| `- error: cannot infer contextual base in reference to member 'success'
138 | case .failure(let error):
139 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: request, responseData: responseData, result: .failure(error)))
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:145:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
143 |
144 | /// Create task with the request
145 | let task = URLSession.shared.dataTask(with: request) { responseData, _, error in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
146 | /// Check if the task worked and gave back data.
147 | if let responseData = responseData {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:166:88: error: 'nil' requires a contextual type
164 | task.resume()
165 | } catch {
166 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: nil, responseData: nil, result: .failure(error)))
| `- error: 'nil' requires a contextual type
167 | result(.failure(error))
168 | }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:166:107: error: 'nil' requires a contextual type
164 | task.resume()
165 | } catch {
166 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: nil, responseData: nil, result: .failure(error)))
| `- error: 'nil' requires a contextual type
167 | result(.failure(error))
168 | }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:166:121: error: cannot infer contextual base in reference to member 'failure'
164 | task.resume()
165 | } catch {
166 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: nil, responseData: nil, result: .failure(error)))
| `- error: cannot infer contextual base in reference to member 'failure'
167 | result(.failure(error))
168 | }
[70/114] Compiling YouTubeKit AccountSubscriptionsFeedResponse.swift
/host/spi-builder-workspace/Sources/YouTubeKit/SwiftyJSON/SwiftyJSON.swift:1272:51: error: ambiguous use of operator '<'
1270 |
1271 | switch (lhs.type, rhs.type) {
1272 | case (.number, .number): return lhs.rawNumber < rhs.rawNumber
| `- error: ambiguous use of operator '<'
1273 | case (.string, .string): return lhs.rawString < rhs.rawString
1274 | default: return false
:
1306 | }
1307 |
1308 | func < (lhs: NSNumber, rhs: NSNumber) -> Bool {
| `- note: found this candidate
1309 |
1310 | switch (lhs.isBool, rhs.isBool) {
Foundation.NSNumber.<:2:20: note: found this candidate in module 'Foundation'
1 | class NSNumber {
2 | public static func < (lhs: NSNumber, rhs: NSNumber) -> Bool}
| `- note: found this candidate in module 'Foundation'
3 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:1794:1: warning: extension declares a conformance of imported type 'String' to imported protocols 'LocalizedError', 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
1792 | }
1793 | #else
1794 | extension String: LocalizedError {
| |- warning: extension declares a conformance of imported type 'String' to imported protocols 'LocalizedError', 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
1795 | public var errorDescription: String? { self }
1796 | }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:128:26: error: cannot find type 'URLRequest' in scope
126 |
127 | /// Create request
128 | let request: URLRequest = HeadersList.setHeadersAgentFor(
| `- error: cannot find type 'URLRequest' in scope
129 | content: headers,
130 | data: data
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:190:10: error: cannot find type 'URLRequest' in scope
188 | content: HeadersList,
189 | data: YouTubeResponse.RequestData
190 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
191 | var url = URL(string: data[.customURL] ?? "") ?? content.url
192 | if content.parameters != nil {
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:56:65: error: cannot find type 'URLRequest' in scope
54 | public let result: Result<LogType, Error>
55 |
56 | public init(providedParameters: RequestParameters, request: URLRequest?, responseData: Data?, result: Result<LogType, Error>) {
| `- error: cannot find type 'URLRequest' in scope
57 | self.providedParameters = providedParameters
58 | self.request = request
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:137:36: error: generic parameter 'ResponseType' could not be inferred
135 | switch responseResult {
136 | case .success(let success):
137 | logger?.addLog(RequestLog(providedParameters: data, request: request, responseData: responseData, result: .success(success)))
| |- error: generic parameter 'ResponseType' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
138 | case .failure(let error):
139 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: request, responseData: responseData, result: .failure(error)))
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:39:26: note: 'ResponseType' declared as parameter to type 'RequestLog'
37 |
38 | /// A structure representing a log.
39 | public struct RequestLog<ResponseType: YouTubeResponse>: Identifiable, GenericRequestLog {
| `- note: 'ResponseType' declared as parameter to type 'RequestLog'
40 | public typealias LogType = ResponseType
41 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:137:128: error: cannot infer contextual base in reference to member 'success'
135 | switch responseResult {
136 | case .success(let success):
137 | logger?.addLog(RequestLog(providedParameters: data, request: request, responseData: responseData, result: .success(success)))
| `- error: cannot infer contextual base in reference to member 'success'
138 | case .failure(let error):
139 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: request, responseData: responseData, result: .failure(error)))
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:145:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
143 |
144 | /// Create task with the request
145 | let task = URLSession.shared.dataTask(with: request) { responseData, _, error in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
146 | /// Check if the task worked and gave back data.
147 | if let responseData = responseData {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:166:88: error: 'nil' requires a contextual type
164 | task.resume()
165 | } catch {
166 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: nil, responseData: nil, result: .failure(error)))
| `- error: 'nil' requires a contextual type
167 | result(.failure(error))
168 | }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:166:107: error: 'nil' requires a contextual type
164 | task.resume()
165 | } catch {
166 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: nil, responseData: nil, result: .failure(error)))
| `- error: 'nil' requires a contextual type
167 | result(.failure(error))
168 | }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:166:121: error: cannot infer contextual base in reference to member 'failure'
164 | task.resume()
165 | } catch {
166 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: nil, responseData: nil, result: .failure(error)))
| `- error: cannot infer contextual base in reference to member 'failure'
167 | result(.failure(error))
168 | }
[71/114] Compiling YouTubeKit AccountSubscriptionsResponse.swift
/host/spi-builder-workspace/Sources/YouTubeKit/SwiftyJSON/SwiftyJSON.swift:1272:51: error: ambiguous use of operator '<'
1270 |
1271 | switch (lhs.type, rhs.type) {
1272 | case (.number, .number): return lhs.rawNumber < rhs.rawNumber
| `- error: ambiguous use of operator '<'
1273 | case (.string, .string): return lhs.rawString < rhs.rawString
1274 | default: return false
:
1306 | }
1307 |
1308 | func < (lhs: NSNumber, rhs: NSNumber) -> Bool {
| `- note: found this candidate
1309 |
1310 | switch (lhs.isBool, rhs.isBool) {
Foundation.NSNumber.<:2:20: note: found this candidate in module 'Foundation'
1 | class NSNumber {
2 | public static func < (lhs: NSNumber, rhs: NSNumber) -> Bool}
| `- note: found this candidate in module 'Foundation'
3 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:1794:1: warning: extension declares a conformance of imported type 'String' to imported protocols 'LocalizedError', 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
1792 | }
1793 | #else
1794 | extension String: LocalizedError {
| |- warning: extension declares a conformance of imported type 'String' to imported protocols 'LocalizedError', 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
1795 | public var errorDescription: String? { self }
1796 | }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:128:26: error: cannot find type 'URLRequest' in scope
126 |
127 | /// Create request
128 | let request: URLRequest = HeadersList.setHeadersAgentFor(
| `- error: cannot find type 'URLRequest' in scope
129 | content: headers,
130 | data: data
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:190:10: error: cannot find type 'URLRequest' in scope
188 | content: HeadersList,
189 | data: YouTubeResponse.RequestData
190 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
191 | var url = URL(string: data[.customURL] ?? "") ?? content.url
192 | if content.parameters != nil {
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:56:65: error: cannot find type 'URLRequest' in scope
54 | public let result: Result<LogType, Error>
55 |
56 | public init(providedParameters: RequestParameters, request: URLRequest?, responseData: Data?, result: Result<LogType, Error>) {
| `- error: cannot find type 'URLRequest' in scope
57 | self.providedParameters = providedParameters
58 | self.request = request
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:137:36: error: generic parameter 'ResponseType' could not be inferred
135 | switch responseResult {
136 | case .success(let success):
137 | logger?.addLog(RequestLog(providedParameters: data, request: request, responseData: responseData, result: .success(success)))
| |- error: generic parameter 'ResponseType' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
138 | case .failure(let error):
139 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: request, responseData: responseData, result: .failure(error)))
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:39:26: note: 'ResponseType' declared as parameter to type 'RequestLog'
37 |
38 | /// A structure representing a log.
39 | public struct RequestLog<ResponseType: YouTubeResponse>: Identifiable, GenericRequestLog {
| `- note: 'ResponseType' declared as parameter to type 'RequestLog'
40 | public typealias LogType = ResponseType
41 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:137:128: error: cannot infer contextual base in reference to member 'success'
135 | switch responseResult {
136 | case .success(let success):
137 | logger?.addLog(RequestLog(providedParameters: data, request: request, responseData: responseData, result: .success(success)))
| `- error: cannot infer contextual base in reference to member 'success'
138 | case .failure(let error):
139 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: request, responseData: responseData, result: .failure(error)))
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:145:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
143 |
144 | /// Create task with the request
145 | let task = URLSession.shared.dataTask(with: request) { responseData, _, error in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
146 | /// Check if the task worked and gave back data.
147 | if let responseData = responseData {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:166:88: error: 'nil' requires a contextual type
164 | task.resume()
165 | } catch {
166 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: nil, responseData: nil, result: .failure(error)))
| `- error: 'nil' requires a contextual type
167 | result(.failure(error))
168 | }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:166:107: error: 'nil' requires a contextual type
164 | task.resume()
165 | } catch {
166 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: nil, responseData: nil, result: .failure(error)))
| `- error: 'nil' requires a contextual type
167 | result(.failure(error))
168 | }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:166:121: error: cannot infer contextual base in reference to member 'failure'
164 | task.resume()
165 | } catch {
166 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: nil, responseData: nil, result: .failure(error)))
| `- error: cannot infer contextual base in reference to member 'failure'
167 | result(.failure(error))
168 | }
[72/114] Compiling YouTubeKit AuthenticatedResponse.swift
/host/spi-builder-workspace/Sources/YouTubeKit/SwiftyJSON/SwiftyJSON.swift:1272:51: error: ambiguous use of operator '<'
1270 |
1271 | switch (lhs.type, rhs.type) {
1272 | case (.number, .number): return lhs.rawNumber < rhs.rawNumber
| `- error: ambiguous use of operator '<'
1273 | case (.string, .string): return lhs.rawString < rhs.rawString
1274 | default: return false
:
1306 | }
1307 |
1308 | func < (lhs: NSNumber, rhs: NSNumber) -> Bool {
| `- note: found this candidate
1309 |
1310 | switch (lhs.isBool, rhs.isBool) {
Foundation.NSNumber.<:2:20: note: found this candidate in module 'Foundation'
1 | class NSNumber {
2 | public static func < (lhs: NSNumber, rhs: NSNumber) -> Bool}
| `- note: found this candidate in module 'Foundation'
3 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:1794:1: warning: extension declares a conformance of imported type 'String' to imported protocols 'LocalizedError', 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
1792 | }
1793 | #else
1794 | extension String: LocalizedError {
| |- warning: extension declares a conformance of imported type 'String' to imported protocols 'LocalizedError', 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
1795 | public var errorDescription: String? { self }
1796 | }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:128:26: error: cannot find type 'URLRequest' in scope
126 |
127 | /// Create request
128 | let request: URLRequest = HeadersList.setHeadersAgentFor(
| `- error: cannot find type 'URLRequest' in scope
129 | content: headers,
130 | data: data
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:190:10: error: cannot find type 'URLRequest' in scope
188 | content: HeadersList,
189 | data: YouTubeResponse.RequestData
190 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
191 | var url = URL(string: data[.customURL] ?? "") ?? content.url
192 | if content.parameters != nil {
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:56:65: error: cannot find type 'URLRequest' in scope
54 | public let result: Result<LogType, Error>
55 |
56 | public init(providedParameters: RequestParameters, request: URLRequest?, responseData: Data?, result: Result<LogType, Error>) {
| `- error: cannot find type 'URLRequest' in scope
57 | self.providedParameters = providedParameters
58 | self.request = request
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:137:36: error: generic parameter 'ResponseType' could not be inferred
135 | switch responseResult {
136 | case .success(let success):
137 | logger?.addLog(RequestLog(providedParameters: data, request: request, responseData: responseData, result: .success(success)))
| |- error: generic parameter 'ResponseType' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
138 | case .failure(let error):
139 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: request, responseData: responseData, result: .failure(error)))
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:39:26: note: 'ResponseType' declared as parameter to type 'RequestLog'
37 |
38 | /// A structure representing a log.
39 | public struct RequestLog<ResponseType: YouTubeResponse>: Identifiable, GenericRequestLog {
| `- note: 'ResponseType' declared as parameter to type 'RequestLog'
40 | public typealias LogType = ResponseType
41 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:137:128: error: cannot infer contextual base in reference to member 'success'
135 | switch responseResult {
136 | case .success(let success):
137 | logger?.addLog(RequestLog(providedParameters: data, request: request, responseData: responseData, result: .success(success)))
| `- error: cannot infer contextual base in reference to member 'success'
138 | case .failure(let error):
139 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: request, responseData: responseData, result: .failure(error)))
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:145:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
143 |
144 | /// Create task with the request
145 | let task = URLSession.shared.dataTask(with: request) { responseData, _, error in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
146 | /// Check if the task worked and gave back data.
147 | if let responseData = responseData {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:166:88: error: 'nil' requires a contextual type
164 | task.resume()
165 | } catch {
166 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: nil, responseData: nil, result: .failure(error)))
| `- error: 'nil' requires a contextual type
167 | result(.failure(error))
168 | }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:166:107: error: 'nil' requires a contextual type
164 | task.resume()
165 | } catch {
166 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: nil, responseData: nil, result: .failure(error)))
| `- error: 'nil' requires a contextual type
167 | result(.failure(error))
168 | }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:166:121: error: cannot infer contextual base in reference to member 'failure'
164 | task.resume()
165 | } catch {
166 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: nil, responseData: nil, result: .failure(error)))
| `- error: cannot infer contextual base in reference to member 'failure'
167 | result(.failure(error))
168 | }
[73/114] Compiling YouTubeKit SubscribeChannelResponse.swift
/host/spi-builder-workspace/Sources/YouTubeKit/SwiftyJSON/SwiftyJSON.swift:1272:51: error: ambiguous use of operator '<'
1270 |
1271 | switch (lhs.type, rhs.type) {
1272 | case (.number, .number): return lhs.rawNumber < rhs.rawNumber
| `- error: ambiguous use of operator '<'
1273 | case (.string, .string): return lhs.rawString < rhs.rawString
1274 | default: return false
:
1306 | }
1307 |
1308 | func < (lhs: NSNumber, rhs: NSNumber) -> Bool {
| `- note: found this candidate
1309 |
1310 | switch (lhs.isBool, rhs.isBool) {
Foundation.NSNumber.<:2:20: note: found this candidate in module 'Foundation'
1 | class NSNumber {
2 | public static func < (lhs: NSNumber, rhs: NSNumber) -> Bool}
| `- note: found this candidate in module 'Foundation'
3 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:1794:1: warning: extension declares a conformance of imported type 'String' to imported protocols 'LocalizedError', 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
1792 | }
1793 | #else
1794 | extension String: LocalizedError {
| |- warning: extension declares a conformance of imported type 'String' to imported protocols 'LocalizedError', 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
1795 | public var errorDescription: String? { self }
1796 | }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:128:26: error: cannot find type 'URLRequest' in scope
126 |
127 | /// Create request
128 | let request: URLRequest = HeadersList.setHeadersAgentFor(
| `- error: cannot find type 'URLRequest' in scope
129 | content: headers,
130 | data: data
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:190:10: error: cannot find type 'URLRequest' in scope
188 | content: HeadersList,
189 | data: YouTubeResponse.RequestData
190 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
191 | var url = URL(string: data[.customURL] ?? "") ?? content.url
192 | if content.parameters != nil {
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:56:65: error: cannot find type 'URLRequest' in scope
54 | public let result: Result<LogType, Error>
55 |
56 | public init(providedParameters: RequestParameters, request: URLRequest?, responseData: Data?, result: Result<LogType, Error>) {
| `- error: cannot find type 'URLRequest' in scope
57 | self.providedParameters = providedParameters
58 | self.request = request
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:137:36: error: generic parameter 'ResponseType' could not be inferred
135 | switch responseResult {
136 | case .success(let success):
137 | logger?.addLog(RequestLog(providedParameters: data, request: request, responseData: responseData, result: .success(success)))
| |- error: generic parameter 'ResponseType' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
138 | case .failure(let error):
139 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: request, responseData: responseData, result: .failure(error)))
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:39:26: note: 'ResponseType' declared as parameter to type 'RequestLog'
37 |
38 | /// A structure representing a log.
39 | public struct RequestLog<ResponseType: YouTubeResponse>: Identifiable, GenericRequestLog {
| `- note: 'ResponseType' declared as parameter to type 'RequestLog'
40 | public typealias LogType = ResponseType
41 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:137:128: error: cannot infer contextual base in reference to member 'success'
135 | switch responseResult {
136 | case .success(let success):
137 | logger?.addLog(RequestLog(providedParameters: data, request: request, responseData: responseData, result: .success(success)))
| `- error: cannot infer contextual base in reference to member 'success'
138 | case .failure(let error):
139 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: request, responseData: responseData, result: .failure(error)))
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:145:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
143 |
144 | /// Create task with the request
145 | let task = URLSession.shared.dataTask(with: request) { responseData, _, error in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
146 | /// Check if the task worked and gave back data.
147 | if let responseData = responseData {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:166:88: error: 'nil' requires a contextual type
164 | task.resume()
165 | } catch {
166 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: nil, responseData: nil, result: .failure(error)))
| `- error: 'nil' requires a contextual type
167 | result(.failure(error))
168 | }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:166:107: error: 'nil' requires a contextual type
164 | task.resume()
165 | } catch {
166 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: nil, responseData: nil, result: .failure(error)))
| `- error: 'nil' requires a contextual type
167 | result(.failure(error))
168 | }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeModel.swift:166:121: error: cannot infer contextual base in reference to member 'failure'
164 | task.resume()
165 | } catch {
166 | logger?.addLog(RequestLog<ResponseType>(providedParameters: data, request: nil, responseData: nil, result: .failure(error)))
| `- error: cannot infer contextual base in reference to member 'failure'
167 | result(.failure(error))
168 | }
[74/114] Compiling YouTubeKit YouTubeVideo+fetchStreamingInfosWithDownloadFormats.swift
[75/114] Compiling YouTubeKit YouTubeVideo+getCaptions.swift
[76/114] Compiling YouTubeKit YouTubeVideo+likeActions.swift
[77/114] Compiling YouTubeKit YouTubeVideo.swift
[78/114] Compiling YouTubeKit YTCaption.swift
[79/114] Compiling YouTubeKit YTChannel.swift
[80/114] Compiling YouTubeKit YTComment+actions.swift
[81/114] Compiling YouTubeKit YTComment.swift
[82/114] Compiling YouTubeKit YTLittleChannelInfos.swift
[83/114] Compiling YouTubeKit YTPlaylist+canShowBeDecoded.swift
[84/114] Compiling YouTubeKit YTPlaylist+decodeShowFromJSON.swift
[85/114] Compiling YouTubeKit YTPlaylist+fetchVideos.swift
[86/114] Compiling YouTubeKit YTPlaylist.swift
[87/114] Compiling YouTubeKit YTThumbnail.swift
[88/114] Compiling YouTubeKit YTVideo+decodeShortFromJSON.swift
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:190:10: error: cannot find type 'URLRequest' in scope
188 | content: HeadersList,
189 | data: YouTubeResponse.RequestData
190 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
191 | var url = URL(string: data[.customURL] ?? "") ?? content.url
192 | if content.parameters != nil {
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:218:23: error: cannot find 'URLRequest' in scope
216 | url.append(queryItems: parametersToAppend)
217 | }
218 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
219 |
220 | /// Looping each header and add it to the request
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:26:18: error: cannot find type 'URLRequest' in scope
24 |
25 | /// The request that has been sent over the network, can be nil if the request couldn't even be made, for example if one of the given RequestParameter didn't pass the verification tests.
26 | var request: URLRequest? { get }
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | /// The raw data from the response.
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:48:25: error: cannot find type 'URLRequest' in scope
46 | public let providedParameters: RequestParameters
47 |
48 | public let request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
49 |
50 | public let responseData: Data?
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:56:65: error: cannot find type 'URLRequest' in scope
54 | public let result: Result<LogType, Error>
55 |
56 | public init(providedParameters: RequestParameters, request: URLRequest?, responseData: Data?, result: Result<LogType, Error>) {
| `- error: cannot find type 'URLRequest' in scope
57 | self.providedParameters = providedParameters
58 | self.request = request
[89/114] Compiling YouTubeKit YTVideo+decodeVideoFromPlaylist.swift
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:190:10: error: cannot find type 'URLRequest' in scope
188 | content: HeadersList,
189 | data: YouTubeResponse.RequestData
190 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
191 | var url = URL(string: data[.customURL] ?? "") ?? content.url
192 | if content.parameters != nil {
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:218:23: error: cannot find 'URLRequest' in scope
216 | url.append(queryItems: parametersToAppend)
217 | }
218 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
219 |
220 | /// Looping each header and add it to the request
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:26:18: error: cannot find type 'URLRequest' in scope
24 |
25 | /// The request that has been sent over the network, can be nil if the request couldn't even be made, for example if one of the given RequestParameter didn't pass the verification tests.
26 | var request: URLRequest? { get }
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | /// The raw data from the response.
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:48:25: error: cannot find type 'URLRequest' in scope
46 | public let providedParameters: RequestParameters
47 |
48 | public let request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
49 |
50 | public let responseData: Data?
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:56:65: error: cannot find type 'URLRequest' in scope
54 | public let result: Result<LogType, Error>
55 |
56 | public init(providedParameters: RequestParameters, request: URLRequest?, responseData: Data?, result: Result<LogType, Error>) {
| `- error: cannot find type 'URLRequest' in scope
57 | self.providedParameters = providedParameters
58 | self.request = request
[90/114] Compiling YouTubeKit YTVideo+timeStringToSeconds.swift
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:190:10: error: cannot find type 'URLRequest' in scope
188 | content: HeadersList,
189 | data: YouTubeResponse.RequestData
190 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
191 | var url = URL(string: data[.customURL] ?? "") ?? content.url
192 | if content.parameters != nil {
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:218:23: error: cannot find 'URLRequest' in scope
216 | url.append(queryItems: parametersToAppend)
217 | }
218 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
219 |
220 | /// Looping each header and add it to the request
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:26:18: error: cannot find type 'URLRequest' in scope
24 |
25 | /// The request that has been sent over the network, can be nil if the request couldn't even be made, for example if one of the given RequestParameter didn't pass the verification tests.
26 | var request: URLRequest? { get }
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | /// The raw data from the response.
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:48:25: error: cannot find type 'URLRequest' in scope
46 | public let providedParameters: RequestParameters
47 |
48 | public let request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
49 |
50 | public let responseData: Data?
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:56:65: error: cannot find type 'URLRequest' in scope
54 | public let result: Result<LogType, Error>
55 |
56 | public init(providedParameters: RequestParameters, request: URLRequest?, responseData: Data?, result: Result<LogType, Error>) {
| `- error: cannot find type 'URLRequest' in scope
57 | self.providedParameters = providedParameters
58 | self.request = request
[91/114] Compiling YouTubeKit YTVideo.swift
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:190:10: error: cannot find type 'URLRequest' in scope
188 | content: HeadersList,
189 | data: YouTubeResponse.RequestData
190 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
191 | var url = URL(string: data[.customURL] ?? "") ?? content.url
192 | if content.parameters != nil {
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:218:23: error: cannot find 'URLRequest' in scope
216 | url.append(queryItems: parametersToAppend)
217 | }
218 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
219 |
220 | /// Looping each header and add it to the request
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:26:18: error: cannot find type 'URLRequest' in scope
24 |
25 | /// The request that has been sent over the network, can be nil if the request couldn't even be made, for example if one of the given RequestParameter didn't pass the verification tests.
26 | var request: URLRequest? { get }
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | /// The raw data from the response.
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:48:25: error: cannot find type 'URLRequest' in scope
46 | public let providedParameters: RequestParameters
47 |
48 | public let request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
49 |
50 | public let responseData: Data?
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:56:65: error: cannot find type 'URLRequest' in scope
54 | public let result: Result<LogType, Error>
55 |
56 | public init(providedParameters: RequestParameters, request: URLRequest?, responseData: Data?, result: Result<LogType, Error>) {
| `- error: cannot find type 'URLRequest' in scope
57 | self.providedParameters = providedParameters
58 | self.request = request
[92/114] Compiling YouTubeKit BadRequestDataError.swift
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:190:10: error: cannot find type 'URLRequest' in scope
188 | content: HeadersList,
189 | data: YouTubeResponse.RequestData
190 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
191 | var url = URL(string: data[.customURL] ?? "") ?? content.url
192 | if content.parameters != nil {
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:218:23: error: cannot find 'URLRequest' in scope
216 | url.append(queryItems: parametersToAppend)
217 | }
218 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
219 |
220 | /// Looping each header and add it to the request
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:26:18: error: cannot find type 'URLRequest' in scope
24 |
25 | /// The request that has been sent over the network, can be nil if the request couldn't even be made, for example if one of the given RequestParameter didn't pass the verification tests.
26 | var request: URLRequest? { get }
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | /// The raw data from the response.
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:48:25: error: cannot find type 'URLRequest' in scope
46 | public let providedParameters: RequestParameters
47 |
48 | public let request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
49 |
50 | public let responseData: Data?
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:56:65: error: cannot find type 'URLRequest' in scope
54 | public let result: Result<LogType, Error>
55 |
56 | public init(providedParameters: RequestParameters, request: URLRequest?, responseData: Data?, result: Result<LogType, Error>) {
| `- error: cannot find type 'URLRequest' in scope
57 | self.providedParameters = providedParameters
58 | self.request = request
[93/114] Compiling YouTubeKit NetworkError.swift
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:190:10: error: cannot find type 'URLRequest' in scope
188 | content: HeadersList,
189 | data: YouTubeResponse.RequestData
190 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
191 | var url = URL(string: data[.customURL] ?? "") ?? content.url
192 | if content.parameters != nil {
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:218:23: error: cannot find 'URLRequest' in scope
216 | url.append(queryItems: parametersToAppend)
217 | }
218 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
219 |
220 | /// Looping each header and add it to the request
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:26:18: error: cannot find type 'URLRequest' in scope
24 |
25 | /// The request that has been sent over the network, can be nil if the request couldn't even be made, for example if one of the given RequestParameter didn't pass the verification tests.
26 | var request: URLRequest? { get }
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | /// The raw data from the response.
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:48:25: error: cannot find type 'URLRequest' in scope
46 | public let providedParameters: RequestParameters
47 |
48 | public let request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
49 |
50 | public let responseData: Data?
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:56:65: error: cannot find type 'URLRequest' in scope
54 | public let result: Result<LogType, Error>
55 |
56 | public init(providedParameters: RequestParameters, request: URLRequest?, responseData: Data?, result: Result<LogType, Error>) {
| `- error: cannot find type 'URLRequest' in scope
57 | self.providedParameters = providedParameters
58 | self.request = request
[94/114] Compiling YouTubeKit ResponseExtractionError.swift
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:190:10: error: cannot find type 'URLRequest' in scope
188 | content: HeadersList,
189 | data: YouTubeResponse.RequestData
190 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
191 | var url = URL(string: data[.customURL] ?? "") ?? content.url
192 | if content.parameters != nil {
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:218:23: error: cannot find 'URLRequest' in scope
216 | url.append(queryItems: parametersToAppend)
217 | }
218 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
219 |
220 | /// Looping each header and add it to the request
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:26:18: error: cannot find type 'URLRequest' in scope
24 |
25 | /// The request that has been sent over the network, can be nil if the request couldn't even be made, for example if one of the given RequestParameter didn't pass the verification tests.
26 | var request: URLRequest? { get }
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | /// The raw data from the response.
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:48:25: error: cannot find type 'URLRequest' in scope
46 | public let providedParameters: RequestParameters
47 |
48 | public let request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
49 |
50 | public let responseData: Data?
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:56:65: error: cannot find type 'URLRequest' in scope
54 | public let result: Result<LogType, Error>
55 |
56 | public init(providedParameters: RequestParameters, request: URLRequest?, responseData: Data?, result: Result<LogType, Error>) {
| `- error: cannot find type 'URLRequest' in scope
57 | self.providedParameters = providedParameters
58 | self.request = request
[95/114] Compiling YouTubeKit ParameterValidator+commonValidators.swift
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:190:10: error: cannot find type 'URLRequest' in scope
188 | content: HeadersList,
189 | data: YouTubeResponse.RequestData
190 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
191 | var url = URL(string: data[.customURL] ?? "") ?? content.url
192 | if content.parameters != nil {
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:218:23: error: cannot find 'URLRequest' in scope
216 | url.append(queryItems: parametersToAppend)
217 | }
218 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
219 |
220 | /// Looping each header and add it to the request
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:26:18: error: cannot find type 'URLRequest' in scope
24 |
25 | /// The request that has been sent over the network, can be nil if the request couldn't even be made, for example if one of the given RequestParameter didn't pass the verification tests.
26 | var request: URLRequest? { get }
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | /// The raw data from the response.
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:48:25: error: cannot find type 'URLRequest' in scope
46 | public let providedParameters: RequestParameters
47 |
48 | public let request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
49 |
50 | public let responseData: Data?
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:56:65: error: cannot find type 'URLRequest' in scope
54 | public let result: Result<LogType, Error>
55 |
56 | public init(providedParameters: RequestParameters, request: URLRequest?, responseData: Data?, result: Result<LogType, Error>) {
| `- error: cannot find type 'URLRequest' in scope
57 | self.providedParameters = providedParameters
58 | self.request = request
[96/114] Compiling YouTubeKit ParameterValidator.swift
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:190:10: error: cannot find type 'URLRequest' in scope
188 | content: HeadersList,
189 | data: YouTubeResponse.RequestData
190 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
191 | var url = URL(string: data[.customURL] ?? "") ?? content.url
192 | if content.parameters != nil {
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:218:23: error: cannot find 'URLRequest' in scope
216 | url.append(queryItems: parametersToAppend)
217 | }
218 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
219 |
220 | /// Looping each header and add it to the request
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:26:18: error: cannot find type 'URLRequest' in scope
24 |
25 | /// The request that has been sent over the network, can be nil if the request couldn't even be made, for example if one of the given RequestParameter didn't pass the verification tests.
26 | var request: URLRequest? { get }
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | /// The raw data from the response.
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:48:25: error: cannot find type 'URLRequest' in scope
46 | public let providedParameters: RequestParameters
47 |
48 | public let request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
49 |
50 | public let responseData: Data?
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:56:65: error: cannot find type 'URLRequest' in scope
54 | public let result: Result<LogType, Error>
55 |
56 | public init(providedParameters: RequestParameters, request: URLRequest?, responseData: Data?, result: Result<LogType, Error>) {
| `- error: cannot find type 'URLRequest' in scope
57 | self.providedParameters = providedParameters
58 | self.request = request
[97/114] Compiling YouTubeKit HeaderTypes+Hashable.swift
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:190:10: error: cannot find type 'URLRequest' in scope
188 | content: HeadersList,
189 | data: YouTubeResponse.RequestData
190 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
191 | var url = URL(string: data[.customURL] ?? "") ?? content.url
192 | if content.parameters != nil {
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:218:23: error: cannot find 'URLRequest' in scope
216 | url.append(queryItems: parametersToAppend)
217 | }
218 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
219 |
220 | /// Looping each header and add it to the request
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:26:18: error: cannot find type 'URLRequest' in scope
24 |
25 | /// The request that has been sent over the network, can be nil if the request couldn't even be made, for example if one of the given RequestParameter didn't pass the verification tests.
26 | var request: URLRequest? { get }
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | /// The raw data from the response.
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:48:25: error: cannot find type 'URLRequest' in scope
46 | public let providedParameters: RequestParameters
47 |
48 | public let request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
49 |
50 | public let responseData: Data?
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:56:65: error: cannot find type 'URLRequest' in scope
54 | public let result: Result<LogType, Error>
55 |
56 | public init(providedParameters: RequestParameters, request: URLRequest?, responseData: Data?, result: Result<LogType, Error>) {
| `- error: cannot find type 'URLRequest' in scope
57 | self.providedParameters = providedParameters
58 | self.request = request
[98/114] Compiling YouTubeKit HeaderTypes+RawRepresentable.swift
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:190:10: error: cannot find type 'URLRequest' in scope
188 | content: HeadersList,
189 | data: YouTubeResponse.RequestData
190 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
191 | var url = URL(string: data[.customURL] ?? "") ?? content.url
192 | if content.parameters != nil {
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:218:23: error: cannot find 'URLRequest' in scope
216 | url.append(queryItems: parametersToAppend)
217 | }
218 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
219 |
220 | /// Looping each header and add it to the request
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:26:18: error: cannot find type 'URLRequest' in scope
24 |
25 | /// The request that has been sent over the network, can be nil if the request couldn't even be made, for example if one of the given RequestParameter didn't pass the verification tests.
26 | var request: URLRequest? { get }
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | /// The raw data from the response.
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:48:25: error: cannot find type 'URLRequest' in scope
46 | public let providedParameters: RequestParameters
47 |
48 | public let request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
49 |
50 | public let responseData: Data?
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:56:65: error: cannot find type 'URLRequest' in scope
54 | public let result: Result<LogType, Error>
55 |
56 | public init(providedParameters: RequestParameters, request: URLRequest?, responseData: Data?, result: Result<LogType, Error>) {
| `- error: cannot find type 'URLRequest' in scope
57 | self.providedParameters = providedParameters
58 | self.request = request
[99/114] Compiling YouTubeKit HeaderTypes.swift
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:190:10: error: cannot find type 'URLRequest' in scope
188 | content: HeadersList,
189 | data: YouTubeResponse.RequestData
190 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
191 | var url = URL(string: data[.customURL] ?? "") ?? content.url
192 | if content.parameters != nil {
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:218:23: error: cannot find 'URLRequest' in scope
216 | url.append(queryItems: parametersToAppend)
217 | }
218 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
219 |
220 | /// Looping each header and add it to the request
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:26:18: error: cannot find type 'URLRequest' in scope
24 |
25 | /// The request that has been sent over the network, can be nil if the request couldn't even be made, for example if one of the given RequestParameter didn't pass the verification tests.
26 | var request: URLRequest? { get }
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | /// The raw data from the response.
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:48:25: error: cannot find type 'URLRequest' in scope
46 | public let providedParameters: RequestParameters
47 |
48 | public let request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
49 |
50 | public let responseData: Data?
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:56:65: error: cannot find type 'URLRequest' in scope
54 | public let result: Result<LogType, Error>
55 |
56 | public init(providedParameters: RequestParameters, request: URLRequest?, responseData: Data?, result: Result<LogType, Error>) {
| `- error: cannot find type 'URLRequest' in scope
57 | self.providedParameters = providedParameters
58 | self.request = request
[100/114] Compiling YouTubeKit HeadersList.swift
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:190:10: error: cannot find type 'URLRequest' in scope
188 | content: HeadersList,
189 | data: YouTubeResponse.RequestData
190 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
191 | var url = URL(string: data[.customURL] ?? "") ?? content.url
192 | if content.parameters != nil {
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:218:23: error: cannot find 'URLRequest' in scope
216 | url.append(queryItems: parametersToAppend)
217 | }
218 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
219 |
220 | /// Looping each header and add it to the request
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:26:18: error: cannot find type 'URLRequest' in scope
24 |
25 | /// The request that has been sent over the network, can be nil if the request couldn't even be made, for example if one of the given RequestParameter didn't pass the verification tests.
26 | var request: URLRequest? { get }
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | /// The raw data from the response.
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:48:25: error: cannot find type 'URLRequest' in scope
46 | public let providedParameters: RequestParameters
47 |
48 | public let request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
49 |
50 | public let responseData: Data?
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:56:65: error: cannot find type 'URLRequest' in scope
54 | public let result: Result<LogType, Error>
55 |
56 | public init(providedParameters: RequestParameters, request: URLRequest?, responseData: Data?, result: Result<LogType, Error>) {
| `- error: cannot find type 'URLRequest' in scope
57 | self.providedParameters = providedParameters
58 | self.request = request
[101/114] Compiling YouTubeKit RequestLog.swift
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:190:10: error: cannot find type 'URLRequest' in scope
188 | content: HeadersList,
189 | data: YouTubeResponse.RequestData
190 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
191 | var url = URL(string: data[.customURL] ?? "") ?? content.url
192 | if content.parameters != nil {
/host/spi-builder-workspace/Sources/YouTubeKit/HeadersList.swift:218:23: error: cannot find 'URLRequest' in scope
216 | url.append(queryItems: parametersToAppend)
217 | }
218 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
219 |
220 | /// Looping each header and add it to the request
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:26:18: error: cannot find type 'URLRequest' in scope
24 |
25 | /// The request that has been sent over the network, can be nil if the request couldn't even be made, for example if one of the given RequestParameter didn't pass the verification tests.
26 | var request: URLRequest? { get }
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | /// The raw data from the response.
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:48:25: error: cannot find type 'URLRequest' in scope
46 | public let providedParameters: RequestParameters
47 |
48 | public let request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
49 |
50 | public let responseData: Data?
/host/spi-builder-workspace/Sources/YouTubeKit/Logging/RequestLog.swift:56:65: error: cannot find type 'URLRequest' in scope
54 | public let result: Result<LogType, Error>
55 |
56 | public init(providedParameters: RequestParameters, request: URLRequest?, responseData: Data?, result: Result<LogType, Error>) {
| `- error: cannot find type 'URLRequest' in scope
57 | self.providedParameters = providedParameters
58 | self.request = request
[102/114] Compiling YouTubeKit AudioOnlyFormat.swift
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosResponse.swift:90:16: warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
88 |
89 | /// Endscreen of the video.
90 | public var endScreen: EndScreen? = nil
| `- warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
91 |
92 | /// The aspect ratio of the video (width/height).
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/EndScreen.swift:9:15: note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
7 | //
8 |
9 | public struct EndScreen {
| `- note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
10 | /// The start time in milliseconds of the end screen.
11 | public var startTime: Int?
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:314:50: error: cannot find type 'Operation' in scope
312 |
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
| `- error: cannot find type 'Operation' in scope
315 | override var isAsynchronous: Bool { true }
316 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:315:22: error: property does not override any property from its superclass
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
315 | override var isAsynchronous: Bool { true }
| `- error: property does not override any property from its superclass
316 |
317 | override var isExecuting: Bool { result == nil }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:317:22: error: property does not override any property from its superclass
315 | override var isAsynchronous: Bool { true }
316 |
317 | override var isExecuting: Bool { result == nil }
| `- error: property does not override any property from its superclass
318 |
319 | override var isFinished: Bool { !isExecuting }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:319:22: error: property does not override any property from its superclass
317 | override var isExecuting: Bool { result == nil }
318 |
319 | override var isFinished: Bool { !isExecuting }
| `- error: property does not override any property from its superclass
320 |
321 | private let playerURL: URL
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:323:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
321 | private let playerURL: URL
322 |
323 | private var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
324 |
325 | var result: Result<Data, Error>? {
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/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:338:23: error: method does not override any method from its superclass
336 | }
337 |
338 | override func start() {
| `- error: method does not override any method from its superclass
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:279:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
277 | }
278 | do {
279 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
280 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).ab",
281 | contents: try JSONEncoder().encode(instructionsArray)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:284:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
282 | )
283 |
284 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
285 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).abn",
286 | contents: nParameterFunctionData
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:301:27: error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
299 | let downloadOperation = DownloadPlayerOperation(playerURL: playerURL)
300 | downloadOperation.start()
301 | downloadOperation.waitUntilFinished()
| `- error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
302 |
303 | guard let result = downloadOperation.result else { throw ResponseError(step: .downloadPlayer, reason: "Download operation did not return a result.") }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:335:13: error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
333 | init(playerURL: URL) {
334 | self.playerURL = playerURL
335 | super.init()
| `- error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
336 | }
337 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:339:20: error: cannot find 'isCancelled' in scope
337 |
338 | override func start() {
339 | guard !isCancelled else { return }
| `- error: cannot find 'isCancelled' in scope
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:340:29: error: cannot find 'DispatchSemaphore' in scope
338 | override func start() {
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
342 | data, response, error in
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:25: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:52: error: cannot infer contextual base in reference to member 'ephemeral'
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: cannot infer contextual base in reference to member 'ephemeral'
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:350:24: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
348 | semaphore.signal()
349 | })
350 | self.task?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
351 | semaphore.wait()
352 | }
[103/114] Compiling YouTubeKit CommentTranslationResponse.swift
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosResponse.swift:90:16: warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
88 |
89 | /// Endscreen of the video.
90 | public var endScreen: EndScreen? = nil
| `- warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
91 |
92 | /// The aspect ratio of the video (width/height).
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/EndScreen.swift:9:15: note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
7 | //
8 |
9 | public struct EndScreen {
| `- note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
10 | /// The start time in milliseconds of the end screen.
11 | public var startTime: Int?
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:314:50: error: cannot find type 'Operation' in scope
312 |
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
| `- error: cannot find type 'Operation' in scope
315 | override var isAsynchronous: Bool { true }
316 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:315:22: error: property does not override any property from its superclass
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
315 | override var isAsynchronous: Bool { true }
| `- error: property does not override any property from its superclass
316 |
317 | override var isExecuting: Bool { result == nil }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:317:22: error: property does not override any property from its superclass
315 | override var isAsynchronous: Bool { true }
316 |
317 | override var isExecuting: Bool { result == nil }
| `- error: property does not override any property from its superclass
318 |
319 | override var isFinished: Bool { !isExecuting }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:319:22: error: property does not override any property from its superclass
317 | override var isExecuting: Bool { result == nil }
318 |
319 | override var isFinished: Bool { !isExecuting }
| `- error: property does not override any property from its superclass
320 |
321 | private let playerURL: URL
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:323:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
321 | private let playerURL: URL
322 |
323 | private var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
324 |
325 | var result: Result<Data, Error>? {
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/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:338:23: error: method does not override any method from its superclass
336 | }
337 |
338 | override func start() {
| `- error: method does not override any method from its superclass
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:279:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
277 | }
278 | do {
279 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
280 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).ab",
281 | contents: try JSONEncoder().encode(instructionsArray)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:284:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
282 | )
283 |
284 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
285 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).abn",
286 | contents: nParameterFunctionData
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:301:27: error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
299 | let downloadOperation = DownloadPlayerOperation(playerURL: playerURL)
300 | downloadOperation.start()
301 | downloadOperation.waitUntilFinished()
| `- error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
302 |
303 | guard let result = downloadOperation.result else { throw ResponseError(step: .downloadPlayer, reason: "Download operation did not return a result.") }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:335:13: error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
333 | init(playerURL: URL) {
334 | self.playerURL = playerURL
335 | super.init()
| `- error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
336 | }
337 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:339:20: error: cannot find 'isCancelled' in scope
337 |
338 | override func start() {
339 | guard !isCancelled else { return }
| `- error: cannot find 'isCancelled' in scope
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:340:29: error: cannot find 'DispatchSemaphore' in scope
338 | override func start() {
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
342 | data, response, error in
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:25: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:52: error: cannot infer contextual base in reference to member 'ephemeral'
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: cannot infer contextual base in reference to member 'ephemeral'
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:350:24: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
348 | semaphore.signal()
349 | })
350 | self.task?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
351 | semaphore.wait()
352 | }
[104/114] Compiling YouTubeKit DownloadFormat.swift
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosResponse.swift:90:16: warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
88 |
89 | /// Endscreen of the video.
90 | public var endScreen: EndScreen? = nil
| `- warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
91 |
92 | /// The aspect ratio of the video (width/height).
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/EndScreen.swift:9:15: note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
7 | //
8 |
9 | public struct EndScreen {
| `- note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
10 | /// The start time in milliseconds of the end screen.
11 | public var startTime: Int?
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:314:50: error: cannot find type 'Operation' in scope
312 |
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
| `- error: cannot find type 'Operation' in scope
315 | override var isAsynchronous: Bool { true }
316 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:315:22: error: property does not override any property from its superclass
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
315 | override var isAsynchronous: Bool { true }
| `- error: property does not override any property from its superclass
316 |
317 | override var isExecuting: Bool { result == nil }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:317:22: error: property does not override any property from its superclass
315 | override var isAsynchronous: Bool { true }
316 |
317 | override var isExecuting: Bool { result == nil }
| `- error: property does not override any property from its superclass
318 |
319 | override var isFinished: Bool { !isExecuting }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:319:22: error: property does not override any property from its superclass
317 | override var isExecuting: Bool { result == nil }
318 |
319 | override var isFinished: Bool { !isExecuting }
| `- error: property does not override any property from its superclass
320 |
321 | private let playerURL: URL
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:323:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
321 | private let playerURL: URL
322 |
323 | private var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
324 |
325 | var result: Result<Data, Error>? {
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/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:338:23: error: method does not override any method from its superclass
336 | }
337 |
338 | override func start() {
| `- error: method does not override any method from its superclass
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:279:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
277 | }
278 | do {
279 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
280 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).ab",
281 | contents: try JSONEncoder().encode(instructionsArray)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:284:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
282 | )
283 |
284 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
285 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).abn",
286 | contents: nParameterFunctionData
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:301:27: error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
299 | let downloadOperation = DownloadPlayerOperation(playerURL: playerURL)
300 | downloadOperation.start()
301 | downloadOperation.waitUntilFinished()
| `- error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
302 |
303 | guard let result = downloadOperation.result else { throw ResponseError(step: .downloadPlayer, reason: "Download operation did not return a result.") }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:335:13: error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
333 | init(playerURL: URL) {
334 | self.playerURL = playerURL
335 | super.init()
| `- error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
336 | }
337 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:339:20: error: cannot find 'isCancelled' in scope
337 |
338 | override func start() {
339 | guard !isCancelled else { return }
| `- error: cannot find 'isCancelled' in scope
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:340:29: error: cannot find 'DispatchSemaphore' in scope
338 | override func start() {
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
342 | data, response, error in
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:25: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:52: error: cannot infer contextual base in reference to member 'ephemeral'
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: cannot infer contextual base in reference to member 'ephemeral'
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:350:24: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
348 | semaphore.signal()
349 | })
350 | self.task?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
351 | semaphore.wait()
352 | }
[105/114] Compiling YouTubeKit EndScreen.swift
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosResponse.swift:90:16: warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
88 |
89 | /// Endscreen of the video.
90 | public var endScreen: EndScreen? = nil
| `- warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
91 |
92 | /// The aspect ratio of the video (width/height).
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/EndScreen.swift:9:15: note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
7 | //
8 |
9 | public struct EndScreen {
| `- note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
10 | /// The start time in milliseconds of the end screen.
11 | public var startTime: Int?
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:314:50: error: cannot find type 'Operation' in scope
312 |
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
| `- error: cannot find type 'Operation' in scope
315 | override var isAsynchronous: Bool { true }
316 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:315:22: error: property does not override any property from its superclass
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
315 | override var isAsynchronous: Bool { true }
| `- error: property does not override any property from its superclass
316 |
317 | override var isExecuting: Bool { result == nil }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:317:22: error: property does not override any property from its superclass
315 | override var isAsynchronous: Bool { true }
316 |
317 | override var isExecuting: Bool { result == nil }
| `- error: property does not override any property from its superclass
318 |
319 | override var isFinished: Bool { !isExecuting }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:319:22: error: property does not override any property from its superclass
317 | override var isExecuting: Bool { result == nil }
318 |
319 | override var isFinished: Bool { !isExecuting }
| `- error: property does not override any property from its superclass
320 |
321 | private let playerURL: URL
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:323:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
321 | private let playerURL: URL
322 |
323 | private var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
324 |
325 | var result: Result<Data, Error>? {
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/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:338:23: error: method does not override any method from its superclass
336 | }
337 |
338 | override func start() {
| `- error: method does not override any method from its superclass
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:279:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
277 | }
278 | do {
279 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
280 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).ab",
281 | contents: try JSONEncoder().encode(instructionsArray)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:284:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
282 | )
283 |
284 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
285 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).abn",
286 | contents: nParameterFunctionData
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:301:27: error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
299 | let downloadOperation = DownloadPlayerOperation(playerURL: playerURL)
300 | downloadOperation.start()
301 | downloadOperation.waitUntilFinished()
| `- error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
302 |
303 | guard let result = downloadOperation.result else { throw ResponseError(step: .downloadPlayer, reason: "Download operation did not return a result.") }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:335:13: error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
333 | init(playerURL: URL) {
334 | self.playerURL = playerURL
335 | super.init()
| `- error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
336 | }
337 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:339:20: error: cannot find 'isCancelled' in scope
337 |
338 | override func start() {
339 | guard !isCancelled else { return }
| `- error: cannot find 'isCancelled' in scope
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:340:29: error: cannot find 'DispatchSemaphore' in scope
338 | override func start() {
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
342 | data, response, error in
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:25: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:52: error: cannot infer contextual base in reference to member 'ephemeral'
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: cannot infer contextual base in reference to member 'ephemeral'
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:350:24: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
348 | semaphore.signal()
349 | })
350 | self.task?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
351 | semaphore.wait()
352 | }
[106/114] Compiling YouTubeKit EndScreenElement.swift
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosResponse.swift:90:16: warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
88 |
89 | /// Endscreen of the video.
90 | public var endScreen: EndScreen? = nil
| `- warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
91 |
92 | /// The aspect ratio of the video (width/height).
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/EndScreen.swift:9:15: note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
7 | //
8 |
9 | public struct EndScreen {
| `- note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
10 | /// The start time in milliseconds of the end screen.
11 | public var startTime: Int?
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:314:50: error: cannot find type 'Operation' in scope
312 |
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
| `- error: cannot find type 'Operation' in scope
315 | override var isAsynchronous: Bool { true }
316 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:315:22: error: property does not override any property from its superclass
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
315 | override var isAsynchronous: Bool { true }
| `- error: property does not override any property from its superclass
316 |
317 | override var isExecuting: Bool { result == nil }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:317:22: error: property does not override any property from its superclass
315 | override var isAsynchronous: Bool { true }
316 |
317 | override var isExecuting: Bool { result == nil }
| `- error: property does not override any property from its superclass
318 |
319 | override var isFinished: Bool { !isExecuting }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:319:22: error: property does not override any property from its superclass
317 | override var isExecuting: Bool { result == nil }
318 |
319 | override var isFinished: Bool { !isExecuting }
| `- error: property does not override any property from its superclass
320 |
321 | private let playerURL: URL
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:323:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
321 | private let playerURL: URL
322 |
323 | private var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
324 |
325 | var result: Result<Data, Error>? {
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/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:338:23: error: method does not override any method from its superclass
336 | }
337 |
338 | override func start() {
| `- error: method does not override any method from its superclass
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:279:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
277 | }
278 | do {
279 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
280 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).ab",
281 | contents: try JSONEncoder().encode(instructionsArray)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:284:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
282 | )
283 |
284 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
285 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).abn",
286 | contents: nParameterFunctionData
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:301:27: error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
299 | let downloadOperation = DownloadPlayerOperation(playerURL: playerURL)
300 | downloadOperation.start()
301 | downloadOperation.waitUntilFinished()
| `- error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
302 |
303 | guard let result = downloadOperation.result else { throw ResponseError(step: .downloadPlayer, reason: "Download operation did not return a result.") }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:335:13: error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
333 | init(playerURL: URL) {
334 | self.playerURL = playerURL
335 | super.init()
| `- error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
336 | }
337 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:339:20: error: cannot find 'isCancelled' in scope
337 |
338 | override func start() {
339 | guard !isCancelled else { return }
| `- error: cannot find 'isCancelled' in scope
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:340:29: error: cannot find 'DispatchSemaphore' in scope
338 | override func start() {
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
342 | data, response, error in
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:25: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:52: error: cannot infer contextual base in reference to member 'ephemeral'
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: cannot infer contextual base in reference to member 'ephemeral'
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:350:24: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
348 | semaphore.signal()
349 | })
350 | self.task?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
351 | semaphore.wait()
352 | }
[107/114] Compiling YouTubeKit MediaType.swift
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosResponse.swift:90:16: warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
88 |
89 | /// Endscreen of the video.
90 | public var endScreen: EndScreen? = nil
| `- warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
91 |
92 | /// The aspect ratio of the video (width/height).
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/EndScreen.swift:9:15: note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
7 | //
8 |
9 | public struct EndScreen {
| `- note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
10 | /// The start time in milliseconds of the end screen.
11 | public var startTime: Int?
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:314:50: error: cannot find type 'Operation' in scope
312 |
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
| `- error: cannot find type 'Operation' in scope
315 | override var isAsynchronous: Bool { true }
316 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:315:22: error: property does not override any property from its superclass
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
315 | override var isAsynchronous: Bool { true }
| `- error: property does not override any property from its superclass
316 |
317 | override var isExecuting: Bool { result == nil }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:317:22: error: property does not override any property from its superclass
315 | override var isAsynchronous: Bool { true }
316 |
317 | override var isExecuting: Bool { result == nil }
| `- error: property does not override any property from its superclass
318 |
319 | override var isFinished: Bool { !isExecuting }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:319:22: error: property does not override any property from its superclass
317 | override var isExecuting: Bool { result == nil }
318 |
319 | override var isFinished: Bool { !isExecuting }
| `- error: property does not override any property from its superclass
320 |
321 | private let playerURL: URL
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:323:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
321 | private let playerURL: URL
322 |
323 | private var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
324 |
325 | var result: Result<Data, Error>? {
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/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:338:23: error: method does not override any method from its superclass
336 | }
337 |
338 | override func start() {
| `- error: method does not override any method from its superclass
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:279:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
277 | }
278 | do {
279 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
280 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).ab",
281 | contents: try JSONEncoder().encode(instructionsArray)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:284:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
282 | )
283 |
284 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
285 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).abn",
286 | contents: nParameterFunctionData
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:301:27: error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
299 | let downloadOperation = DownloadPlayerOperation(playerURL: playerURL)
300 | downloadOperation.start()
301 | downloadOperation.waitUntilFinished()
| `- error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
302 |
303 | guard let result = downloadOperation.result else { throw ResponseError(step: .downloadPlayer, reason: "Download operation did not return a result.") }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:335:13: error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
333 | init(playerURL: URL) {
334 | self.playerURL = playerURL
335 | super.init()
| `- error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
336 | }
337 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:339:20: error: cannot find 'isCancelled' in scope
337 |
338 | override func start() {
339 | guard !isCancelled else { return }
| `- error: cannot find 'isCancelled' in scope
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:340:29: error: cannot find 'DispatchSemaphore' in scope
338 | override func start() {
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
342 | data, response, error in
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:25: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:52: error: cannot infer contextual base in reference to member 'ephemeral'
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: cannot infer contextual base in reference to member 'ephemeral'
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:350:24: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
348 | semaphore.signal()
349 | })
350 | self.task?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
351 | semaphore.wait()
352 | }
[108/114] Compiling YouTubeKit MoreVideoInfosResponse.swift
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosResponse.swift:90:16: warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
88 |
89 | /// Endscreen of the video.
90 | public var endScreen: EndScreen? = nil
| `- warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
91 |
92 | /// The aspect ratio of the video (width/height).
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/EndScreen.swift:9:15: note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
7 | //
8 |
9 | public struct EndScreen {
| `- note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
10 | /// The start time in milliseconds of the end screen.
11 | public var startTime: Int?
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:314:50: error: cannot find type 'Operation' in scope
312 |
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
| `- error: cannot find type 'Operation' in scope
315 | override var isAsynchronous: Bool { true }
316 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:315:22: error: property does not override any property from its superclass
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
315 | override var isAsynchronous: Bool { true }
| `- error: property does not override any property from its superclass
316 |
317 | override var isExecuting: Bool { result == nil }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:317:22: error: property does not override any property from its superclass
315 | override var isAsynchronous: Bool { true }
316 |
317 | override var isExecuting: Bool { result == nil }
| `- error: property does not override any property from its superclass
318 |
319 | override var isFinished: Bool { !isExecuting }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:319:22: error: property does not override any property from its superclass
317 | override var isExecuting: Bool { result == nil }
318 |
319 | override var isFinished: Bool { !isExecuting }
| `- error: property does not override any property from its superclass
320 |
321 | private let playerURL: URL
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:323:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
321 | private let playerURL: URL
322 |
323 | private var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
324 |
325 | var result: Result<Data, Error>? {
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/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:338:23: error: method does not override any method from its superclass
336 | }
337 |
338 | override func start() {
| `- error: method does not override any method from its superclass
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:279:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
277 | }
278 | do {
279 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
280 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).ab",
281 | contents: try JSONEncoder().encode(instructionsArray)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:284:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
282 | )
283 |
284 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
285 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).abn",
286 | contents: nParameterFunctionData
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:301:27: error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
299 | let downloadOperation = DownloadPlayerOperation(playerURL: playerURL)
300 | downloadOperation.start()
301 | downloadOperation.waitUntilFinished()
| `- error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
302 |
303 | guard let result = downloadOperation.result else { throw ResponseError(step: .downloadPlayer, reason: "Download operation did not return a result.") }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:335:13: error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
333 | init(playerURL: URL) {
334 | self.playerURL = playerURL
335 | super.init()
| `- error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
336 | }
337 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:339:20: error: cannot find 'isCancelled' in scope
337 |
338 | override func start() {
339 | guard !isCancelled else { return }
| `- error: cannot find 'isCancelled' in scope
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:340:29: error: cannot find 'DispatchSemaphore' in scope
338 | override func start() {
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
342 | data, response, error in
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:25: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:52: error: cannot infer contextual base in reference to member 'ephemeral'
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: cannot infer contextual base in reference to member 'ephemeral'
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:350:24: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
348 | semaphore.signal()
349 | })
350 | self.task?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
351 | semaphore.wait()
352 | }
[109/114] Compiling YouTubeKit VideoCaptionsResponse.swift
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosResponse.swift:90:16: warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
88 |
89 | /// Endscreen of the video.
90 | public var endScreen: EndScreen? = nil
| `- warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
91 |
92 | /// The aspect ratio of the video (width/height).
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/EndScreen.swift:9:15: note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
7 | //
8 |
9 | public struct EndScreen {
| `- note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
10 | /// The start time in milliseconds of the end screen.
11 | public var startTime: Int?
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:314:50: error: cannot find type 'Operation' in scope
312 |
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
| `- error: cannot find type 'Operation' in scope
315 | override var isAsynchronous: Bool { true }
316 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:315:22: error: property does not override any property from its superclass
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
315 | override var isAsynchronous: Bool { true }
| `- error: property does not override any property from its superclass
316 |
317 | override var isExecuting: Bool { result == nil }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:317:22: error: property does not override any property from its superclass
315 | override var isAsynchronous: Bool { true }
316 |
317 | override var isExecuting: Bool { result == nil }
| `- error: property does not override any property from its superclass
318 |
319 | override var isFinished: Bool { !isExecuting }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:319:22: error: property does not override any property from its superclass
317 | override var isExecuting: Bool { result == nil }
318 |
319 | override var isFinished: Bool { !isExecuting }
| `- error: property does not override any property from its superclass
320 |
321 | private let playerURL: URL
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:323:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
321 | private let playerURL: URL
322 |
323 | private var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
324 |
325 | var result: Result<Data, Error>? {
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/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:338:23: error: method does not override any method from its superclass
336 | }
337 |
338 | override func start() {
| `- error: method does not override any method from its superclass
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:279:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
277 | }
278 | do {
279 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
280 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).ab",
281 | contents: try JSONEncoder().encode(instructionsArray)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:284:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
282 | )
283 |
284 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
285 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).abn",
286 | contents: nParameterFunctionData
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:301:27: error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
299 | let downloadOperation = DownloadPlayerOperation(playerURL: playerURL)
300 | downloadOperation.start()
301 | downloadOperation.waitUntilFinished()
| `- error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
302 |
303 | guard let result = downloadOperation.result else { throw ResponseError(step: .downloadPlayer, reason: "Download operation did not return a result.") }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:335:13: error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
333 | init(playerURL: URL) {
334 | self.playerURL = playerURL
335 | super.init()
| `- error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
336 | }
337 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:339:20: error: cannot find 'isCancelled' in scope
337 |
338 | override func start() {
339 | guard !isCancelled else { return }
| `- error: cannot find 'isCancelled' in scope
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:340:29: error: cannot find 'DispatchSemaphore' in scope
338 | override func start() {
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
342 | data, response, error in
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:25: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:52: error: cannot infer contextual base in reference to member 'ephemeral'
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: cannot infer contextual base in reference to member 'ephemeral'
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:350:24: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
348 | semaphore.signal()
349 | })
350 | self.task?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
351 | semaphore.wait()
352 | }
[110/114] Compiling YouTubeKit VideoCommentsResponse.swift
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosResponse.swift:90:16: warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
88 |
89 | /// Endscreen of the video.
90 | public var endScreen: EndScreen? = nil
| `- warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
91 |
92 | /// The aspect ratio of the video (width/height).
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/EndScreen.swift:9:15: note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
7 | //
8 |
9 | public struct EndScreen {
| `- note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
10 | /// The start time in milliseconds of the end screen.
11 | public var startTime: Int?
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:314:50: error: cannot find type 'Operation' in scope
312 |
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
| `- error: cannot find type 'Operation' in scope
315 | override var isAsynchronous: Bool { true }
316 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:315:22: error: property does not override any property from its superclass
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
315 | override var isAsynchronous: Bool { true }
| `- error: property does not override any property from its superclass
316 |
317 | override var isExecuting: Bool { result == nil }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:317:22: error: property does not override any property from its superclass
315 | override var isAsynchronous: Bool { true }
316 |
317 | override var isExecuting: Bool { result == nil }
| `- error: property does not override any property from its superclass
318 |
319 | override var isFinished: Bool { !isExecuting }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:319:22: error: property does not override any property from its superclass
317 | override var isExecuting: Bool { result == nil }
318 |
319 | override var isFinished: Bool { !isExecuting }
| `- error: property does not override any property from its superclass
320 |
321 | private let playerURL: URL
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:323:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
321 | private let playerURL: URL
322 |
323 | private var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
324 |
325 | var result: Result<Data, Error>? {
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/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:338:23: error: method does not override any method from its superclass
336 | }
337 |
338 | override func start() {
| `- error: method does not override any method from its superclass
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:279:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
277 | }
278 | do {
279 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
280 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).ab",
281 | contents: try JSONEncoder().encode(instructionsArray)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:284:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
282 | )
283 |
284 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
285 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).abn",
286 | contents: nParameterFunctionData
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:301:27: error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
299 | let downloadOperation = DownloadPlayerOperation(playerURL: playerURL)
300 | downloadOperation.start()
301 | downloadOperation.waitUntilFinished()
| `- error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
302 |
303 | guard let result = downloadOperation.result else { throw ResponseError(step: .downloadPlayer, reason: "Download operation did not return a result.") }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:335:13: error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
333 | init(playerURL: URL) {
334 | self.playerURL = playerURL
335 | super.init()
| `- error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
336 | }
337 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:339:20: error: cannot find 'isCancelled' in scope
337 |
338 | override func start() {
339 | guard !isCancelled else { return }
| `- error: cannot find 'isCancelled' in scope
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:340:29: error: cannot find 'DispatchSemaphore' in scope
338 | override func start() {
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
342 | data, response, error in
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:25: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:52: error: cannot infer contextual base in reference to member 'ephemeral'
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: cannot infer contextual base in reference to member 'ephemeral'
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:350:24: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
348 | semaphore.signal()
349 | })
350 | self.task?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
351 | semaphore.wait()
352 | }
[111/114] Compiling YouTubeKit VideoDownloadFormat.swift
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosResponse.swift:90:16: warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
88 |
89 | /// Endscreen of the video.
90 | public var endScreen: EndScreen? = nil
| `- warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
91 |
92 | /// The aspect ratio of the video (width/height).
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/EndScreen.swift:9:15: note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
7 | //
8 |
9 | public struct EndScreen {
| `- note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
10 | /// The start time in milliseconds of the end screen.
11 | public var startTime: Int?
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:314:50: error: cannot find type 'Operation' in scope
312 |
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
| `- error: cannot find type 'Operation' in scope
315 | override var isAsynchronous: Bool { true }
316 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:315:22: error: property does not override any property from its superclass
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
315 | override var isAsynchronous: Bool { true }
| `- error: property does not override any property from its superclass
316 |
317 | override var isExecuting: Bool { result == nil }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:317:22: error: property does not override any property from its superclass
315 | override var isAsynchronous: Bool { true }
316 |
317 | override var isExecuting: Bool { result == nil }
| `- error: property does not override any property from its superclass
318 |
319 | override var isFinished: Bool { !isExecuting }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:319:22: error: property does not override any property from its superclass
317 | override var isExecuting: Bool { result == nil }
318 |
319 | override var isFinished: Bool { !isExecuting }
| `- error: property does not override any property from its superclass
320 |
321 | private let playerURL: URL
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:323:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
321 | private let playerURL: URL
322 |
323 | private var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
324 |
325 | var result: Result<Data, Error>? {
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/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:338:23: error: method does not override any method from its superclass
336 | }
337 |
338 | override func start() {
| `- error: method does not override any method from its superclass
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:279:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
277 | }
278 | do {
279 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
280 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).ab",
281 | contents: try JSONEncoder().encode(instructionsArray)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:284:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
282 | )
283 |
284 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
285 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).abn",
286 | contents: nParameterFunctionData
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:301:27: error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
299 | let downloadOperation = DownloadPlayerOperation(playerURL: playerURL)
300 | downloadOperation.start()
301 | downloadOperation.waitUntilFinished()
| `- error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
302 |
303 | guard let result = downloadOperation.result else { throw ResponseError(step: .downloadPlayer, reason: "Download operation did not return a result.") }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:335:13: error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
333 | init(playerURL: URL) {
334 | self.playerURL = playerURL
335 | super.init()
| `- error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
336 | }
337 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:339:20: error: cannot find 'isCancelled' in scope
337 |
338 | override func start() {
339 | guard !isCancelled else { return }
| `- error: cannot find 'isCancelled' in scope
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:340:29: error: cannot find 'DispatchSemaphore' in scope
338 | override func start() {
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
342 | data, response, error in
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:25: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:52: error: cannot infer contextual base in reference to member 'ephemeral'
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: cannot infer contextual base in reference to member 'ephemeral'
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:350:24: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
348 | semaphore.signal()
349 | })
350 | self.task?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
351 | semaphore.wait()
352 | }
[112/114] Compiling YouTubeKit VideoInfosResponse.swift
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosResponse.swift:90:16: warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
88 |
89 | /// Endscreen of the video.
90 | public var endScreen: EndScreen? = nil
| `- warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
91 |
92 | /// The aspect ratio of the video (width/height).
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/EndScreen.swift:9:15: note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
7 | //
8 |
9 | public struct EndScreen {
| `- note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
10 | /// The start time in milliseconds of the end screen.
11 | public var startTime: Int?
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:314:50: error: cannot find type 'Operation' in scope
312 |
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
| `- error: cannot find type 'Operation' in scope
315 | override var isAsynchronous: Bool { true }
316 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:315:22: error: property does not override any property from its superclass
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
315 | override var isAsynchronous: Bool { true }
| `- error: property does not override any property from its superclass
316 |
317 | override var isExecuting: Bool { result == nil }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:317:22: error: property does not override any property from its superclass
315 | override var isAsynchronous: Bool { true }
316 |
317 | override var isExecuting: Bool { result == nil }
| `- error: property does not override any property from its superclass
318 |
319 | override var isFinished: Bool { !isExecuting }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:319:22: error: property does not override any property from its superclass
317 | override var isExecuting: Bool { result == nil }
318 |
319 | override var isFinished: Bool { !isExecuting }
| `- error: property does not override any property from its superclass
320 |
321 | private let playerURL: URL
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:323:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
321 | private let playerURL: URL
322 |
323 | private var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
324 |
325 | var result: Result<Data, Error>? {
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/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:338:23: error: method does not override any method from its superclass
336 | }
337 |
338 | override func start() {
| `- error: method does not override any method from its superclass
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:279:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
277 | }
278 | do {
279 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
280 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).ab",
281 | contents: try JSONEncoder().encode(instructionsArray)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:284:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
282 | )
283 |
284 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
285 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).abn",
286 | contents: nParameterFunctionData
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:301:27: error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
299 | let downloadOperation = DownloadPlayerOperation(playerURL: playerURL)
300 | downloadOperation.start()
301 | downloadOperation.waitUntilFinished()
| `- error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
302 |
303 | guard let result = downloadOperation.result else { throw ResponseError(step: .downloadPlayer, reason: "Download operation did not return a result.") }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:335:13: error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
333 | init(playerURL: URL) {
334 | self.playerURL = playerURL
335 | super.init()
| `- error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
336 | }
337 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:339:20: error: cannot find 'isCancelled' in scope
337 |
338 | override func start() {
339 | guard !isCancelled else { return }
| `- error: cannot find 'isCancelled' in scope
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:340:29: error: cannot find 'DispatchSemaphore' in scope
338 | override func start() {
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
342 | data, response, error in
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:25: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:52: error: cannot infer contextual base in reference to member 'ephemeral'
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: cannot infer contextual base in reference to member 'ephemeral'
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:350:24: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
348 | semaphore.signal()
349 | })
350 | self.task?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
351 | semaphore.wait()
352 | }
[113/114] Compiling YouTubeKit VideoInfosWithDownloadFormatsResponse.swift
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosResponse.swift:90:16: warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
88 |
89 | /// Endscreen of the video.
90 | public var endScreen: EndScreen? = nil
| `- warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
91 |
92 | /// The aspect ratio of the video (width/height).
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/EndScreen.swift:9:15: note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
7 | //
8 |
9 | public struct EndScreen {
| `- note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
10 | /// The start time in milliseconds of the end screen.
11 | public var startTime: Int?
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:314:50: error: cannot find type 'Operation' in scope
312 |
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
| `- error: cannot find type 'Operation' in scope
315 | override var isAsynchronous: Bool { true }
316 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:315:22: error: property does not override any property from its superclass
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
315 | override var isAsynchronous: Bool { true }
| `- error: property does not override any property from its superclass
316 |
317 | override var isExecuting: Bool { result == nil }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:317:22: error: property does not override any property from its superclass
315 | override var isAsynchronous: Bool { true }
316 |
317 | override var isExecuting: Bool { result == nil }
| `- error: property does not override any property from its superclass
318 |
319 | override var isFinished: Bool { !isExecuting }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:319:22: error: property does not override any property from its superclass
317 | override var isExecuting: Bool { result == nil }
318 |
319 | override var isFinished: Bool { !isExecuting }
| `- error: property does not override any property from its superclass
320 |
321 | private let playerURL: URL
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:323:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
321 | private let playerURL: URL
322 |
323 | private var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
324 |
325 | var result: Result<Data, Error>? {
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/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:338:23: error: method does not override any method from its superclass
336 | }
337 |
338 | override func start() {
| `- error: method does not override any method from its superclass
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:279:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
277 | }
278 | do {
279 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
280 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).ab",
281 | contents: try JSONEncoder().encode(instructionsArray)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:284:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
282 | )
283 |
284 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
285 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).abn",
286 | contents: nParameterFunctionData
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:301:27: error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
299 | let downloadOperation = DownloadPlayerOperation(playerURL: playerURL)
300 | downloadOperation.start()
301 | downloadOperation.waitUntilFinished()
| `- error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
302 |
303 | guard let result = downloadOperation.result else { throw ResponseError(step: .downloadPlayer, reason: "Download operation did not return a result.") }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:335:13: error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
333 | init(playerURL: URL) {
334 | self.playerURL = playerURL
335 | super.init()
| `- error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
336 | }
337 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:339:20: error: cannot find 'isCancelled' in scope
337 |
338 | override func start() {
339 | guard !isCancelled else { return }
| `- error: cannot find 'isCancelled' in scope
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:340:29: error: cannot find 'DispatchSemaphore' in scope
338 | override func start() {
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
342 | data, response, error in
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:25: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:52: error: cannot infer contextual base in reference to member 'ephemeral'
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: cannot infer contextual base in reference to member 'ephemeral'
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:350:24: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
348 | semaphore.signal()
349 | })
350 | self.task?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
351 | semaphore.wait()
352 | }
[114/114] Compiling YouTubeKit [URLQueryItem]+makeUnique.swift
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosResponse.swift:90:16: warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
88 |
89 | /// Endscreen of the video.
90 | public var endScreen: EndScreen? = nil
| `- warning: stored property 'endScreen' of 'Sendable'-conforming struct 'VideoInfosResponse' contains non-Sendable type 'EndScreen'; this is an error in the Swift 6 language mode
91 |
92 | /// The aspect ratio of the video (width/height).
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/EndScreen.swift:9:15: note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
7 | //
8 |
9 | public struct EndScreen {
| `- note: consider making struct 'EndScreen' conform to the 'Sendable' protocol
10 | /// The start time in milliseconds of the end screen.
11 | public var startTime: Int?
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:314:50: error: cannot find type 'Operation' in scope
312 |
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
| `- error: cannot find type 'Operation' in scope
315 | override var isAsynchronous: Bool { true }
316 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:315:22: error: property does not override any property from its superclass
313 | /// Operation used to download the player.
314 | private final class DownloadPlayerOperation: Operation, @unchecked Sendable {
315 | override var isAsynchronous: Bool { true }
| `- error: property does not override any property from its superclass
316 |
317 | override var isExecuting: Bool { result == nil }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:317:22: error: property does not override any property from its superclass
315 | override var isAsynchronous: Bool { true }
316 |
317 | override var isExecuting: Bool { result == nil }
| `- error: property does not override any property from its superclass
318 |
319 | override var isFinished: Bool { !isExecuting }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:319:22: error: property does not override any property from its superclass
317 | override var isExecuting: Bool { result == nil }
318 |
319 | override var isFinished: Bool { !isExecuting }
| `- error: property does not override any property from its superclass
320 |
321 | private let playerURL: URL
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:323:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
321 | private let playerURL: URL
322 |
323 | private var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
324 |
325 | var result: Result<Data, Error>? {
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/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:338:23: error: method does not override any method from its superclass
336 | }
337 |
338 | override func start() {
| `- error: method does not override any method from its superclass
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:279:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
277 | }
278 | do {
279 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
280 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).ab",
281 | contents: try JSONEncoder().encode(instructionsArray)
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:284:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
282 | )
283 |
284 | FileManager.default.createFile(
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
285 | atPath: documentDirectoryPath + "YouTubeKitPlayers-\(playerName).abn",
286 | contents: nParameterFunctionData
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:301:27: error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
299 | let downloadOperation = DownloadPlayerOperation(playerURL: playerURL)
300 | downloadOperation.start()
301 | downloadOperation.waitUntilFinished()
| `- error: value of type 'VideoInfosWithDownloadFormatsResponse.DownloadPlayerOperation' has no member 'waitUntilFinished'
302 |
303 | guard let result = downloadOperation.result else { throw ResponseError(step: .downloadPlayer, reason: "Download operation did not return a result.") }
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:335:13: error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
333 | init(playerURL: URL) {
334 | self.playerURL = playerURL
335 | super.init()
| `- error: 'super' cannot be used in class 'DownloadPlayerOperation' because it has no superclass
336 | }
337 |
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:339:20: error: cannot find 'isCancelled' in scope
337 |
338 | override func start() {
339 | guard !isCancelled else { return }
| `- error: cannot find 'isCancelled' in scope
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:340:29: error: cannot find 'DispatchSemaphore' in scope
338 | override func start() {
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
342 | data, response, error in
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:25: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:341:52: error: cannot infer contextual base in reference to member 'ephemeral'
339 | guard !isCancelled else { return }
340 | let semaphore = DispatchSemaphore(value: 0)
341 | self.task = URLSession(configuration: .ephemeral).dataTask(with: self.playerURL, completionHandler: {
| `- error: cannot infer contextual base in reference to member 'ephemeral'
342 | data, response, error in
343 | if let data = data {
/host/spi-builder-workspace/Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosWithDownloadFormatsResponse.swift:350:24: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
348 | semaphore.signal()
349 | })
350 | self.task?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
351 | semaphore.wait()
352 | }
BUILD FAILURE 6.3 wasm