The Swift Package Index logo.Swift Package Index

Build Information

Successful build of KSPlayer, reference 2.3.4 (bdfa2d), with Swift 6.3 for macOS (SPM) on 12 Apr 2026 02:26:47 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64

Build Log

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 the 'Sendable' protocol; 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 the 'Sendable' protocol; 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.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.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.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.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.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.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.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.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 [#SendingClosureRisksDataRace]
 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 [#SendingClosureRisksDataRace]
 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>
[#SendingClosureRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-closure-risks-data-race>
[#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! (16.10s)
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"
}
✅  Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path:  $PWD/.docs/kingslay/ksplayer/2.3.4
Repository:               kingslay/KSPlayer
Swift version used:       6.3
Target:                   KSPlayer
Extracting symbol information for 'KSPlayer'...
Fetching https://github.com/swiftlang/swift-docc-plugin
Updating https://github.com/kingslay/FFmpegKit.git
Updated https://github.com/kingslay/FFmpegKit.git (0.43s)
[1/2271] Fetching swift-docc-plugin
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (2.87s)
Computing version for https://github.com/kingslay/FFmpegKit.git
Computed https://github.com/kingslay/FFmpegKit.git at 6.1.3 (3.46s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.6 (0.63s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3672] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.09s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.84s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.6
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
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
Building for debugging...
[0/8] Write sources
[1/8] Write snippet-extract-tool-entitlement.plist
[4/8] Write swift-version--6988338F2F200930.txt
[6/53] Compiling SymbolKit Mixin+Equals.swift
[7/53] Compiling SymbolKit Mixin+Hash.swift
[8/53] Compiling SymbolKit Mixin.swift
[9/53] Compiling SymbolKit LineList.swift
[10/53] Compiling SymbolKit Position.swift
[11/57] Compiling SymbolKit Identifier.swift
[12/57] Compiling SymbolKit KindIdentifier.swift
[13/57] Compiling SymbolKit Location.swift
[14/57] Compiling SymbolKit Mutability.swift
[15/57] Compiling Snippets SnippetParser.swift
[16/57] Compiling Snippets Snippet.swift
[17/57] Emitting module Snippets
[18/57] Compiling SymbolKit DeclarationFragments.swift
[19/57] Compiling SymbolKit Fragment.swift
[20/57] Compiling SymbolKit FragmentKind.swift
[21/57] Compiling SymbolKit FunctionParameter.swift
[22/57] Compiling SymbolKit FunctionSignature.swift
[23/57] Compiling SymbolKit SemanticVersion.swift
[24/57] Compiling SymbolKit AccessControl.swift
[25/57] Compiling SymbolKit Availability.swift
[26/57] Compiling SymbolKit AvailabilityItem.swift
[27/57] Compiling SymbolKit Domain.swift
[28/57] Emitting module SymbolKit
[29/57] Compiling SymbolKit Symbol.swift
[30/57] Compiling SymbolKit SymbolKind.swift
[31/57] Compiling SymbolKit SymbolGraph.swift
[32/57] Compiling SymbolKit GraphCollector.swift
[33/57] Compiling SymbolKit SourceRange.swift
[34/57] Compiling SymbolKit Metadata.swift
[35/57] Compiling SymbolKit Module.swift
[36/57] Compiling SymbolKit OperatingSystem.swift
[37/57] Compiling SymbolKit Platform.swift
[38/57] Compiling SymbolKit Relationship.swift
[39/57] Compiling SymbolKit RelationshipKind.swift
[40/57] Compiling SymbolKit SourceOrigin.swift
[41/57] Compiling SymbolKit GenericConstraints.swift
[42/57] Compiling SymbolKit Swift.swift
[43/57] Compiling SymbolKit GenericConstraint.swift
[44/57] Compiling SymbolKit GenericParameter.swift
[45/57] Compiling SymbolKit Generics.swift
[46/57] Compiling SymbolKit Namespace.swift
[47/57] Compiling SymbolKit Names.swift
[48/57] Compiling SymbolKit SPI.swift
[49/57] Compiling SymbolKit Snippet.swift
[50/57] Compiling SymbolKit Extension.swift
[51/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[52/57] Compiling SymbolKit UnifiedSymbol.swift
[53/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[54/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Emitting module snippet_extract
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (3.87s)
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
Building for debugging...
[0/2] Compiling FFmpegKit FFmpegKit.c
[1/2] Write swift-version--6988338F2F200930.txt
Build of target: 'KSPlayer' complete! (0.58s)
error: unspecified("terminated(1): /Applications/Xcode-26.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-symbolgraph-extract -module-name KSPlayer -target arm64-apple-macosx10.15 -module-cache-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/ModuleCache -plugin-path /Applications/Xcode-26.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -sdk /Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk -F /Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -I /Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -L /Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -Xcc -fmodule-map-file=/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/DisplayCriteria.build/module.modulemap -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/Sources/DisplayCriteria/include -Xcc -fmodule-map-file=/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/FFmpegKit.build/module.modulemap -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/FFmpegKit/include -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libswscale.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libswscale.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libswresample.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libswresample.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libavutil.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libavutil.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libavformat.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libavformat.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libavfilter.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libavfilter.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libavdevice.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libavdevice.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libavcodec.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libavcodec.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libsmbclient.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libsmbclient.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/gnutls.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/gnutls.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/hogweed.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/hogweed.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/nettle.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/nettle.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/gmp.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/gmp.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libbluray.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libbluray.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libfontconfig.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libfontconfig.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libass.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libass.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libharfbuzz.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libharfbuzz.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libfribidi.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libfribidi.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libfreetype.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libfreetype.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libsrt.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libsrt.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libzvbi.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libzvbi.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libplacebo.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libplacebo.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libdav1d.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libdav1d.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/lcms2.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/lcms2.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libshaderc_combined.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libshaderc_combined.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/MoltenVK.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/MoltenVK.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/Modules -minimum-access-level public -emit-extension-block-symbols -output-dir /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/extracted-symbols/spi-builder-workspace/KSPlayer output:\n    <module-includes>:4:9: note: in file included from <module-includes>:4:\n    #import \"/Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/FFmpegKit/include/avformat_shim.h\"\n            ^\n    /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/FFmpegKit/include/avformat_shim.h:4:9: error: \'Libavformat/avformat.h\' file not found\n    #import <Libavformat/avformat.h>\n            ^\n    <unknown>:0: error: could not build Objective-C module \'FFmpegKit\'\n    Error: Failed to load the module \'KSPlayer\'. Are you missing build dependencies or include/framework directories?\n    See the previous error messages for details. Aborting.")
Extracting symbol information for 'KSPlayer'...
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
Building for debugging...
[0/3] Write swift-version--6988338F2F200930.txt
Build of product 'snippet-extract' complete! (0.25s)
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
Building for debugging...
[0/2] Compiling FFmpegKit FFmpegKit.c
[1/2] Write swift-version--6988338F2F200930.txt
Build of target: 'KSPlayer' complete! (0.56s)
error: unspecified("terminated(1): /Applications/Xcode-26.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-symbolgraph-extract -module-name KSPlayer -target arm64-apple-macosx10.15 -module-cache-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/ModuleCache -plugin-path /Applications/Xcode-26.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -sdk /Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk -F /Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -I /Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -L /Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -Xcc -fmodule-map-file=/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/DisplayCriteria.build/module.modulemap -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/Sources/DisplayCriteria/include -Xcc -fmodule-map-file=/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/FFmpegKit.build/module.modulemap -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/FFmpegKit/include -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libswscale.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libswscale.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libswresample.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libswresample.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libavutil.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libavutil.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libavformat.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libavformat.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libavfilter.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libavfilter.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libavdevice.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libavdevice.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libavcodec.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/Libavcodec.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libsmbclient.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libsmbclient.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/gnutls.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/gnutls.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/hogweed.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/hogweed.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/nettle.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/nettle.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/gmp.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/gmp.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libbluray.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libbluray.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libfontconfig.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libfontconfig.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libass.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libass.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libharfbuzz.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libharfbuzz.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libfribidi.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libfribidi.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libfreetype.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libfreetype.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libsrt.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libsrt.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libzvbi.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libzvbi.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libplacebo.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libplacebo.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libdav1d.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libdav1d.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/lcms2.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/lcms2.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libshaderc_combined.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/libshaderc_combined.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/MoltenVK.xcframework/macos-arm64_x86_64 -Xcc -I -Xcc /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/MoltenVK.xcframework/macos-arm64_x86_64 -I /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/Modules -minimum-access-level public -emit-extension-block-symbols -output-dir /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/extracted-symbols/spi-builder-workspace/KSPlayer output:\n    <module-includes>:4:9: note: in file included from <module-includes>:4:\n    #import \"/Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/FFmpegKit/include/avformat_shim.h\"\n            ^\n    /Users/admin/builder/spi-builder-workspace/.build/checkouts/FFmpegKit/Sources/FFmpegKit/include/avformat_shim.h:4:9: error: \'Libavformat/avformat.h\' file not found\n    #import <Libavformat/avformat.h>\n            ^\n    <unknown>:0: error: could not build Objective-C module \'FFmpegKit\'\n    Error: Failed to load the module \'KSPlayer\'. Are you missing build dependencies or include/framework directories?\n    See the previous error messages for details. Aborting.")
Error while generating docs: retryLimitExceeded(lastError: Optional(Shell command failed:
    env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift package --allow-writing-to-directory .docs/kingslay/ksplayer/2.3.4 generate-documentation --emit-digest --disable-indexing --output-path .docs/kingslay/ksplayer/2.3.4 --hosting-base-path kingslay/ksplayer/2.3.4 --source-service github --source-service-base-url https://github.com/kingslay/KSPlayer/blob/2.3.4 --checkout-path $PWD --target KSPlayer))
✅  Doc result (failed) reported
Done.