Build Information
Successful build of KSPlayer, reference main (181fb5), with Swift 6.2 for macOS (SPM) on 30 Apr 2026 15:57:06 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
37 | public extension UIFontDescriptor.SymbolicTraits {
38 | static var traitItalic = italic
39 | static var traitBold = bold
| |- warning: static property 'traitBold' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'traitBold' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'traitBold' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:358:27: warning: static property 'normal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
356 | public var rawValue: UInt
357 | public init(rawValue: UInt) { self.rawValue = rawValue }
358 | public static var normal = State(rawValue: 1 << 0)
| |- warning: static property 'normal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'normal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'normal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
359 | public static var highlighted = State(rawValue: 1 << 1)
360 | public static var disabled = State(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:359:27: warning: static property 'highlighted' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
357 | public init(rawValue: UInt) { self.rawValue = rawValue }
358 | public static var normal = State(rawValue: 1 << 0)
359 | public static var highlighted = State(rawValue: 1 << 1)
| |- warning: static property 'highlighted' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'highlighted' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'highlighted' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
360 | public static var disabled = State(rawValue: 1 << 2)
361 | public static var selected = State(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:360:27: warning: static property 'disabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
358 | public static var normal = State(rawValue: 1 << 0)
359 | public static var highlighted = State(rawValue: 1 << 1)
360 | public static var disabled = State(rawValue: 1 << 2)
| |- warning: static property 'disabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'disabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'disabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
361 | public static var selected = State(rawValue: 1 << 3)
362 | public static var focused = State(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:361:27: warning: static property 'selected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
359 | public static var highlighted = State(rawValue: 1 << 1)
360 | public static var disabled = State(rawValue: 1 << 2)
361 | public static var selected = State(rawValue: 1 << 3)
| |- warning: static property 'selected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'selected' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'selected' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
362 | public static var focused = State(rawValue: 1 << 4)
363 | public static var application = State(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:362:27: warning: static property 'focused' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
360 | public static var disabled = State(rawValue: 1 << 2)
361 | public static var selected = State(rawValue: 1 << 3)
362 | public static var focused = State(rawValue: 1 << 4)
| |- warning: static property 'focused' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'focused' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'focused' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
363 | public static var application = State(rawValue: 1 << 5)
364 | public static var reserved = State(rawValue: 1 << 6)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:363:27: warning: static property 'application' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
361 | public static var selected = State(rawValue: 1 << 3)
362 | public static var focused = State(rawValue: 1 << 4)
363 | public static var application = State(rawValue: 1 << 5)
| |- warning: static property 'application' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'application' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'application' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
364 | public static var reserved = State(rawValue: 1 << 6)
365 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:364:27: warning: static property 'reserved' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
362 | public static var focused = State(rawValue: 1 << 4)
363 | public static var application = State(rawValue: 1 << 5)
364 | public static var reserved = State(rawValue: 1 << 6)
| |- warning: static property 'reserved' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'reserved' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'reserved' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
365 | }
366 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/PlayerView.swift:41:55: warning: conformance of 'PlayerView' to protocol 'KSSliderDelegate' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
39 | }
40 |
41 | open class PlayerView: UIView, KSPlayerLayerDelegate, KSSliderDelegate {
| | |- warning: conformance of 'PlayerView' to protocol 'KSSliderDelegate' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
| | |- note: isolate this conformance to the main actor with '@MainActor'
| | `- note: turn data races into runtime errors with '@preconcurrency'
| `- note: mark all declarations used in the conformance 'nonisolated'
42 | public typealias ControllerDelegate = PlayerControllerDelegate
43 | public var playerLayer: KSPlayerLayer? {
:
157 | // MARK: - KSSliderDelegate
158 |
159 | open func slider(value: Double, event: ControlEvents) {
| `- note: main actor-isolated instance method 'slider(value:event:)' cannot satisfy nonisolated requirement
160 | if event == .valueChanged {
161 | toolBar.currentTime = value
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/Utility.swift:531:1: warning: extension declares a conformance of imported type 'TextAlignment' to imported protocol 'RawRepresentable'; this will not behave correctly if the owners of 'SwiftUICore' introduce this conformance in the future
529 | }
530 |
531 | extension TextAlignment: RawRepresentable {
| |- warning: extension declares a conformance of imported type 'TextAlignment' to imported protocol 'RawRepresentable'; this will not behave correctly if the owners of 'SwiftUICore' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
532 | public typealias RawValue = String
533 | public init?(rawValue: RawValue) {
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/Utility.swift:557:1: warning: extension declares a conformance of imported type 'TextAlignment' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'SwiftUICore' introduce this conformance in the future
555 | }
556 |
557 | extension TextAlignment: Identifiable {
| |- warning: extension declares a conformance of imported type 'TextAlignment' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'SwiftUICore' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
558 | public var id: Self { self }
559 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/Utility.swift:561:1: warning: extension declares a conformance of imported type 'HorizontalAlignment' to imported protocols 'Hashable', 'RawRepresentable'; this will not behave correctly if the owners of 'SwiftUICore' introduce this conformance in the future
559 | }
560 |
561 | extension HorizontalAlignment: Hashable, RawRepresentable {
| |- warning: extension declares a conformance of imported type 'HorizontalAlignment' to imported protocols 'Hashable', 'RawRepresentable'; this will not behave correctly if the owners of 'SwiftUICore' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
562 | public typealias RawValue = String
563 | public init?(rawValue: RawValue) {
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/Utility.swift:589:1: warning: extension declares a conformance of imported type 'HorizontalAlignment' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'SwiftUICore' introduce this conformance in the future
587 | }
588 |
589 | extension HorizontalAlignment: Identifiable {
| |- warning: extension declares a conformance of imported type 'HorizontalAlignment' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'SwiftUICore' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
590 | public var id: Self { self }
591 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/Utility.swift:593:1: warning: extension declares a conformance of imported type 'VerticalAlignment' to imported protocols 'Hashable', 'RawRepresentable'; this will not behave correctly if the owners of 'SwiftUICore' introduce this conformance in the future
591 | }
592 |
593 | extension VerticalAlignment: Hashable, RawRepresentable {
| |- warning: extension declares a conformance of imported type 'VerticalAlignment' to imported protocols 'Hashable', 'RawRepresentable'; this will not behave correctly if the owners of 'SwiftUICore' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
594 | public typealias RawValue = String
595 | public init?(rawValue: RawValue) {
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/Utility.swift:621:1: warning: extension declares a conformance of imported type 'VerticalAlignment' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'SwiftUICore' introduce this conformance in the future
619 | }
620 |
621 | extension VerticalAlignment: Identifiable {
| |- warning: extension declares a conformance of imported type 'VerticalAlignment' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'SwiftUICore' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
622 | public var id: Self { self }
623 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/Utility.swift:625:1: warning: extension declares a conformance of imported type 'Color' to imported protocol 'RawRepresentable'; this will not behave correctly if the owners of 'SwiftUICore' introduce this conformance in the future
623 | }
624 |
625 | extension Color: RawRepresentable {
| |- warning: extension declares a conformance of imported type 'Color' to imported protocol 'RawRepresentable'; this will not behave correctly if the owners of 'SwiftUICore' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
626 | public typealias RawValue = String
627 | public init?(rawValue: RawValue) {
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/Utility.swift:655:1: warning: extension declares a conformance of imported type 'Array' to imported protocol 'RawRepresentable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
653 | }
654 |
655 | extension Array: RawRepresentable where Element: Codable {
| |- warning: extension declares a conformance of imported type 'Array' to imported protocol 'RawRepresentable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
656 | public init?(rawValue: String) {
657 | guard let data = rawValue.data(using: .utf8),
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/Utility.swift:673:1: warning: extension declares a conformance of imported type 'Date' to imported protocol 'RawRepresentable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
671 | }
672 |
673 | extension Date: RawRepresentable {
| |- warning: extension declares a conformance of imported type 'Date' to imported protocol 'RawRepresentable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
674 | public typealias RawValue = String
675 | public init?(rawValue: RawValue) {
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/Utility.swift:757:1: warning: extension declares a conformance of imported type 'URL' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
755 | }
756 |
757 | extension URL: Identifiable {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
758 | public var id: Self { self }
759 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/Utility.swift:761:1: warning: extension declares a conformance of imported type 'String' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
759 | }
760 |
761 | extension String: Identifiable {
| |- warning: extension declares a conformance of imported type 'String' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
762 | public var id: Self { self }
763 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/Utility.swift:765:1: warning: extension declares a conformance of imported type 'Float' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
763 | }
764 |
765 | extension Float: Identifiable {
| |- warning: extension declares a conformance of imported type 'Float' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
766 | public var id: Self { self }
767 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/AVFFmpegExtension.swift:385:1: warning: extension declares a conformance of imported type 'AVBufferSrcParameters' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Libavfilter' introduce this conformance in the future
383 | }
384 |
385 | extension AVBufferSrcParameters: Equatable {
| |- warning: extension declares a conformance of imported type 'AVBufferSrcParameters' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Libavfilter' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
386 | public static func == (lhs: AVBufferSrcParameters, rhs: AVBufferSrcParameters) -> Bool {
387 | lhs.format == rhs.format && lhs.width == rhs.width && lhs.height == rhs.height && lhs.sample_aspect_ratio == rhs.sample_aspect_ratio && lhs.sample_rate == rhs.sample_rate && lhs.ch_layout == rhs.ch_layout
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/AVFFmpegExtension.swift:400:1: warning: extension declares a conformance of imported type 'AVChannelLayout' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Libavutil' introduce this conformance in the future
398 | }
399 |
400 | extension AVChannelLayout: Equatable {
| |- warning: extension declares a conformance of imported type 'AVChannelLayout' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Libavutil' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
401 | public static func == (lhs: AVChannelLayout, rhs: AVChannelLayout) -> Bool {
402 | var lhs = lhs
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/AVFFmpegExtension.swift:408:1: warning: extension declares a conformance of imported type 'AVChannelLayout' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Libavutil' introduce this conformance in the future
406 | }
407 |
408 | extension AVChannelLayout: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'AVChannelLayout' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Libavutil' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
409 | static let defaultValue = AVChannelLayout(order: AV_CHANNEL_ORDER_NATIVE, nb_channels: 2, u: AVChannelLayout.__Unnamed_union_u(mask: swift_AV_CH_LAYOUT_STEREO), opaque: nil)
410 | var layoutTag: AudioChannelLayoutTag? {
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/AVFFmpegExtension.swift:409:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AVChannelLayout' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
407 |
408 | extension AVChannelLayout: CustomStringConvertible {
409 | static let defaultValue = AVChannelLayout(order: AV_CHANNEL_ORDER_NATIVE, nb_channels: 2, u: AVChannelLayout.__Unnamed_union_u(mask: swift_AV_CH_LAYOUT_STEREO), opaque: nil)
| `- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AVChannelLayout' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
410 | var layoutTag: AudioChannelLayoutTag? {
411 | KSLog("[audio] FFmepg AVChannelLayout: \(self) order: \(order) mask: \(u.mask)")
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/Libavutil.framework/Headers/channel_layout.h:307:16: note: struct 'AVChannelLayout' does not conform to the 'Sendable' protocol
305 | * new elements of the union fitting in sizeof(uint64_t).
306 | */
307 | typedef struct AVChannelLayout {
| `- note: struct 'AVChannelLayout' does not conform to the 'Sendable' protocol
308 | /**
309 | * Channel order used in this layout.
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/AVFFmpegExtension.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Libavutil'
1 | import CoreMedia
2 | import FFmpegKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Libavutil'
3 | import Libavcodec
4 | import Libavfilter
:
407 |
408 | extension AVChannelLayout: CustomStringConvertible {
409 | static let defaultValue = AVChannelLayout(order: AV_CHANNEL_ORDER_NATIVE, nb_channels: 2, u: AVChannelLayout.__Unnamed_union_u(mask: swift_AV_CH_LAYOUT_STEREO), opaque: nil)
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
410 | var layoutTag: AudioChannelLayoutTag? {
411 | KSLog("[audio] FFmepg AVChannelLayout: \(self) order: \(order) mask: \(u.mask)")
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/AVFFmpegExtension.swift:431:1: warning: extension declares a conformance of imported type 'AVRational' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Libavutil' introduce this conformance in the future
429 | }
430 |
431 | extension AVRational: Equatable {
| |- warning: extension declares a conformance of imported type 'AVRational' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Libavutil' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
432 | public static func == (lhs: AVRational, rhs: AVRational) -> Bool {
433 | lhs.num == rhs.num && rhs.den == rhs.den
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/AVFoundationExtension.swift:108:1: warning: extension declares a conformance of imported type 'AudioChannelLayout' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreAudioTypes' introduce this conformance in the future
106 | }
107 |
108 | extension AudioChannelLayout: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'AudioChannelLayout' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreAudioTypes' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
109 | public var description: String {
110 | "AudioChannelLayoutTag: \(mChannelLayoutTag), mNumberChannelDescriptions: \(mNumberChannelDescriptions)"
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/KSMEPlayer.swift:26:27: warning: call to main actor-isolated instance method 'removeFromSuperview()' in a synchronous nonisolated context [#ActorIsolatedCall]
24 | oldValue?.invalidate()
25 | runOnMainThread {
26 | oldValue?.removeFromSuperview()
| `- warning: call to main actor-isolated instance method 'removeFromSuperview()' in a synchronous nonisolated context [#ActorIsolatedCall]
27 | }
28 | }
AppKit.NSView.removeFromSuperview:2:22: note: calls to instance method 'removeFromSuperview()' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func removeFromSuperview()}
| |- note: calls to instance method 'removeFromSuperview()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/KSMEPlayer.swift:110:35: warning: call to main actor-isolated instance method 'finish(player:error:)' in a synchronous nonisolated context [#ActorIsolatedCall]
108 | runOnMainThread { [weak self] in
109 | guard let self else { return }
110 | delegate?.finish(player: self, error: nil)
| `- warning: call to main actor-isolated instance method 'finish(player:error:)' in a synchronous nonisolated context [#ActorIsolatedCall]
111 | }
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/AVPlayer/MediaPlayerProtocol.swift:114:10: note: calls to instance method 'finish(player:error:)' from outside of its actor context are implicitly asynchronous
112 | func changeBuffering(player: some MediaPlayerProtocol, progress: Int)
113 | func playBack(player: some MediaPlayerProtocol, loopCount: Int)
114 | func finish(player: some MediaPlayerProtocol, error: Error?)
| `- note: calls to instance method 'finish(player:error:)' from outside of its actor context are implicitly asynchronous
115 | }
116 |
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/KSMEPlayer.swift:291:23: warning: conformance of 'KSMEPlayer' to protocol 'MediaPlayerProtocol' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
289 | }
290 |
291 | extension KSMEPlayer: MediaPlayerProtocol {
| |- warning: conformance of 'KSMEPlayer' to protocol 'MediaPlayerProtocol' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
| |- note: isolate this conformance to the main actor with '@MainActor'
| `- note: turn data races into runtime errors with '@preconcurrency'
292 | public var chapters: [Chapter] {
293 | playerItem.chapters
:
427 |
428 | @MainActor
429 | public var contentMode: UIViewContentMode {
| `- note: main actor-isolated property 'contentMode' cannot satisfy nonisolated requirement
430 | get {
431 | view?.contentMode ?? .center
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/KSMEPlayer.swift:291:1: warning: conformance of 'KSMEPlayer' to protocol 'MediaPlayback' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
289 | }
290 |
291 | extension KSMEPlayer: MediaPlayerProtocol {
| |- warning: conformance of 'KSMEPlayer' to protocol 'MediaPlayback' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
| |- note: isolate this conformance to the main actor with '@MainActor'
| `- note: turn data races into runtime errors with '@preconcurrency'
292 | public var chapters: [Chapter] {
293 | playerItem.chapters
:
307 |
308 | @MainActor
309 | public var naturalSize: CGSize {
| `- note: main actor-isolated property 'naturalSize' cannot satisfy nonisolated requirement
310 | options.display == .plane ? playerItem.naturalSize : KSOptions.sceneSize
311 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/KSMEPlayer.swift:16:14: warning: non-final class 'KSMEPlayer' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
14 | #endif
15 |
16 | public class KSMEPlayer: NSObject {
| `- warning: non-final class 'KSMEPlayer' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
17 | private var loopCount = 1
18 | private var playerItem: MEPlayerItem
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/KSMEPlayer.swift:17:17: warning: stored property 'loopCount' of 'Sendable'-conforming class 'KSMEPlayer' is mutable
15 |
16 | public class KSMEPlayer: NSObject {
17 | private var loopCount = 1
| `- warning: stored property 'loopCount' of 'Sendable'-conforming class 'KSMEPlayer' is mutable
18 | private var playerItem: MEPlayerItem
19 | public let audioOutput: AudioOutput
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/MEPlayerItem.swift:94:24: warning: static property 'onceInitial' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
92 | }
93 |
94 | private static var onceInitial: Void = {
| |- warning: static property 'onceInitial' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'onceInitial' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'onceInitial' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
95 | var result = avformat_network_init()
96 | av_log_set_callback { ptr, level, format, args in
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/MEPlayerItem.swift:16:17: warning: stored property 'options' of 'Sendable'-conforming class 'MEPlayerItem' has non-Sendable type 'KSOptions'; this is an error in the Swift 6 language mode
14 | public final class MEPlayerItem: Sendable {
15 | private let url: URL
16 | private let options: KSOptions
| `- warning: stored property 'options' of 'Sendable'-conforming class 'MEPlayerItem' has non-Sendable type 'KSOptions'; this is an error in the Swift 6 language mode
17 | private let operationQueue = OperationQueue()
18 | private let condition = NSCondition()
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/AVPlayer/KSOptions.swift:17:12: note: class 'KSOptions' does not conform to the 'Sendable' protocol
15 | import UIKit
16 | #endif
17 | open class KSOptions {
| `- note: class 'KSOptions' does not conform to the 'Sendable' protocol
18 | /// 最低缓存视频时间
19 | @Published
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/MEPlayerItem.swift:19:17: warning: stored property 'formatCtx' of 'Sendable'-conforming class 'MEPlayerItem' is mutable; this is an error in the Swift 6 language mode
17 | private let operationQueue = OperationQueue()
18 | private let condition = NSCondition()
19 | private var formatCtx: UnsafeMutablePointer<AVFormatContext>?
| `- warning: stored property 'formatCtx' of 'Sendable'-conforming class 'MEPlayerItem' is mutable; this is an error in the Swift 6 language mode
20 | private var outputFormatCtx: UnsafeMutablePointer<AVFormatContext>?
21 | private var outputPacket: UnsafeMutablePointer<AVPacket>?
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/MetalPlayView.swift:28:43: warning: conformance of 'MetalPlayView' to protocol 'VideoOutput' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
26 | }
27 |
28 | public final class MetalPlayView: UIView, VideoOutput {
| | |- warning: conformance of 'MetalPlayView' to protocol 'VideoOutput' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
| | |- note: isolate this conformance to the main actor with '@MainActor'
| | `- note: turn data races into runtime errors with '@preconcurrency'
| `- note: mark all declarations used in the conformance 'nonisolated'
29 | public var displayLayer: AVSampleBufferDisplayLayer {
| `- note: main actor-isolated property 'displayLayer' cannot satisfy nonisolated requirement
30 | displayView.displayLayer
31 | }
:
54 | }
55 |
56 | public private(set) var pixelBuffer: PixelBufferProtocol?
| `- note: main actor-isolated property 'pixelBuffer' cannot satisfy nonisolated requirement
57 | /// 用displayLink会导致锁屏无法draw,
58 | /// 用DispatchSourceTimer的话,在播放4k视频的时候repeat的时间会变长,
:
60 | private var displayLink: CADisplayLink!
61 | // private let timer = DispatchSource.makeTimerSource(queue: DispatchQueue.main)
62 | public var options: KSOptions
| `- note: main actor-isolated property 'options' cannot satisfy nonisolated requirement
63 | public weak var renderSource: OutputRenderSourceDelegate?
64 | // AVSampleBufferAudioRenderer AVSampleBufferRenderSynchronizer AVSampleBufferDisplayLayer
:
70 |
71 | private let metalView = MetalView()
72 | public weak var displayLayerDelegate: DisplayLayerDelegate?
| `- note: main actor-isolated property 'displayLayerDelegate' cannot satisfy nonisolated requirement
73 | public init(options: KSOptions) {
| `- note: main actor-isolated initializer 'init(options:)' cannot satisfy nonisolated requirement
74 | self.options = options
75 | super.init(frame: .zero)
:
151 | }
152 |
153 | public func invalidate() {
| `- note: main actor-isolated instance method 'invalidate()' cannot satisfy nonisolated requirement
154 | displayLink.invalidate()
155 | }
156 |
157 | public func readNextFrame() {
| `- note: main actor-isolated instance method 'readNextFrame()' cannot satisfy nonisolated requirement
158 | draw(force: true)
159 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/MetalPlayView.swift:28:20: warning: conformance of 'MetalPlayView' to protocol 'FrameOutput' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
26 | }
27 |
28 | public final class MetalPlayView: UIView, VideoOutput {
| |- warning: conformance of 'MetalPlayView' to protocol 'FrameOutput' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
| |- note: isolate this conformance to the main actor with '@MainActor'
| |- note: mark all declarations used in the conformance 'nonisolated'
| `- note: turn data races into runtime errors with '@preconcurrency'
29 | public var displayLayer: AVSampleBufferDisplayLayer {
30 | displayView.displayLayer
:
61 | // private let timer = DispatchSource.makeTimerSource(queue: DispatchQueue.main)
62 | public var options: KSOptions
63 | public weak var renderSource: OutputRenderSourceDelegate?
| `- note: main actor-isolated property 'renderSource' cannot satisfy nonisolated requirement
64 | // AVSampleBufferAudioRenderer AVSampleBufferRenderSynchronizer AVSampleBufferDisplayLayer
65 | var displayView = AVSampleBufferDisplayView() {
:
84 | }
85 |
86 | public func play() {
| `- note: main actor-isolated instance method 'play()' cannot satisfy nonisolated requirement
87 | displayLink.isPaused = false
88 | }
89 |
90 | public func pause() {
| `- note: main actor-isolated instance method 'pause()' cannot satisfy nonisolated requirement
91 | displayLink.isPaused = true
92 | }
:
142 | #endif
143 |
144 | public func flush() {
| `- note: main actor-isolated instance method 'flush()' cannot satisfy nonisolated requirement
145 | pixelBuffer = nil
146 | if displayView.isHidden {
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/Model.swift:82:16: warning: static property 'enableSensor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
80 | public extension KSOptions {
81 | /// 开启VR模式的陀飞轮
82 | static var enableSensor = true
| |- warning: static property 'enableSensor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'enableSensor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enableSensor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
83 | static var stackSize = 65536
84 | static var isClearVideoWhereReplace = true
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/Model.swift:83:16: warning: static property 'stackSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
81 | /// 开启VR模式的陀飞轮
82 | static var enableSensor = true
83 | static var stackSize = 65536
| |- warning: static property 'stackSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'stackSize' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'stackSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 | static var isClearVideoWhereReplace = true
85 | static var audioPlayerType: AudioOutput.Type = AudioEnginePlayer.self
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/Model.swift:84:16: warning: static property 'isClearVideoWhereReplace' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
82 | static var enableSensor = true
83 | static var stackSize = 65536
84 | static var isClearVideoWhereReplace = true
| |- warning: static property 'isClearVideoWhereReplace' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'isClearVideoWhereReplace' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isClearVideoWhereReplace' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
85 | static var audioPlayerType: AudioOutput.Type = AudioEnginePlayer.self
86 | static var videoPlayerType: (VideoOutput & UIView).Type = MetalPlayView.self
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/Model.swift:85:16: warning: static property 'audioPlayerType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
83 | static var stackSize = 65536
84 | static var isClearVideoWhereReplace = true
85 | static var audioPlayerType: AudioOutput.Type = AudioEnginePlayer.self
| |- warning: static property 'audioPlayerType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'audioPlayerType' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'audioPlayerType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 | static var videoPlayerType: (VideoOutput & UIView).Type = MetalPlayView.self
87 | static var yadifMode = 1
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/Model.swift:86:16: warning: static property 'videoPlayerType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
84 | static var isClearVideoWhereReplace = true
85 | static var audioPlayerType: AudioOutput.Type = AudioEnginePlayer.self
86 | static var videoPlayerType: (VideoOutput & UIView).Type = MetalPlayView.self
| |- warning: static property 'videoPlayerType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'videoPlayerType' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'videoPlayerType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 | static var yadifMode = 1
88 | static var deInterlaceAddIdet = false
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/Model.swift:87:16: warning: static property 'yadifMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
85 | static var audioPlayerType: AudioOutput.Type = AudioEnginePlayer.self
86 | static var videoPlayerType: (VideoOutput & UIView).Type = MetalPlayView.self
87 | static var yadifMode = 1
| |- warning: static property 'yadifMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'yadifMode' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'yadifMode' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 | static var deInterlaceAddIdet = false
89 | static func colorSpace(ycbcrMatrix: CFString?, transferFunction: CFString?) -> CGColorSpace? {
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/Model.swift:88:16: warning: static property 'deInterlaceAddIdet' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
86 | static var videoPlayerType: (VideoOutput & UIView).Type = MetalPlayView.self
87 | static var yadifMode = 1
88 | static var deInterlaceAddIdet = false
| |- warning: static property 'deInterlaceAddIdet' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'deInterlaceAddIdet' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'deInterlaceAddIdet' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 | static func colorSpace(ycbcrMatrix: CFString?, transferFunction: CFString?) -> CGColorSpace? {
90 | switch ycbcrMatrix {
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/MEPlayer/Model.swift:178:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'Timebase' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
175 | }
176 |
177 | public struct Timebase {
| `- note: consider making struct 'Timebase' conform to the 'Sendable' protocol
178 | static let defaultValue = Timebase(num: 1, den: 1)
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'Timebase' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
179 | public let num: Int32
180 | public let den: Int32
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Metal/MetalRender.swift:34:77: warning: reference to var 'kvImage_YpCbCrToARGBMatrix_ITU_R_601_4' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
32 | }()
33 |
34 | private lazy var colorConversion601VideoRangeMatrixBuffer: MTLBuffer? = kvImage_YpCbCrToARGBMatrix_ITU_R_601_4.pointee.videoRange.buffer
| `- warning: reference to var 'kvImage_YpCbCrToARGBMatrix_ITU_R_601_4' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
35 |
36 | private lazy var colorConversion601FullRangeMatrixBuffer: MTLBuffer? = kvImage_YpCbCrToARGBMatrix_ITU_R_601_4.pointee.buffer
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Types.h:881:51: note: var declared here
879 | /*! @const kvImage_YpCbCrToARGBMatrix_ITU_R_601_4
880 | @abstract Y'CbCr->RGB conversion matrix for ITU-Recommendation BT.601-4 */
881 | extern VIMAGE_PF const vImage_YpCbCrToARGBMatrix *kvImage_YpCbCrToARGBMatrix_ITU_R_601_4 API_AVAILABLE(macos(10.10), ios(8.0), watchos(1.0), tvos(8.0));
| `- note: var declared here
882 |
883 | /*! @const kvImage_YpCbCrToARGBMatrix_ITU_R_709_2
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Metal/MetalRender.swift:36:76: warning: reference to var 'kvImage_YpCbCrToARGBMatrix_ITU_R_601_4' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
34 | private lazy var colorConversion601VideoRangeMatrixBuffer: MTLBuffer? = kvImage_YpCbCrToARGBMatrix_ITU_R_601_4.pointee.videoRange.buffer
35 |
36 | private lazy var colorConversion601FullRangeMatrixBuffer: MTLBuffer? = kvImage_YpCbCrToARGBMatrix_ITU_R_601_4.pointee.buffer
| `- warning: reference to var 'kvImage_YpCbCrToARGBMatrix_ITU_R_601_4' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | private lazy var colorConversion709VideoRangeMatrixBuffer: MTLBuffer? = kvImage_YpCbCrToARGBMatrix_ITU_R_709_2.pointee.videoRange.buffer
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Types.h:881:51: note: var declared here
879 | /*! @const kvImage_YpCbCrToARGBMatrix_ITU_R_601_4
880 | @abstract Y'CbCr->RGB conversion matrix for ITU-Recommendation BT.601-4 */
881 | extern VIMAGE_PF const vImage_YpCbCrToARGBMatrix *kvImage_YpCbCrToARGBMatrix_ITU_R_601_4 API_AVAILABLE(macos(10.10), ios(8.0), watchos(1.0), tvos(8.0));
| `- note: var declared here
882 |
883 | /*! @const kvImage_YpCbCrToARGBMatrix_ITU_R_709_2
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Metal/MetalRender.swift:38:77: warning: reference to var 'kvImage_YpCbCrToARGBMatrix_ITU_R_709_2' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
36 | private lazy var colorConversion601FullRangeMatrixBuffer: MTLBuffer? = kvImage_YpCbCrToARGBMatrix_ITU_R_601_4.pointee.buffer
37 |
38 | private lazy var colorConversion709VideoRangeMatrixBuffer: MTLBuffer? = kvImage_YpCbCrToARGBMatrix_ITU_R_709_2.pointee.videoRange.buffer
| `- warning: reference to var 'kvImage_YpCbCrToARGBMatrix_ITU_R_709_2' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
39 |
40 | private lazy var colorConversion709FullRangeMatrixBuffer: MTLBuffer? = kvImage_YpCbCrToARGBMatrix_ITU_R_709_2.pointee.buffer
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Types.h:885:51: note: var declared here
883 | /*! @const kvImage_YpCbCrToARGBMatrix_ITU_R_709_2
884 | @abstract Y'CbCr->RGB conversion matrix for ITU-Recommendation BT.709-2 */
885 | extern VIMAGE_PF const vImage_YpCbCrToARGBMatrix *kvImage_YpCbCrToARGBMatrix_ITU_R_709_2 API_AVAILABLE(macos(10.10), ios(8.0), watchos(1.0), tvos(8.0));
| `- note: var declared here
886 | #endif
887 |
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Metal/MetalRender.swift:40:76: warning: reference to var 'kvImage_YpCbCrToARGBMatrix_ITU_R_709_2' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
38 | private lazy var colorConversion709VideoRangeMatrixBuffer: MTLBuffer? = kvImage_YpCbCrToARGBMatrix_ITU_R_709_2.pointee.videoRange.buffer
39 |
40 | private lazy var colorConversion709FullRangeMatrixBuffer: MTLBuffer? = kvImage_YpCbCrToARGBMatrix_ITU_R_709_2.pointee.buffer
| `- warning: reference to var 'kvImage_YpCbCrToARGBMatrix_ITU_R_709_2' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | private lazy var colorConversionSMPTE240MVideoRangeMatrixBuffer: MTLBuffer? = kvImage_YpCbCrToARGBMatrix_SMPTE_240M_1995.videoRange.buffer
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Types.h:885:51: note: var declared here
883 | /*! @const kvImage_YpCbCrToARGBMatrix_ITU_R_709_2
884 | @abstract Y'CbCr->RGB conversion matrix for ITU-Recommendation BT.709-2 */
885 | extern VIMAGE_PF const vImage_YpCbCrToARGBMatrix *kvImage_YpCbCrToARGBMatrix_ITU_R_709_2 API_AVAILABLE(macos(10.10), ios(8.0), watchos(1.0), tvos(8.0));
| `- note: var declared here
886 | #endif
887 |
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Subtitle/KSParseProtocol.swift:20:16: warning: static property 'subtitleParses' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
18 |
19 | public extension KSOptions {
20 | static var subtitleParses: [KSParseProtocol] = [AssParse(), VTTParse(), SrtParse()]
| |- warning: static property 'subtitleParses' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'subtitleParses' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'subtitleParses' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Subtitle/KSSubtitle.swift:280:23: warning: static property 'textColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
278 | }
279 |
280 | public static var textColor: Color = .white
| |- warning: static property 'textColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'textColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'textColor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
281 | public static var textBackgroundColor: Color = .clear
282 | public static var textFont: UIFont {
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Subtitle/KSSubtitle.swift:281:23: warning: static property 'textBackgroundColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
279 |
280 | public static var textColor: Color = .white
281 | public static var textBackgroundColor: Color = .clear
| |- warning: static property 'textBackgroundColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'textBackgroundColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'textBackgroundColor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
282 | public static var textFont: UIFont {
283 | textBold ? .boldSystemFont(ofSize: textFontSize) : .systemFont(ofSize: textFontSize)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Subtitle/KSSubtitle.swift:286:23: warning: static property 'textFontSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
284 | }
285 |
286 | public static var textFontSize = SubtitleModel.Size.standard.rawValue
| |- warning: static property 'textFontSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'textFontSize' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'textFontSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
287 | public static var textBold = false
288 | public static var textItalic = false
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Subtitle/KSSubtitle.swift:287:23: warning: static property 'textBold' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
285 |
286 | public static var textFontSize = SubtitleModel.Size.standard.rawValue
287 | public static var textBold = false
| |- warning: static property 'textBold' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'textBold' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'textBold' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
288 | public static var textItalic = false
289 | public static var textPosition = TextPosition()
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Subtitle/KSSubtitle.swift:288:23: warning: static property 'textItalic' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
286 | public static var textFontSize = SubtitleModel.Size.standard.rawValue
287 | public static var textBold = false
288 | public static var textItalic = false
| |- warning: static property 'textItalic' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'textItalic' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'textItalic' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
289 | public static var textPosition = TextPosition()
290 | public static var audioRecognizes = [any AudioRecognize]()
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Subtitle/KSSubtitle.swift:289:23: warning: static property 'textPosition' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
287 | public static var textBold = false
288 | public static var textItalic = false
289 | public static var textPosition = TextPosition()
| |- warning: static property 'textPosition' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'textPosition' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'textPosition' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
290 | public static var audioRecognizes = [any AudioRecognize]()
291 | private var subtitleDataSouces: [SubtitleDataSouce] = KSOptions.subtitleDataSouces
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Subtitle/KSSubtitle.swift:290:23: warning: static property 'audioRecognizes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
288 | public static var textItalic = false
289 | public static var textPosition = TextPosition()
290 | public static var audioRecognizes = [any AudioRecognize]()
| |- warning: static property 'audioRecognizes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'audioRecognizes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'audioRecognizes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
291 | private var subtitleDataSouces: [SubtitleDataSouce] = KSOptions.subtitleDataSouces
292 | @Published
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Subtitle/KSSubtitle.swift:309:17: warning: capture of 'self' with non-Sendable type 'SubtitleModel?' in a '@Sendable' closure [#SendableClosureCaptures]
231 | }
232 |
233 | open class SubtitleModel: ObservableObject {
| `- note: class 'SubtitleModel' does not conform to the 'Sendable' protocol
234 | public enum Size {
235 | case smaller
:
307 | // 要用async,不能在更新UI的时候,修改Publishe变量
308 | DispatchQueue.main.async { [weak self] in
309 | self?.parts = []
| `- warning: capture of 'self' with non-Sendable type 'SubtitleModel?' in a '@Sendable' closure [#SendableClosureCaptures]
310 | self?.selectedSubtitleInfo = nil
311 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Subtitle/SubtitleDataSouce.swift:80:16: warning: static property 'subtitleDataSouces' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
78 |
79 | public extension KSOptions {
80 | static var subtitleDataSouces: [SubtitleDataSouce] = [DirectorySubtitleDataSouce()]
| |- warning: static property 'subtitleDataSouces' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'subtitleDataSouces' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'subtitleDataSouces' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | }
82 |
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Subtitle/SubtitleDataSouce.swift:84:23: warning: static property 'singleton' is not concurrency-safe because non-'Sendable' type 'PlistCacheSubtitleDataSouce' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
81 | }
82 |
83 | public class PlistCacheSubtitleDataSouce: CacheSubtitleDataSouce {
| `- note: class 'PlistCacheSubtitleDataSouce' does not conform to the 'Sendable' protocol
84 | public static let singleton = PlistCacheSubtitleDataSouce()
| |- warning: static property 'singleton' is not concurrency-safe because non-'Sendable' type 'PlistCacheSubtitleDataSouce' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'singleton' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
85 | public var infos = [any SubtitleInfo]()
86 | private let srtCacheInfoPath: String
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/MacVideoPlayerView.swift:193:36: warning: conformance of 'UIActivityIndicatorView' to protocol 'LoadingIndector' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
191 | }
192 |
193 | extension UIActivityIndicatorView: LoadingIndector {
| | |- warning: conformance of 'UIActivityIndicatorView' to protocol 'LoadingIndector' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
| | |- note: isolate this conformance to the main actor with '@MainActor'
| | `- note: turn data races into runtime errors with '@preconcurrency'
| `- note: mark all declarations used in the conformance 'nonisolated'
194 | func startAnimating() {
| `- note: main actor-isolated instance method 'startAnimating()' cannot satisfy nonisolated requirement
195 | loadingView.backingLayer?.position = CGPoint(x: loadingView.layer!.frame.midX, y: loadingView.layer!.frame.midY)
196 | loadingView.backingLayer?.anchorPoint = CGPoint(x: 0.5, y: 0.5)
:
203 | }
204 |
205 | func stopAnimating() {
| `- note: main actor-isolated instance method 'stopAnimating()' cannot satisfy nonisolated requirement
206 | loadingView.backingLayer?.removeAnimation(forKey: "loading")
207 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/SeekView.swift:66:21: warning: conformance of 'SeekView' to protocol 'SeekViewProtocol' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
64 | }
65 |
66 | extension SeekView: SeekViewProtocol {
| | |- warning: conformance of 'SeekView' to protocol 'SeekViewProtocol' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
| | |- note: isolate this conformance to the main actor with '@MainActor'
| | `- note: turn data races into runtime errors with '@preconcurrency'
| `- note: mark all declarations used in the conformance 'nonisolated'
67 | public func set(text: String, isAdd: Bool) {
| `- note: main actor-isolated instance method 'set(text:isAdd:)' cannot satisfy nonisolated requirement
68 | seekToLabel.text = text
69 | if !isAdd {
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:954:16: warning: static property 'topBarShowInCase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
952 | public extension KSOptions {
953 | /// 顶部返回、标题、AirPlay按钮 显示选项,默认.Always,可选.HorizantalOnly、.None
954 | static var topBarShowInCase = KSPlayerTopBarShowCase.always
| |- warning: static property 'topBarShowInCase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'topBarShowInCase' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'topBarShowInCase' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
955 | /// 自动隐藏操作栏的时间间隔 默认5秒
956 | static var animateDelayTimeInterval = TimeInterval(5)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:956:16: warning: static property 'animateDelayTimeInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
954 | static var topBarShowInCase = KSPlayerTopBarShowCase.always
955 | /// 自动隐藏操作栏的时间间隔 默认5秒
956 | static var animateDelayTimeInterval = TimeInterval(5)
| |- warning: static property 'animateDelayTimeInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'animateDelayTimeInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'animateDelayTimeInterval' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
957 | /// 开启亮度手势 默认true
958 | static var enableBrightnessGestures = true
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:958:16: warning: static property 'enableBrightnessGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
956 | static var animateDelayTimeInterval = TimeInterval(5)
957 | /// 开启亮度手势 默认true
958 | static var enableBrightnessGestures = true
| |- warning: static property 'enableBrightnessGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'enableBrightnessGestures' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enableBrightnessGestures' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
959 | /// 开启音量手势 默认true
960 | static var enableVolumeGestures = true
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:960:16: warning: static property 'enableVolumeGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
958 | static var enableBrightnessGestures = true
959 | /// 开启音量手势 默认true
960 | static var enableVolumeGestures = true
| |- warning: static property 'enableVolumeGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'enableVolumeGestures' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enableVolumeGestures' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
961 | /// 开启进度滑动手势 默认true
962 | static var enablePlaytimeGestures = true
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:962:16: warning: static property 'enablePlaytimeGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
960 | static var enableVolumeGestures = true
961 | /// 开启进度滑动手势 默认true
962 | static var enablePlaytimeGestures = true
| |- warning: static property 'enablePlaytimeGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'enablePlaytimeGestures' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enablePlaytimeGestures' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
963 | /// 播放内核选择策略 先使用firstPlayer,失败了自动切换到secondPlayer,播放内核有KSAVPlayer、KSMEPlayer两个选项
964 | /// 是否能后台播放视频
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:965:16: warning: static property 'canBackgroundPlay' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
963 | /// 播放内核选择策略 先使用firstPlayer,失败了自动切换到secondPlayer,播放内核有KSAVPlayer、KSMEPlayer两个选项
964 | /// 是否能后台播放视频
965 | static var canBackgroundPlay = false
| |- warning: static property 'canBackgroundPlay' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'canBackgroundPlay' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'canBackgroundPlay' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
966 | }
967 |
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/AVPlayer/KSPlayerLayer.swift:84:25: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
82 | // 一定要async才不会pip之后就暂停播放
83 | DispatchQueue.main.async { [weak self] in
84 | guard let self else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
85 | pipController.start(view: self)
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/AVPlayer/KSPlayerLayer.swift:85:39: warning: sending 'pipController' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
83 | DispatchQueue.main.async { [weak self] in
84 | guard let self else { return }
85 | pipController.start(view: self)
| |- warning: sending 'pipController' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| `- note: task-isolated 'pipController' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
86 | }
87 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Subtitle/KSSubtitle.swift:309:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
307 | // 要用async,不能在更新UI的时候,修改Publishe变量
308 | DispatchQueue.main.async { [weak self] in
309 | self?.parts = []
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
310 | self?.selectedSubtitleInfo = nil
311 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Subtitle/SubtitleDataSouce.swift:23:17: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
21 | didSet {
22 | if isEnabled, parts.isEmpty {
23 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
24 | try? await parse(url: downloadURL, userAgent: userAgent)
| `- note: closure captures 'self' which is accessible to code in the current task
25 | }
26 | }
[#ActorIsolatedCall]: <https://docs.swift.org/compiler/documentation/diagnostics/actor-isolated-call>
[#ConformanceIsolation]: <https://docs.swift.org/compiler/documentation/diagnostics/conformance-isolation>
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[81/91] Compiling KSPlayer PlayerDefines.swift
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:38:16: warning: static property 'traitItalic' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
36 | public typealias UIButton = KSButton
37 | public extension UIFontDescriptor.SymbolicTraits {
38 | static var traitItalic = italic
| |- warning: static property 'traitItalic' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'traitItalic' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'traitItalic' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | static var traitBold = bold
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:39:16: warning: static property 'traitBold' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
37 | public extension UIFontDescriptor.SymbolicTraits {
38 | static var traitItalic = italic
39 | static var traitBold = bold
| |- warning: static property 'traitBold' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'traitBold' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'traitBold' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:358:27: warning: static property 'normal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
356 | public var rawValue: UInt
357 | public init(rawValue: UInt) { self.rawValue = rawValue }
358 | public static var normal = State(rawValue: 1 << 0)
| |- warning: static property 'normal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'normal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'normal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
359 | public static var highlighted = State(rawValue: 1 << 1)
360 | public static var disabled = State(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:359:27: warning: static property 'highlighted' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
357 | public init(rawValue: UInt) { self.rawValue = rawValue }
358 | public static var normal = State(rawValue: 1 << 0)
359 | public static var highlighted = State(rawValue: 1 << 1)
| |- warning: static property 'highlighted' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'highlighted' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'highlighted' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
360 | public static var disabled = State(rawValue: 1 << 2)
361 | public static var selected = State(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:360:27: warning: static property 'disabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
358 | public static var normal = State(rawValue: 1 << 0)
359 | public static var highlighted = State(rawValue: 1 << 1)
360 | public static var disabled = State(rawValue: 1 << 2)
| |- warning: static property 'disabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'disabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'disabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
361 | public static var selected = State(rawValue: 1 << 3)
362 | public static var focused = State(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:361:27: warning: static property 'selected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
359 | public static var highlighted = State(rawValue: 1 << 1)
360 | public static var disabled = State(rawValue: 1 << 2)
361 | public static var selected = State(rawValue: 1 << 3)
| |- warning: static property 'selected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'selected' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'selected' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
362 | public static var focused = State(rawValue: 1 << 4)
363 | public static var application = State(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:362:27: warning: static property 'focused' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
360 | public static var disabled = State(rawValue: 1 << 2)
361 | public static var selected = State(rawValue: 1 << 3)
362 | public static var focused = State(rawValue: 1 << 4)
| |- warning: static property 'focused' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'focused' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'focused' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
363 | public static var application = State(rawValue: 1 << 5)
364 | public static var reserved = State(rawValue: 1 << 6)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:363:27: warning: static property 'application' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
361 | public static var selected = State(rawValue: 1 << 3)
362 | public static var focused = State(rawValue: 1 << 4)
363 | public static var application = State(rawValue: 1 << 5)
| |- warning: static property 'application' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'application' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'application' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
364 | public static var reserved = State(rawValue: 1 << 6)
365 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:364:27: warning: static property 'reserved' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
362 | public static var focused = State(rawValue: 1 << 4)
363 | public static var application = State(rawValue: 1 << 5)
364 | public static var reserved = State(rawValue: 1 << 6)
| |- warning: static property 'reserved' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'reserved' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'reserved' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
365 | }
366 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/PlayerView.swift:41:55: warning: conformance of 'PlayerView' to protocol 'KSSliderDelegate' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
39 | }
40 |
41 | open class PlayerView: UIView, KSPlayerLayerDelegate, KSSliderDelegate {
| | |- warning: conformance of 'PlayerView' to protocol 'KSSliderDelegate' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
| | |- note: isolate this conformance to the main actor with '@MainActor'
| | `- note: turn data races into runtime errors with '@preconcurrency'
| `- note: mark all declarations used in the conformance 'nonisolated'
42 | public typealias ControllerDelegate = PlayerControllerDelegate
43 | public var playerLayer: KSPlayerLayer? {
:
157 | // MARK: - KSSliderDelegate
158 |
159 | open func slider(value: Double, event: ControlEvents) {
| `- note: main actor-isolated instance method 'slider(value:event:)' cannot satisfy nonisolated requirement
160 | if event == .valueChanged {
161 | toolBar.currentTime = value
[#ConformanceIsolation]: <https://docs.swift.org/compiler/documentation/diagnostics/conformance-isolation>
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[82/91] Compiling KSPlayer AudioPlayerView.swift
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:38:16: warning: static property 'traitItalic' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
36 | public typealias UIButton = KSButton
37 | public extension UIFontDescriptor.SymbolicTraits {
38 | static var traitItalic = italic
| |- warning: static property 'traitItalic' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'traitItalic' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'traitItalic' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | static var traitBold = bold
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:39:16: warning: static property 'traitBold' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
37 | public extension UIFontDescriptor.SymbolicTraits {
38 | static var traitItalic = italic
39 | static var traitBold = bold
| |- warning: static property 'traitBold' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'traitBold' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'traitBold' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:358:27: warning: static property 'normal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
356 | public var rawValue: UInt
357 | public init(rawValue: UInt) { self.rawValue = rawValue }
358 | public static var normal = State(rawValue: 1 << 0)
| |- warning: static property 'normal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'normal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'normal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
359 | public static var highlighted = State(rawValue: 1 << 1)
360 | public static var disabled = State(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:359:27: warning: static property 'highlighted' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
357 | public init(rawValue: UInt) { self.rawValue = rawValue }
358 | public static var normal = State(rawValue: 1 << 0)
359 | public static var highlighted = State(rawValue: 1 << 1)
| |- warning: static property 'highlighted' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'highlighted' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'highlighted' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
360 | public static var disabled = State(rawValue: 1 << 2)
361 | public static var selected = State(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:360:27: warning: static property 'disabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
358 | public static var normal = State(rawValue: 1 << 0)
359 | public static var highlighted = State(rawValue: 1 << 1)
360 | public static var disabled = State(rawValue: 1 << 2)
| |- warning: static property 'disabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'disabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'disabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
361 | public static var selected = State(rawValue: 1 << 3)
362 | public static var focused = State(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:361:27: warning: static property 'selected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
359 | public static var highlighted = State(rawValue: 1 << 1)
360 | public static var disabled = State(rawValue: 1 << 2)
361 | public static var selected = State(rawValue: 1 << 3)
| |- warning: static property 'selected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'selected' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'selected' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
362 | public static var focused = State(rawValue: 1 << 4)
363 | public static var application = State(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:362:27: warning: static property 'focused' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
360 | public static var disabled = State(rawValue: 1 << 2)
361 | public static var selected = State(rawValue: 1 << 3)
362 | public static var focused = State(rawValue: 1 << 4)
| |- warning: static property 'focused' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'focused' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'focused' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
363 | public static var application = State(rawValue: 1 << 5)
364 | public static var reserved = State(rawValue: 1 << 6)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:363:27: warning: static property 'application' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
361 | public static var selected = State(rawValue: 1 << 3)
362 | public static var focused = State(rawValue: 1 << 4)
363 | public static var application = State(rawValue: 1 << 5)
| |- warning: static property 'application' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'application' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'application' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
364 | public static var reserved = State(rawValue: 1 << 6)
365 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:364:27: warning: static property 'reserved' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
362 | public static var focused = State(rawValue: 1 << 4)
363 | public static var application = State(rawValue: 1 << 5)
364 | public static var reserved = State(rawValue: 1 << 6)
| |- warning: static property 'reserved' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'reserved' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'reserved' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
365 | }
366 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/PlayerView.swift:41:55: warning: conformance of 'PlayerView' to protocol 'KSSliderDelegate' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
39 | }
40 |
41 | open class PlayerView: UIView, KSPlayerLayerDelegate, KSSliderDelegate {
| | |- warning: conformance of 'PlayerView' to protocol 'KSSliderDelegate' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
| | |- note: isolate this conformance to the main actor with '@MainActor'
| | `- note: turn data races into runtime errors with '@preconcurrency'
| `- note: mark all declarations used in the conformance 'nonisolated'
42 | public typealias ControllerDelegate = PlayerControllerDelegate
43 | public var playerLayer: KSPlayerLayer? {
:
157 | // MARK: - KSSliderDelegate
158 |
159 | open func slider(value: Double, event: ControlEvents) {
| `- note: main actor-isolated instance method 'slider(value:event:)' cannot satisfy nonisolated requirement
160 | if event == .valueChanged {
161 | toolBar.currentTime = value
[#ConformanceIsolation]: <https://docs.swift.org/compiler/documentation/diagnostics/conformance-isolation>
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[83/91] Compiling KSPlayer AppKitExtend.swift
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:38:16: warning: static property 'traitItalic' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
36 | public typealias UIButton = KSButton
37 | public extension UIFontDescriptor.SymbolicTraits {
38 | static var traitItalic = italic
| |- warning: static property 'traitItalic' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'traitItalic' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'traitItalic' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | static var traitBold = bold
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:39:16: warning: static property 'traitBold' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
37 | public extension UIFontDescriptor.SymbolicTraits {
38 | static var traitItalic = italic
39 | static var traitBold = bold
| |- warning: static property 'traitBold' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'traitBold' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'traitBold' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:358:27: warning: static property 'normal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
356 | public var rawValue: UInt
357 | public init(rawValue: UInt) { self.rawValue = rawValue }
358 | public static var normal = State(rawValue: 1 << 0)
| |- warning: static property 'normal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'normal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'normal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
359 | public static var highlighted = State(rawValue: 1 << 1)
360 | public static var disabled = State(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:359:27: warning: static property 'highlighted' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
357 | public init(rawValue: UInt) { self.rawValue = rawValue }
358 | public static var normal = State(rawValue: 1 << 0)
359 | public static var highlighted = State(rawValue: 1 << 1)
| |- warning: static property 'highlighted' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'highlighted' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'highlighted' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
360 | public static var disabled = State(rawValue: 1 << 2)
361 | public static var selected = State(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:360:27: warning: static property 'disabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
358 | public static var normal = State(rawValue: 1 << 0)
359 | public static var highlighted = State(rawValue: 1 << 1)
360 | public static var disabled = State(rawValue: 1 << 2)
| |- warning: static property 'disabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'disabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'disabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
361 | public static var selected = State(rawValue: 1 << 3)
362 | public static var focused = State(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:361:27: warning: static property 'selected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
359 | public static var highlighted = State(rawValue: 1 << 1)
360 | public static var disabled = State(rawValue: 1 << 2)
361 | public static var selected = State(rawValue: 1 << 3)
| |- warning: static property 'selected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'selected' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'selected' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
362 | public static var focused = State(rawValue: 1 << 4)
363 | public static var application = State(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:362:27: warning: static property 'focused' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
360 | public static var disabled = State(rawValue: 1 << 2)
361 | public static var selected = State(rawValue: 1 << 3)
362 | public static var focused = State(rawValue: 1 << 4)
| |- warning: static property 'focused' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'focused' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'focused' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
363 | public static var application = State(rawValue: 1 << 5)
364 | public static var reserved = State(rawValue: 1 << 6)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:363:27: warning: static property 'application' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
361 | public static var selected = State(rawValue: 1 << 3)
362 | public static var focused = State(rawValue: 1 << 4)
363 | public static var application = State(rawValue: 1 << 5)
| |- warning: static property 'application' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'application' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'application' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
364 | public static var reserved = State(rawValue: 1 << 6)
365 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:364:27: warning: static property 'reserved' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
362 | public static var focused = State(rawValue: 1 << 4)
363 | public static var application = State(rawValue: 1 << 5)
364 | public static var reserved = State(rawValue: 1 << 6)
| |- warning: static property 'reserved' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'reserved' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'reserved' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
365 | }
366 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/PlayerView.swift:41:55: warning: conformance of 'PlayerView' to protocol 'KSSliderDelegate' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
39 | }
40 |
41 | open class PlayerView: UIView, KSPlayerLayerDelegate, KSSliderDelegate {
| | |- warning: conformance of 'PlayerView' to protocol 'KSSliderDelegate' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
| | |- note: isolate this conformance to the main actor with '@MainActor'
| | `- note: turn data races into runtime errors with '@preconcurrency'
| `- note: mark all declarations used in the conformance 'nonisolated'
42 | public typealias ControllerDelegate = PlayerControllerDelegate
43 | public var playerLayer: KSPlayerLayer? {
:
157 | // MARK: - KSSliderDelegate
158 |
159 | open func slider(value: Double, event: ControlEvents) {
| `- note: main actor-isolated instance method 'slider(value:event:)' cannot satisfy nonisolated requirement
160 | if event == .valueChanged {
161 | toolBar.currentTime = value
[#ConformanceIsolation]: <https://docs.swift.org/compiler/documentation/diagnostics/conformance-isolation>
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[84/91] Compiling KSPlayer PlayerToolBar.swift
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:38:16: warning: static property 'traitItalic' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
36 | public typealias UIButton = KSButton
37 | public extension UIFontDescriptor.SymbolicTraits {
38 | static var traitItalic = italic
| |- warning: static property 'traitItalic' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'traitItalic' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'traitItalic' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | static var traitBold = bold
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:39:16: warning: static property 'traitBold' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
37 | public extension UIFontDescriptor.SymbolicTraits {
38 | static var traitItalic = italic
39 | static var traitBold = bold
| |- warning: static property 'traitBold' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'traitBold' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'traitBold' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:358:27: warning: static property 'normal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
356 | public var rawValue: UInt
357 | public init(rawValue: UInt) { self.rawValue = rawValue }
358 | public static var normal = State(rawValue: 1 << 0)
| |- warning: static property 'normal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'normal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'normal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
359 | public static var highlighted = State(rawValue: 1 << 1)
360 | public static var disabled = State(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:359:27: warning: static property 'highlighted' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
357 | public init(rawValue: UInt) { self.rawValue = rawValue }
358 | public static var normal = State(rawValue: 1 << 0)
359 | public static var highlighted = State(rawValue: 1 << 1)
| |- warning: static property 'highlighted' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'highlighted' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'highlighted' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
360 | public static var disabled = State(rawValue: 1 << 2)
361 | public static var selected = State(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:360:27: warning: static property 'disabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
358 | public static var normal = State(rawValue: 1 << 0)
359 | public static var highlighted = State(rawValue: 1 << 1)
360 | public static var disabled = State(rawValue: 1 << 2)
| |- warning: static property 'disabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'disabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'disabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
361 | public static var selected = State(rawValue: 1 << 3)
362 | public static var focused = State(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:361:27: warning: static property 'selected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
359 | public static var highlighted = State(rawValue: 1 << 1)
360 | public static var disabled = State(rawValue: 1 << 2)
361 | public static var selected = State(rawValue: 1 << 3)
| |- warning: static property 'selected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'selected' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'selected' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
362 | public static var focused = State(rawValue: 1 << 4)
363 | public static var application = State(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:362:27: warning: static property 'focused' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
360 | public static var disabled = State(rawValue: 1 << 2)
361 | public static var selected = State(rawValue: 1 << 3)
362 | public static var focused = State(rawValue: 1 << 4)
| |- warning: static property 'focused' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'focused' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'focused' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
363 | public static var application = State(rawValue: 1 << 5)
364 | public static var reserved = State(rawValue: 1 << 6)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:363:27: warning: static property 'application' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
361 | public static var selected = State(rawValue: 1 << 3)
362 | public static var focused = State(rawValue: 1 << 4)
363 | public static var application = State(rawValue: 1 << 5)
| |- warning: static property 'application' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'application' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'application' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
364 | public static var reserved = State(rawValue: 1 << 6)
365 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:364:27: warning: static property 'reserved' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
362 | public static var focused = State(rawValue: 1 << 4)
363 | public static var application = State(rawValue: 1 << 5)
364 | public static var reserved = State(rawValue: 1 << 6)
| |- warning: static property 'reserved' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'reserved' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'reserved' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
365 | }
366 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/PlayerView.swift:41:55: warning: conformance of 'PlayerView' to protocol 'KSSliderDelegate' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
39 | }
40 |
41 | open class PlayerView: UIView, KSPlayerLayerDelegate, KSSliderDelegate {
| | |- warning: conformance of 'PlayerView' to protocol 'KSSliderDelegate' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
| | |- note: isolate this conformance to the main actor with '@MainActor'
| | `- note: turn data races into runtime errors with '@preconcurrency'
| `- note: mark all declarations used in the conformance 'nonisolated'
42 | public typealias ControllerDelegate = PlayerControllerDelegate
43 | public var playerLayer: KSPlayerLayer? {
:
157 | // MARK: - KSSliderDelegate
158 |
159 | open func slider(value: Double, event: ControlEvents) {
| `- note: main actor-isolated instance method 'slider(value:event:)' cannot satisfy nonisolated requirement
160 | if event == .valueChanged {
161 | toolBar.currentTime = value
[#ConformanceIsolation]: <https://docs.swift.org/compiler/documentation/diagnostics/conformance-isolation>
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[85/91] Compiling KSPlayer PlayerView.swift
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:38:16: warning: static property 'traitItalic' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
36 | public typealias UIButton = KSButton
37 | public extension UIFontDescriptor.SymbolicTraits {
38 | static var traitItalic = italic
| |- warning: static property 'traitItalic' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'traitItalic' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'traitItalic' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | static var traitBold = bold
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:39:16: warning: static property 'traitBold' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
37 | public extension UIFontDescriptor.SymbolicTraits {
38 | static var traitItalic = italic
39 | static var traitBold = bold
| |- warning: static property 'traitBold' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'traitBold' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'traitBold' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:358:27: warning: static property 'normal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
356 | public var rawValue: UInt
357 | public init(rawValue: UInt) { self.rawValue = rawValue }
358 | public static var normal = State(rawValue: 1 << 0)
| |- warning: static property 'normal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'normal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'normal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
359 | public static var highlighted = State(rawValue: 1 << 1)
360 | public static var disabled = State(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:359:27: warning: static property 'highlighted' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
357 | public init(rawValue: UInt) { self.rawValue = rawValue }
358 | public static var normal = State(rawValue: 1 << 0)
359 | public static var highlighted = State(rawValue: 1 << 1)
| |- warning: static property 'highlighted' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'highlighted' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'highlighted' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
360 | public static var disabled = State(rawValue: 1 << 2)
361 | public static var selected = State(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:360:27: warning: static property 'disabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
358 | public static var normal = State(rawValue: 1 << 0)
359 | public static var highlighted = State(rawValue: 1 << 1)
360 | public static var disabled = State(rawValue: 1 << 2)
| |- warning: static property 'disabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'disabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'disabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
361 | public static var selected = State(rawValue: 1 << 3)
362 | public static var focused = State(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:361:27: warning: static property 'selected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
359 | public static var highlighted = State(rawValue: 1 << 1)
360 | public static var disabled = State(rawValue: 1 << 2)
361 | public static var selected = State(rawValue: 1 << 3)
| |- warning: static property 'selected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'selected' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'selected' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
362 | public static var focused = State(rawValue: 1 << 4)
363 | public static var application = State(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:362:27: warning: static property 'focused' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
360 | public static var disabled = State(rawValue: 1 << 2)
361 | public static var selected = State(rawValue: 1 << 3)
362 | public static var focused = State(rawValue: 1 << 4)
| |- warning: static property 'focused' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'focused' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'focused' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
363 | public static var application = State(rawValue: 1 << 5)
364 | public static var reserved = State(rawValue: 1 << 6)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:363:27: warning: static property 'application' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
361 | public static var selected = State(rawValue: 1 << 3)
362 | public static var focused = State(rawValue: 1 << 4)
363 | public static var application = State(rawValue: 1 << 5)
| |- warning: static property 'application' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'application' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'application' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
364 | public static var reserved = State(rawValue: 1 << 6)
365 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:364:27: warning: static property 'reserved' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
362 | public static var focused = State(rawValue: 1 << 4)
363 | public static var application = State(rawValue: 1 << 5)
364 | public static var reserved = State(rawValue: 1 << 6)
| |- warning: static property 'reserved' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'reserved' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'reserved' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
365 | }
366 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/PlayerView.swift:41:55: warning: conformance of 'PlayerView' to protocol 'KSSliderDelegate' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
39 | }
40 |
41 | open class PlayerView: UIView, KSPlayerLayerDelegate, KSSliderDelegate {
| | |- warning: conformance of 'PlayerView' to protocol 'KSSliderDelegate' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
| | |- note: isolate this conformance to the main actor with '@MainActor'
| | `- note: turn data races into runtime errors with '@preconcurrency'
| `- note: mark all declarations used in the conformance 'nonisolated'
42 | public typealias ControllerDelegate = PlayerControllerDelegate
43 | public var playerLayer: KSPlayerLayer? {
:
157 | // MARK: - KSSliderDelegate
158 |
159 | open func slider(value: Double, event: ControlEvents) {
| `- note: main actor-isolated instance method 'slider(value:event:)' cannot satisfy nonisolated requirement
160 | if event == .valueChanged {
161 | toolBar.currentTime = value
[#ConformanceIsolation]: <https://docs.swift.org/compiler/documentation/diagnostics/conformance-isolation>
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[86/91] Compiling KSPlayer UIKitExtend.swift
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:38:16: warning: static property 'traitItalic' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
36 | public typealias UIButton = KSButton
37 | public extension UIFontDescriptor.SymbolicTraits {
38 | static var traitItalic = italic
| |- warning: static property 'traitItalic' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'traitItalic' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'traitItalic' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | static var traitBold = bold
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:39:16: warning: static property 'traitBold' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
37 | public extension UIFontDescriptor.SymbolicTraits {
38 | static var traitItalic = italic
39 | static var traitBold = bold
| |- warning: static property 'traitBold' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'traitBold' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'traitBold' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:358:27: warning: static property 'normal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
356 | public var rawValue: UInt
357 | public init(rawValue: UInt) { self.rawValue = rawValue }
358 | public static var normal = State(rawValue: 1 << 0)
| |- warning: static property 'normal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'normal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'normal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
359 | public static var highlighted = State(rawValue: 1 << 1)
360 | public static var disabled = State(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:359:27: warning: static property 'highlighted' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
357 | public init(rawValue: UInt) { self.rawValue = rawValue }
358 | public static var normal = State(rawValue: 1 << 0)
359 | public static var highlighted = State(rawValue: 1 << 1)
| |- warning: static property 'highlighted' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'highlighted' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'highlighted' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
360 | public static var disabled = State(rawValue: 1 << 2)
361 | public static var selected = State(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:360:27: warning: static property 'disabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
358 | public static var normal = State(rawValue: 1 << 0)
359 | public static var highlighted = State(rawValue: 1 << 1)
360 | public static var disabled = State(rawValue: 1 << 2)
| |- warning: static property 'disabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'disabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'disabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
361 | public static var selected = State(rawValue: 1 << 3)
362 | public static var focused = State(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:361:27: warning: static property 'selected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
359 | public static var highlighted = State(rawValue: 1 << 1)
360 | public static var disabled = State(rawValue: 1 << 2)
361 | public static var selected = State(rawValue: 1 << 3)
| |- warning: static property 'selected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'selected' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'selected' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
362 | public static var focused = State(rawValue: 1 << 4)
363 | public static var application = State(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:362:27: warning: static property 'focused' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
360 | public static var disabled = State(rawValue: 1 << 2)
361 | public static var selected = State(rawValue: 1 << 3)
362 | public static var focused = State(rawValue: 1 << 4)
| |- warning: static property 'focused' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'focused' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'focused' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
363 | public static var application = State(rawValue: 1 << 5)
364 | public static var reserved = State(rawValue: 1 << 6)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:363:27: warning: static property 'application' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
361 | public static var selected = State(rawValue: 1 << 3)
362 | public static var focused = State(rawValue: 1 << 4)
363 | public static var application = State(rawValue: 1 << 5)
| |- warning: static property 'application' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'application' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'application' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
364 | public static var reserved = State(rawValue: 1 << 6)
365 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/AppKitExtend.swift:364:27: warning: static property 'reserved' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
362 | public static var focused = State(rawValue: 1 << 4)
363 | public static var application = State(rawValue: 1 << 5)
364 | public static var reserved = State(rawValue: 1 << 6)
| |- warning: static property 'reserved' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'reserved' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'reserved' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
365 | }
366 | }
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Core/PlayerView.swift:41:55: warning: conformance of 'PlayerView' to protocol 'KSSliderDelegate' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
39 | }
40 |
41 | open class PlayerView: UIView, KSPlayerLayerDelegate, KSSliderDelegate {
| | |- warning: conformance of 'PlayerView' to protocol 'KSSliderDelegate' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
| | |- note: isolate this conformance to the main actor with '@MainActor'
| | `- note: turn data races into runtime errors with '@preconcurrency'
| `- note: mark all declarations used in the conformance 'nonisolated'
42 | public typealias ControllerDelegate = PlayerControllerDelegate
43 | public var playerLayer: KSPlayerLayer? {
:
157 | // MARK: - KSSliderDelegate
158 |
159 | open func slider(value: Double, event: ControlEvents) {
| `- note: main actor-isolated instance method 'slider(value:event:)' cannot satisfy nonisolated requirement
160 | if event == .valueChanged {
161 | toolBar.currentTime = value
[#ConformanceIsolation]: <https://docs.swift.org/compiler/documentation/diagnostics/conformance-isolation>
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[87/91] Compiling KSPlayer PlayerFullScreenViewController.swift
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/SeekView.swift:66:21: warning: conformance of 'SeekView' to protocol 'SeekViewProtocol' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
64 | }
65 |
66 | extension SeekView: SeekViewProtocol {
| | |- warning: conformance of 'SeekView' to protocol 'SeekViewProtocol' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
| | |- note: isolate this conformance to the main actor with '@MainActor'
| | `- note: turn data races into runtime errors with '@preconcurrency'
| `- note: mark all declarations used in the conformance 'nonisolated'
67 | public func set(text: String, isAdd: Bool) {
| `- note: main actor-isolated instance method 'set(text:isAdd:)' cannot satisfy nonisolated requirement
68 | seekToLabel.text = text
69 | if !isAdd {
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:954:16: warning: static property 'topBarShowInCase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
952 | public extension KSOptions {
953 | /// 顶部返回、标题、AirPlay按钮 显示选项,默认.Always,可选.HorizantalOnly、.None
954 | static var topBarShowInCase = KSPlayerTopBarShowCase.always
| |- warning: static property 'topBarShowInCase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'topBarShowInCase' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'topBarShowInCase' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
955 | /// 自动隐藏操作栏的时间间隔 默认5秒
956 | static var animateDelayTimeInterval = TimeInterval(5)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:956:16: warning: static property 'animateDelayTimeInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
954 | static var topBarShowInCase = KSPlayerTopBarShowCase.always
955 | /// 自动隐藏操作栏的时间间隔 默认5秒
956 | static var animateDelayTimeInterval = TimeInterval(5)
| |- warning: static property 'animateDelayTimeInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'animateDelayTimeInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'animateDelayTimeInterval' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
957 | /// 开启亮度手势 默认true
958 | static var enableBrightnessGestures = true
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:958:16: warning: static property 'enableBrightnessGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
956 | static var animateDelayTimeInterval = TimeInterval(5)
957 | /// 开启亮度手势 默认true
958 | static var enableBrightnessGestures = true
| |- warning: static property 'enableBrightnessGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'enableBrightnessGestures' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enableBrightnessGestures' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
959 | /// 开启音量手势 默认true
960 | static var enableVolumeGestures = true
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:960:16: warning: static property 'enableVolumeGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
958 | static var enableBrightnessGestures = true
959 | /// 开启音量手势 默认true
960 | static var enableVolumeGestures = true
| |- warning: static property 'enableVolumeGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'enableVolumeGestures' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enableVolumeGestures' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
961 | /// 开启进度滑动手势 默认true
962 | static var enablePlaytimeGestures = true
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:962:16: warning: static property 'enablePlaytimeGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
960 | static var enableVolumeGestures = true
961 | /// 开启进度滑动手势 默认true
962 | static var enablePlaytimeGestures = true
| |- warning: static property 'enablePlaytimeGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'enablePlaytimeGestures' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enablePlaytimeGestures' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
963 | /// 播放内核选择策略 先使用firstPlayer,失败了自动切换到secondPlayer,播放内核有KSAVPlayer、KSMEPlayer两个选项
964 | /// 是否能后台播放视频
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:965:16: warning: static property 'canBackgroundPlay' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
963 | /// 播放内核选择策略 先使用firstPlayer,失败了自动切换到secondPlayer,播放内核有KSAVPlayer、KSMEPlayer两个选项
964 | /// 是否能后台播放视频
965 | static var canBackgroundPlay = false
| |- warning: static property 'canBackgroundPlay' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'canBackgroundPlay' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'canBackgroundPlay' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
966 | }
967 |
[#ConformanceIsolation]: <https://docs.swift.org/compiler/documentation/diagnostics/conformance-isolation>
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[88/91] Compiling KSPlayer PlayerTransitionAnimator.swift
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/SeekView.swift:66:21: warning: conformance of 'SeekView' to protocol 'SeekViewProtocol' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
64 | }
65 |
66 | extension SeekView: SeekViewProtocol {
| | |- warning: conformance of 'SeekView' to protocol 'SeekViewProtocol' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
| | |- note: isolate this conformance to the main actor with '@MainActor'
| | `- note: turn data races into runtime errors with '@preconcurrency'
| `- note: mark all declarations used in the conformance 'nonisolated'
67 | public func set(text: String, isAdd: Bool) {
| `- note: main actor-isolated instance method 'set(text:isAdd:)' cannot satisfy nonisolated requirement
68 | seekToLabel.text = text
69 | if !isAdd {
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:954:16: warning: static property 'topBarShowInCase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
952 | public extension KSOptions {
953 | /// 顶部返回、标题、AirPlay按钮 显示选项,默认.Always,可选.HorizantalOnly、.None
954 | static var topBarShowInCase = KSPlayerTopBarShowCase.always
| |- warning: static property 'topBarShowInCase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'topBarShowInCase' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'topBarShowInCase' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
955 | /// 自动隐藏操作栏的时间间隔 默认5秒
956 | static var animateDelayTimeInterval = TimeInterval(5)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:956:16: warning: static property 'animateDelayTimeInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
954 | static var topBarShowInCase = KSPlayerTopBarShowCase.always
955 | /// 自动隐藏操作栏的时间间隔 默认5秒
956 | static var animateDelayTimeInterval = TimeInterval(5)
| |- warning: static property 'animateDelayTimeInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'animateDelayTimeInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'animateDelayTimeInterval' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
957 | /// 开启亮度手势 默认true
958 | static var enableBrightnessGestures = true
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:958:16: warning: static property 'enableBrightnessGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
956 | static var animateDelayTimeInterval = TimeInterval(5)
957 | /// 开启亮度手势 默认true
958 | static var enableBrightnessGestures = true
| |- warning: static property 'enableBrightnessGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'enableBrightnessGestures' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enableBrightnessGestures' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
959 | /// 开启音量手势 默认true
960 | static var enableVolumeGestures = true
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:960:16: warning: static property 'enableVolumeGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
958 | static var enableBrightnessGestures = true
959 | /// 开启音量手势 默认true
960 | static var enableVolumeGestures = true
| |- warning: static property 'enableVolumeGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'enableVolumeGestures' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enableVolumeGestures' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
961 | /// 开启进度滑动手势 默认true
962 | static var enablePlaytimeGestures = true
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:962:16: warning: static property 'enablePlaytimeGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
960 | static var enableVolumeGestures = true
961 | /// 开启进度滑动手势 默认true
962 | static var enablePlaytimeGestures = true
| |- warning: static property 'enablePlaytimeGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'enablePlaytimeGestures' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enablePlaytimeGestures' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
963 | /// 播放内核选择策略 先使用firstPlayer,失败了自动切换到secondPlayer,播放内核有KSAVPlayer、KSMEPlayer两个选项
964 | /// 是否能后台播放视频
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:965:16: warning: static property 'canBackgroundPlay' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
963 | /// 播放内核选择策略 先使用firstPlayer,失败了自动切换到secondPlayer,播放内核有KSAVPlayer、KSMEPlayer两个选项
964 | /// 是否能后台播放视频
965 | static var canBackgroundPlay = false
| |- warning: static property 'canBackgroundPlay' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'canBackgroundPlay' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'canBackgroundPlay' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
966 | }
967 |
[#ConformanceIsolation]: <https://docs.swift.org/compiler/documentation/diagnostics/conformance-isolation>
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[89/91] Compiling KSPlayer SeekView.swift
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/SeekView.swift:66:21: warning: conformance of 'SeekView' to protocol 'SeekViewProtocol' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
64 | }
65 |
66 | extension SeekView: SeekViewProtocol {
| | |- warning: conformance of 'SeekView' to protocol 'SeekViewProtocol' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
| | |- note: isolate this conformance to the main actor with '@MainActor'
| | `- note: turn data races into runtime errors with '@preconcurrency'
| `- note: mark all declarations used in the conformance 'nonisolated'
67 | public func set(text: String, isAdd: Bool) {
| `- note: main actor-isolated instance method 'set(text:isAdd:)' cannot satisfy nonisolated requirement
68 | seekToLabel.text = text
69 | if !isAdd {
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:954:16: warning: static property 'topBarShowInCase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
952 | public extension KSOptions {
953 | /// 顶部返回、标题、AirPlay按钮 显示选项,默认.Always,可选.HorizantalOnly、.None
954 | static var topBarShowInCase = KSPlayerTopBarShowCase.always
| |- warning: static property 'topBarShowInCase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'topBarShowInCase' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'topBarShowInCase' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
955 | /// 自动隐藏操作栏的时间间隔 默认5秒
956 | static var animateDelayTimeInterval = TimeInterval(5)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:956:16: warning: static property 'animateDelayTimeInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
954 | static var topBarShowInCase = KSPlayerTopBarShowCase.always
955 | /// 自动隐藏操作栏的时间间隔 默认5秒
956 | static var animateDelayTimeInterval = TimeInterval(5)
| |- warning: static property 'animateDelayTimeInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'animateDelayTimeInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'animateDelayTimeInterval' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
957 | /// 开启亮度手势 默认true
958 | static var enableBrightnessGestures = true
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:958:16: warning: static property 'enableBrightnessGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
956 | static var animateDelayTimeInterval = TimeInterval(5)
957 | /// 开启亮度手势 默认true
958 | static var enableBrightnessGestures = true
| |- warning: static property 'enableBrightnessGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'enableBrightnessGestures' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enableBrightnessGestures' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
959 | /// 开启音量手势 默认true
960 | static var enableVolumeGestures = true
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:960:16: warning: static property 'enableVolumeGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
958 | static var enableBrightnessGestures = true
959 | /// 开启音量手势 默认true
960 | static var enableVolumeGestures = true
| |- warning: static property 'enableVolumeGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'enableVolumeGestures' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enableVolumeGestures' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
961 | /// 开启进度滑动手势 默认true
962 | static var enablePlaytimeGestures = true
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:962:16: warning: static property 'enablePlaytimeGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
960 | static var enableVolumeGestures = true
961 | /// 开启进度滑动手势 默认true
962 | static var enablePlaytimeGestures = true
| |- warning: static property 'enablePlaytimeGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'enablePlaytimeGestures' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enablePlaytimeGestures' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
963 | /// 播放内核选择策略 先使用firstPlayer,失败了自动切换到secondPlayer,播放内核有KSAVPlayer、KSMEPlayer两个选项
964 | /// 是否能后台播放视频
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:965:16: warning: static property 'canBackgroundPlay' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
963 | /// 播放内核选择策略 先使用firstPlayer,失败了自动切换到secondPlayer,播放内核有KSAVPlayer、KSMEPlayer两个选项
964 | /// 是否能后台播放视频
965 | static var canBackgroundPlay = false
| |- warning: static property 'canBackgroundPlay' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'canBackgroundPlay' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'canBackgroundPlay' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
966 | }
967 |
[#ConformanceIsolation]: <https://docs.swift.org/compiler/documentation/diagnostics/conformance-isolation>
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[90/91] Compiling KSPlayer VideoPlayerView.swift
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/SeekView.swift:66:21: warning: conformance of 'SeekView' to protocol 'SeekViewProtocol' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
64 | }
65 |
66 | extension SeekView: SeekViewProtocol {
| | |- warning: conformance of 'SeekView' to protocol 'SeekViewProtocol' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
| | |- note: isolate this conformance to the main actor with '@MainActor'
| | `- note: turn data races into runtime errors with '@preconcurrency'
| `- note: mark all declarations used in the conformance 'nonisolated'
67 | public func set(text: String, isAdd: Bool) {
| `- note: main actor-isolated instance method 'set(text:isAdd:)' cannot satisfy nonisolated requirement
68 | seekToLabel.text = text
69 | if !isAdd {
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:954:16: warning: static property 'topBarShowInCase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
952 | public extension KSOptions {
953 | /// 顶部返回、标题、AirPlay按钮 显示选项,默认.Always,可选.HorizantalOnly、.None
954 | static var topBarShowInCase = KSPlayerTopBarShowCase.always
| |- warning: static property 'topBarShowInCase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'topBarShowInCase' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'topBarShowInCase' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
955 | /// 自动隐藏操作栏的时间间隔 默认5秒
956 | static var animateDelayTimeInterval = TimeInterval(5)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:956:16: warning: static property 'animateDelayTimeInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
954 | static var topBarShowInCase = KSPlayerTopBarShowCase.always
955 | /// 自动隐藏操作栏的时间间隔 默认5秒
956 | static var animateDelayTimeInterval = TimeInterval(5)
| |- warning: static property 'animateDelayTimeInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'animateDelayTimeInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'animateDelayTimeInterval' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
957 | /// 开启亮度手势 默认true
958 | static var enableBrightnessGestures = true
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:958:16: warning: static property 'enableBrightnessGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
956 | static var animateDelayTimeInterval = TimeInterval(5)
957 | /// 开启亮度手势 默认true
958 | static var enableBrightnessGestures = true
| |- warning: static property 'enableBrightnessGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'enableBrightnessGestures' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enableBrightnessGestures' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
959 | /// 开启音量手势 默认true
960 | static var enableVolumeGestures = true
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:960:16: warning: static property 'enableVolumeGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
958 | static var enableBrightnessGestures = true
959 | /// 开启音量手势 默认true
960 | static var enableVolumeGestures = true
| |- warning: static property 'enableVolumeGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'enableVolumeGestures' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enableVolumeGestures' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
961 | /// 开启进度滑动手势 默认true
962 | static var enablePlaytimeGestures = true
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:962:16: warning: static property 'enablePlaytimeGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
960 | static var enableVolumeGestures = true
961 | /// 开启进度滑动手势 默认true
962 | static var enablePlaytimeGestures = true
| |- warning: static property 'enablePlaytimeGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'enablePlaytimeGestures' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enablePlaytimeGestures' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
963 | /// 播放内核选择策略 先使用firstPlayer,失败了自动切换到secondPlayer,播放内核有KSAVPlayer、KSMEPlayer两个选项
964 | /// 是否能后台播放视频
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:965:16: warning: static property 'canBackgroundPlay' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
963 | /// 播放内核选择策略 先使用firstPlayer,失败了自动切换到secondPlayer,播放内核有KSAVPlayer、KSMEPlayer两个选项
964 | /// 是否能后台播放视频
965 | static var canBackgroundPlay = false
| |- warning: static property 'canBackgroundPlay' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'canBackgroundPlay' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'canBackgroundPlay' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
966 | }
967 |
[#ConformanceIsolation]: <https://docs.swift.org/compiler/documentation/diagnostics/conformance-isolation>
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[91/91] Compiling KSPlayer resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/SeekView.swift:66:21: warning: conformance of 'SeekView' to protocol 'SeekViewProtocol' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
64 | }
65 |
66 | extension SeekView: SeekViewProtocol {
| | |- warning: conformance of 'SeekView' to protocol 'SeekViewProtocol' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode [#ConformanceIsolation]
| | |- note: isolate this conformance to the main actor with '@MainActor'
| | `- note: turn data races into runtime errors with '@preconcurrency'
| `- note: mark all declarations used in the conformance 'nonisolated'
67 | public func set(text: String, isAdd: Bool) {
| `- note: main actor-isolated instance method 'set(text:isAdd:)' cannot satisfy nonisolated requirement
68 | seekToLabel.text = text
69 | if !isAdd {
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:954:16: warning: static property 'topBarShowInCase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
952 | public extension KSOptions {
953 | /// 顶部返回、标题、AirPlay按钮 显示选项,默认.Always,可选.HorizantalOnly、.None
954 | static var topBarShowInCase = KSPlayerTopBarShowCase.always
| |- warning: static property 'topBarShowInCase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'topBarShowInCase' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'topBarShowInCase' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
955 | /// 自动隐藏操作栏的时间间隔 默认5秒
956 | static var animateDelayTimeInterval = TimeInterval(5)
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:956:16: warning: static property 'animateDelayTimeInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
954 | static var topBarShowInCase = KSPlayerTopBarShowCase.always
955 | /// 自动隐藏操作栏的时间间隔 默认5秒
956 | static var animateDelayTimeInterval = TimeInterval(5)
| |- warning: static property 'animateDelayTimeInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'animateDelayTimeInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'animateDelayTimeInterval' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
957 | /// 开启亮度手势 默认true
958 | static var enableBrightnessGestures = true
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:958:16: warning: static property 'enableBrightnessGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
956 | static var animateDelayTimeInterval = TimeInterval(5)
957 | /// 开启亮度手势 默认true
958 | static var enableBrightnessGestures = true
| |- warning: static property 'enableBrightnessGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'enableBrightnessGestures' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enableBrightnessGestures' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
959 | /// 开启音量手势 默认true
960 | static var enableVolumeGestures = true
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:960:16: warning: static property 'enableVolumeGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
958 | static var enableBrightnessGestures = true
959 | /// 开启音量手势 默认true
960 | static var enableVolumeGestures = true
| |- warning: static property 'enableVolumeGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'enableVolumeGestures' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enableVolumeGestures' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
961 | /// 开启进度滑动手势 默认true
962 | static var enablePlaytimeGestures = true
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:962:16: warning: static property 'enablePlaytimeGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
960 | static var enableVolumeGestures = true
961 | /// 开启进度滑动手势 默认true
962 | static var enablePlaytimeGestures = true
| |- warning: static property 'enablePlaytimeGestures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'enablePlaytimeGestures' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enablePlaytimeGestures' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
963 | /// 播放内核选择策略 先使用firstPlayer,失败了自动切换到secondPlayer,播放内核有KSAVPlayer、KSMEPlayer两个选项
964 | /// 是否能后台播放视频
/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Video/VideoPlayerView.swift:965:16: warning: static property 'canBackgroundPlay' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
963 | /// 播放内核选择策略 先使用firstPlayer,失败了自动切换到secondPlayer,播放内核有KSAVPlayer、KSMEPlayer两个选项
964 | /// 是否能后台播放视频
965 | static var canBackgroundPlay = false
| |- warning: static property 'canBackgroundPlay' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'canBackgroundPlay' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'canBackgroundPlay' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
966 | }
967 |
[#ConformanceIsolation]: <https://docs.swift.org/compiler/documentation/diagnostics/conformance-isolation>
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
Build complete! (240.47s)
Fetching https://github.com/kingslay/FFmpegKit.git
[1/10438] Fetching ffmpegkit
Fetched https://github.com/kingslay/FFmpegKit.git from cache (214.51s)
Computing version for https://github.com/kingslay/FFmpegKit.git
Computed https://github.com/kingslay/FFmpegKit.git at 6.1.3 (215.27s)
Creating working copy for https://github.com/kingslay/FFmpegKit.git
Working copy of https://github.com/kingslay/FFmpegKit.git resolved at 6.1.3
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: you may be able to install sdl2 using your system-packager:
brew install sdl2
warning: you may be able to install sdl2 using your system-packager:
brew install sdl2
Build complete.
{
"default_localization" : "en",
"dependencies" : [
{
"identity" : "ffmpegkit",
"requirement" : {
"range" : [
{
"lower_bound" : "6.1.3",
"upper_bound" : "7.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/kingslay/FFmpegKit.git"
}
],
"manifest_display_name" : "KSPlayer",
"name" : "KSPlayer",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "maccatalyst",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "KSPlayer",
"targets" : [
"KSPlayer"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "KSPlayerTests",
"module_type" : "SwiftTarget",
"name" : "KSPlayerTests",
"path" : "Tests/KSPlayerTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/KSPlayerTests/Resources/test.m3u",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"AudioTest.swift",
"KSAVPlayerTest.swift",
"KSMEPlayerTest.swift",
"KSPlayerLayerTest.swift",
"M3UParseTest.swift",
"SubtitleTest.swift",
"VideoPlayerControllerTest.swift",
"VideoPlayerViewTest.swift"
],
"target_dependencies" : [
"KSPlayer"
],
"type" : "test"
},
{
"c99name" : "KSPlayer",
"module_type" : "SwiftTarget",
"name" : "KSPlayer",
"path" : "Sources/KSPlayer",
"product_dependencies" : [
"FFmpegKit"
],
"product_memberships" : [
"KSPlayer"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/KSPlayer/Metal/Shaders.metal",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"AVPlayer/KSAVPlayer.swift",
"AVPlayer/KSOptions.swift",
"AVPlayer/KSPictureInPictureController.swift",
"AVPlayer/KSPlayerLayer.swift",
"AVPlayer/KSVideoPlayer.swift",
"AVPlayer/MediaPlayerProtocol.swift",
"AVPlayer/PlayerDefines.swift",
"Audio/AudioPlayerView.swift",
"Core/AppKitExtend.swift",
"Core/PlayerToolBar.swift",
"Core/PlayerView.swift",
"Core/UIKitExtend.swift",
"Core/UXKit.swift",
"Core/Utility.swift",
"MEPlayer/AVFFmpegExtension.swift",
"MEPlayer/AVFoundationExtension.swift",
"MEPlayer/AudioEnginePlayer.swift",
"MEPlayer/AudioGraphPlayer.swift",
"MEPlayer/AudioRendererPlayer.swift",
"MEPlayer/AudioUnitPlayer.swift",
"MEPlayer/CircularBuffer.swift",
"MEPlayer/EmbedDataSouce.swift",
"MEPlayer/FFmpegAssetTrack.swift",
"MEPlayer/FFmpegDecode.swift",
"MEPlayer/Filter.swift",
"MEPlayer/KSMEPlayer.swift",
"MEPlayer/MEPlayerItem.swift",
"MEPlayer/MEPlayerItemTrack.swift",
"MEPlayer/MetalPlayView.swift",
"MEPlayer/Model.swift",
"MEPlayer/Resample.swift",
"MEPlayer/SubtitleDecode.swift",
"MEPlayer/ThumbnailController.swift",
"MEPlayer/VideoToolboxDecode.swift",
"Metal/DisplayModel.swift",
"Metal/MetalRender.swift",
"Metal/MotionSensor.swift",
"Metal/PixelBufferProtocol.swift",
"Metal/Transforms.swift",
"Subtitle/AudioRecognize.swift",
"Subtitle/KSParseProtocol.swift",
"Subtitle/KSSubtitle.swift",
"Subtitle/SubtitleDataSouce.swift",
"SwiftUI/AirPlayView.swift",
"SwiftUI/KSVideoPlayerView.swift",
"SwiftUI/KSVideoPlayerViewBuilder.swift",
"SwiftUI/LiveTextImage.swift",
"SwiftUI/Slider.swift",
"Video/BrightnessVolume.swift",
"Video/IOSVideoPlayerView.swift",
"Video/KSMenu.swift",
"Video/KSPlayerItem.swift",
"Video/MacVideoPlayerView.swift",
"Video/PlayerFullScreenViewController.swift",
"Video/PlayerTransitionAnimator.swift",
"Video/SeekView.swift",
"Video/VideoPlayerView.swift"
],
"target_dependencies" : [
"DisplayCriteria"
],
"type" : "library"
},
{
"c99name" : "DisplayCriteria",
"module_type" : "ClangTarget",
"name" : "DisplayCriteria",
"path" : "Sources/DisplayCriteria",
"product_memberships" : [
"KSPlayer"
],
"sources" : [
"DisplayCriteria.m"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.