Build Information
Successful build of swiftui-loop-videoplayer, reference main (53c89f
), with Swift 6.2 (beta) for macOS (SPM) on 25 Jun 2025 08:41:57 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swiftuiux/swiftui-loop-videoPlayer.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/swiftuiux/swiftui-loop-videoPlayer
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 53c89fd Update README.md
Cloned https://github.com/swiftuiux/swiftui-loop-videoPlayer.git
Revision (git rev-parse @):
53c89fd8dbcbb4d32dc2405257dfbadbf368e9e1
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swiftuiux/swiftui-loop-videoPlayer.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/swiftuiux/swiftui-loop-videoPlayer.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/39] Emitting module swiftui_loop_videoplayer
[4/42] Compiling swiftui_loop_videoplayer ExtPlayerProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:138:34: warning: capture of non-sendable type 'Self.Type' in an isolated closure
136 | if let timePublishing = settings.timePublishing{
137 | timeObserver = player.addPeriodicTimeObserver(forInterval: timePublishing, queue: .global()) { [weak self] time in
138 | guard let self = self else{ return }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
139 | Task { @MainActor in
140 | self.delegate?.didPassedTime(seconds: time.seconds)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:137:114: warning: capture of non-sendable type 'Self.Type' in an isolated closure
135 | func configureTimePublishing(_ player: AVQueuePlayer, _ settings: VideoSettings) {
136 | if let timePublishing = settings.timePublishing{
137 | timeObserver = player.addPeriodicTimeObserver(forInterval: timePublishing, queue: .global()) { [weak self] time in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
138 | guard let self = self else{ return }
139 | Task { @MainActor in
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:140:21: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
138 | guard let self = self else{ return }
139 | Task { @MainActor in
140 | self.delegate?.didPassedTime(seconds: time.seconds)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:138:27: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
136 | if let timePublishing = settings.timePublishing{
137 | timeObserver = player.addPeriodicTimeObserver(forInterval: timePublishing, queue: .global()) { [weak self] time in
138 | guard let self = self else{ return }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
139 | Task { @MainActor in
140 | self.delegate?.didPassedTime(seconds: time.seconds)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:211:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
209 | func itemNotFound(with name: String){
210 | Task{ @MainActor [weak self] in
211 | self?.onError(.sourceNotFound(name))
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
212 | }
213 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:210:32: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
208 | /// - Parameter name: resource name
209 | func itemNotFound(with name: String){
210 | Task{ @MainActor [weak self] in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
211 | self?.onError(.sourceNotFound(name))
212 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:221:88: warning: capture of non-sendable type 'Self.Type' in an isolated closure
219 | removeItemObserver()
220 |
221 | itemStatusObserver = item.observe(\.status, options: [.new, .initial]) { [weak self] item, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
222 | Task { @MainActor in
223 | self?.delegate?.itemStatusChanged(item.status)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:223:21: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
221 | itemStatusObserver = item.observe(\.status, options: [.new, .initial]) { [weak self] item, _ in
222 | Task { @MainActor in
223 | self?.delegate?.itemStatusChanged(item.status)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
224 | }
225 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:221:88: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
219 | removeItemObserver()
220 |
221 | itemStatusObserver = item.observe(\.status, options: [.new, .initial]) { [weak self] item, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
222 | Task { @MainActor in
223 | self?.delegate?.itemStatusChanged(item.status)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:230:29: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
228 | case .readyToPlay:
229 | Task { @MainActor in
230 | self?.delegate?.duration(item.duration)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
231 | }
232 | case .failed:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:221:88: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
219 | removeItemObserver()
220 |
221 | itemStatusObserver = item.observe(\.status, options: [.new, .initial]) { [weak self] item, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
222 | Task { @MainActor in
223 | self?.delegate?.itemStatusChanged(item.status)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:234:41: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
232 | case .failed:
233 | Task { @MainActor in
234 | let error = self?.currentItem?.error
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
235 | self?.onError(.failedToLoad(error))
236 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:221:88: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
219 | removeItemObserver()
220 |
221 | itemStatusObserver = item.observe(\.status, options: [.new, .initial]) { [weak self] item, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
222 | Task { @MainActor in
223 | self?.delegate?.itemStatusChanged(item.status)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:239:41: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
237 | @unknown default:
238 | Task { @MainActor in
239 | let error = self?.currentItem?.error
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
240 | self?.onError(.failedToLoad(error))
241 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:221:88: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
219 | removeItemObserver()
220 |
221 | itemStatusObserver = item.observe(\.status, options: [.new, .initial]) { [weak self] item, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
222 | Task { @MainActor in
223 | self?.delegate?.itemStatusChanged(item.status)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:258:74: warning: capture of non-sendable type 'Self.Type' in an isolated closure
256 | /// - player: The player to observe.
257 | func setupObservers(for player: AVQueuePlayer) {
258 | errorObserver = player.observe(\.error, options: [.new]) { [weak self] player, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
259 | guard let error = player.error else { return }
260 | Task { @MainActor in
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:261:21: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
259 | guard let error = player.error else { return }
260 | Task { @MainActor in
261 | self?.onError(.remoteVideoError(error))
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
262 | }
263 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:258:74: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
256 | /// - player: The player to observe.
257 | func setupObservers(for player: AVQueuePlayer) {
258 | errorObserver = player.observe(\.error, options: [.new]) { [weak self] player, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
259 | guard let error = player.error else { return }
260 | Task { @MainActor in
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:265:98: warning: capture of non-sendable type 'Self.Type' in an isolated closure
263 | }
264 |
265 | timeControlObserver = player.observe(\.timeControlStatus, options: [.new, .old]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
266 | switch player.timeControlStatus {
267 | case .paused:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:270:29: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
268 | // This could mean playback has stopped, but it's not specific to end of playback
269 | Task { @MainActor in
270 | self?.delegate?.didPausePlayback()
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
271 | }
272 | case .waitingToPlayAtSpecifiedRate:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:265:98: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
263 | }
264 |
265 | timeControlObserver = player.observe(\.timeControlStatus, options: [.new, .old]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
266 | switch player.timeControlStatus {
267 | case .paused:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:275:29: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
273 | // Player is waiting to play (e.g., buffering)
274 | Task { @MainActor in
275 | self?.delegate?.isWaitingToPlay()
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
276 | }
277 | case .playing:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:265:98: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
263 | }
264 |
265 | timeControlObserver = player.observe(\.timeControlStatus, options: [.new, .old]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
266 | switch player.timeControlStatus {
267 | case .paused:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:280:29: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
278 | // Player is currently playing
279 | Task { @MainActor in
280 | self?.delegate?.didStartPlaying()
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
281 | }
282 | @unknown default:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:265:98: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
263 | }
264 |
265 | timeControlObserver = player.observe(\.timeControlStatus, options: [.new, .old]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
266 | switch player.timeControlStatus {
267 | case .paused:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:287:102: warning: capture of non-sendable type 'Self.Type' in an isolated closure
285 | }
286 |
287 | currentItemObserver = player.observe(\.currentItem, options: [.new, .old, .initial]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
288 | // Detecting when the current item is changed
289 | if let newItem = change.newValue as? AVPlayerItem {
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:291:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
289 | if let newItem = change.newValue as? AVPlayerItem {
290 | Task { @MainActor in
291 | self?.delegate?.currentItemDidChange(to: newItem)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
292 | }
293 | } else if change.newValue == nil {
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:287:102: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
285 | }
286 |
287 | currentItemObserver = player.observe(\.currentItem, options: [.new, .old, .initial]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
288 | // Detecting when the current item is changed
289 | if let newItem = change.newValue as? AVPlayerItem {
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:295:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
293 | } else if change.newValue == nil {
294 | Task { @MainActor in
295 | self?.delegate?.currentItemWasRemoved()
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
296 | }
297 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:287:102: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
285 | }
286 |
287 | currentItemObserver = player.observe(\.currentItem, options: [.new, .old, .initial]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
288 | // Detecting when the current item is changed
289 | if let newItem = change.newValue as? AVPlayerItem {
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:300:82: warning: capture of non-sendable type 'Self.Type' in an isolated closure
298 | }
299 |
300 | volumeObserver = player.observe(\.volume, options: [.new, .old]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
301 | if let newVolume = change.newValue{
302 | Task { @MainActor in
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:303:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
301 | if let newVolume = change.newValue{
302 | Task { @MainActor in
303 | self?.delegate?.volumeDidChange(to: newVolume)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
304 | }
305 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:300:82: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
298 | }
299 |
300 | volumeObserver = player.observe(\.volume, options: [.new, .old]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
301 | if let newVolume = change.newValue{
302 | Task { @MainActor in
[5/42] Compiling swiftui_loop_videoplayer ShapeLayerBuilderProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:138:34: warning: capture of non-sendable type 'Self.Type' in an isolated closure
136 | if let timePublishing = settings.timePublishing{
137 | timeObserver = player.addPeriodicTimeObserver(forInterval: timePublishing, queue: .global()) { [weak self] time in
138 | guard let self = self else{ return }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
139 | Task { @MainActor in
140 | self.delegate?.didPassedTime(seconds: time.seconds)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:137:114: warning: capture of non-sendable type 'Self.Type' in an isolated closure
135 | func configureTimePublishing(_ player: AVQueuePlayer, _ settings: VideoSettings) {
136 | if let timePublishing = settings.timePublishing{
137 | timeObserver = player.addPeriodicTimeObserver(forInterval: timePublishing, queue: .global()) { [weak self] time in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
138 | guard let self = self else{ return }
139 | Task { @MainActor in
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:140:21: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
138 | guard let self = self else{ return }
139 | Task { @MainActor in
140 | self.delegate?.didPassedTime(seconds: time.seconds)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:138:27: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
136 | if let timePublishing = settings.timePublishing{
137 | timeObserver = player.addPeriodicTimeObserver(forInterval: timePublishing, queue: .global()) { [weak self] time in
138 | guard let self = self else{ return }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
139 | Task { @MainActor in
140 | self.delegate?.didPassedTime(seconds: time.seconds)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:211:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
209 | func itemNotFound(with name: String){
210 | Task{ @MainActor [weak self] in
211 | self?.onError(.sourceNotFound(name))
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
212 | }
213 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:210:32: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
208 | /// - Parameter name: resource name
209 | func itemNotFound(with name: String){
210 | Task{ @MainActor [weak self] in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
211 | self?.onError(.sourceNotFound(name))
212 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:221:88: warning: capture of non-sendable type 'Self.Type' in an isolated closure
219 | removeItemObserver()
220 |
221 | itemStatusObserver = item.observe(\.status, options: [.new, .initial]) { [weak self] item, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
222 | Task { @MainActor in
223 | self?.delegate?.itemStatusChanged(item.status)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:223:21: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
221 | itemStatusObserver = item.observe(\.status, options: [.new, .initial]) { [weak self] item, _ in
222 | Task { @MainActor in
223 | self?.delegate?.itemStatusChanged(item.status)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
224 | }
225 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:221:88: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
219 | removeItemObserver()
220 |
221 | itemStatusObserver = item.observe(\.status, options: [.new, .initial]) { [weak self] item, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
222 | Task { @MainActor in
223 | self?.delegate?.itemStatusChanged(item.status)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:230:29: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
228 | case .readyToPlay:
229 | Task { @MainActor in
230 | self?.delegate?.duration(item.duration)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
231 | }
232 | case .failed:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:221:88: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
219 | removeItemObserver()
220 |
221 | itemStatusObserver = item.observe(\.status, options: [.new, .initial]) { [weak self] item, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
222 | Task { @MainActor in
223 | self?.delegate?.itemStatusChanged(item.status)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:234:41: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
232 | case .failed:
233 | Task { @MainActor in
234 | let error = self?.currentItem?.error
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
235 | self?.onError(.failedToLoad(error))
236 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:221:88: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
219 | removeItemObserver()
220 |
221 | itemStatusObserver = item.observe(\.status, options: [.new, .initial]) { [weak self] item, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
222 | Task { @MainActor in
223 | self?.delegate?.itemStatusChanged(item.status)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:239:41: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
237 | @unknown default:
238 | Task { @MainActor in
239 | let error = self?.currentItem?.error
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
240 | self?.onError(.failedToLoad(error))
241 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:221:88: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
219 | removeItemObserver()
220 |
221 | itemStatusObserver = item.observe(\.status, options: [.new, .initial]) { [weak self] item, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
222 | Task { @MainActor in
223 | self?.delegate?.itemStatusChanged(item.status)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:258:74: warning: capture of non-sendable type 'Self.Type' in an isolated closure
256 | /// - player: The player to observe.
257 | func setupObservers(for player: AVQueuePlayer) {
258 | errorObserver = player.observe(\.error, options: [.new]) { [weak self] player, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
259 | guard let error = player.error else { return }
260 | Task { @MainActor in
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:261:21: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
259 | guard let error = player.error else { return }
260 | Task { @MainActor in
261 | self?.onError(.remoteVideoError(error))
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
262 | }
263 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:258:74: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
256 | /// - player: The player to observe.
257 | func setupObservers(for player: AVQueuePlayer) {
258 | errorObserver = player.observe(\.error, options: [.new]) { [weak self] player, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
259 | guard let error = player.error else { return }
260 | Task { @MainActor in
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:265:98: warning: capture of non-sendable type 'Self.Type' in an isolated closure
263 | }
264 |
265 | timeControlObserver = player.observe(\.timeControlStatus, options: [.new, .old]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
266 | switch player.timeControlStatus {
267 | case .paused:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:270:29: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
268 | // This could mean playback has stopped, but it's not specific to end of playback
269 | Task { @MainActor in
270 | self?.delegate?.didPausePlayback()
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
271 | }
272 | case .waitingToPlayAtSpecifiedRate:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:265:98: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
263 | }
264 |
265 | timeControlObserver = player.observe(\.timeControlStatus, options: [.new, .old]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
266 | switch player.timeControlStatus {
267 | case .paused:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:275:29: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
273 | // Player is waiting to play (e.g., buffering)
274 | Task { @MainActor in
275 | self?.delegate?.isWaitingToPlay()
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
276 | }
277 | case .playing:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:265:98: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
263 | }
264 |
265 | timeControlObserver = player.observe(\.timeControlStatus, options: [.new, .old]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
266 | switch player.timeControlStatus {
267 | case .paused:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:280:29: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
278 | // Player is currently playing
279 | Task { @MainActor in
280 | self?.delegate?.didStartPlaying()
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
281 | }
282 | @unknown default:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:265:98: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
263 | }
264 |
265 | timeControlObserver = player.observe(\.timeControlStatus, options: [.new, .old]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
266 | switch player.timeControlStatus {
267 | case .paused:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:287:102: warning: capture of non-sendable type 'Self.Type' in an isolated closure
285 | }
286 |
287 | currentItemObserver = player.observe(\.currentItem, options: [.new, .old, .initial]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
288 | // Detecting when the current item is changed
289 | if let newItem = change.newValue as? AVPlayerItem {
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:291:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
289 | if let newItem = change.newValue as? AVPlayerItem {
290 | Task { @MainActor in
291 | self?.delegate?.currentItemDidChange(to: newItem)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
292 | }
293 | } else if change.newValue == nil {
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:287:102: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
285 | }
286 |
287 | currentItemObserver = player.observe(\.currentItem, options: [.new, .old, .initial]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
288 | // Detecting when the current item is changed
289 | if let newItem = change.newValue as? AVPlayerItem {
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:295:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
293 | } else if change.newValue == nil {
294 | Task { @MainActor in
295 | self?.delegate?.currentItemWasRemoved()
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
296 | }
297 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:287:102: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
285 | }
286 |
287 | currentItemObserver = player.observe(\.currentItem, options: [.new, .old, .initial]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
288 | // Detecting when the current item is changed
289 | if let newItem = change.newValue as? AVPlayerItem {
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:300:82: warning: capture of non-sendable type 'Self.Type' in an isolated closure
298 | }
299 |
300 | volumeObserver = player.observe(\.volume, options: [.new, .old]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
301 | if let newVolume = change.newValue{
302 | Task { @MainActor in
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:303:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
301 | if let newVolume = change.newValue{
302 | Task { @MainActor in
303 | self?.delegate?.volumeDidChange(to: newVolume)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
304 | }
305 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:300:82: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
298 | }
299 |
300 | volumeObserver = player.observe(\.volume, options: [.new, .old]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
301 | if let newVolume = change.newValue{
302 | Task { @MainActor in
[6/42] Compiling swiftui_loop_videoplayer VectorLayerProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:138:34: warning: capture of non-sendable type 'Self.Type' in an isolated closure
136 | if let timePublishing = settings.timePublishing{
137 | timeObserver = player.addPeriodicTimeObserver(forInterval: timePublishing, queue: .global()) { [weak self] time in
138 | guard let self = self else{ return }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
139 | Task { @MainActor in
140 | self.delegate?.didPassedTime(seconds: time.seconds)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:137:114: warning: capture of non-sendable type 'Self.Type' in an isolated closure
135 | func configureTimePublishing(_ player: AVQueuePlayer, _ settings: VideoSettings) {
136 | if let timePublishing = settings.timePublishing{
137 | timeObserver = player.addPeriodicTimeObserver(forInterval: timePublishing, queue: .global()) { [weak self] time in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
138 | guard let self = self else{ return }
139 | Task { @MainActor in
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:140:21: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
138 | guard let self = self else{ return }
139 | Task { @MainActor in
140 | self.delegate?.didPassedTime(seconds: time.seconds)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:138:27: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
136 | if let timePublishing = settings.timePublishing{
137 | timeObserver = player.addPeriodicTimeObserver(forInterval: timePublishing, queue: .global()) { [weak self] time in
138 | guard let self = self else{ return }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
139 | Task { @MainActor in
140 | self.delegate?.didPassedTime(seconds: time.seconds)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:211:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
209 | func itemNotFound(with name: String){
210 | Task{ @MainActor [weak self] in
211 | self?.onError(.sourceNotFound(name))
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
212 | }
213 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:210:32: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
208 | /// - Parameter name: resource name
209 | func itemNotFound(with name: String){
210 | Task{ @MainActor [weak self] in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
211 | self?.onError(.sourceNotFound(name))
212 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:221:88: warning: capture of non-sendable type 'Self.Type' in an isolated closure
219 | removeItemObserver()
220 |
221 | itemStatusObserver = item.observe(\.status, options: [.new, .initial]) { [weak self] item, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
222 | Task { @MainActor in
223 | self?.delegate?.itemStatusChanged(item.status)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:223:21: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
221 | itemStatusObserver = item.observe(\.status, options: [.new, .initial]) { [weak self] item, _ in
222 | Task { @MainActor in
223 | self?.delegate?.itemStatusChanged(item.status)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
224 | }
225 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:221:88: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
219 | removeItemObserver()
220 |
221 | itemStatusObserver = item.observe(\.status, options: [.new, .initial]) { [weak self] item, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
222 | Task { @MainActor in
223 | self?.delegate?.itemStatusChanged(item.status)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:230:29: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
228 | case .readyToPlay:
229 | Task { @MainActor in
230 | self?.delegate?.duration(item.duration)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
231 | }
232 | case .failed:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:221:88: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
219 | removeItemObserver()
220 |
221 | itemStatusObserver = item.observe(\.status, options: [.new, .initial]) { [weak self] item, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
222 | Task { @MainActor in
223 | self?.delegate?.itemStatusChanged(item.status)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:234:41: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
232 | case .failed:
233 | Task { @MainActor in
234 | let error = self?.currentItem?.error
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
235 | self?.onError(.failedToLoad(error))
236 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:221:88: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
219 | removeItemObserver()
220 |
221 | itemStatusObserver = item.observe(\.status, options: [.new, .initial]) { [weak self] item, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
222 | Task { @MainActor in
223 | self?.delegate?.itemStatusChanged(item.status)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:239:41: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
237 | @unknown default:
238 | Task { @MainActor in
239 | let error = self?.currentItem?.error
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
240 | self?.onError(.failedToLoad(error))
241 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:221:88: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
219 | removeItemObserver()
220 |
221 | itemStatusObserver = item.observe(\.status, options: [.new, .initial]) { [weak self] item, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
222 | Task { @MainActor in
223 | self?.delegate?.itemStatusChanged(item.status)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:258:74: warning: capture of non-sendable type 'Self.Type' in an isolated closure
256 | /// - player: The player to observe.
257 | func setupObservers(for player: AVQueuePlayer) {
258 | errorObserver = player.observe(\.error, options: [.new]) { [weak self] player, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
259 | guard let error = player.error else { return }
260 | Task { @MainActor in
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:261:21: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
259 | guard let error = player.error else { return }
260 | Task { @MainActor in
261 | self?.onError(.remoteVideoError(error))
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
262 | }
263 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:258:74: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
256 | /// - player: The player to observe.
257 | func setupObservers(for player: AVQueuePlayer) {
258 | errorObserver = player.observe(\.error, options: [.new]) { [weak self] player, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
259 | guard let error = player.error else { return }
260 | Task { @MainActor in
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:265:98: warning: capture of non-sendable type 'Self.Type' in an isolated closure
263 | }
264 |
265 | timeControlObserver = player.observe(\.timeControlStatus, options: [.new, .old]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
266 | switch player.timeControlStatus {
267 | case .paused:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:270:29: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
268 | // This could mean playback has stopped, but it's not specific to end of playback
269 | Task { @MainActor in
270 | self?.delegate?.didPausePlayback()
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
271 | }
272 | case .waitingToPlayAtSpecifiedRate:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:265:98: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
263 | }
264 |
265 | timeControlObserver = player.observe(\.timeControlStatus, options: [.new, .old]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
266 | switch player.timeControlStatus {
267 | case .paused:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:275:29: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
273 | // Player is waiting to play (e.g., buffering)
274 | Task { @MainActor in
275 | self?.delegate?.isWaitingToPlay()
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
276 | }
277 | case .playing:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:265:98: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
263 | }
264 |
265 | timeControlObserver = player.observe(\.timeControlStatus, options: [.new, .old]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
266 | switch player.timeControlStatus {
267 | case .paused:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:280:29: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
278 | // Player is currently playing
279 | Task { @MainActor in
280 | self?.delegate?.didStartPlaying()
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
281 | }
282 | @unknown default:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:265:98: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
263 | }
264 |
265 | timeControlObserver = player.observe(\.timeControlStatus, options: [.new, .old]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
266 | switch player.timeControlStatus {
267 | case .paused:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:287:102: warning: capture of non-sendable type 'Self.Type' in an isolated closure
285 | }
286 |
287 | currentItemObserver = player.observe(\.currentItem, options: [.new, .old, .initial]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
288 | // Detecting when the current item is changed
289 | if let newItem = change.newValue as? AVPlayerItem {
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:291:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
289 | if let newItem = change.newValue as? AVPlayerItem {
290 | Task { @MainActor in
291 | self?.delegate?.currentItemDidChange(to: newItem)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
292 | }
293 | } else if change.newValue == nil {
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:287:102: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
285 | }
286 |
287 | currentItemObserver = player.observe(\.currentItem, options: [.new, .old, .initial]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
288 | // Detecting when the current item is changed
289 | if let newItem = change.newValue as? AVPlayerItem {
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:295:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
293 | } else if change.newValue == nil {
294 | Task { @MainActor in
295 | self?.delegate?.currentItemWasRemoved()
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
296 | }
297 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:287:102: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
285 | }
286 |
287 | currentItemObserver = player.observe(\.currentItem, options: [.new, .old, .initial]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
288 | // Detecting when the current item is changed
289 | if let newItem = change.newValue as? AVPlayerItem {
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:300:82: warning: capture of non-sendable type 'Self.Type' in an isolated closure
298 | }
299 |
300 | volumeObserver = player.observe(\.volume, options: [.new, .old]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
301 | if let newVolume = change.newValue{
302 | Task { @MainActor in
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:303:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
301 | if let newVolume = change.newValue{
302 | Task { @MainActor in
303 | self?.delegate?.volumeDidChange(to: newVolume)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
304 | }
305 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:300:82: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
298 | }
299 |
300 | volumeObserver = player.observe(\.volume, options: [.new, .old]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
301 | if let newVolume = change.newValue{
302 | Task { @MainActor in
[7/42] Compiling swiftui_loop_videoplayer ExtPlayerViewProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:138:34: warning: capture of non-sendable type 'Self.Type' in an isolated closure
136 | if let timePublishing = settings.timePublishing{
137 | timeObserver = player.addPeriodicTimeObserver(forInterval: timePublishing, queue: .global()) { [weak self] time in
138 | guard let self = self else{ return }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
139 | Task { @MainActor in
140 | self.delegate?.didPassedTime(seconds: time.seconds)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:137:114: warning: capture of non-sendable type 'Self.Type' in an isolated closure
135 | func configureTimePublishing(_ player: AVQueuePlayer, _ settings: VideoSettings) {
136 | if let timePublishing = settings.timePublishing{
137 | timeObserver = player.addPeriodicTimeObserver(forInterval: timePublishing, queue: .global()) { [weak self] time in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
138 | guard let self = self else{ return }
139 | Task { @MainActor in
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:140:21: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
138 | guard let self = self else{ return }
139 | Task { @MainActor in
140 | self.delegate?.didPassedTime(seconds: time.seconds)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:138:27: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
136 | if let timePublishing = settings.timePublishing{
137 | timeObserver = player.addPeriodicTimeObserver(forInterval: timePublishing, queue: .global()) { [weak self] time in
138 | guard let self = self else{ return }
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
139 | Task { @MainActor in
140 | self.delegate?.didPassedTime(seconds: time.seconds)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:211:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
209 | func itemNotFound(with name: String){
210 | Task{ @MainActor [weak self] in
211 | self?.onError(.sourceNotFound(name))
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
212 | }
213 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:210:32: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
208 | /// - Parameter name: resource name
209 | func itemNotFound(with name: String){
210 | Task{ @MainActor [weak self] in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
211 | self?.onError(.sourceNotFound(name))
212 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:221:88: warning: capture of non-sendable type 'Self.Type' in an isolated closure
219 | removeItemObserver()
220 |
221 | itemStatusObserver = item.observe(\.status, options: [.new, .initial]) { [weak self] item, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
222 | Task { @MainActor in
223 | self?.delegate?.itemStatusChanged(item.status)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:223:21: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
221 | itemStatusObserver = item.observe(\.status, options: [.new, .initial]) { [weak self] item, _ in
222 | Task { @MainActor in
223 | self?.delegate?.itemStatusChanged(item.status)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
224 | }
225 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:221:88: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
219 | removeItemObserver()
220 |
221 | itemStatusObserver = item.observe(\.status, options: [.new, .initial]) { [weak self] item, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
222 | Task { @MainActor in
223 | self?.delegate?.itemStatusChanged(item.status)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:230:29: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
228 | case .readyToPlay:
229 | Task { @MainActor in
230 | self?.delegate?.duration(item.duration)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
231 | }
232 | case .failed:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:221:88: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
219 | removeItemObserver()
220 |
221 | itemStatusObserver = item.observe(\.status, options: [.new, .initial]) { [weak self] item, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
222 | Task { @MainActor in
223 | self?.delegate?.itemStatusChanged(item.status)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:234:41: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
232 | case .failed:
233 | Task { @MainActor in
234 | let error = self?.currentItem?.error
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
235 | self?.onError(.failedToLoad(error))
236 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:221:88: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
219 | removeItemObserver()
220 |
221 | itemStatusObserver = item.observe(\.status, options: [.new, .initial]) { [weak self] item, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
222 | Task { @MainActor in
223 | self?.delegate?.itemStatusChanged(item.status)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:239:41: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
237 | @unknown default:
238 | Task { @MainActor in
239 | let error = self?.currentItem?.error
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
240 | self?.onError(.failedToLoad(error))
241 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:221:88: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
219 | removeItemObserver()
220 |
221 | itemStatusObserver = item.observe(\.status, options: [.new, .initial]) { [weak self] item, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
222 | Task { @MainActor in
223 | self?.delegate?.itemStatusChanged(item.status)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:258:74: warning: capture of non-sendable type 'Self.Type' in an isolated closure
256 | /// - player: The player to observe.
257 | func setupObservers(for player: AVQueuePlayer) {
258 | errorObserver = player.observe(\.error, options: [.new]) { [weak self] player, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
259 | guard let error = player.error else { return }
260 | Task { @MainActor in
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:261:21: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
259 | guard let error = player.error else { return }
260 | Task { @MainActor in
261 | self?.onError(.remoteVideoError(error))
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
262 | }
263 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:258:74: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
256 | /// - player: The player to observe.
257 | func setupObservers(for player: AVQueuePlayer) {
258 | errorObserver = player.observe(\.error, options: [.new]) { [weak self] player, _ in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
259 | guard let error = player.error else { return }
260 | Task { @MainActor in
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:265:98: warning: capture of non-sendable type 'Self.Type' in an isolated closure
263 | }
264 |
265 | timeControlObserver = player.observe(\.timeControlStatus, options: [.new, .old]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
266 | switch player.timeControlStatus {
267 | case .paused:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:270:29: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
268 | // This could mean playback has stopped, but it's not specific to end of playback
269 | Task { @MainActor in
270 | self?.delegate?.didPausePlayback()
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
271 | }
272 | case .waitingToPlayAtSpecifiedRate:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:265:98: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
263 | }
264 |
265 | timeControlObserver = player.observe(\.timeControlStatus, options: [.new, .old]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
266 | switch player.timeControlStatus {
267 | case .paused:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:275:29: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
273 | // Player is waiting to play (e.g., buffering)
274 | Task { @MainActor in
275 | self?.delegate?.isWaitingToPlay()
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
276 | }
277 | case .playing:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:265:98: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
263 | }
264 |
265 | timeControlObserver = player.observe(\.timeControlStatus, options: [.new, .old]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
266 | switch player.timeControlStatus {
267 | case .paused:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:280:29: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
278 | // Player is currently playing
279 | Task { @MainActor in
280 | self?.delegate?.didStartPlaying()
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
281 | }
282 | @unknown default:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:265:98: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
263 | }
264 |
265 | timeControlObserver = player.observe(\.timeControlStatus, options: [.new, .old]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
266 | switch player.timeControlStatus {
267 | case .paused:
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:287:102: warning: capture of non-sendable type 'Self.Type' in an isolated closure
285 | }
286 |
287 | currentItemObserver = player.observe(\.currentItem, options: [.new, .old, .initial]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
288 | // Detecting when the current item is changed
289 | if let newItem = change.newValue as? AVPlayerItem {
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:291:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
289 | if let newItem = change.newValue as? AVPlayerItem {
290 | Task { @MainActor in
291 | self?.delegate?.currentItemDidChange(to: newItem)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
292 | }
293 | } else if change.newValue == nil {
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:287:102: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
285 | }
286 |
287 | currentItemObserver = player.observe(\.currentItem, options: [.new, .old, .initial]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
288 | // Detecting when the current item is changed
289 | if let newItem = change.newValue as? AVPlayerItem {
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:295:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
293 | } else if change.newValue == nil {
294 | Task { @MainActor in
295 | self?.delegate?.currentItemWasRemoved()
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
296 | }
297 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:287:102: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
285 | }
286 |
287 | currentItemObserver = player.observe(\.currentItem, options: [.new, .old, .initial]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
288 | // Detecting when the current item is changed
289 | if let newItem = change.newValue as? AVPlayerItem {
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:300:82: warning: capture of non-sendable type 'Self.Type' in an isolated closure
298 | }
299 |
300 | volumeObserver = player.observe(\.volume, options: [.new, .old]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
301 | if let newVolume = change.newValue{
302 | Task { @MainActor in
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:303:25: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
301 | if let newVolume = change.newValue{
302 | Task { @MainActor in
303 | self?.delegate?.volumeDidChange(to: newVolume)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
304 | }
305 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:300:82: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
298 | }
299 |
300 | volumeObserver = player.observe(\.volume, options: [.new, .old]) { [weak self] player, change in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
301 | if let newVolume = change.newValue{
302 | Task { @MainActor in
[8/42] Compiling swiftui_loop_videoplayer CustomView.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/AbstractPlayer.swift:229:43: warning: capture of non-sendable type 'Self.Type' in an isolated closure
227 | }
228 |
229 | player.seek(to: seekTime) { [weak self] success in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
230 | Task { @MainActor in
231 | self?.seekCompletion(success: success, autoPlay: play)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/AbstractPlayer.swift:231:21: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
229 | player.seek(to: seekTime) { [weak self] success in
230 | Task { @MainActor in
231 | self?.seekCompletion(success: success, autoPlay: play)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
232 | }
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/AbstractPlayer.swift:229:43: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
227 | }
228 |
229 | player.seek(to: seekTime) { [weak self] success in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
230 | Task { @MainActor in
231 | self?.seekCompletion(success: success, autoPlay: play)
[9/42] Compiling swiftui_loop_videoplayer PlayerDelegateProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/AbstractPlayer.swift:229:43: warning: capture of non-sendable type 'Self.Type' in an isolated closure
227 | }
228 |
229 | player.seek(to: seekTime) { [weak self] success in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
230 | Task { @MainActor in
231 | self?.seekCompletion(success: success, autoPlay: play)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/AbstractPlayer.swift:231:21: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
229 | player.seek(to: seekTime) { [weak self] success in
230 | Task { @MainActor in
231 | self?.seekCompletion(success: success, autoPlay: play)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
232 | }
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/AbstractPlayer.swift:229:43: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
227 | }
228 |
229 | player.seek(to: seekTime) { [weak self] success in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
230 | Task { @MainActor in
231 | self?.seekCompletion(success: success, autoPlay: play)
[10/42] Compiling swiftui_loop_videoplayer SettingsConvertible.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/AbstractPlayer.swift:229:43: warning: capture of non-sendable type 'Self.Type' in an isolated closure
227 | }
228 |
229 | player.seek(to: seekTime) { [weak self] success in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
230 | Task { @MainActor in
231 | self?.seekCompletion(success: success, autoPlay: play)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/AbstractPlayer.swift:231:21: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
229 | player.seek(to: seekTime) { [weak self] success in
230 | Task { @MainActor in
231 | self?.seekCompletion(success: success, autoPlay: play)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
232 | }
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/AbstractPlayer.swift:229:43: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
227 | }
228 |
229 | player.seek(to: seekTime) { [weak self] success in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
230 | Task { @MainActor in
231 | self?.seekCompletion(success: success, autoPlay: play)
[11/42] Compiling swiftui_loop_videoplayer AbstractPlayer.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/AbstractPlayer.swift:229:43: warning: capture of non-sendable type 'Self.Type' in an isolated closure
227 | }
228 |
229 | player.seek(to: seekTime) { [weak self] success in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
230 | Task { @MainActor in
231 | self?.seekCompletion(success: success, autoPlay: play)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/AbstractPlayer.swift:231:21: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
229 | player.seek(to: seekTime) { [weak self] success in
230 | Task { @MainActor in
231 | self?.seekCompletion(success: success, autoPlay: play)
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
232 | }
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/AbstractPlayer.swift:229:43: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
227 | }
228 |
229 | player.seek(to: seekTime) { [weak self] success in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
230 | Task { @MainActor in
231 | self?.seekCompletion(success: success, autoPlay: play)
[12/42] Compiling swiftui_loop_videoplayer URL+.swift
[13/42] Compiling swiftui_loop_videoplayer View+.swift
[14/42] Compiling swiftui_loop_videoplayer constraintsFn.swift
[15/42] Compiling swiftui_loop_videoplayer fn+.swift
[16/42] Compiling swiftui_loop_videoplayer ExtPlayerUIView.swift
[17/42] Compiling swiftui_loop_videoplayer ExtPlayerNSView.swift
[18/42] Compiling swiftui_loop_videoplayer ExtPlayerMultiPlatform.swift
[19/42] Compiling swiftui_loop_videoplayer VideoSettings.swift
[20/42] Compiling swiftui_loop_videoplayer PlayerCoordinator.swift
[21/42] Compiling swiftui_loop_videoplayer OnPlayerEventChangeModifier.swift
[22/42] Compiling swiftui_loop_videoplayer OnTimeChangeModifier.swift
[23/42] Compiling swiftui_loop_videoplayer Loop.swift
[24/42] Compiling swiftui_loop_videoplayer Mute.swift
[25/42] Compiling swiftui_loop_videoplayer NotAutoPlay.swift
[26/42] Compiling swiftui_loop_videoplayer PictureInPicture .swift
[27/42] Compiling swiftui_loop_videoplayer Setting.swift
[28/42] Compiling swiftui_loop_videoplayer VPErrors.swift
[29/42] Compiling swiftui_loop_videoplayer Array+.swift
[30/42] Compiling swiftui_loop_videoplayer CMTime+.swift
[31/42] Compiling swiftui_loop_videoplayer EnableVector.swift
[32/42] Compiling swiftui_loop_videoplayer Events.swift
[33/42] Compiling swiftui_loop_videoplayer Ext.swift
[34/42] Compiling swiftui_loop_videoplayer Gravity.swift
[35/42] Compiling swiftui_loop_videoplayer ExtVideoPlayer.swift
[36/42] Compiling swiftui_loop_videoplayer PlaybackCommand.swift
[37/42] Compiling swiftui_loop_videoplayer PlayerEvent.swift
[38/42] Compiling swiftui_loop_videoplayer PlayerEventFilter.swift
[39/42] Compiling swiftui_loop_videoplayer SourceName.swift
[40/42] Compiling swiftui_loop_videoplayer Subtitles.swift
[41/42] Compiling swiftui_loop_videoplayer TimePublishing.swift
[42/42] Compiling swiftui_loop_videoplayer SettingsBuilder.swift
Build complete! (9.01s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "swiftui-loop-videoplayer",
"name" : "swiftui-loop-videoplayer",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "tvos",
"version" : "14.0"
}
],
"products" : [
{
"name" : "swiftui-loop-videoplayer",
"targets" : [
"swiftui-loop-videoplayer"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "swiftui_loop_videoplayerTests",
"module_type" : "SwiftTarget",
"name" : "swiftui-loop-videoplayerTests",
"path" : "Tests/swiftui-loop-videoplayerTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/swiftui-loop-videoplayerTests/Resources/swipe.mp4",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"testPlaybackCommandChangesOverTime.swift",
"testPlayerInitialization.swift"
],
"target_dependencies" : [
"swiftui-loop-videoplayer"
],
"type" : "test"
},
{
"c99name" : "swiftui_loop_videoplayer",
"module_type" : "SwiftTarget",
"name" : "swiftui-loop-videoplayer",
"path" : "Sources/swiftui-loop-videoplayer",
"product_memberships" : [
"swiftui-loop-videoplayer"
],
"sources" : [
"ExtVideoPlayer.swift",
"enum/PlaybackCommand.swift",
"enum/PlayerEvent.swift",
"enum/PlayerEventFilter.swift",
"enum/Setting.swift",
"enum/VPErrors.swift",
"ext+/Array+.swift",
"ext+/CMTime+.swift",
"ext+/URL+.swift",
"ext+/View+.swift",
"fn/constraintsFn.swift",
"fn/fn+.swift",
"protocol/helpers/CustomView.swift",
"protocol/helpers/PlayerDelegateProtocol.swift",
"protocol/helpers/SettingsConvertible.swift",
"protocol/player/AbstractPlayer.swift",
"protocol/player/ExtPlayerProtocol.swift",
"protocol/vector/ShapeLayerBuilderProtocol.swift",
"protocol/vector/VectorLayerProtocol.swift",
"protocol/view/ExtPlayerViewProtocol.swift",
"settings/EnableVector.swift",
"settings/Events.swift",
"settings/Ext.swift",
"settings/Gravity.swift",
"settings/Loop.swift",
"settings/Mute.swift",
"settings/NotAutoPlay.swift",
"settings/PictureInPicture .swift",
"settings/SourceName.swift",
"settings/Subtitles.swift",
"settings/TimePublishing.swift",
"utils/SettingsBuilder.swift",
"utils/VideoSettings.swift",
"view/helpers/PlayerCoordinator.swift",
"view/modifier/OnPlayerEventChangeModifier.swift",
"view/modifier/OnTimeChangeModifier.swift",
"view/player/ios/ExtPlayerUIView.swift",
"view/player/mac/ExtPlayerNSView.swift",
"view/player/main/ExtPlayerMultiPlatform.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Done.