Build Information
Successful build of swiftui-loop-videoplayer, reference 1.8.7 (22ff6e
), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 14:11:47 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.61.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swiftuiux/swiftui-loop-videoPlayer.git
Reference: 1.8.7
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/swiftuiux/swiftui-loop-videoPlayer
* tag 1.8.7 -> FETCH_HEAD
HEAD is now at 22ff6e0 Update README.md
Cloned https://github.com/swiftuiux/swiftui-loop-videoPlayer.git
Revision (git rev-parse @):
22ff6e03e7e415ce3765c34bcec2315f8c27561c
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swiftuiux/swiftui-loop-videoPlayer.git at 1.8.7
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/swiftuiux/swiftui-loop-videoPlayer.git
https://github.com/swiftuiux/swiftui-loop-videoPlayer.git
{
"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"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/39] Emitting module swiftui_loop_videoplayer
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/modifier/OnPlayerEventChangeModifier.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal struct PlayerEventPreferenceKey: PreferenceKey {
12 | /// The default value of player events, initialized as an empty array.
13 | public static var defaultValue: [PlayerEvent] = []
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | /// Aggregates values from the view hierarchy when child views provide values.
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/modifier/OnTimeChangeModifier.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal struct CurrentTimePreferenceKey: PreferenceKey {
12 | /// Sets the default playback time to 0.0 seconds.
13 | public static var defaultValue: Double = 0.0
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | /// Aggregates the most recent playback time from child views.
[4/42] Compiling swiftui_loop_videoplayer URL+.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:19:10: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position. To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 | */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
| `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it. If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint. To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:21:14: warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
| `- warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:224:51: note: property declared here
222 | See NSLayoutAnchor.h for more details.
223 | */
224 | @property (readonly, strong) NSLayoutXAxisAnchor *leadingAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
225 | @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(macos(10.11));
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:21:62: warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
| `- warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:224:51: note: property declared here
222 | See NSLayoutAnchor.h for more details.
223 | */
224 | @property (readonly, strong) NSLayoutXAxisAnchor *leadingAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
225 | @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(macos(10.11));
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:22:14: warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
| `- warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:225:51: note: property declared here
223 | */
224 | @property (readonly, strong) NSLayoutXAxisAnchor *leadingAnchor API_AVAILABLE(macos(10.11));
225 | @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:22:63: warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
| `- warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:225:51: note: property declared here
223 | */
224 | @property (readonly, strong) NSLayoutXAxisAnchor *leadingAnchor API_AVAILABLE(macos(10.11));
225 | @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:23:14: warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
| `- warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
25 | ])
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:228:51: note: property declared here
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:23:58: warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
| `- warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
25 | ])
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:228:51: note: property declared here
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:24:14: warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
:
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
| `- warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | ])
26 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:229:51: note: property declared here
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
231 | @property (readonly, strong) NSLayoutDimension *heightAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:24:61: warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
:
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
| `- warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | ])
26 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:229:51: note: property declared here
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
231 | @property (readonly, strong) NSLayoutDimension *heightAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/fn+.swift:283:16: warning: call to main actor-isolated initializer 'init(asset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
272 | /// - settings: A `VideoSettings` object containing subtitle configuration.
273 | /// - Returns: A new `AVPlayerItem` configured with the merged or original asset.
274 | func createPlayerItem(with settings: VideoSettings) -> AVPlayerItem? {
| `- note: add '@MainActor' to make global function 'createPlayerItem(with:)' part of global actor 'MainActor'
275 |
276 | guard let asset = assetFor(settings) else{
:
281 | let mergedAsset = mergeAssetWithSubtitles(videoAsset: asset, subtitleAsset: subtitleAsset) {
282 | // Create and return a new `AVPlayerItem` using the merged asset
283 | return AVPlayerItem(asset: mergedAsset)
| `- warning: call to main actor-isolated initializer 'init(asset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
284 | } else {
285 | // Create and return a new `AVPlayerItem` using the original asset
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItem.h:153:1: note: calls to initializer 'init(asset:)' from outside of its actor context are implicitly asynchronous
151 | This method, along with the companion `asset` property, is MainActor-isolated for Swift clients because AVAsset is not Sendable. If you are using a Sendable subclass of AVAsset, such as AVURLAsset, an overload of this initializer will be chosen automatically to allow you to initialize an AVPlayerItem while not running on the main actor.
152 | */
153 | - (instancetype)initWithAsset:(AVAsset *)asset;
| `- note: calls to initializer 'init(asset:)' from outside of its actor context are implicitly asynchronous
154 |
155 | /*!
[5/42] Compiling swiftui_loop_videoplayer View+.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:19:10: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position. To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 | */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
| `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it. If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint. To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:21:14: warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
| `- warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:224:51: note: property declared here
222 | See NSLayoutAnchor.h for more details.
223 | */
224 | @property (readonly, strong) NSLayoutXAxisAnchor *leadingAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
225 | @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(macos(10.11));
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:21:62: warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
| `- warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:224:51: note: property declared here
222 | See NSLayoutAnchor.h for more details.
223 | */
224 | @property (readonly, strong) NSLayoutXAxisAnchor *leadingAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
225 | @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(macos(10.11));
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:22:14: warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
| `- warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:225:51: note: property declared here
223 | */
224 | @property (readonly, strong) NSLayoutXAxisAnchor *leadingAnchor API_AVAILABLE(macos(10.11));
225 | @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:22:63: warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
| `- warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:225:51: note: property declared here
223 | */
224 | @property (readonly, strong) NSLayoutXAxisAnchor *leadingAnchor API_AVAILABLE(macos(10.11));
225 | @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:23:14: warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
| `- warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
25 | ])
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:228:51: note: property declared here
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:23:58: warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
| `- warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
25 | ])
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:228:51: note: property declared here
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:24:14: warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
:
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
| `- warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | ])
26 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:229:51: note: property declared here
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
231 | @property (readonly, strong) NSLayoutDimension *heightAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:24:61: warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
:
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
| `- warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | ])
26 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:229:51: note: property declared here
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
231 | @property (readonly, strong) NSLayoutDimension *heightAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/fn+.swift:283:16: warning: call to main actor-isolated initializer 'init(asset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
272 | /// - settings: A `VideoSettings` object containing subtitle configuration.
273 | /// - Returns: A new `AVPlayerItem` configured with the merged or original asset.
274 | func createPlayerItem(with settings: VideoSettings) -> AVPlayerItem? {
| `- note: add '@MainActor' to make global function 'createPlayerItem(with:)' part of global actor 'MainActor'
275 |
276 | guard let asset = assetFor(settings) else{
:
281 | let mergedAsset = mergeAssetWithSubtitles(videoAsset: asset, subtitleAsset: subtitleAsset) {
282 | // Create and return a new `AVPlayerItem` using the merged asset
283 | return AVPlayerItem(asset: mergedAsset)
| `- warning: call to main actor-isolated initializer 'init(asset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
284 | } else {
285 | // Create and return a new `AVPlayerItem` using the original asset
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItem.h:153:1: note: calls to initializer 'init(asset:)' from outside of its actor context are implicitly asynchronous
151 | This method, along with the companion `asset` property, is MainActor-isolated for Swift clients because AVAsset is not Sendable. If you are using a Sendable subclass of AVAsset, such as AVURLAsset, an overload of this initializer will be chosen automatically to allow you to initialize an AVPlayerItem while not running on the main actor.
152 | */
153 | - (instancetype)initWithAsset:(AVAsset *)asset;
| `- note: calls to initializer 'init(asset:)' from outside of its actor context are implicitly asynchronous
154 |
155 | /*!
[6/42] Compiling swiftui_loop_videoplayer constraintsFn.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:19:10: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position. To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 | */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
| `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it. If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint. To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:21:14: warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
| `- warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:224:51: note: property declared here
222 | See NSLayoutAnchor.h for more details.
223 | */
224 | @property (readonly, strong) NSLayoutXAxisAnchor *leadingAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
225 | @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(macos(10.11));
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:21:62: warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
| `- warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:224:51: note: property declared here
222 | See NSLayoutAnchor.h for more details.
223 | */
224 | @property (readonly, strong) NSLayoutXAxisAnchor *leadingAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
225 | @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(macos(10.11));
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:22:14: warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
| `- warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:225:51: note: property declared here
223 | */
224 | @property (readonly, strong) NSLayoutXAxisAnchor *leadingAnchor API_AVAILABLE(macos(10.11));
225 | @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:22:63: warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
| `- warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:225:51: note: property declared here
223 | */
224 | @property (readonly, strong) NSLayoutXAxisAnchor *leadingAnchor API_AVAILABLE(macos(10.11));
225 | @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:23:14: warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
| `- warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
25 | ])
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:228:51: note: property declared here
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:23:58: warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
| `- warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
25 | ])
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:228:51: note: property declared here
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:24:14: warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
:
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
| `- warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | ])
26 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:229:51: note: property declared here
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
231 | @property (readonly, strong) NSLayoutDimension *heightAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:24:61: warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
:
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
| `- warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | ])
26 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:229:51: note: property declared here
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
231 | @property (readonly, strong) NSLayoutDimension *heightAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/fn+.swift:283:16: warning: call to main actor-isolated initializer 'init(asset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
272 | /// - settings: A `VideoSettings` object containing subtitle configuration.
273 | /// - Returns: A new `AVPlayerItem` configured with the merged or original asset.
274 | func createPlayerItem(with settings: VideoSettings) -> AVPlayerItem? {
| `- note: add '@MainActor' to make global function 'createPlayerItem(with:)' part of global actor 'MainActor'
275 |
276 | guard let asset = assetFor(settings) else{
:
281 | let mergedAsset = mergeAssetWithSubtitles(videoAsset: asset, subtitleAsset: subtitleAsset) {
282 | // Create and return a new `AVPlayerItem` using the merged asset
283 | return AVPlayerItem(asset: mergedAsset)
| `- warning: call to main actor-isolated initializer 'init(asset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
284 | } else {
285 | // Create and return a new `AVPlayerItem` using the original asset
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItem.h:153:1: note: calls to initializer 'init(asset:)' from outside of its actor context are implicitly asynchronous
151 | This method, along with the companion `asset` property, is MainActor-isolated for Swift clients because AVAsset is not Sendable. If you are using a Sendable subclass of AVAsset, such as AVURLAsset, an overload of this initializer will be chosen automatically to allow you to initialize an AVPlayerItem while not running on the main actor.
152 | */
153 | - (instancetype)initWithAsset:(AVAsset *)asset;
| `- note: calls to initializer 'init(asset:)' from outside of its actor context are implicitly asynchronous
154 |
155 | /*!
[7/42] Compiling swiftui_loop_videoplayer fn+.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:19:10: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position. To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 | */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
| `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it. If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint. To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:21:14: warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
| `- warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:224:51: note: property declared here
222 | See NSLayoutAnchor.h for more details.
223 | */
224 | @property (readonly, strong) NSLayoutXAxisAnchor *leadingAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
225 | @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(macos(10.11));
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:21:62: warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
| `- warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:224:51: note: property declared here
222 | See NSLayoutAnchor.h for more details.
223 | */
224 | @property (readonly, strong) NSLayoutXAxisAnchor *leadingAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
225 | @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(macos(10.11));
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:22:14: warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
| `- warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:225:51: note: property declared here
223 | */
224 | @property (readonly, strong) NSLayoutXAxisAnchor *leadingAnchor API_AVAILABLE(macos(10.11));
225 | @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:22:63: warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
| `- warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:225:51: note: property declared here
223 | */
224 | @property (readonly, strong) NSLayoutXAxisAnchor *leadingAnchor API_AVAILABLE(macos(10.11));
225 | @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:23:14: warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
| `- warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
25 | ])
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:228:51: note: property declared here
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:23:58: warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
| `- warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
25 | ])
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:228:51: note: property declared here
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:24:14: warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
:
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
| `- warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | ])
26 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:229:51: note: property declared here
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
231 | @property (readonly, strong) NSLayoutDimension *heightAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:24:61: warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
:
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
| `- warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | ])
26 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:229:51: note: property declared here
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
231 | @property (readonly, strong) NSLayoutDimension *heightAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/fn+.swift:283:16: warning: call to main actor-isolated initializer 'init(asset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
272 | /// - settings: A `VideoSettings` object containing subtitle configuration.
273 | /// - Returns: A new `AVPlayerItem` configured with the merged or original asset.
274 | func createPlayerItem(with settings: VideoSettings) -> AVPlayerItem? {
| `- note: add '@MainActor' to make global function 'createPlayerItem(with:)' part of global actor 'MainActor'
275 |
276 | guard let asset = assetFor(settings) else{
:
281 | let mergedAsset = mergeAssetWithSubtitles(videoAsset: asset, subtitleAsset: subtitleAsset) {
282 | // Create and return a new `AVPlayerItem` using the merged asset
283 | return AVPlayerItem(asset: mergedAsset)
| `- warning: call to main actor-isolated initializer 'init(asset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
284 | } else {
285 | // Create and return a new `AVPlayerItem` using the original asset
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItem.h:153:1: note: calls to initializer 'init(asset:)' from outside of its actor context are implicitly asynchronous
151 | This method, along with the companion `asset` property, is MainActor-isolated for Swift clients because AVAsset is not Sendable. If you are using a Sendable subclass of AVAsset, such as AVURLAsset, an overload of this initializer will be chosen automatically to allow you to initialize an AVPlayerItem while not running on the main actor.
152 | */
153 | - (instancetype)initWithAsset:(AVAsset *)asset;
| `- note: calls to initializer 'init(asset:)' from outside of its actor context are implicitly asynchronous
154 |
155 | /*!
[8/42] Compiling swiftui_loop_videoplayer ExtPlayerUIView.swift
[9/42] Compiling swiftui_loop_videoplayer ExtPlayerNSView.swift
[10/42] Compiling swiftui_loop_videoplayer ExtPlayerMultiPlatform.swift
[11/42] Compiling swiftui_loop_videoplayer VideoSettings.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/modifier/OnPlayerEventChangeModifier.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal struct PlayerEventPreferenceKey: PreferenceKey {
12 | /// The default value of player events, initialized as an empty array.
13 | public static var defaultValue: [PlayerEvent] = []
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | /// Aggregates values from the view hierarchy when child views provide values.
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/modifier/OnTimeChangeModifier.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal struct CurrentTimePreferenceKey: PreferenceKey {
12 | /// Sets the default playback time to 0.0 seconds.
13 | public static var defaultValue: Double = 0.0
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | /// Aggregates the most recent playback time from child views.
[12/42] Compiling swiftui_loop_videoplayer PlayerCoordinator.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/modifier/OnPlayerEventChangeModifier.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal struct PlayerEventPreferenceKey: PreferenceKey {
12 | /// The default value of player events, initialized as an empty array.
13 | public static var defaultValue: [PlayerEvent] = []
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | /// Aggregates values from the view hierarchy when child views provide values.
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/modifier/OnTimeChangeModifier.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal struct CurrentTimePreferenceKey: PreferenceKey {
12 | /// Sets the default playback time to 0.0 seconds.
13 | public static var defaultValue: Double = 0.0
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | /// Aggregates the most recent playback time from child views.
[13/42] Compiling swiftui_loop_videoplayer OnPlayerEventChangeModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/modifier/OnPlayerEventChangeModifier.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal struct PlayerEventPreferenceKey: PreferenceKey {
12 | /// The default value of player events, initialized as an empty array.
13 | public static var defaultValue: [PlayerEvent] = []
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | /// Aggregates values from the view hierarchy when child views provide values.
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/modifier/OnTimeChangeModifier.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal struct CurrentTimePreferenceKey: PreferenceKey {
12 | /// Sets the default playback time to 0.0 seconds.
13 | public static var defaultValue: Double = 0.0
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | /// Aggregates the most recent playback time from child views.
[14/42] Compiling swiftui_loop_videoplayer OnTimeChangeModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/modifier/OnPlayerEventChangeModifier.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal struct PlayerEventPreferenceKey: PreferenceKey {
12 | /// The default value of player events, initialized as an empty array.
13 | public static var defaultValue: [PlayerEvent] = []
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | /// Aggregates values from the view hierarchy when child views provide values.
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/modifier/OnTimeChangeModifier.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal struct CurrentTimePreferenceKey: PreferenceKey {
12 | /// Sets the default playback time to 0.0 seconds.
13 | public static var defaultValue: Double = 0.0
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | /// Aggregates the most recent playback time from child views.
[15/42] Compiling swiftui_loop_videoplayer EnableVector.swift
[16/42] Compiling swiftui_loop_videoplayer Events.swift
[17/42] Compiling swiftui_loop_videoplayer Ext.swift
[18/42] Compiling swiftui_loop_videoplayer Gravity.swift
[19/42] Compiling swiftui_loop_videoplayer ExtVideoPlayer.swift
[20/42] Compiling swiftui_loop_videoplayer PlaybackCommand.swift
[21/42] Compiling swiftui_loop_videoplayer PlayerEvent.swift
[22/42] Compiling swiftui_loop_videoplayer PlayerEventFilter.swift
[23/42] Compiling swiftui_loop_videoplayer CustomView.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/AbstractPlayer.swift:231:17: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
229 | player.seek(to: seekTime) { [weak self] success in
230 | Task { @MainActor in
231 | self?.seekCompletion(success: success, autoPlay: play)
| `- warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
232 | }
233 | }
swiftui_loop_videoplayer.AbstractPlayer.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol AbstractPlayer {
2 | Self : swiftui_loop_videoplayer.AbstractPlayer}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
[24/42] Compiling swiftui_loop_videoplayer PlayerDelegateProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/AbstractPlayer.swift:231:17: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
229 | player.seek(to: seekTime) { [weak self] success in
230 | Task { @MainActor in
231 | self?.seekCompletion(success: success, autoPlay: play)
| `- warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
232 | }
233 | }
swiftui_loop_videoplayer.AbstractPlayer.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol AbstractPlayer {
2 | Self : swiftui_loop_videoplayer.AbstractPlayer}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
[25/42] Compiling swiftui_loop_videoplayer SettingsConvertible.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/AbstractPlayer.swift:231:17: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
229 | player.seek(to: seekTime) { [weak self] success in
230 | Task { @MainActor in
231 | self?.seekCompletion(success: success, autoPlay: play)
| `- warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
232 | }
233 | }
swiftui_loop_videoplayer.AbstractPlayer.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol AbstractPlayer {
2 | Self : swiftui_loop_videoplayer.AbstractPlayer}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
[26/42] Compiling swiftui_loop_videoplayer AbstractPlayer.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/AbstractPlayer.swift:231:17: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
229 | player.seek(to: seekTime) { [weak self] success in
230 | Task { @MainActor in
231 | self?.seekCompletion(success: success, autoPlay: play)
| `- warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
232 | }
233 | }
swiftui_loop_videoplayer.AbstractPlayer.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol AbstractPlayer {
2 | Self : swiftui_loop_videoplayer.AbstractPlayer}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
[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 Loop.swift
[32/42] Compiling swiftui_loop_videoplayer Mute.swift
[33/42] Compiling swiftui_loop_videoplayer NotAutoPlay.swift
[34/42] Compiling swiftui_loop_videoplayer PictureInPicture .swift
[35/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 'self' with non-sendable type 'Self?' in a '@Sendable' 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 'self' with non-sendable type 'Self?' in a '@Sendable' closure
139 | Task { @MainActor in
140 | self.delegate?.didPassedTime(seconds: time.seconds)
swiftui_loop_videoplayer.ExtPlayerProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ExtPlayerProtocol {
2 | Self : swiftui_loop_videoplayer.ExtPlayerProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:223:17: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
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 'self' with non-sendable type 'Self?' in a '@Sendable' closure
224 | }
225 |
swiftui_loop_videoplayer.ExtPlayerProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ExtPlayerProtocol {
2 | Self : swiftui_loop_videoplayer.ExtPlayerProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:261:17: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
259 | guard let error = player.error else { return }
260 | Task { @MainActor in
261 | self?.onError(.remoteVideoError(error))
| `- warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
262 | }
263 | }
swiftui_loop_videoplayer.ExtPlayerProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ExtPlayerProtocol {
2 | Self : swiftui_loop_videoplayer.ExtPlayerProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:270:25: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
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 'self' with non-sendable type 'Self?' in a '@Sendable' closure
271 | }
272 | case .waitingToPlayAtSpecifiedRate:
swiftui_loop_videoplayer.ExtPlayerProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ExtPlayerProtocol {
2 | Self : swiftui_loop_videoplayer.ExtPlayerProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:291:21: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
289 | if let newItem = change.newValue as? AVPlayerItem {
290 | Task { @MainActor in
291 | self?.delegate?.currentItemDidChange(to: newItem)
| `- warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
292 | }
293 | } else if change.newValue == nil {
swiftui_loop_videoplayer.ExtPlayerProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ExtPlayerProtocol {
2 | Self : swiftui_loop_videoplayer.ExtPlayerProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:303:21: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
301 | if let newVolume = change.newValue{
302 | Task { @MainActor in
303 | self?.delegate?.volumeDidChange(to: newVolume)
| `- warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
304 | }
305 | }
swiftui_loop_videoplayer.ExtPlayerProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ExtPlayerProtocol {
2 | Self : swiftui_loop_videoplayer.ExtPlayerProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:223:17: warning: sending 'self' risks causing data races; 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: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
224 | }
225 |
:
227 | case .unknown: break
228 | case .readyToPlay:
229 | Task { @MainActor in
| `- note: access can happen concurrently
230 | self?.delegate?.duration(item.duration)
231 | }
232 | case .failed:
233 | Task { @MainActor in
| `- note: access can happen concurrently
234 | let error = self?.currentItem?.error
235 | self?.onError(.failedToLoad(error))
236 | }
237 | @unknown default:
238 | Task { @MainActor in
| `- note: access can happen concurrently
239 | let error = self?.currentItem?.error
240 | self?.onError(.failedToLoad(error))
[36/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 'self' with non-sendable type 'Self?' in a '@Sendable' 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 'self' with non-sendable type 'Self?' in a '@Sendable' closure
139 | Task { @MainActor in
140 | self.delegate?.didPassedTime(seconds: time.seconds)
swiftui_loop_videoplayer.ExtPlayerProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ExtPlayerProtocol {
2 | Self : swiftui_loop_videoplayer.ExtPlayerProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:223:17: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
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 'self' with non-sendable type 'Self?' in a '@Sendable' closure
224 | }
225 |
swiftui_loop_videoplayer.ExtPlayerProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ExtPlayerProtocol {
2 | Self : swiftui_loop_videoplayer.ExtPlayerProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:261:17: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
259 | guard let error = player.error else { return }
260 | Task { @MainActor in
261 | self?.onError(.remoteVideoError(error))
| `- warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
262 | }
263 | }
swiftui_loop_videoplayer.ExtPlayerProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ExtPlayerProtocol {
2 | Self : swiftui_loop_videoplayer.ExtPlayerProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:270:25: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
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 'self' with non-sendable type 'Self?' in a '@Sendable' closure
271 | }
272 | case .waitingToPlayAtSpecifiedRate:
swiftui_loop_videoplayer.ExtPlayerProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ExtPlayerProtocol {
2 | Self : swiftui_loop_videoplayer.ExtPlayerProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:291:21: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
289 | if let newItem = change.newValue as? AVPlayerItem {
290 | Task { @MainActor in
291 | self?.delegate?.currentItemDidChange(to: newItem)
| `- warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
292 | }
293 | } else if change.newValue == nil {
swiftui_loop_videoplayer.ExtPlayerProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ExtPlayerProtocol {
2 | Self : swiftui_loop_videoplayer.ExtPlayerProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:303:21: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
301 | if let newVolume = change.newValue{
302 | Task { @MainActor in
303 | self?.delegate?.volumeDidChange(to: newVolume)
| `- warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
304 | }
305 | }
swiftui_loop_videoplayer.ExtPlayerProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ExtPlayerProtocol {
2 | Self : swiftui_loop_videoplayer.ExtPlayerProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:223:17: warning: sending 'self' risks causing data races; 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: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
224 | }
225 |
:
227 | case .unknown: break
228 | case .readyToPlay:
229 | Task { @MainActor in
| `- note: access can happen concurrently
230 | self?.delegate?.duration(item.duration)
231 | }
232 | case .failed:
233 | Task { @MainActor in
| `- note: access can happen concurrently
234 | let error = self?.currentItem?.error
235 | self?.onError(.failedToLoad(error))
236 | }
237 | @unknown default:
238 | Task { @MainActor in
| `- note: access can happen concurrently
239 | let error = self?.currentItem?.error
240 | self?.onError(.failedToLoad(error))
[37/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 'self' with non-sendable type 'Self?' in a '@Sendable' 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 'self' with non-sendable type 'Self?' in a '@Sendable' closure
139 | Task { @MainActor in
140 | self.delegate?.didPassedTime(seconds: time.seconds)
swiftui_loop_videoplayer.ExtPlayerProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ExtPlayerProtocol {
2 | Self : swiftui_loop_videoplayer.ExtPlayerProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:223:17: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
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 'self' with non-sendable type 'Self?' in a '@Sendable' closure
224 | }
225 |
swiftui_loop_videoplayer.ExtPlayerProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ExtPlayerProtocol {
2 | Self : swiftui_loop_videoplayer.ExtPlayerProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:261:17: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
259 | guard let error = player.error else { return }
260 | Task { @MainActor in
261 | self?.onError(.remoteVideoError(error))
| `- warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
262 | }
263 | }
swiftui_loop_videoplayer.ExtPlayerProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ExtPlayerProtocol {
2 | Self : swiftui_loop_videoplayer.ExtPlayerProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:270:25: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
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 'self' with non-sendable type 'Self?' in a '@Sendable' closure
271 | }
272 | case .waitingToPlayAtSpecifiedRate:
swiftui_loop_videoplayer.ExtPlayerProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ExtPlayerProtocol {
2 | Self : swiftui_loop_videoplayer.ExtPlayerProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:291:21: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
289 | if let newItem = change.newValue as? AVPlayerItem {
290 | Task { @MainActor in
291 | self?.delegate?.currentItemDidChange(to: newItem)
| `- warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
292 | }
293 | } else if change.newValue == nil {
swiftui_loop_videoplayer.ExtPlayerProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ExtPlayerProtocol {
2 | Self : swiftui_loop_videoplayer.ExtPlayerProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:303:21: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
301 | if let newVolume = change.newValue{
302 | Task { @MainActor in
303 | self?.delegate?.volumeDidChange(to: newVolume)
| `- warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
304 | }
305 | }
swiftui_loop_videoplayer.ExtPlayerProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ExtPlayerProtocol {
2 | Self : swiftui_loop_videoplayer.ExtPlayerProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:223:17: warning: sending 'self' risks causing data races; 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: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
224 | }
225 |
:
227 | case .unknown: break
228 | case .readyToPlay:
229 | Task { @MainActor in
| `- note: access can happen concurrently
230 | self?.delegate?.duration(item.duration)
231 | }
232 | case .failed:
233 | Task { @MainActor in
| `- note: access can happen concurrently
234 | let error = self?.currentItem?.error
235 | self?.onError(.failedToLoad(error))
236 | }
237 | @unknown default:
238 | Task { @MainActor in
| `- note: access can happen concurrently
239 | let error = self?.currentItem?.error
240 | self?.onError(.failedToLoad(error))
[38/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 'self' with non-sendable type 'Self?' in a '@Sendable' 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 'self' with non-sendable type 'Self?' in a '@Sendable' closure
139 | Task { @MainActor in
140 | self.delegate?.didPassedTime(seconds: time.seconds)
swiftui_loop_videoplayer.ExtPlayerProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ExtPlayerProtocol {
2 | Self : swiftui_loop_videoplayer.ExtPlayerProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:223:17: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
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 'self' with non-sendable type 'Self?' in a '@Sendable' closure
224 | }
225 |
swiftui_loop_videoplayer.ExtPlayerProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ExtPlayerProtocol {
2 | Self : swiftui_loop_videoplayer.ExtPlayerProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:261:17: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
259 | guard let error = player.error else { return }
260 | Task { @MainActor in
261 | self?.onError(.remoteVideoError(error))
| `- warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
262 | }
263 | }
swiftui_loop_videoplayer.ExtPlayerProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ExtPlayerProtocol {
2 | Self : swiftui_loop_videoplayer.ExtPlayerProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:270:25: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
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 'self' with non-sendable type 'Self?' in a '@Sendable' closure
271 | }
272 | case .waitingToPlayAtSpecifiedRate:
swiftui_loop_videoplayer.ExtPlayerProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ExtPlayerProtocol {
2 | Self : swiftui_loop_videoplayer.ExtPlayerProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:291:21: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
289 | if let newItem = change.newValue as? AVPlayerItem {
290 | Task { @MainActor in
291 | self?.delegate?.currentItemDidChange(to: newItem)
| `- warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
292 | }
293 | } else if change.newValue == nil {
swiftui_loop_videoplayer.ExtPlayerProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ExtPlayerProtocol {
2 | Self : swiftui_loop_videoplayer.ExtPlayerProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:303:21: warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
301 | if let newVolume = change.newValue{
302 | Task { @MainActor in
303 | self?.delegate?.volumeDidChange(to: newVolume)
| `- warning: capture of 'self' with non-sendable type 'Self?' in a '@Sendable' closure
304 | }
305 | }
swiftui_loop_videoplayer.ExtPlayerProtocol.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ExtPlayerProtocol {
2 | Self : swiftui_loop_videoplayer.ExtPlayerProtocol}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:223:17: warning: sending 'self' risks causing data races; 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: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
224 | }
225 |
:
227 | case .unknown: break
228 | case .readyToPlay:
229 | Task { @MainActor in
| `- note: access can happen concurrently
230 | self?.delegate?.duration(item.duration)
231 | }
232 | case .failed:
233 | Task { @MainActor in
| `- note: access can happen concurrently
234 | let error = self?.currentItem?.error
235 | self?.onError(.failedToLoad(error))
236 | }
237 | @unknown default:
238 | Task { @MainActor in
| `- note: access can happen concurrently
239 | let error = self?.currentItem?.error
240 | self?.onError(.failedToLoad(error))
[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! (10.18s)
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.