Build Information
Successful build of swiftui-loop-videoplayer, reference main (41c0b1
), with Swift 6.0 for macOS (SPM) on 21 Feb 2025 18:25:53 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.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.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swiftuiux/swiftui-loop-videoPlayer.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/swiftuiux/swiftui-loop-videoPlayer
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 41c0b13 update
Cloned https://github.com/swiftuiux/swiftui-loop-videoPlayer.git
Revision (git rev-parse @):
41c0b136f9263e0287543f5254912d2f9bbdfa20
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swiftuiux/swiftui-loop-videoPlayer.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swiftui-loop-videoplayer",
"name": "swiftui-loop-videoplayer",
"url": "https://github.com/swiftuiux/swiftui-loop-videoPlayer.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swiftui-loop-videoPlayer",
"dependencies": [
]
}
]
}
Fetching https://github.com/swiftuiux/swiftui-loop-videoPlayer.git
[1/3103] Fetching swiftui-loop-videoplayer
Fetched https://github.com/swiftuiux/swiftui-loop-videoPlayer.git from cache (1.15s)
Creating working copy for https://github.com/swiftuiux/swiftui-loop-videoPlayer.git
Working copy of https://github.com/swiftuiux/swiftui-loop-videoPlayer.git resolved at main (41c0b13)
warning: '.resolve-product-dependencies': dependency 'swiftui-loop-videoplayer' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
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.2.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-5BDAB9E9C0126B9D.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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- 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 Loop.swift
[5/42] Compiling swiftui_loop_videoplayer Mute.swift
[6/42] Compiling swiftui_loop_videoplayer NotAutoPlay.swift
[7/42] Compiling swiftui_loop_videoplayer PictureInPicture .swift
[8/42] Compiling swiftui_loop_videoplayer CustomView.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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 | }
[9/42] Compiling swiftui_loop_videoplayer PlayerDelegateProtocol.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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 | }
[10/42] Compiling swiftui_loop_videoplayer SettingsConvertible.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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 | }
[11/42] Compiling swiftui_loop_videoplayer AbstractPlayer.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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 | }
[12/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),
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/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),
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
/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),
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
/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)
AppKit.NSView:5:14: note: property declared here
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/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)
AppKit.NSView:5:14: note: property declared here
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/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 | ])
AppKit.NSView:11:14: note: property declared here
9 | open var rightAnchor: NSLayoutXAxisAnchor { get }
10 | @available(macOS 10.11, *)
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
/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 | ])
AppKit.NSView:11:14: note: property declared here
9 | open var rightAnchor: NSLayoutXAxisAnchor { get }
10 | @available(macOS 10.11, *)
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
/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 | }
AppKit.NSView:13:14: note: property declared here
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
14 | @available(macOS 10.11, *)
15 | open var widthAnchor: NSLayoutDimension { get }
/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 | }
AppKit.NSView:13:14: note: property declared here
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
14 | @available(macOS 10.11, *)
15 | open var widthAnchor: NSLayoutDimension { get }
/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
AVFoundation.AVPlayerItem:26:35: note: calls to initializer 'init(asset:)' from outside of its actor context are implicitly asynchronous
24 | @available(swift, obsoleted: 3, renamed: "init(url:)")
25 | nonisolated public convenience init(URL: URL)
26 | @MainActor public convenience init(asset: AVAsset)
| `- note: calls to initializer 'init(asset:)' from outside of its actor context are implicitly asynchronous
27 | @available(macOS 10.9, *)
28 | public init(asset: AVAsset, automaticallyLoadedAssetKeys: [String]?)
[13/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),
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/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),
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
/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),
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
/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)
AppKit.NSView:5:14: note: property declared here
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/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)
AppKit.NSView:5:14: note: property declared here
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/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 | ])
AppKit.NSView:11:14: note: property declared here
9 | open var rightAnchor: NSLayoutXAxisAnchor { get }
10 | @available(macOS 10.11, *)
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
/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 | ])
AppKit.NSView:11:14: note: property declared here
9 | open var rightAnchor: NSLayoutXAxisAnchor { get }
10 | @available(macOS 10.11, *)
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
/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 | }
AppKit.NSView:13:14: note: property declared here
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
14 | @available(macOS 10.11, *)
15 | open var widthAnchor: NSLayoutDimension { get }
/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 | }
AppKit.NSView:13:14: note: property declared here
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
14 | @available(macOS 10.11, *)
15 | open var widthAnchor: NSLayoutDimension { get }
/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
AVFoundation.AVPlayerItem:26:35: note: calls to initializer 'init(asset:)' from outside of its actor context are implicitly asynchronous
24 | @available(swift, obsoleted: 3, renamed: "init(url:)")
25 | nonisolated public convenience init(URL: URL)
26 | @MainActor public convenience init(asset: AVAsset)
| `- note: calls to initializer 'init(asset:)' from outside of its actor context are implicitly asynchronous
27 | @available(macOS 10.9, *)
28 | public init(asset: AVAsset, automaticallyLoadedAssetKeys: [String]?)
[14/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),
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/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),
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
/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),
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
/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)
AppKit.NSView:5:14: note: property declared here
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/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)
AppKit.NSView:5:14: note: property declared here
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/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 | ])
AppKit.NSView:11:14: note: property declared here
9 | open var rightAnchor: NSLayoutXAxisAnchor { get }
10 | @available(macOS 10.11, *)
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
/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 | ])
AppKit.NSView:11:14: note: property declared here
9 | open var rightAnchor: NSLayoutXAxisAnchor { get }
10 | @available(macOS 10.11, *)
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
/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 | }
AppKit.NSView:13:14: note: property declared here
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
14 | @available(macOS 10.11, *)
15 | open var widthAnchor: NSLayoutDimension { get }
/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 | }
AppKit.NSView:13:14: note: property declared here
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
14 | @available(macOS 10.11, *)
15 | open var widthAnchor: NSLayoutDimension { get }
/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
AVFoundation.AVPlayerItem:26:35: note: calls to initializer 'init(asset:)' from outside of its actor context are implicitly asynchronous
24 | @available(swift, obsoleted: 3, renamed: "init(url:)")
25 | nonisolated public convenience init(URL: URL)
26 | @MainActor public convenience init(asset: AVAsset)
| `- note: calls to initializer 'init(asset:)' from outside of its actor context are implicitly asynchronous
27 | @available(macOS 10.9, *)
28 | public init(asset: AVAsset, automaticallyLoadedAssetKeys: [String]?)
[15/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),
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/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),
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
/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),
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
/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)
AppKit.NSView:5:14: note: property declared here
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/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)
AppKit.NSView:5:14: note: property declared here
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/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 | ])
AppKit.NSView:11:14: note: property declared here
9 | open var rightAnchor: NSLayoutXAxisAnchor { get }
10 | @available(macOS 10.11, *)
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
/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 | ])
AppKit.NSView:11:14: note: property declared here
9 | open var rightAnchor: NSLayoutXAxisAnchor { get }
10 | @available(macOS 10.11, *)
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
/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 | }
AppKit.NSView:13:14: note: property declared here
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
14 | @available(macOS 10.11, *)
15 | open var widthAnchor: NSLayoutDimension { get }
/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 | }
AppKit.NSView:13:14: note: property declared here
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
14 | @available(macOS 10.11, *)
15 | open var widthAnchor: NSLayoutDimension { get }
/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
AVFoundation.AVPlayerItem:26:35: note: calls to initializer 'init(asset:)' from outside of its actor context are implicitly asynchronous
24 | @available(swift, obsoleted: 3, renamed: "init(url:)")
25 | nonisolated public convenience init(URL: URL)
26 | @MainActor public convenience init(asset: AVAsset)
| `- note: calls to initializer 'init(asset:)' from outside of its actor context are implicitly asynchronous
27 | @available(macOS 10.9, *)
28 | public init(asset: AVAsset, automaticallyLoadedAssetKeys: [String]?)
[16/42] Compiling swiftui_loop_videoplayer ExtVideoPlayer.swift
[17/42] Compiling swiftui_loop_videoplayer PlaybackCommand.swift
[18/42] Compiling swiftui_loop_videoplayer PlayerEvent.swift
[19/42] Compiling swiftui_loop_videoplayer PlayerEventFilter.swift
[20/42] Compiling swiftui_loop_videoplayer ExtPlayerUIView.swift
[21/42] Compiling swiftui_loop_videoplayer ExtPlayerNSView.swift
[22/42] Compiling swiftui_loop_videoplayer ExtPlayerMultiPlatform.swift
[23/42] Compiling swiftui_loop_videoplayer SourceName.swift
[24/42] Compiling swiftui_loop_videoplayer Subtitles.swift
[25/42] Compiling swiftui_loop_videoplayer TimePublishing.swift
[26/42] Compiling swiftui_loop_videoplayer SettingsBuilder.swift
[27/42] Compiling swiftui_loop_videoplayer EnableVector.swift
[28/42] Compiling swiftui_loop_videoplayer Events.swift
[29/42] Compiling swiftui_loop_videoplayer Ext.swift
[30/42] Compiling swiftui_loop_videoplayer Gravity.swift
[31/42] Compiling swiftui_loop_videoplayer ExtPlayerProtocol.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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)
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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 |
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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:
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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 {
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:223:51: 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))
[32/42] Compiling swiftui_loop_videoplayer ShapeLayerBuilderProtocol.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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)
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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 |
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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:
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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 {
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:223:51: 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))
[33/42] Compiling swiftui_loop_videoplayer VectorLayerProtocol.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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)
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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 |
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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:
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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 {
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:223:51: 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))
[34/42] Compiling swiftui_loop_videoplayer ExtPlayerViewProtocol.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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)
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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 |
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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:
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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 {
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/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 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:223:51: 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))
[35/42] Compiling swiftui_loop_videoplayer Setting.swift
[36/42] Compiling swiftui_loop_videoplayer VPErrors.swift
[37/42] Compiling swiftui_loop_videoplayer Array+.swift
[38/42] Compiling swiftui_loop_videoplayer CMTime+.swift
[39/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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- 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/OnPlayerEventChangeModifier.swift:29:73: warning: converting non-sendable function value to '@Sendable (PlayerEventPreferenceKey.Value) -> Void' may introduce data races
27 | func body(content: Content) -> some View {
28 | content
29 | .onPreferenceChange(PlayerEventPreferenceKey.self, perform: onPlayerEventChange)
| `- warning: converting non-sendable function value to '@Sendable (PlayerEventPreferenceKey.Value) -> Void' may introduce data races
30 | }
31 | }
/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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- 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.
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/modifier/OnTimeChangeModifier.swift:29:73: warning: converting non-sendable function value to '@Sendable (CurrentTimePreferenceKey.Value) -> Void' may introduce data races
27 | func body(content: Content) -> some View {
28 | content
29 | .onPreferenceChange(CurrentTimePreferenceKey.self, perform: onTimeChange)
| `- warning: converting non-sendable function value to '@Sendable (CurrentTimePreferenceKey.Value) -> Void' may introduce data races
30 | }
31 | }
[40/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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- 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/OnPlayerEventChangeModifier.swift:29:73: warning: converting non-sendable function value to '@Sendable (PlayerEventPreferenceKey.Value) -> Void' may introduce data races
27 | func body(content: Content) -> some View {
28 | content
29 | .onPreferenceChange(PlayerEventPreferenceKey.self, perform: onPlayerEventChange)
| `- warning: converting non-sendable function value to '@Sendable (PlayerEventPreferenceKey.Value) -> Void' may introduce data races
30 | }
31 | }
/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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- 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.
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/modifier/OnTimeChangeModifier.swift:29:73: warning: converting non-sendable function value to '@Sendable (CurrentTimePreferenceKey.Value) -> Void' may introduce data races
27 | func body(content: Content) -> some View {
28 | content
29 | .onPreferenceChange(CurrentTimePreferenceKey.self, perform: onTimeChange)
| `- warning: converting non-sendable function value to '@Sendable (CurrentTimePreferenceKey.Value) -> Void' may introduce data races
30 | }
31 | }
[41/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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- 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/OnPlayerEventChangeModifier.swift:29:73: warning: converting non-sendable function value to '@Sendable (PlayerEventPreferenceKey.Value) -> Void' may introduce data races
27 | func body(content: Content) -> some View {
28 | content
29 | .onPreferenceChange(PlayerEventPreferenceKey.self, perform: onPlayerEventChange)
| `- warning: converting non-sendable function value to '@Sendable (PlayerEventPreferenceKey.Value) -> Void' may introduce data races
30 | }
31 | }
/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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- 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.
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/modifier/OnTimeChangeModifier.swift:29:73: warning: converting non-sendable function value to '@Sendable (CurrentTimePreferenceKey.Value) -> Void' may introduce data races
27 | func body(content: Content) -> some View {
28 | content
29 | .onPreferenceChange(CurrentTimePreferenceKey.self, perform: onTimeChange)
| `- warning: converting non-sendable function value to '@Sendable (CurrentTimePreferenceKey.Value) -> Void' may introduce data races
30 | }
31 | }
[42/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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- 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/OnPlayerEventChangeModifier.swift:29:73: warning: converting non-sendable function value to '@Sendable (PlayerEventPreferenceKey.Value) -> Void' may introduce data races
27 | func body(content: Content) -> some View {
28 | content
29 | .onPreferenceChange(PlayerEventPreferenceKey.self, perform: onPlayerEventChange)
| `- warning: converting non-sendable function value to '@Sendable (PlayerEventPreferenceKey.Value) -> Void' may introduce data races
30 | }
31 | }
/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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- 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.
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/modifier/OnTimeChangeModifier.swift:29:73: warning: converting non-sendable function value to '@Sendable (CurrentTimePreferenceKey.Value) -> Void' may introduce data races
27 | func body(content: Content) -> some View {
28 | content
29 | .onPreferenceChange(CurrentTimePreferenceKey.self, perform: onTimeChange)
| `- warning: converting non-sendable function value to '@Sendable (CurrentTimePreferenceKey.Value) -> Void' may introduce data races
30 | }
31 | }
Build complete! (24.74s)
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"
}
✅ Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path: $PWD/.docs/swiftuiux/swiftui-loop-videoplayer/main
Repository: swiftuiux/swiftui-loop-videoPlayer
Swift version used: 6.0
Target: swiftui-loop-videoplayer
Extracting symbol information for 'swiftui-loop-videoplayer'...
Finished extracting symbol information for 'swiftui-loop-videoplayer'. (7.14s)
Building documentation for 'swiftui-loop-videoplayer'...
warning: Parameter 'play' is missing documentation
--> Sources/swiftui-loop-videoplayer/protocol/player/AbstractPlayer.swift:79:76-79:76
77 | /// Seeks the video to a specific time.
78 | /// This method moves the playback position to the specified time with precise accuracy.
79 + /// - Parameter time: The target time to seek to in the video timeline.
| ╰─suggestion: Document 'play' parameter
80 | func seek(to time: Double, play: Bool)
81 |
warning: Parameter 'item' not found in instance method declaration
--> Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift:66:11-66:66
64 | ///
65 | /// - Parameters:
66 + /// - item: The AVPlayerItem to observe for status changes.
| ╰─suggestion: Remove 'item' parameter documentation
67 | /// - player: The AVQueuePlayer to observe for errors.
68 | func setupObservers(for player: AVQueuePlayer)
warning: Parameter 'events' is missing documentation
--> Sources/swiftui-loop-videoplayer/utils/VideoSettings.swift:76:9-76:9
74 | /// - gravity: The `AVLayerVideoGravity` value defining how the video should be displayed within its layer.
75 | /// - enableVector: A Boolean indicating whether vector graphics rendering should be enabled for overlays.
76 + ///
| ╰─suggestion: Document 'events' parameter
77 | /// All parameters must be provided, except `timePublishing`, which can be `nil`, and `enableVector`, which defaults to `false`.
78 | public init(name: String, ext: String, subtitles: String, loop: Bool, pictureInPicture: Bool, mute: Bool, notAutoPlay: Bool, timePublishing: CMTime?, gravity: AVLayerVideoGravity, enableVector : Bool = false, events : [PlayerEventFilter] = []) {
warning: Parameter 'asset' not found in instance method declaration
--> Sources/swiftui-loop-videoplayer/utils/VideoSettings.swift:140:11-140:51
138 | /// Checks if the asset has changed based on the provided settings and current asset.
139 | /// - Parameters:
140 + /// - asset: The current asset being played.
| ╰─suggestion: Remove 'asset' parameter documentation
141 | /// - Returns: A new `AVURLAsset` if the asset has changed, or `nil` if the asset remains the same.
142 | func isEqual(_ settings : VideoSettings?) -> Bool{
warning: Parameter 'settings' is missing documentation
--> Sources/swiftui-loop-videoplayer/utils/VideoSettings.swift:140:51-140:51
138 | /// Checks if the asset has changed based on the provided settings and current asset.
139 | /// - Parameters:
140 + /// - asset: The current asset being played.
| ╰─suggestion: Document 'settings' parameter
141 | /// - Returns: A new `AVURLAsset` if the asset has changed, or `nil` if the asset remains the same.
142 | func isEqual(_ settings : VideoSettings?) -> Bool{Finished building documentation for 'swiftui-loop-videoplayer' (0.81s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/swiftuiux/swiftui-loop-videoplayer/main
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2050] Fetching swift-docc-plugin
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.17s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.3 (0.55s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3312] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.14s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.60s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.3
Building for debugging...
[0/8] Write sources
[2/8] Write snippet-extract-tool-entitlement.plist
[4/8] Write swift-version-5BDAB9E9C0126B9D.txt
[6/53] Compiling SymbolKit Names.swift
[7/53] Compiling SymbolKit SPI.swift
[8/53] Compiling SymbolKit Snippet.swift
[9/53] Compiling SymbolKit Extension.swift
[10/57] Emitting module SymbolKit
[11/57] Compiling SymbolKit SemanticVersion.swift
[12/57] Compiling SymbolKit AccessControl.swift
[13/57] Compiling SymbolKit Availability.swift
[14/57] Compiling SymbolKit AvailabilityItem.swift
[15/57] Compiling SymbolKit Domain.swift
[16/57] Compiling SymbolKit DeclarationFragments.swift
[17/57] Compiling SymbolKit Fragment.swift
[18/57] Compiling SymbolKit FragmentKind.swift
[19/57] Compiling SymbolKit FunctionParameter.swift
[20/57] Compiling SymbolKit FunctionSignature.swift
[21/57] Compiling SymbolKit GenericConstraint.swift
[22/57] Compiling SymbolKit GenericParameter.swift
[23/57] Compiling SymbolKit Generics.swift
[24/57] Compiling SymbolKit Namespace.swift
[25/57] Compiling Snippets SnippetParser.swift
[26/57] Compiling Snippets Snippet.swift
[27/57] Emitting module Snippets
[28/57] Compiling SymbolKit Mixin+Equals.swift
[29/57] Compiling SymbolKit Mixin+Hash.swift
[30/57] Compiling SymbolKit Mixin.swift
[31/57] Compiling SymbolKit LineList.swift
[32/57] Compiling SymbolKit Position.swift
[33/57] Compiling SymbolKit Identifier.swift
[34/57] Compiling SymbolKit KindIdentifier.swift
[35/57] Compiling SymbolKit Location.swift
[36/57] Compiling SymbolKit Mutability.swift
[37/57] Compiling SymbolKit Relationship.swift
[38/57] Compiling SymbolKit RelationshipKind.swift
[39/57] Compiling SymbolKit SourceOrigin.swift
[40/57] Compiling SymbolKit GenericConstraints.swift
[41/57] Compiling SymbolKit Swift.swift
[42/57] Compiling SymbolKit SourceRange.swift
[43/57] Compiling SymbolKit Metadata.swift
[44/57] Compiling SymbolKit Module.swift
[45/57] Compiling SymbolKit OperatingSystem.swift
[46/57] Compiling SymbolKit Platform.swift
[47/57] Compiling SymbolKit Symbol.swift
[48/57] Compiling SymbolKit SymbolKind.swift
[49/57] Compiling SymbolKit SymbolGraph.swift
[50/57] Compiling SymbolKit GraphCollector.swift
[51/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[52/57] Compiling SymbolKit UnifiedSymbol.swift
[53/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[54/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Emitting module snippet_extract
[58/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (5.00s)
Building for debugging...
[0/1] Write swift-version-5BDAB9E9C0126B9D.txt
[2/38] Emitting module swiftui_loop_videoplayer
[3/41] Compiling swiftui_loop_videoplayer URL+.swift
[4/41] Compiling swiftui_loop_videoplayer View+.swift
[5/41] Compiling swiftui_loop_videoplayer constraintsFn.swift
[6/41] Compiling swiftui_loop_videoplayer fn+.swift
[7/41] Compiling swiftui_loop_videoplayer EnableVector.swift
[8/41] Compiling swiftui_loop_videoplayer Events.swift
[9/41] Compiling swiftui_loop_videoplayer Ext.swift
[10/41] Compiling swiftui_loop_videoplayer Gravity.swift
[11/41] Compiling swiftui_loop_videoplayer SourceName.swift
[12/41] Compiling swiftui_loop_videoplayer Subtitles.swift
[13/41] Compiling swiftui_loop_videoplayer TimePublishing.swift
[14/41] Compiling swiftui_loop_videoplayer SettingsBuilder.swift
[15/41] Compiling swiftui_loop_videoplayer Setting.swift
[16/41] Compiling swiftui_loop_videoplayer VPErrors.swift
[17/41] Compiling swiftui_loop_videoplayer Array+.swift
[18/41] Compiling swiftui_loop_videoplayer CMTime+.swift
[19/41] Compiling swiftui_loop_videoplayer CustomView.swift
[20/41] Compiling swiftui_loop_videoplayer PlayerDelegateProtocol.swift
[21/41] Compiling swiftui_loop_videoplayer SettingsConvertible.swift
[22/41] Compiling swiftui_loop_videoplayer AbstractPlayer.swift
[23/41] Compiling swiftui_loop_videoplayer VideoSettings.swift
[24/41] Compiling swiftui_loop_videoplayer PlayerCoordinator.swift
[25/41] Compiling swiftui_loop_videoplayer OnPlayerEventChangeModifier.swift
[26/41] Compiling swiftui_loop_videoplayer OnTimeChangeModifier.swift
[27/41] Compiling swiftui_loop_videoplayer Loop.swift
[28/41] Compiling swiftui_loop_videoplayer Mute.swift
[29/41] Compiling swiftui_loop_videoplayer NotAutoPlay.swift
[30/41] Compiling swiftui_loop_videoplayer PictureInPicture .swift
[31/41] Compiling swiftui_loop_videoplayer ExtVideoPlayer.swift
[32/41] Compiling swiftui_loop_videoplayer PlaybackCommand.swift
[33/41] Compiling swiftui_loop_videoplayer PlayerEvent.swift
[34/41] Compiling swiftui_loop_videoplayer PlayerEventFilter.swift
[35/41] Compiling swiftui_loop_videoplayer ExtPlayerProtocol.swift
[36/41] Compiling swiftui_loop_videoplayer ShapeLayerBuilderProtocol.swift
[37/41] Compiling swiftui_loop_videoplayer VectorLayerProtocol.swift
[38/41] Compiling swiftui_loop_videoplayer ExtPlayerViewProtocol.swift
[39/41] Compiling swiftui_loop_videoplayer ExtPlayerUIView.swift
[40/41] Compiling swiftui_loop_videoplayer ExtPlayerNSView.swift
[41/41] Compiling swiftui_loop_videoplayer ExtPlayerMultiPlatform.swift
Build of target: 'swiftui-loop-videoplayer' complete! (2.33s)
1870
14 /Users/admin/builder/spi-builder-workspace/.docs/swiftuiux/swiftui-loop-videoplayer/main
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/swiftuiux/swiftui-loop-videoplayer/main
File count: 1870
Doc size: 14.0MB
Preparing doc bundle ...
Uploading prod-swiftuiux-swiftui-loop-videoplayer-main-08ad8922.zip to s3://spi-docs-inbox/prod-swiftuiux-swiftui-loop-videoplayer-main-08ad8922.zip
Copying... [12%]
Copying... [21%]
Copying... [30%]
Copying... [42%]
Copying... [51%]
Copying... [60%]
Copying... [72%]
Copying... [81%]
Copying... [91%]
Copying... [100%]
Done.