Build Information
Successful build of Stem, reference master (fe88a2
), with Swift 6.0 for macOS (SPM) on 16 Dec 2024 13:41:45 UTC.
Swift 6 data race errors: 115
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
26 | public extension RunTime {
27 |
28 | struct Print { }
| `- note: consider making struct 'Print' conform to the 'Sendable' protocol
29 |
30 | static let print = Print()
| |- warning: static property 'print' is not concurrency-safe because non-'Sendable' type 'RunTime.Print' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'print' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | }
[148/150] Compiling Stem RunTime+ObjectType.swift
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/String/String+tokenize.swift:39:23: warning: static property 'unitWord' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Tokenization options
26 | public struct StringTokenizationOptions: OptionSet {
| `- note: consider making struct 'StringTokenizationOptions' conform to the 'Sendable' protocol
27 | /* kCFStringTokenizerUnitWord doesn't return space between words as a token. */
28 | /**
:
37 | 指定字符串应该如何被标记化。
38 | */
39 | public static let unitWord = StringTokenizationOptions(rawValue: kCFStringTokenizerUnitWord)
| |- warning: static property 'unitWord' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unitWord' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | /**
41 | Tokenization Unit
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/String/String+tokenize.swift:50:23: warning: static property 'unitSentence' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Tokenization options
26 | public struct StringTokenizationOptions: OptionSet {
| `- note: consider making struct 'StringTokenizationOptions' conform to the 'Sendable' protocol
27 | /* kCFStringTokenizerUnitWord doesn't return space between words as a token. */
28 | /**
:
48 | 指定应该如何对字符串进行标记化。
49 | */
50 | public static let unitSentence = StringTokenizationOptions(rawValue: kCFStringTokenizerUnitSentence)
| |- warning: static property 'unitSentence' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unitSentence' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | /**
52 | Tokenization Unit
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/String/String+tokenize.swift:61:23: warning: static property 'unitParagraph' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Tokenization options
26 | public struct StringTokenizationOptions: OptionSet {
| `- note: consider making struct 'StringTokenizationOptions' conform to the 'Sendable' protocol
27 | /* kCFStringTokenizerUnitWord doesn't return space between words as a token. */
28 | /**
:
59 | 指定应该如何对字符串进行标记化。
60 | */
61 | public static let unitParagraph = StringTokenizationOptions(rawValue: kCFStringTokenizerUnitParagraph)
| |- warning: static property 'unitParagraph' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unitParagraph' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/String/String+tokenize.swift:73:23: warning: static property 'unitLineBreak' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Tokenization options
26 | public struct StringTokenizationOptions: OptionSet {
| `- note: consider making struct 'StringTokenizationOptions' conform to the 'Sendable' protocol
27 | /* kCFStringTokenizerUnitWord doesn't return space between words as a token. */
28 | /**
:
71 | 指定应该如何对字符串进行标记化。
72 | */
73 | public static let unitLineBreak = StringTokenizationOptions(rawValue: kCFStringTokenizerUnitLineBreak)
| |- warning: static property 'unitLineBreak' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unitLineBreak' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
74 |
75 | /* kCFStringTokenizerUnitWordBoundary can be used in double click detection
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/String/String+tokenize.swift:94:23: warning: static property 'unitWordBoundary' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Tokenization options
26 | public struct StringTokenizationOptions: OptionSet {
| `- note: consider making struct 'StringTokenizationOptions' conform to the 'Sendable' protocol
27 | /* kCFStringTokenizerUnitWord doesn't return space between words as a token. */
28 | /**
:
92 | 指定字符串应该如何被标记化。
93 | */
94 | public static let unitWordBoundary = StringTokenizationOptions(rawValue: kCFStringTokenizerUnitWordBoundary)
| |- warning: static property 'unitWordBoundary' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unitWordBoundary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
95 |
96 | /* Latin Transcription. Used with kCFStringTokenizerUnitWord or kCFStringTokenizerUnitWordBoundary */
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/String/String+tokenize.swift:112:23: warning: static property 'attributeLatinTranscription' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Tokenization options
26 | public struct StringTokenizationOptions: OptionSet {
| `- note: consider making struct 'StringTokenizationOptions' conform to the 'Sendable' protocol
27 | /* kCFStringTokenizerUnitWord doesn't return space between words as a token. */
28 | /**
:
110 | 选项中的一个。
111 | */
112 | public static let attributeLatinTranscription = StringTokenizationOptions(rawValue: kCFStringTokenizerAttributeLatinTranscription)
| |- warning: static property 'attributeLatinTranscription' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'attributeLatinTranscription' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 |
114 | /* Language in BCP 47 string. Used with kCFStringTokenizerUnitSentence
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/String/String+tokenize.swift:132:23: warning: static property 'attributeLanguage' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Tokenization options
26 | public struct StringTokenizationOptions: OptionSet {
| `- note: consider making struct 'StringTokenizationOptions' conform to the 'Sendable' protocol
27 | /* kCFStringTokenizerUnitWord doesn't return space between words as a token. */
28 | /**
:
130 | 选项中的一个。
131 | */
132 | public static let attributeLanguage = StringTokenizationOptions(rawValue: kCFStringTokenizerAttributeLanguage)
| |- warning: static property 'attributeLanguage' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'attributeLanguage' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
133 |
134 | public let rawValue: CFOptionFlags
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/URL/URL.swift:48:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
46 |
47 | // MARK: - ExpressibleByStringLiteral
48 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
49 |
50 | public init(stringLiteral value: String) {
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Network/NetworkMonitor.swift:34:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
25 | import Combine
26 |
27 | final public class NetworkMonitor {
| `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
28 |
29 | public enum Result {
:
32 | }
33 |
34 | public static let shared = NetworkMonitor()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | public private(set) lazy var connectPublisher = pathPublisher.map { path -> Result in
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Network/NetworkMonitor.swift:53:30: warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | import Combine
26 |
27 | final public class NetworkMonitor {
| `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
28 |
29 | public enum Result {
:
51 | public init() {
52 | monitor.pathUpdateHandler = { [weak self] path in
53 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | self.pathSubject.send(path)
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Runtime/RunTime+Print.swift:30:16: warning: static property 'print' is not concurrency-safe because non-'Sendable' type 'RunTime.Print' may have shared mutable state; this is an error in the Swift 6 language mode
26 | public extension RunTime {
27 |
28 | struct Print { }
| `- note: consider making struct 'Print' conform to the 'Sendable' protocol
29 |
30 | static let print = Print()
| |- warning: static property 'print' is not concurrency-safe because non-'Sendable' type 'RunTime.Print' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'print' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | }
[149/150] Compiling Stem RunTime+Print.swift
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/String/String+tokenize.swift:39:23: warning: static property 'unitWord' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Tokenization options
26 | public struct StringTokenizationOptions: OptionSet {
| `- note: consider making struct 'StringTokenizationOptions' conform to the 'Sendable' protocol
27 | /* kCFStringTokenizerUnitWord doesn't return space between words as a token. */
28 | /**
:
37 | 指定字符串应该如何被标记化。
38 | */
39 | public static let unitWord = StringTokenizationOptions(rawValue: kCFStringTokenizerUnitWord)
| |- warning: static property 'unitWord' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unitWord' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | /**
41 | Tokenization Unit
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/String/String+tokenize.swift:50:23: warning: static property 'unitSentence' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Tokenization options
26 | public struct StringTokenizationOptions: OptionSet {
| `- note: consider making struct 'StringTokenizationOptions' conform to the 'Sendable' protocol
27 | /* kCFStringTokenizerUnitWord doesn't return space between words as a token. */
28 | /**
:
48 | 指定应该如何对字符串进行标记化。
49 | */
50 | public static let unitSentence = StringTokenizationOptions(rawValue: kCFStringTokenizerUnitSentence)
| |- warning: static property 'unitSentence' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unitSentence' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | /**
52 | Tokenization Unit
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/String/String+tokenize.swift:61:23: warning: static property 'unitParagraph' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Tokenization options
26 | public struct StringTokenizationOptions: OptionSet {
| `- note: consider making struct 'StringTokenizationOptions' conform to the 'Sendable' protocol
27 | /* kCFStringTokenizerUnitWord doesn't return space between words as a token. */
28 | /**
:
59 | 指定应该如何对字符串进行标记化。
60 | */
61 | public static let unitParagraph = StringTokenizationOptions(rawValue: kCFStringTokenizerUnitParagraph)
| |- warning: static property 'unitParagraph' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unitParagraph' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/String/String+tokenize.swift:73:23: warning: static property 'unitLineBreak' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Tokenization options
26 | public struct StringTokenizationOptions: OptionSet {
| `- note: consider making struct 'StringTokenizationOptions' conform to the 'Sendable' protocol
27 | /* kCFStringTokenizerUnitWord doesn't return space between words as a token. */
28 | /**
:
71 | 指定应该如何对字符串进行标记化。
72 | */
73 | public static let unitLineBreak = StringTokenizationOptions(rawValue: kCFStringTokenizerUnitLineBreak)
| |- warning: static property 'unitLineBreak' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unitLineBreak' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
74 |
75 | /* kCFStringTokenizerUnitWordBoundary can be used in double click detection
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/String/String+tokenize.swift:94:23: warning: static property 'unitWordBoundary' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Tokenization options
26 | public struct StringTokenizationOptions: OptionSet {
| `- note: consider making struct 'StringTokenizationOptions' conform to the 'Sendable' protocol
27 | /* kCFStringTokenizerUnitWord doesn't return space between words as a token. */
28 | /**
:
92 | 指定字符串应该如何被标记化。
93 | */
94 | public static let unitWordBoundary = StringTokenizationOptions(rawValue: kCFStringTokenizerUnitWordBoundary)
| |- warning: static property 'unitWordBoundary' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unitWordBoundary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
95 |
96 | /* Latin Transcription. Used with kCFStringTokenizerUnitWord or kCFStringTokenizerUnitWordBoundary */
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/String/String+tokenize.swift:112:23: warning: static property 'attributeLatinTranscription' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Tokenization options
26 | public struct StringTokenizationOptions: OptionSet {
| `- note: consider making struct 'StringTokenizationOptions' conform to the 'Sendable' protocol
27 | /* kCFStringTokenizerUnitWord doesn't return space between words as a token. */
28 | /**
:
110 | 选项中的一个。
111 | */
112 | public static let attributeLatinTranscription = StringTokenizationOptions(rawValue: kCFStringTokenizerAttributeLatinTranscription)
| |- warning: static property 'attributeLatinTranscription' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'attributeLatinTranscription' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 |
114 | /* Language in BCP 47 string. Used with kCFStringTokenizerUnitSentence
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/String/String+tokenize.swift:132:23: warning: static property 'attributeLanguage' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Tokenization options
26 | public struct StringTokenizationOptions: OptionSet {
| `- note: consider making struct 'StringTokenizationOptions' conform to the 'Sendable' protocol
27 | /* kCFStringTokenizerUnitWord doesn't return space between words as a token. */
28 | /**
:
130 | 选项中的一个。
131 | */
132 | public static let attributeLanguage = StringTokenizationOptions(rawValue: kCFStringTokenizerAttributeLanguage)
| |- warning: static property 'attributeLanguage' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'attributeLanguage' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
133 |
134 | public let rawValue: CFOptionFlags
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/URL/URL.swift:48:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
46 |
47 | // MARK: - ExpressibleByStringLiteral
48 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
49 |
50 | public init(stringLiteral value: String) {
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Network/NetworkMonitor.swift:34:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
25 | import Combine
26 |
27 | final public class NetworkMonitor {
| `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
28 |
29 | public enum Result {
:
32 | }
33 |
34 | public static let shared = NetworkMonitor()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | public private(set) lazy var connectPublisher = pathPublisher.map { path -> Result in
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Network/NetworkMonitor.swift:53:30: warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | import Combine
26 |
27 | final public class NetworkMonitor {
| `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
28 |
29 | public enum Result {
:
51 | public init() {
52 | monitor.pathUpdateHandler = { [weak self] path in
53 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | self.pathSubject.send(path)
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Runtime/RunTime+Print.swift:30:16: warning: static property 'print' is not concurrency-safe because non-'Sendable' type 'RunTime.Print' may have shared mutable state; this is an error in the Swift 6 language mode
26 | public extension RunTime {
27 |
28 | struct Print { }
| `- note: consider making struct 'Print' conform to the 'Sendable' protocol
29 |
30 | static let print = Print()
| |- warning: static property 'print' is not concurrency-safe because non-'Sendable' type 'RunTime.Print' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'print' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | }
[150/150] Emitting module Stem
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/AVKit/STAudioRecorder.swift:36:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[STAudioRecorder.Format]' may have shared mutable state; this is an error in the Swift 6 language mode
26 | open class STAudioRecorder: AVAudioRecorder {
27 |
28 | public struct Format {
| `- note: consider making struct 'Format' conform to the 'Sendable' protocol
29 |
30 | let rawValue: STAudioFormat
:
34 | }
35 |
36 | public static let all: [Format] = [.linearPCM,
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[STAudioRecorder.Format]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | .appleIMA4,
38 | .mpeg4AAC,
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/AVKit/STAudioRecorder.swift:42:27: warning: static property 'linearPCM' is not concurrency-safe because non-'Sendable' type 'STAudioRecorder.Format' may have shared mutable state; this is an error in the Swift 6 language mode
26 | open class STAudioRecorder: AVAudioRecorder {
27 |
28 | public struct Format {
| `- note: consider making struct 'Format' conform to the 'Sendable' protocol
29 |
30 | let rawValue: STAudioFormat
:
40 | .appleLossless]
41 |
42 | public static let linearPCM = Format(.linearPCM)
| |- warning: static property 'linearPCM' is not concurrency-safe because non-'Sendable' type 'STAudioRecorder.Format' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'linearPCM' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | public static let appleIMA4 = Format(.appleIMA4)
44 | public static let mpeg4AAC = Format(.mpeg4AAC)
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/AVKit/STAudioRecorder.swift:43:27: warning: static property 'appleIMA4' is not concurrency-safe because non-'Sendable' type 'STAudioRecorder.Format' may have shared mutable state; this is an error in the Swift 6 language mode
26 | open class STAudioRecorder: AVAudioRecorder {
27 |
28 | public struct Format {
| `- note: consider making struct 'Format' conform to the 'Sendable' protocol
29 |
30 | let rawValue: STAudioFormat
:
41 |
42 | public static let linearPCM = Format(.linearPCM)
43 | public static let appleIMA4 = Format(.appleIMA4)
| |- warning: static property 'appleIMA4' is not concurrency-safe because non-'Sendable' type 'STAudioRecorder.Format' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'appleIMA4' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | public static let mpeg4AAC = Format(.mpeg4AAC)
45 | public static let uLaw = Format(.ULaw)
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/AVKit/STAudioRecorder.swift:44:27: warning: static property 'mpeg4AAC' is not concurrency-safe because non-'Sendable' type 'STAudioRecorder.Format' may have shared mutable state; this is an error in the Swift 6 language mode
26 | open class STAudioRecorder: AVAudioRecorder {
27 |
28 | public struct Format {
| `- note: consider making struct 'Format' conform to the 'Sendable' protocol
29 |
30 | let rawValue: STAudioFormat
:
42 | public static let linearPCM = Format(.linearPCM)
43 | public static let appleIMA4 = Format(.appleIMA4)
44 | public static let mpeg4AAC = Format(.mpeg4AAC)
| |- warning: static property 'mpeg4AAC' is not concurrency-safe because non-'Sendable' type 'STAudioRecorder.Format' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mpeg4AAC' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | public static let uLaw = Format(.ULaw)
46 | public static let aLaw = Format(.ALaw)
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/AVKit/STAudioRecorder.swift:45:27: warning: static property 'uLaw' is not concurrency-safe because non-'Sendable' type 'STAudioRecorder.Format' may have shared mutable state; this is an error in the Swift 6 language mode
26 | open class STAudioRecorder: AVAudioRecorder {
27 |
28 | public struct Format {
| `- note: consider making struct 'Format' conform to the 'Sendable' protocol
29 |
30 | let rawValue: STAudioFormat
:
43 | public static let appleIMA4 = Format(.appleIMA4)
44 | public static let mpeg4AAC = Format(.mpeg4AAC)
45 | public static let uLaw = Format(.ULaw)
| |- warning: static property 'uLaw' is not concurrency-safe because non-'Sendable' type 'STAudioRecorder.Format' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'uLaw' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | public static let aLaw = Format(.ALaw)
47 | public static let appleLossless = Format(.AppleLossless)
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/AVKit/STAudioRecorder.swift:46:27: warning: static property 'aLaw' is not concurrency-safe because non-'Sendable' type 'STAudioRecorder.Format' may have shared mutable state; this is an error in the Swift 6 language mode
26 | open class STAudioRecorder: AVAudioRecorder {
27 |
28 | public struct Format {
| `- note: consider making struct 'Format' conform to the 'Sendable' protocol
29 |
30 | let rawValue: STAudioFormat
:
44 | public static let mpeg4AAC = Format(.mpeg4AAC)
45 | public static let uLaw = Format(.ULaw)
46 | public static let aLaw = Format(.ALaw)
| |- warning: static property 'aLaw' is not concurrency-safe because non-'Sendable' type 'STAudioRecorder.Format' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'aLaw' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | public static let appleLossless = Format(.AppleLossless)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/AVKit/STAudioRecorder.swift:47:27: warning: static property 'appleLossless' is not concurrency-safe because non-'Sendable' type 'STAudioRecorder.Format' may have shared mutable state; this is an error in the Swift 6 language mode
26 | open class STAudioRecorder: AVAudioRecorder {
27 |
28 | public struct Format {
| `- note: consider making struct 'Format' conform to the 'Sendable' protocol
29 |
30 | let rawValue: STAudioFormat
:
45 | public static let uLaw = Format(.ULaw)
46 | public static let aLaw = Format(.ALaw)
47 | public static let appleLossless = Format(.AppleLossless)
| |- warning: static property 'appleLossless' is not concurrency-safe because non-'Sendable' type 'STAudioRecorder.Format' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'appleLossless' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/AVKit/STAudioRecorder.swift:26:12: warning: class 'STAudioRecorder' must restate inherited '@unchecked Sendable' conformance
24 | import AVFoundation
25 |
26 | open class STAudioRecorder: AVAudioRecorder {
| `- warning: class 'STAudioRecorder' must restate inherited '@unchecked Sendable' conformance
27 |
28 | public struct Format {
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Color/STWrapperColor.swift:57:16: warning: static property 'displayMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 | }
56 |
57 | static var displayMode = DisplayMode.displayP3
| |- warning: static property 'displayMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'displayMode' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'displayMode' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Custom/Combine/Combine+Async.swift:10:13: warning: var 'cancellables' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | import Combine
9 |
10 | private var cancellables = Set<AnyCancellable>()
| |- warning: var 'cancellables' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cancellables' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'cancellables' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | public extension Publisher {
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Custom/Combine/Combine+NSObject.swift:27:13: warning: var 'cancellableKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | import Combine
26 |
27 | private var cancellableKey: Void?
| |- warning: var 'cancellableKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cancellableKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'cancellableKey' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | public extension Stem where Base: NSObject {
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Custom/Device/Device+cpu.swift:27:16: warning: static property 'processor' is not concurrency-safe because non-'Sendable' type 'Device.Processor' may have shared mutable state; this is an error in the Swift 6 language mode
25 | public extension Device {
26 |
27 | static let processor = Processor()
| |- warning: static property 'processor' is not concurrency-safe because non-'Sendable' type 'Device.Processor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'processor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | struct Processor { }
| `- note: consider making struct 'Processor' conform to the 'Sendable' protocol
30 |
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Custom/Device/Device+information.swift:27:16: warning: static property 'information' is not concurrency-safe because non-'Sendable' type 'Device.Information' may have shared mutable state; this is an error in the Swift 6 language mode
25 | public extension Device {
26 |
27 | static let information = Information()
| |- warning: static property 'information' is not concurrency-safe because non-'Sendable' type 'Device.Information' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'information' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | struct Information { }
| `- note: consider making struct 'Information' conform to the 'Sendable' protocol
30 |
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Custom/Device/Device+space.swift:28:16: warning: static property 'diskSpace' is not concurrency-safe because non-'Sendable' type 'Device.DiskSpace' may have shared mutable state; this is an error in the Swift 6 language mode
26 | public extension Device {
27 | /// 磁盘空间
28 | static let diskSpace = DiskSpace()
| |- warning: static property 'diskSpace' is not concurrency-safe because non-'Sendable' type 'Device.DiskSpace' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'diskSpace' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | /// 内存空间
30 | static let memorySpace = MemorySpace()
31 |
32 | struct DiskSpace { }
| `- note: consider making struct 'DiskSpace' conform to the 'Sendable' protocol
33 |
34 | struct MemorySpace { }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Custom/Device/Device+space.swift:30:16: warning: static property 'memorySpace' is not concurrency-safe because non-'Sendable' type 'Device.MemorySpace' may have shared mutable state; this is an error in the Swift 6 language mode
28 | static let diskSpace = DiskSpace()
29 | /// 内存空间
30 | static let memorySpace = MemorySpace()
| |- warning: static property 'memorySpace' is not concurrency-safe because non-'Sendable' type 'Device.MemorySpace' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'memorySpace' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | struct DiskSpace { }
33 |
34 | struct MemorySpace { }
| `- note: consider making struct 'MemorySpace' conform to the 'Sendable' protocol
35 |
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Foundation/Dispatch/DispatchQueue.swift:29:16: warning: static property 'onceTracker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | // MARK: - fileprivate
28 | fileprivate extension DispatchQueue {
29 | static var onceTracker = [String]()
| |- warning: static property 'onceTracker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'onceTracker' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'onceTracker' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:38:23: warning: static property 'videos' is not concurrency-safe because non-'Sendable' type 'STFileTypeSet' may have shared mutable state; this is an error in the Swift 6 language mode
24 | import UniformTypeIdentifiers
25 |
26 | public struct STFileTypeSet: ExpressibleByArrayLiteral {
| `- note: consider making struct 'STFileTypeSet' conform to the 'Sendable' protocol
27 |
28 | public let rawValue: Set<STFileType>
:
36 | }
37 |
38 | public static let videos: STFileTypeSet = [.mp4, .m4v, .m4p, .f4v, .f4p, .avi, .wmv, .flv, .quicktime]
| |- warning: static property 'videos' is not concurrency-safe because non-'Sendable' type 'STFileTypeSet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'videos' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | public static let audios: STFileTypeSet = [.amr, .mp3, .ogg, .flac, .wav, .mid, .m4a, .m4b, .f4a, .f4b, .opus]
40 | public static let images: STFileTypeSet = [.avif, .jxr, .flif, .pdf, .png, .jpeg, .gif, .webp, .tiff, .bmp, .psd,
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:39:23: warning: static property 'audios' is not concurrency-safe because non-'Sendable' type 'STFileTypeSet' may have shared mutable state; this is an error in the Swift 6 language mode
24 | import UniformTypeIdentifiers
25 |
26 | public struct STFileTypeSet: ExpressibleByArrayLiteral {
| `- note: consider making struct 'STFileTypeSet' conform to the 'Sendable' protocol
27 |
28 | public let rawValue: Set<STFileType>
:
37 |
38 | public static let videos: STFileTypeSet = [.mp4, .m4v, .m4p, .f4v, .f4p, .avi, .wmv, .flv, .quicktime]
39 | public static let audios: STFileTypeSet = [.amr, .mp3, .ogg, .flac, .wav, .mid, .m4a, .m4b, .f4a, .f4b, .opus]
| |- warning: static property 'audios' is not concurrency-safe because non-'Sendable' type 'STFileTypeSet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'audios' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | public static let images: STFileTypeSet = [.avif, .jxr, .flif, .pdf, .png, .jpeg, .gif, .webp, .tiff, .bmp, .psd,
41 | .cr2, .cr3, .mif1, .msf1, .heic, .heix, .hevc, .hevx]
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:40:23: warning: static property 'images' is not concurrency-safe because non-'Sendable' type 'STFileTypeSet' may have shared mutable state; this is an error in the Swift 6 language mode
24 | import UniformTypeIdentifiers
25 |
26 | public struct STFileTypeSet: ExpressibleByArrayLiteral {
| `- note: consider making struct 'STFileTypeSet' conform to the 'Sendable' protocol
27 |
28 | public let rawValue: Set<STFileType>
:
38 | public static let videos: STFileTypeSet = [.mp4, .m4v, .m4p, .f4v, .f4p, .avi, .wmv, .flv, .quicktime]
39 | public static let audios: STFileTypeSet = [.amr, .mp3, .ogg, .flac, .wav, .mid, .m4a, .m4b, .f4a, .f4b, .opus]
40 | public static let images: STFileTypeSet = [.avif, .jxr, .flif, .pdf, .png, .jpeg, .gif, .webp, .tiff, .bmp, .psd,
| |- warning: static property 'images' is not concurrency-safe because non-'Sendable' type 'STFileTypeSet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'images' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | .cr2, .cr3, .mif1, .msf1, .heic, .heix, .hevc, .hevx]
42 | public static let applications: STFileTypeSet = [.z, .ar, .rpm, .deb, .crx, .cab, .xz, .nes, .ps, .eot,
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:42:23: warning: static property 'applications' is not concurrency-safe because non-'Sendable' type 'STFileTypeSet' may have shared mutable state; this is an error in the Swift 6 language mode
24 | import UniformTypeIdentifiers
25 |
26 | public struct STFileTypeSet: ExpressibleByArrayLiteral {
| `- note: consider making struct 'STFileTypeSet' conform to the 'Sendable' protocol
27 |
28 | public let rawValue: Set<STFileType>
:
40 | public static let images: STFileTypeSet = [.avif, .jxr, .flif, .pdf, .png, .jpeg, .gif, .webp, .tiff, .bmp, .psd,
41 | .cr2, .cr3, .mif1, .msf1, .heic, .heix, .hevc, .hevx]
42 | public static let applications: STFileTypeSet = [.z, .ar, .rpm, .deb, .crx, .cab, .xz, .nes, .ps, .eot,
| |- warning: static property 'applications' is not concurrency-safe because non-'Sendable' type 'STFileTypeSet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'applications' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | .ttf, .otf, .woff, .woff2, .rtf, .dmg, .bz2, ._7z, .gz,
44 | .zip, .xpi, .epub, .ico, .sqlite, .tar, .rar, .gzip, .exe,
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:114:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Data.MimeType]' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
112 | }
113 |
114 | public static let all = imageSet + audioSet + videoSet + applicationSet
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Data.MimeType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 | public static let audioSet = [
116 | mid, mp3,
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:126:27: warning: static property 'imageSet' is not concurrency-safe because non-'Sendable' type '[Data.MimeType]' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
124 | avi, wmv, quicktime
125 | ]
126 | public static let imageSet = [
| |- warning: static property 'imageSet' is not concurrency-safe because non-'Sendable' type '[Data.MimeType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'imageSet' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
127 | flif, bmp, ico, jpeg, png, gif, webp,
128 | jxr,
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:115:27: warning: static property 'audioSet' is not concurrency-safe because non-'Sendable' type '[Data.MimeType]' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
113 |
114 | public static let all = imageSet + audioSet + videoSet + applicationSet
115 | public static let audioSet = [
| |- warning: static property 'audioSet' is not concurrency-safe because non-'Sendable' type '[Data.MimeType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'audioSet' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
116 | mid, mp3,
117 | // aac,
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:121:27: warning: static property 'videoSet' is not concurrency-safe because non-'Sendable' type '[Data.MimeType]' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
119 | f4a, f4b,
120 | wav, amr, opus, ogg, flac]
121 | public static let videoSet = [
| |- warning: static property 'videoSet' is not concurrency-safe because non-'Sendable' type '[Data.MimeType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'videoSet' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 | flv,
123 | m4v, m4p, f4v, f4p,
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:134:27: warning: static property 'applicationSet' is not concurrency-safe because non-'Sendable' type '[Data.MimeType]' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
132 | mif1, msf1, heic, heix, hevc, hevx
133 | ]
134 | public static let applicationSet = [
| |- warning: static property 'applicationSet' is not concurrency-safe because non-'Sendable' type '[Data.MimeType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'applicationSet' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 | sqlite, crx, rpm, nes, msi, mxf, lz, ps, xz,
136 | ttf, otf, rtf, pdf, exe, dmg, _7z, bz2, gz, rar,
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:142:27: warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
140 | // MARK: - Audio Types
141 | // public static let aac = MimeType(.aac, mime: "audio/aac", ext: "aac", [0xFF, 0xF1])
142 | public static let mid = MimeType(.mid, mime: "audio/midi", ext: "mid", [0x4D, 0x54, 0x68, 0x64])
| |- warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mid' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 | public static let mp3 = MimeType(.mp3, mime: "audio/mpeg", ext: "mp3") { data in
144 | (data(0...2) == [0x49, 0x44, 0x33]) || (data(0...1) == [0xFF, 0xFB])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:143:27: warning: static property 'mp3' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
141 | // public static let aac = MimeType(.aac, mime: "audio/aac", ext: "aac", [0xFF, 0xF1])
142 | public static let mid = MimeType(.mid, mime: "audio/midi", ext: "mid", [0x4D, 0x54, 0x68, 0x64])
143 | public static let mp3 = MimeType(.mp3, mime: "audio/mpeg", ext: "mp3") { data in
| |- warning: static property 'mp3' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mp3' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
144 | (data(0...2) == [0x49, 0x44, 0x33]) || (data(0...1) == [0xFF, 0xFB])
145 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:148:27: warning: static property 'm4b' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
146 |
147 | public static let m4a = MimeType(.m4a, mime: "audio/x-m4a", ext: "m4a") { ftypIdentifiable($0) == "M4A" }
148 | public static let m4b = MimeType(.m4b, mime: "audio/mp4", ext: "m4b") { ftypIdentifiable($0) == "M4B" }
| |- warning: static property 'm4b' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'm4b' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
149 | public static let f4a = MimeType(.f4a, mime: "audio/mp4", ext: "f4a") { ftypIdentifiable($0) == "F4A" }
150 | public static let f4b = MimeType(.f4b, mime: "audio/mp4", ext: "f4b") { ftypIdentifiable($0) == "F4B" }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:147:27: warning: static property 'm4a' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
145 | }
146 |
147 | public static let m4a = MimeType(.m4a, mime: "audio/x-m4a", ext: "m4a") { ftypIdentifiable($0) == "M4A" }
| |- warning: static property 'm4a' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'm4a' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 | public static let m4b = MimeType(.m4b, mime: "audio/mp4", ext: "m4b") { ftypIdentifiable($0) == "M4B" }
149 | public static let f4a = MimeType(.f4a, mime: "audio/mp4", ext: "f4a") { ftypIdentifiable($0) == "F4A" }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:149:27: warning: static property 'f4a' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
147 | public static let m4a = MimeType(.m4a, mime: "audio/x-m4a", ext: "m4a") { ftypIdentifiable($0) == "M4A" }
148 | public static let m4b = MimeType(.m4b, mime: "audio/mp4", ext: "m4b") { ftypIdentifiable($0) == "M4B" }
149 | public static let f4a = MimeType(.f4a, mime: "audio/mp4", ext: "f4a") { ftypIdentifiable($0) == "F4A" }
| |- warning: static property 'f4a' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'f4a' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
150 | public static let f4b = MimeType(.f4b, mime: "audio/mp4", ext: "f4b") { ftypIdentifiable($0) == "F4B" }
151 |
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:150:27: warning: static property 'f4b' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
148 | public static let m4b = MimeType(.m4b, mime: "audio/mp4", ext: "m4b") { ftypIdentifiable($0) == "M4B" }
149 | public static let f4a = MimeType(.f4a, mime: "audio/mp4", ext: "f4a") { ftypIdentifiable($0) == "F4A" }
150 | public static let f4b = MimeType(.f4b, mime: "audio/mp4", ext: "f4b") { ftypIdentifiable($0) == "F4B" }
| |- warning: static property 'f4b' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'f4b' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
151 |
152 | public static let wav = MimeType(.wav, mime: "audio/x-wav", ext: "wav") { data in
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:152:27: warning: static property 'wav' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
150 | public static let f4b = MimeType(.f4b, mime: "audio/mp4", ext: "f4b") { ftypIdentifiable($0) == "F4B" }
151 |
152 | public static let wav = MimeType(.wav, mime: "audio/x-wav", ext: "wav") { data in
| |- warning: static property 'wav' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wav' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
153 | (data(0...3) == [0x52, 0x49, 0x46, 0x46]) && (data(8...11) == [0x57, 0x41, 0x56, 0x45])
154 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:155:27: warning: static property 'amr' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
153 | (data(0...3) == [0x52, 0x49, 0x46, 0x46]) && (data(8...11) == [0x57, 0x41, 0x56, 0x45])
154 | }
155 | public static let amr = MimeType(.opus, mime: "audio/amr", ext: "amr", [0x23, 0x21, 0x41, 0x4D, 0x52, 0x0A])
| |- warning: static property 'amr' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'amr' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
156 | public static let opus = MimeType(.opus, mime: "audio/opus", ext: "opus", [0x4F, 0x70, 0x75, 0x73, 0x48, 0x65, 0x61, 0x64], at: 28)
157 | public static let ogg = MimeType(.ogg, mime: "audio/ogg", ext: "ogg", [0x4F, 0x67, 0x67, 0x53])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:156:27: warning: static property 'opus' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
154 | }
155 | public static let amr = MimeType(.opus, mime: "audio/amr", ext: "amr", [0x23, 0x21, 0x41, 0x4D, 0x52, 0x0A])
156 | public static let opus = MimeType(.opus, mime: "audio/opus", ext: "opus", [0x4F, 0x70, 0x75, 0x73, 0x48, 0x65, 0x61, 0x64], at: 28)
| |- warning: static property 'opus' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'opus' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
157 | public static let ogg = MimeType(.ogg, mime: "audio/ogg", ext: "ogg", [0x4F, 0x67, 0x67, 0x53])
158 | public static let flac = MimeType(.flac, mime: "audio/x-flac", ext: "flac", [0x66, 0x4C, 0x61, 0x43])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:157:27: warning: static property 'ogg' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
155 | public static let amr = MimeType(.opus, mime: "audio/amr", ext: "amr", [0x23, 0x21, 0x41, 0x4D, 0x52, 0x0A])
156 | public static let opus = MimeType(.opus, mime: "audio/opus", ext: "opus", [0x4F, 0x70, 0x75, 0x73, 0x48, 0x65, 0x61, 0x64], at: 28)
157 | public static let ogg = MimeType(.ogg, mime: "audio/ogg", ext: "ogg", [0x4F, 0x67, 0x67, 0x53])
| |- warning: static property 'ogg' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ogg' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 | public static let flac = MimeType(.flac, mime: "audio/x-flac", ext: "flac", [0x66, 0x4C, 0x61, 0x43])
159 |
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:158:27: warning: static property 'flac' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
156 | public static let opus = MimeType(.opus, mime: "audio/opus", ext: "opus", [0x4F, 0x70, 0x75, 0x73, 0x48, 0x65, 0x61, 0x64], at: 28)
157 | public static let ogg = MimeType(.ogg, mime: "audio/ogg", ext: "ogg", [0x4F, 0x67, 0x67, 0x53])
158 | public static let flac = MimeType(.flac, mime: "audio/x-flac", ext: "flac", [0x66, 0x4C, 0x61, 0x43])
| |- warning: static property 'flac' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'flac' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 |
160 | // MARK: - Video Types
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:161:27: warning: static property 'flv' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
159 |
160 | // MARK: - Video Types
161 | public static let flv = MimeType(.flv, mime: "video/x-flv", ext: "flv", [0x46, 0x4C, 0x56, 0x01])
| |- warning: static property 'flv' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'flv' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
162 |
163 | public static let m4v = MimeType(.m4v, mime: "video/x-m4v", ext: "m4v") { ["M4V", "M4VH", "M4VP"].contains(ftypIdentifiable($0)) }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:163:27: warning: static property 'm4v' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
161 | public static let flv = MimeType(.flv, mime: "video/x-flv", ext: "flv", [0x46, 0x4C, 0x56, 0x01])
162 |
163 | public static let m4v = MimeType(.m4v, mime: "video/x-m4v", ext: "m4v") { ["M4V", "M4VH", "M4VP"].contains(ftypIdentifiable($0)) }
| |- warning: static property 'm4v' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'm4v' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
164 | public static let m4p = MimeType(.m4p, mime: "video/mp4", ext: "m4p") { ftypIdentifiable($0) == "M4P" }
165 | public static let f4v = MimeType(.f4v, mime: "video/mp4", ext: "f4v") { ftypIdentifiable($0) == "F4V" }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:164:27: warning: static property 'm4p' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
162 |
163 | public static let m4v = MimeType(.m4v, mime: "video/x-m4v", ext: "m4v") { ["M4V", "M4VH", "M4VP"].contains(ftypIdentifiable($0)) }
164 | public static let m4p = MimeType(.m4p, mime: "video/mp4", ext: "m4p") { ftypIdentifiable($0) == "M4P" }
| |- warning: static property 'm4p' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'm4p' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
165 | public static let f4v = MimeType(.f4v, mime: "video/mp4", ext: "f4v") { ftypIdentifiable($0) == "F4V" }
166 | public static let f4p = MimeType(.f4p, mime: "video/mp4", ext: "f4p") { ftypIdentifiable($0) == "F4P" }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:165:27: warning: static property 'f4v' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
163 | public static let m4v = MimeType(.m4v, mime: "video/x-m4v", ext: "m4v") { ["M4V", "M4VH", "M4VP"].contains(ftypIdentifiable($0)) }
164 | public static let m4p = MimeType(.m4p, mime: "video/mp4", ext: "m4p") { ftypIdentifiable($0) == "M4P" }
165 | public static let f4v = MimeType(.f4v, mime: "video/mp4", ext: "f4v") { ftypIdentifiable($0) == "F4V" }
| |- warning: static property 'f4v' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'f4v' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
166 | public static let f4p = MimeType(.f4p, mime: "video/mp4", ext: "f4p") { ftypIdentifiable($0) == "F4P" }
167 |
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:166:27: warning: static property 'f4p' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
164 | public static let m4p = MimeType(.m4p, mime: "video/mp4", ext: "m4p") { ftypIdentifiable($0) == "M4P" }
165 | public static let f4v = MimeType(.f4v, mime: "video/mp4", ext: "f4v") { ftypIdentifiable($0) == "F4V" }
166 | public static let f4p = MimeType(.f4p, mime: "video/mp4", ext: "f4p") { ftypIdentifiable($0) == "F4P" }
| |- warning: static property 'f4p' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'f4p' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
167 |
168 | public static let avi = MimeType(.avi, mime: "video/x-msvideo", ext: "avi") { data in
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:168:27: warning: static property 'avi' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
166 | public static let f4p = MimeType(.f4p, mime: "video/mp4", ext: "f4p") { ftypIdentifiable($0) == "F4P" }
167 |
168 | public static let avi = MimeType(.avi, mime: "video/x-msvideo", ext: "avi") { data in
| |- warning: static property 'avi' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'avi' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 | (data(0...3) == [0x52, 0x49, 0x46, 0x46]) && (data(8...10) == [0x41, 0x56, 0x49])
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:171:27: warning: static property 'wmv' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
169 | (data(0...3) == [0x52, 0x49, 0x46, 0x46]) && (data(8...10) == [0x41, 0x56, 0x49])
170 | }
171 | public static let wmv = MimeType(.wmv, mime: "video/x-ms-wmv", ext: "wmv", [0x30, 0x26, 0xB2, 0x75, 0x8E, 0x66, 0xCF, 0x11, 0xA6, 0xD9])
| |- warning: static property 'wmv' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wmv' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
172 | public static let mp4 = MimeType(.mp4, mime: "video/mp4", ext: "mp4") { data in
173 | (data(0...2) == [0x00, 0x00, 0x00]
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:182:27: warning: static property 'quicktime' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
180 | || (data(0...11) == [0x00, 0x00, 0x00, 0x1C, 0x66, 0x74, 0x79, 0x70, 0x6D, 0x70, 0x34, 0x32])
181 | }
182 | public static let quicktime = MimeType(.quicktime, mime: "video/quicktime", ext: "mov") { ftypIdentifiable($0) == "qt" }
| |- warning: static property 'quicktime' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quicktime' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
183 |
184 | // MARK: - Image Types
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:186:27: warning: static property 'flif' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
184 | // MARK: - Image Types
185 | /// https://zh.wikipedia.org/wiki/自由无损图像格式
186 | public static let flif = MimeType(.flif, mime: "image/flif", ext: "flif", [0x46, 0x4C, 0x49, 0x46])
| |- warning: static property 'flif' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'flif' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
187 | public static let bmp = MimeType(.bmp, mime: "image/bmp", ext: "bmp", [0x42, 0x4D])
188 | public static let ico = MimeType(.ico, mime: "image/x-icon", ext: "ico", [0x00, 0x00, 0x01, 0x00])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:187:27: warning: static property 'bmp' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
185 | /// https://zh.wikipedia.org/wiki/自由无损图像格式
186 | public static let flif = MimeType(.flif, mime: "image/flif", ext: "flif", [0x46, 0x4C, 0x49, 0x46])
187 | public static let bmp = MimeType(.bmp, mime: "image/bmp", ext: "bmp", [0x42, 0x4D])
| |- warning: static property 'bmp' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bmp' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
188 | public static let ico = MimeType(.ico, mime: "image/x-icon", ext: "ico", [0x00, 0x00, 0x01, 0x00])
189 | public static let jpeg = MimeType(.jpeg, mime: "image/jpeg", ext: "jpg", [0xFF, 0xD8, 0xFF])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:188:27: warning: static property 'ico' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
186 | public static let flif = MimeType(.flif, mime: "image/flif", ext: "flif", [0x46, 0x4C, 0x49, 0x46])
187 | public static let bmp = MimeType(.bmp, mime: "image/bmp", ext: "bmp", [0x42, 0x4D])
188 | public static let ico = MimeType(.ico, mime: "image/x-icon", ext: "ico", [0x00, 0x00, 0x01, 0x00])
| |- warning: static property 'ico' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ico' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
189 | public static let jpeg = MimeType(.jpeg, mime: "image/jpeg", ext: "jpg", [0xFF, 0xD8, 0xFF])
190 | public static let png = MimeType(.png, mime: "image/png", ext: "png", [0x89, 0x50, 0x4E, 0x47])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:189:27: warning: static property 'jpeg' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
187 | public static let bmp = MimeType(.bmp, mime: "image/bmp", ext: "bmp", [0x42, 0x4D])
188 | public static let ico = MimeType(.ico, mime: "image/x-icon", ext: "ico", [0x00, 0x00, 0x01, 0x00])
189 | public static let jpeg = MimeType(.jpeg, mime: "image/jpeg", ext: "jpg", [0xFF, 0xD8, 0xFF])
| |- warning: static property 'jpeg' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'jpeg' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
190 | public static let png = MimeType(.png, mime: "image/png", ext: "png", [0x89, 0x50, 0x4E, 0x47])
191 | public static let gif = MimeType(.gif, mime: "image/gif", ext: "gif", [0x47, 0x49, 0x46])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:190:27: warning: static property 'png' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
188 | public static let ico = MimeType(.ico, mime: "image/x-icon", ext: "ico", [0x00, 0x00, 0x01, 0x00])
189 | public static let jpeg = MimeType(.jpeg, mime: "image/jpeg", ext: "jpg", [0xFF, 0xD8, 0xFF])
190 | public static let png = MimeType(.png, mime: "image/png", ext: "png", [0x89, 0x50, 0x4E, 0x47])
| |- warning: static property 'png' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'png' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
191 | public static let gif = MimeType(.gif, mime: "image/gif", ext: "gif", [0x47, 0x49, 0x46])
192 | public static let webp = MimeType(.webp, mime: "image/webp", ext: "webp", [0x57, 0x45, 0x42, 0x50], at: 8)
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:191:27: warning: static property 'gif' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
189 | public static let jpeg = MimeType(.jpeg, mime: "image/jpeg", ext: "jpg", [0xFF, 0xD8, 0xFF])
190 | public static let png = MimeType(.png, mime: "image/png", ext: "png", [0x89, 0x50, 0x4E, 0x47])
191 | public static let gif = MimeType(.gif, mime: "image/gif", ext: "gif", [0x47, 0x49, 0x46])
| |- warning: static property 'gif' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gif' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
192 | public static let webp = MimeType(.webp, mime: "image/webp", ext: "webp", [0x57, 0x45, 0x42, 0x50], at: 8)
193 | public static let jxr = MimeType(.jxr, mime: "image/vnd.ms-photo", ext: "jxr", [0x49, 0x49, 0xBC])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:192:27: warning: static property 'webp' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
190 | public static let png = MimeType(.png, mime: "image/png", ext: "png", [0x89, 0x50, 0x4E, 0x47])
191 | public static let gif = MimeType(.gif, mime: "image/gif", ext: "gif", [0x47, 0x49, 0x46])
192 | public static let webp = MimeType(.webp, mime: "image/webp", ext: "webp", [0x57, 0x45, 0x42, 0x50], at: 8)
| |- warning: static property 'webp' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webp' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 | public static let jxr = MimeType(.jxr, mime: "image/vnd.ms-photo", ext: "jxr", [0x49, 0x49, 0xBC])
194 | // public static let cr3 = MimeType(.cr3, mime: "image/x-canon-cr3", ext: "crx") { ftypIdentifiable($0) == "crx" }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:193:27: warning: static property 'jxr' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
191 | public static let gif = MimeType(.gif, mime: "image/gif", ext: "gif", [0x47, 0x49, 0x46])
192 | public static let webp = MimeType(.webp, mime: "image/webp", ext: "webp", [0x57, 0x45, 0x42, 0x50], at: 8)
193 | public static let jxr = MimeType(.jxr, mime: "image/vnd.ms-photo", ext: "jxr", [0x49, 0x49, 0xBC])
| |- warning: static property 'jxr' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'jxr' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
194 | // public static let cr3 = MimeType(.cr3, mime: "image/x-canon-cr3", ext: "crx") { ftypIdentifiable($0) == "crx" }
195 | public static let cr2 = MimeType(.cr2, mime: "image/x-canon-cr2", ext: "cr2") { data in
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:195:27: warning: static property 'cr2' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
193 | public static let jxr = MimeType(.jxr, mime: "image/vnd.ms-photo", ext: "jxr", [0x49, 0x49, 0xBC])
194 | // public static let cr3 = MimeType(.cr3, mime: "image/x-canon-cr3", ext: "crx") { ftypIdentifiable($0) == "crx" }
195 | public static let cr2 = MimeType(.cr2, mime: "image/x-canon-cr2", ext: "cr2") { data in
| |- warning: static property 'cr2' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cr2' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
196 | tiff.condition(data) && (data(8...9) == [0x43, 0x52])
197 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:198:27: warning: static property 'tiff' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
196 | tiff.condition(data) && (data(8...9) == [0x43, 0x52])
197 | }
198 | public static let tiff = MimeType(.tiff, mime: "image/tiff", ext: "tif") { data in
| |- warning: static property 'tiff' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'tiff' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
199 | return data(0...3) == [0x49, 0x49, 0x2A, 0x00] || data(0...3) == [0x4D, 0x4D, 0x00, 0x2A]
200 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:202:27: warning: static property 'avif' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
200 | }
201 |
202 | public static let avif = MimeType(.avif, mime: "image/avif", ext: "avif") { ["avif", "avis"].contains(ftypIdentifiable($0)) }
| |- warning: static property 'avif' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'avif' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
203 |
204 | public static let hevc = MimeType(.hevc, mime: "image/heic-sequence", ext: "heic") { ftypIdentifiable($0) == "hevc" }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:210:27: warning: static property 'mif1' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
208 | public static let heic = MimeType(.heic, mime: "image/heic", ext: "heic") { ftypIdentifiable($0) == "heic" }
209 |
210 | public static let mif1 = MimeType(.mif1, mime: "image/heif", ext: "heic") { ftypIdentifiable($0) == "mif1" }
| |- warning: static property 'mif1' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mif1' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
211 | public static let msf1 = MimeType(.msf1, mime: "image/heif-sequence", ext: "heic") { ftypIdentifiable($0) == "msf1" }
212 |
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:211:27: warning: static property 'msf1' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
209 |
210 | public static let mif1 = MimeType(.mif1, mime: "image/heif", ext: "heic") { ftypIdentifiable($0) == "mif1" }
211 | public static let msf1 = MimeType(.msf1, mime: "image/heif-sequence", ext: "heic") { ftypIdentifiable($0) == "msf1" }
| |- warning: static property 'msf1' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'msf1' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
212 |
213 | // MARK: - Application Types
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:208:27: warning: static property 'heic' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
206 |
207 | public static let heix = MimeType(.heix, mime: "image/heic", ext: "heix") { ftypIdentifiable($0) == "hevc" }
208 | public static let heic = MimeType(.heic, mime: "image/heic", ext: "heic") { ftypIdentifiable($0) == "heic" }
| |- warning: static property 'heic' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'heic' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
209 |
210 | public static let mif1 = MimeType(.mif1, mime: "image/heif", ext: "heic") { ftypIdentifiable($0) == "mif1" }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:207:27: warning: static property 'heix' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
205 | public static let hevx = MimeType(.hevx, mime: "image/heic-sequence", ext: "heic") { ftypIdentifiable($0) == "hevx" }
206 |
207 | public static let heix = MimeType(.heix, mime: "image/heic", ext: "heix") { ftypIdentifiable($0) == "hevc" }
| |- warning: static property 'heix' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'heix' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
208 | public static let heic = MimeType(.heic, mime: "image/heic", ext: "heic") { ftypIdentifiable($0) == "heic" }
209 |
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:204:27: warning: static property 'hevc' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
202 | public static let avif = MimeType(.avif, mime: "image/avif", ext: "avif") { ["avif", "avis"].contains(ftypIdentifiable($0)) }
203 |
204 | public static let hevc = MimeType(.hevc, mime: "image/heic-sequence", ext: "heic") { ftypIdentifiable($0) == "hevc" }
| |- warning: static property 'hevc' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hevc' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
205 | public static let hevx = MimeType(.hevx, mime: "image/heic-sequence", ext: "heic") { ftypIdentifiable($0) == "hevx" }
206 |
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:205:27: warning: static property 'hevx' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
203 |
204 | public static let hevc = MimeType(.hevc, mime: "image/heic-sequence", ext: "heic") { ftypIdentifiable($0) == "hevc" }
205 | public static let hevx = MimeType(.hevx, mime: "image/heic-sequence", ext: "heic") { ftypIdentifiable($0) == "hevx" }
| |- warning: static property 'hevx' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hevx' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
206 |
207 | public static let heix = MimeType(.heix, mime: "image/heic", ext: "heix") { ftypIdentifiable($0) == "hevc" }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:214:27: warning: static property 'sqlite' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
212 |
213 | // MARK: - Application Types
214 | public static let sqlite = MimeType(.sqlite, mime: "application/x-sqlite3", ext: "sqlite", [0x53, 0x51, 0x4C, 0x69])
| |- warning: static property 'sqlite' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sqlite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
215 | public static let crx = MimeType(.crx, mime: "application/x-google-chrome-extension", ext: "crx", [0x43, 0x72, 0x32, 0x34])
216 | public static let rpm = MimeType(.rpm, mime: "application/x-rpm", ext: "rpm", [0xED, 0xAB, 0xEE, 0xDB])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:215:27: warning: static property 'crx' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
213 | // MARK: - Application Types
214 | public static let sqlite = MimeType(.sqlite, mime: "application/x-sqlite3", ext: "sqlite", [0x53, 0x51, 0x4C, 0x69])
215 | public static let crx = MimeType(.crx, mime: "application/x-google-chrome-extension", ext: "crx", [0x43, 0x72, 0x32, 0x34])
| |- warning: static property 'crx' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'crx' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
216 | public static let rpm = MimeType(.rpm, mime: "application/x-rpm", ext: "rpm", [0xED, 0xAB, 0xEE, 0xDB])
217 | public static let nes = MimeType(.nes, mime: "application/x-nintendo-nes-rom", ext: "nes", [0x4E, 0x45, 0x53, 0x1A])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:216:27: warning: static property 'rpm' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
214 | public static let sqlite = MimeType(.sqlite, mime: "application/x-sqlite3", ext: "sqlite", [0x53, 0x51, 0x4C, 0x69])
215 | public static let crx = MimeType(.crx, mime: "application/x-google-chrome-extension", ext: "crx", [0x43, 0x72, 0x32, 0x34])
216 | public static let rpm = MimeType(.rpm, mime: "application/x-rpm", ext: "rpm", [0xED, 0xAB, 0xEE, 0xDB])
| |- warning: static property 'rpm' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rpm' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
217 | public static let nes = MimeType(.nes, mime: "application/x-nintendo-nes-rom", ext: "nes", [0x4E, 0x45, 0x53, 0x1A])
218 | public static let msi = MimeType(.msi, mime: "application/x-msi", ext: "msi", [0xD0, 0xCF, 0x11, 0xE0, 0xA1, 0xB1, 0x1A, 0xE1])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:217:27: warning: static property 'nes' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
215 | public static let crx = MimeType(.crx, mime: "application/x-google-chrome-extension", ext: "crx", [0x43, 0x72, 0x32, 0x34])
216 | public static let rpm = MimeType(.rpm, mime: "application/x-rpm", ext: "rpm", [0xED, 0xAB, 0xEE, 0xDB])
217 | public static let nes = MimeType(.nes, mime: "application/x-nintendo-nes-rom", ext: "nes", [0x4E, 0x45, 0x53, 0x1A])
| |- warning: static property 'nes' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
218 | public static let msi = MimeType(.msi, mime: "application/x-msi", ext: "msi", [0xD0, 0xCF, 0x11, 0xE0, 0xA1, 0xB1, 0x1A, 0xE1])
219 | public static let mxf = MimeType(.mxf, mime: "application/mxf", ext: "mxf", [0x06, 0x0E, 0x2B, 0x34, 0x02, 0x05, 0x01, 0x01, 0x0D, 0x01, 0x02, 0x01, 0x01, 0x02])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:218:27: warning: static property 'msi' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
216 | public static let rpm = MimeType(.rpm, mime: "application/x-rpm", ext: "rpm", [0xED, 0xAB, 0xEE, 0xDB])
217 | public static let nes = MimeType(.nes, mime: "application/x-nintendo-nes-rom", ext: "nes", [0x4E, 0x45, 0x53, 0x1A])
218 | public static let msi = MimeType(.msi, mime: "application/x-msi", ext: "msi", [0xD0, 0xCF, 0x11, 0xE0, 0xA1, 0xB1, 0x1A, 0xE1])
| |- warning: static property 'msi' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'msi' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
219 | public static let mxf = MimeType(.mxf, mime: "application/mxf", ext: "mxf", [0x06, 0x0E, 0x2B, 0x34, 0x02, 0x05, 0x01, 0x01, 0x0D, 0x01, 0x02, 0x01, 0x01, 0x02])
220 | public static let lz = MimeType(.lz, mime: "application/x-lzip", ext: "lz", [0x4C, 0x5A, 0x49, 0x50])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:219:27: warning: static property 'mxf' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
217 | public static let nes = MimeType(.nes, mime: "application/x-nintendo-nes-rom", ext: "nes", [0x4E, 0x45, 0x53, 0x1A])
218 | public static let msi = MimeType(.msi, mime: "application/x-msi", ext: "msi", [0xD0, 0xCF, 0x11, 0xE0, 0xA1, 0xB1, 0x1A, 0xE1])
219 | public static let mxf = MimeType(.mxf, mime: "application/mxf", ext: "mxf", [0x06, 0x0E, 0x2B, 0x34, 0x02, 0x05, 0x01, 0x01, 0x0D, 0x01, 0x02, 0x01, 0x01, 0x02])
| |- warning: static property 'mxf' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mxf' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
220 | public static let lz = MimeType(.lz, mime: "application/x-lzip", ext: "lz", [0x4C, 0x5A, 0x49, 0x50])
221 | public static let ar = MimeType(.ar, mime: "application/x-unix-archive", ext: "ar", [0x21, 0x3C, 0x61, 0x72, 0x63, 0x68, 0x3E])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:220:27: warning: static property 'lz' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
218 | public static let msi = MimeType(.msi, mime: "application/x-msi", ext: "msi", [0xD0, 0xCF, 0x11, 0xE0, 0xA1, 0xB1, 0x1A, 0xE1])
219 | public static let mxf = MimeType(.mxf, mime: "application/mxf", ext: "mxf", [0x06, 0x0E, 0x2B, 0x34, 0x02, 0x05, 0x01, 0x01, 0x0D, 0x01, 0x02, 0x01, 0x01, 0x02])
220 | public static let lz = MimeType(.lz, mime: "application/x-lzip", ext: "lz", [0x4C, 0x5A, 0x49, 0x50])
| |- warning: static property 'lz' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lz' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
221 | public static let ar = MimeType(.ar, mime: "application/x-unix-archive", ext: "ar", [0x21, 0x3C, 0x61, 0x72, 0x63, 0x68, 0x3E])
222 | public static let ps = MimeType(.ps, mime: "application/postscript", ext: "ps", [0x25, 0x21])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:222:27: warning: static property 'ps' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
220 | public static let lz = MimeType(.lz, mime: "application/x-lzip", ext: "lz", [0x4C, 0x5A, 0x49, 0x50])
221 | public static let ar = MimeType(.ar, mime: "application/x-unix-archive", ext: "ar", [0x21, 0x3C, 0x61, 0x72, 0x63, 0x68, 0x3E])
222 | public static let ps = MimeType(.ps, mime: "application/postscript", ext: "ps", [0x25, 0x21])
| |- warning: static property 'ps' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ps' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
223 | public static let xz = MimeType(.xz, mime: "application/x-xz", ext: "xz", [0xFD, 0x37, 0x7A, 0x58, 0x5A, 0x00])
224 | public static let ttf = MimeType(.ttf, mime: "application/font-sfnt", ext: "ttf", [0x00, 0x01, 0x00, 0x00, 0x00])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:223:27: warning: static property 'xz' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
221 | public static let ar = MimeType(.ar, mime: "application/x-unix-archive", ext: "ar", [0x21, 0x3C, 0x61, 0x72, 0x63, 0x68, 0x3E])
222 | public static let ps = MimeType(.ps, mime: "application/postscript", ext: "ps", [0x25, 0x21])
223 | public static let xz = MimeType(.xz, mime: "application/x-xz", ext: "xz", [0xFD, 0x37, 0x7A, 0x58, 0x5A, 0x00])
| |- warning: static property 'xz' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'xz' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
224 | public static let ttf = MimeType(.ttf, mime: "application/font-sfnt", ext: "ttf", [0x00, 0x01, 0x00, 0x00, 0x00])
225 | public static let otf = MimeType(.otf, mime: "application/font-sfnt", ext: "otf", [0x4F, 0x54, 0x54, 0x4F, 0x00])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:224:27: warning: static property 'ttf' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
222 | public static let ps = MimeType(.ps, mime: "application/postscript", ext: "ps", [0x25, 0x21])
223 | public static let xz = MimeType(.xz, mime: "application/x-xz", ext: "xz", [0xFD, 0x37, 0x7A, 0x58, 0x5A, 0x00])
224 | public static let ttf = MimeType(.ttf, mime: "application/font-sfnt", ext: "ttf", [0x00, 0x01, 0x00, 0x00, 0x00])
| |- warning: static property 'ttf' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ttf' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
225 | public static let otf = MimeType(.otf, mime: "application/font-sfnt", ext: "otf", [0x4F, 0x54, 0x54, 0x4F, 0x00])
226 | public static let rtf = MimeType(.rtf, mime: "application/rtf", ext: "rtf", [0x7B, 0x5C, 0x72, 0x74, 0x66])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:225:27: warning: static property 'otf' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
223 | public static let xz = MimeType(.xz, mime: "application/x-xz", ext: "xz", [0xFD, 0x37, 0x7A, 0x58, 0x5A, 0x00])
224 | public static let ttf = MimeType(.ttf, mime: "application/font-sfnt", ext: "ttf", [0x00, 0x01, 0x00, 0x00, 0x00])
225 | public static let otf = MimeType(.otf, mime: "application/font-sfnt", ext: "otf", [0x4F, 0x54, 0x54, 0x4F, 0x00])
| |- warning: static property 'otf' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'otf' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
226 | public static let rtf = MimeType(.rtf, mime: "application/rtf", ext: "rtf", [0x7B, 0x5C, 0x72, 0x74, 0x66])
227 | public static let pdf = MimeType(.pdf, mime: "application/pdf", ext: "pdf", [0x25, 0x50, 0x44, 0x46])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:226:27: warning: static property 'rtf' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
224 | public static let ttf = MimeType(.ttf, mime: "application/font-sfnt", ext: "ttf", [0x00, 0x01, 0x00, 0x00, 0x00])
225 | public static let otf = MimeType(.otf, mime: "application/font-sfnt", ext: "otf", [0x4F, 0x54, 0x54, 0x4F, 0x00])
226 | public static let rtf = MimeType(.rtf, mime: "application/rtf", ext: "rtf", [0x7B, 0x5C, 0x72, 0x74, 0x66])
| |- warning: static property 'rtf' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rtf' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
227 | public static let pdf = MimeType(.pdf, mime: "application/pdf", ext: "pdf", [0x25, 0x50, 0x44, 0x46])
228 | public static let exe = MimeType(.exe, mime: "application/x-msdownload", ext: "exe", [0x4D, 0x5A])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:227:27: warning: static property 'pdf' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
225 | public static let otf = MimeType(.otf, mime: "application/font-sfnt", ext: "otf", [0x4F, 0x54, 0x54, 0x4F, 0x00])
226 | public static let rtf = MimeType(.rtf, mime: "application/rtf", ext: "rtf", [0x7B, 0x5C, 0x72, 0x74, 0x66])
227 | public static let pdf = MimeType(.pdf, mime: "application/pdf", ext: "pdf", [0x25, 0x50, 0x44, 0x46])
| |- warning: static property 'pdf' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pdf' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
228 | public static let exe = MimeType(.exe, mime: "application/x-msdownload", ext: "exe", [0x4D, 0x5A])
229 | public static let dmg = MimeType(.dmg, mime: "application/x-apple-diskimage", ext: "dmg", [0x78, 0x01])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:228:27: warning: static property 'exe' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
226 | public static let rtf = MimeType(.rtf, mime: "application/rtf", ext: "rtf", [0x7B, 0x5C, 0x72, 0x74, 0x66])
227 | public static let pdf = MimeType(.pdf, mime: "application/pdf", ext: "pdf", [0x25, 0x50, 0x44, 0x46])
228 | public static let exe = MimeType(.exe, mime: "application/x-msdownload", ext: "exe", [0x4D, 0x5A])
| |- warning: static property 'exe' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'exe' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
229 | public static let dmg = MimeType(.dmg, mime: "application/x-apple-diskimage", ext: "dmg", [0x78, 0x01])
230 | public static let _7z = MimeType(._7z, mime: "application/x-7z-compressed", ext: "7z", [0x37, 0x7A, 0xBC, 0xAF, 0x27, 0x1C])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:229:27: warning: static property 'dmg' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
227 | public static let pdf = MimeType(.pdf, mime: "application/pdf", ext: "pdf", [0x25, 0x50, 0x44, 0x46])
228 | public static let exe = MimeType(.exe, mime: "application/x-msdownload", ext: "exe", [0x4D, 0x5A])
229 | public static let dmg = MimeType(.dmg, mime: "application/x-apple-diskimage", ext: "dmg", [0x78, 0x01])
| |- warning: static property 'dmg' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dmg' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
230 | public static let _7z = MimeType(._7z, mime: "application/x-7z-compressed", ext: "7z", [0x37, 0x7A, 0xBC, 0xAF, 0x27, 0x1C])
231 | public static let bz2 = MimeType(.bz2, mime: "application/x-bzip2", ext: "bz2", [0x42, 0x5A, 0x68])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:230:27: warning: static property '_7z' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
228 | public static let exe = MimeType(.exe, mime: "application/x-msdownload", ext: "exe", [0x4D, 0x5A])
229 | public static let dmg = MimeType(.dmg, mime: "application/x-apple-diskimage", ext: "dmg", [0x78, 0x01])
230 | public static let _7z = MimeType(._7z, mime: "application/x-7z-compressed", ext: "7z", [0x37, 0x7A, 0xBC, 0xAF, 0x27, 0x1C])
| |- warning: static property '_7z' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '_7z' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
231 | public static let bz2 = MimeType(.bz2, mime: "application/x-bzip2", ext: "bz2", [0x42, 0x5A, 0x68])
232 | public static let gz = MimeType(.gz, mime: "application/gzip", ext: "gz", [0x1F, 0x8B, 0x08])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:231:27: warning: static property 'bz2' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
229 | public static let dmg = MimeType(.dmg, mime: "application/x-apple-diskimage", ext: "dmg", [0x78, 0x01])
230 | public static let _7z = MimeType(._7z, mime: "application/x-7z-compressed", ext: "7z", [0x37, 0x7A, 0xBC, 0xAF, 0x27, 0x1C])
231 | public static let bz2 = MimeType(.bz2, mime: "application/x-bzip2", ext: "bz2", [0x42, 0x5A, 0x68])
| |- warning: static property 'bz2' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bz2' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
232 | public static let gz = MimeType(.gz, mime: "application/gzip", ext: "gz", [0x1F, 0x8B, 0x08])
233 | public static let tar = MimeType(.tar, mime: "application/x-tar", ext: "tar", [0x75, 0x73, 0x74, 0x61, 0x72], at: 257)
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:232:27: warning: static property 'gz' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
230 | public static let _7z = MimeType(._7z, mime: "application/x-7z-compressed", ext: "7z", [0x37, 0x7A, 0xBC, 0xAF, 0x27, 0x1C])
231 | public static let bz2 = MimeType(.bz2, mime: "application/x-bzip2", ext: "bz2", [0x42, 0x5A, 0x68])
232 | public static let gz = MimeType(.gz, mime: "application/gzip", ext: "gz", [0x1F, 0x8B, 0x08])
| |- warning: static property 'gz' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gz' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
233 | public static let tar = MimeType(.tar, mime: "application/x-tar", ext: "tar", [0x75, 0x73, 0x74, 0x61, 0x72], at: 257)
234 | public static let rar = MimeType(.rar, mime: "application/x-rar-compressed", ext: "rar") { data in
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:234:27: warning: static property 'rar' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
232 | public static let gz = MimeType(.gz, mime: "application/gzip", ext: "gz", [0x1F, 0x8B, 0x08])
233 | public static let tar = MimeType(.tar, mime: "application/x-tar", ext: "tar", [0x75, 0x73, 0x74, 0x61, 0x72], at: 257)
234 | public static let rar = MimeType(.rar, mime: "application/x-rar-compressed", ext: "rar") { data in
| |- warning: static property 'rar' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rar' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
235 | data(0...5) == [0x52, 0x61, 0x72, 0x21, 0x1A, 0x07] && (data(6...6) == [0x0] || data(6...6) == [0x1])
236 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:237:27: warning: static property 'eot' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
235 | data(0...5) == [0x52, 0x61, 0x72, 0x21, 0x1A, 0x07] && (data(6...6) == [0x0] || data(6...6) == [0x1])
236 | }
237 | public static let eot = MimeType(.eot, mime: "application/vnd.ms-fontobject", ext: "eot") { data in
| |- warning: static property 'eot' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eot' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
238 | data(34...35) == [0x4c, 0x50]
239 | && data(64...79) == Array(repeating: 0x00, count: 16)
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:242:27: warning: static property 'swf' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
240 | && data(82...82) != [0x00]
241 | }
242 | public static let swf = MimeType(.swf, mime: "application/x-shockwave-flash", ext: "swf") { data in
| |- warning: static property 'swf' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'swf' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
243 | (data(0...0) == [0x43] || data(0...0) == [0x46]) && (data(1...2) == [0x57, 0x53])
244 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:245:27: warning: static property 'xpi' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
243 | (data(0...0) == [0x43] || data(0...0) == [0x46]) && (data(1...2) == [0x57, 0x53])
244 | }
245 | public static let xpi = MimeType(.xpi, mime: "application/x-xpinstall", ext: "xpi") { data in
| |- warning: static property 'xpi' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'xpi' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
246 | data(0...3) == [0x50, 0x4B, 0x03, 0x04]
247 | && data(30...49) == [
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:261:27: warning: static property 'z' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
259 | 0x61, 0x6E, 0x2D, 0x62, 0x69, 0x6E, 0x61, 0x72, 0x79
260 | ])
261 | public static let z = MimeType(.z, mime: "application/x-compress", ext: "z") { data in
| |- warning: static property 'z' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'z' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
262 | data(0...1) == [0x1F, 0xA0] || data(0...1) == [0x1F, 0x9D]
263 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:264:27: warning: static property 'cab' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
262 | data(0...1) == [0x1F, 0xA0] || data(0...1) == [0x1F, 0x9D]
263 | }
264 | public static let cab = MimeType(.cab, mime: "application/vnd.ms-cab-compressed", ext: "cab") { data in
| |- warning: static property 'cab' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cab' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
265 | (data(0...3) == [0x4D, 0x53, 0x43, 0x46]) || (data(0...3) == [0x49, 0x53, 0x63, 0x28])
266 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:257:27: warning: static property 'deb' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
255 | && (data(3...3) == [0x4] || data(3...3) == [0x6] || data(3...3) == [0x8])
256 | }
257 | public static let deb = MimeType(.deb, mime: "application/x-deb", ext: "deb", [
| |- warning: static property 'deb' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'deb' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
258 | 0x21, 0x3C, 0x61, 0x72, 0x63, 0x68, 0x3E, 0x0A, 0x64, 0x65, 0x62, 0x69,
259 | 0x61, 0x6E, 0x2D, 0x62, 0x69, 0x6E, 0x61, 0x72, 0x79
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:221:27: warning: static property 'ar' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
219 | public static let mxf = MimeType(.mxf, mime: "application/mxf", ext: "mxf", [0x06, 0x0E, 0x2B, 0x34, 0x02, 0x05, 0x01, 0x01, 0x0D, 0x01, 0x02, 0x01, 0x01, 0x02])
220 | public static let lz = MimeType(.lz, mime: "application/x-lzip", ext: "lz", [0x4C, 0x5A, 0x49, 0x50])
221 | public static let ar = MimeType(.ar, mime: "application/x-unix-archive", ext: "ar", [0x21, 0x3C, 0x61, 0x72, 0x63, 0x68, 0x3E])
| |- warning: static property 'ar' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ar' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
222 | public static let ps = MimeType(.ps, mime: "application/postscript", ext: "ps", [0x25, 0x21])
223 | public static let xz = MimeType(.xz, mime: "application/x-xz", ext: "xz", [0xFD, 0x37, 0x7A, 0x58, 0x5A, 0x00])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:268:27: warning: static property 'woff' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
266 | }
267 |
268 | public static let woff = MimeType(.woff, mime: "application/font-woff", ext: "woff") { data in
| |- warning: static property 'woff' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'woff' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
269 | data(0...3) == [0x77, 0x4F, 0x46, 0x46]
270 | && (data(4...7) == [0x00, 0x01, 0x00, 0x00] || data(4...7) == [0x4F, 0x54, 0x54, 0x4F])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:272:27: warning: static property 'epub' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
270 | && (data(4...7) == [0x00, 0x01, 0x00, 0x00] || data(4...7) == [0x4F, 0x54, 0x54, 0x4F])
271 | }
272 | public static let epub = MimeType(.epub, mime: "application/epub+zip", ext: "epub") { data in
| |- warning: static property 'epub' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'epub' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
273 | data(0...3) == [0x50, 0x4B, 0x03, 0x04]
274 | && data(30...57) == [
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:280:27: warning: static property 'woff2' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
278 | ]
279 | }
280 | public static let woff2 = MimeType(.woff2, mime: "application/font-woff", ext: "woff2") { data in
| |- warning: static property 'woff2' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'woff2' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
281 | data(0...3) == [0x77, 0x4F, 0x46, 0x32]
282 | && (data(4...7) == [0x00, 0x01, 0x00, 0x00] || data(4...7) == [0x4F, 0x54, 0x54, 0x4F])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:252:27: warning: static property 'zip' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
250 | ]
251 | }
252 | public static let zip = MimeType(.zip, mime: "application/zip", ext: "zip") { data in
| |- warning: static property 'zip' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zip' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
253 | return data(0...1) == [0x50, 0x4B]
254 | && (data(2...2) == [0x3] || data(2...2) == [0x5] || data(2...2) == [0x7])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:233:27: warning: static property 'tar' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
231 | public static let bz2 = MimeType(.bz2, mime: "application/x-bzip2", ext: "bz2", [0x42, 0x5A, 0x68])
232 | public static let gz = MimeType(.gz, mime: "application/gzip", ext: "gz", [0x1F, 0x8B, 0x08])
233 | public static let tar = MimeType(.tar, mime: "application/x-tar", ext: "tar", [0x75, 0x73, 0x74, 0x61, 0x72], at: 257)
| |- warning: static property 'tar' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'tar' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
234 | public static let rar = MimeType(.rar, mime: "application/x-rar-compressed", ext: "rar") { data in
235 | data(0...5) == [0x52, 0x61, 0x72, 0x21, 0x1A, 0x07] && (data(6...6) == [0x0] || data(6...6) == [0x1])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Data/Data+MimeType.swift:172:27: warning: static property 'mp4' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
74 | public extension Data {
75 |
76 | struct MimeType: Equatable {
| `- note: consider making struct 'MimeType' conform to the 'Sendable' protocol
77 |
78 | public static func == (lhs: Data.MimeType, rhs: Data.MimeType) -> Bool {
:
170 | }
171 | public static let wmv = MimeType(.wmv, mime: "video/x-ms-wmv", ext: "wmv", [0x30, 0x26, 0xB2, 0x75, 0x8E, 0x66, 0xCF, 0x11, 0xA6, 0xD9])
172 | public static let mp4 = MimeType(.mp4, mime: "video/mp4", ext: "mp4") { data in
| |- warning: static property 'mp4' is not concurrency-safe because non-'Sendable' type 'Data.MimeType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mp4' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
173 | (data(0...2) == [0x00, 0x00, 0x00]
174 | && (data(3...3) == [0x18] || data(3...3) == [0x20])
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Geometry/CGFloat.swift:31:16: warning: static property 'max' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | public extension StemValue where Base == CGFloat {
30 |
31 | static var max = CGFloat.greatestFiniteMagnitude
| |- warning: static property 'max' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'max' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'max' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Geometry/CGSize.swift:29:15: warning: static property 'max' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | public extension CGSize {
28 |
29 | static var max = CGSize(width: CGFloat.greatestFiniteMagnitude, height: CGFloat.greatestFiniteMagnitude)
| |- warning: static property 'max' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'max' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'max' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/Geometry/CGVector.swift:29:16: warning: static property 'max' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | public extension CGVector {
28 |
29 | static var max = CGVector(dx: CGFloat.greatestFiniteMagnitude, dy: CGFloat.greatestFiniteMagnitude)
| |- warning: static property 'max' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'max' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'max' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/String/String+tokenize.swift:39:23: warning: static property 'unitWord' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Tokenization options
26 | public struct StringTokenizationOptions: OptionSet {
| `- note: consider making struct 'StringTokenizationOptions' conform to the 'Sendable' protocol
27 | /* kCFStringTokenizerUnitWord doesn't return space between words as a token. */
28 | /**
:
37 | 指定字符串应该如何被标记化。
38 | */
39 | public static let unitWord = StringTokenizationOptions(rawValue: kCFStringTokenizerUnitWord)
| |- warning: static property 'unitWord' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unitWord' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | /**
41 | Tokenization Unit
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/String/String+tokenize.swift:50:23: warning: static property 'unitSentence' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Tokenization options
26 | public struct StringTokenizationOptions: OptionSet {
| `- note: consider making struct 'StringTokenizationOptions' conform to the 'Sendable' protocol
27 | /* kCFStringTokenizerUnitWord doesn't return space between words as a token. */
28 | /**
:
48 | 指定应该如何对字符串进行标记化。
49 | */
50 | public static let unitSentence = StringTokenizationOptions(rawValue: kCFStringTokenizerUnitSentence)
| |- warning: static property 'unitSentence' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unitSentence' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | /**
52 | Tokenization Unit
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/String/String+tokenize.swift:61:23: warning: static property 'unitParagraph' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Tokenization options
26 | public struct StringTokenizationOptions: OptionSet {
| `- note: consider making struct 'StringTokenizationOptions' conform to the 'Sendable' protocol
27 | /* kCFStringTokenizerUnitWord doesn't return space between words as a token. */
28 | /**
:
59 | 指定应该如何对字符串进行标记化。
60 | */
61 | public static let unitParagraph = StringTokenizationOptions(rawValue: kCFStringTokenizerUnitParagraph)
| |- warning: static property 'unitParagraph' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unitParagraph' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/String/String+tokenize.swift:73:23: warning: static property 'unitLineBreak' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Tokenization options
26 | public struct StringTokenizationOptions: OptionSet {
| `- note: consider making struct 'StringTokenizationOptions' conform to the 'Sendable' protocol
27 | /* kCFStringTokenizerUnitWord doesn't return space between words as a token. */
28 | /**
:
71 | 指定应该如何对字符串进行标记化。
72 | */
73 | public static let unitLineBreak = StringTokenizationOptions(rawValue: kCFStringTokenizerUnitLineBreak)
| |- warning: static property 'unitLineBreak' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unitLineBreak' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
74 |
75 | /* kCFStringTokenizerUnitWordBoundary can be used in double click detection
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/String/String+tokenize.swift:94:23: warning: static property 'unitWordBoundary' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Tokenization options
26 | public struct StringTokenizationOptions: OptionSet {
| `- note: consider making struct 'StringTokenizationOptions' conform to the 'Sendable' protocol
27 | /* kCFStringTokenizerUnitWord doesn't return space between words as a token. */
28 | /**
:
92 | 指定字符串应该如何被标记化。
93 | */
94 | public static let unitWordBoundary = StringTokenizationOptions(rawValue: kCFStringTokenizerUnitWordBoundary)
| |- warning: static property 'unitWordBoundary' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unitWordBoundary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
95 |
96 | /* Latin Transcription. Used with kCFStringTokenizerUnitWord or kCFStringTokenizerUnitWordBoundary */
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/String/String+tokenize.swift:112:23: warning: static property 'attributeLatinTranscription' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Tokenization options
26 | public struct StringTokenizationOptions: OptionSet {
| `- note: consider making struct 'StringTokenizationOptions' conform to the 'Sendable' protocol
27 | /* kCFStringTokenizerUnitWord doesn't return space between words as a token. */
28 | /**
:
110 | 选项中的一个。
111 | */
112 | public static let attributeLatinTranscription = StringTokenizationOptions(rawValue: kCFStringTokenizerAttributeLatinTranscription)
| |- warning: static property 'attributeLatinTranscription' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'attributeLatinTranscription' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 |
114 | /* Language in BCP 47 string. Used with kCFStringTokenizerUnitSentence
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/String/String+tokenize.swift:132:23: warning: static property 'attributeLanguage' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Tokenization options
26 | public struct StringTokenizationOptions: OptionSet {
| `- note: consider making struct 'StringTokenizationOptions' conform to the 'Sendable' protocol
27 | /* kCFStringTokenizerUnitWord doesn't return space between words as a token. */
28 | /**
:
130 | 选项中的一个。
131 | */
132 | public static let attributeLanguage = StringTokenizationOptions(rawValue: kCFStringTokenizerAttributeLanguage)
| |- warning: static property 'attributeLanguage' is not concurrency-safe because non-'Sendable' type 'StringTokenizationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'attributeLanguage' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
133 |
134 | public let rawValue: CFOptionFlags
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Fundamentals/URL/URL.swift:48:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
46 |
47 | // MARK: - ExpressibleByStringLiteral
48 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
49 |
50 | public init(stringLiteral value: String) {
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Network/NetworkMonitor.swift:34:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
25 | import Combine
26 |
27 | final public class NetworkMonitor {
| `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
28 |
29 | public enum Result {
:
32 | }
33 |
34 | public static let shared = NetworkMonitor()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | public private(set) lazy var connectPublisher = pathPublisher.map { path -> Result in
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/Runtime/RunTime+Print.swift:30:16: warning: static property 'print' is not concurrency-safe because non-'Sendable' type 'RunTime.Print' may have shared mutable state; this is an error in the Swift 6 language mode
26 | public extension RunTime {
27 |
28 | struct Print { }
| `- note: consider making struct 'Print' conform to the 'Sendable' protocol
29 |
30 | static let print = Print()
| |- warning: static property 'print' is not concurrency-safe because non-'Sendable' type 'RunTime.Print' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'print' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/STLyric.swift:204:16: warning: static property 'artist' is not concurrency-safe because non-'Sendable' type 'STLyric.IDTagKey' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public struct STLyric {
12 |
13 | public struct IDTagKey: RawRepresentable, ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'IDTagKey' conform to the 'Sendable' protocol
14 |
15 | public var rawValue: String
:
202 | public extension STLyric.IDTagKey {
203 | /// Lyrics artist
204 | static let artist = STLyric.IDTagKey("ar")
| |- warning: static property 'artist' is not concurrency-safe because non-'Sendable' type 'STLyric.IDTagKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'artist' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
205 | /// Album where the song is from
206 | static let album = STLyric.IDTagKey("al")
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/STLyric.swift:206:16: warning: static property 'album' is not concurrency-safe because non-'Sendable' type 'STLyric.IDTagKey' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public struct STLyric {
12 |
13 | public struct IDTagKey: RawRepresentable, ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'IDTagKey' conform to the 'Sendable' protocol
14 |
15 | public var rawValue: String
:
204 | static let artist = STLyric.IDTagKey("ar")
205 | /// Album where the song is from
206 | static let album = STLyric.IDTagKey("al")
| |- warning: static property 'album' is not concurrency-safe because non-'Sendable' type 'STLyric.IDTagKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'album' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
207 | /// Lyrics (song) title
208 | static let title = STLyric.IDTagKey("ti")
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/STLyric.swift:208:16: warning: static property 'title' is not concurrency-safe because non-'Sendable' type 'STLyric.IDTagKey' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public struct STLyric {
12 |
13 | public struct IDTagKey: RawRepresentable, ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'IDTagKey' conform to the 'Sendable' protocol
14 |
15 | public var rawValue: String
:
206 | static let album = STLyric.IDTagKey("al")
207 | /// Lyrics (song) title
208 | static let title = STLyric.IDTagKey("ti")
| |- warning: static property 'title' is not concurrency-safe because non-'Sendable' type 'STLyric.IDTagKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'title' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
209 | /// Creator of the Songtext
210 | static let author = STLyric.IDTagKey("au")
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/STLyric.swift:210:16: warning: static property 'author' is not concurrency-safe because non-'Sendable' type 'STLyric.IDTagKey' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public struct STLyric {
12 |
13 | public struct IDTagKey: RawRepresentable, ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'IDTagKey' conform to the 'Sendable' protocol
14 |
15 | public var rawValue: String
:
208 | static let title = STLyric.IDTagKey("ti")
209 | /// Creator of the Songtext
210 | static let author = STLyric.IDTagKey("au")
| |- warning: static property 'author' is not concurrency-safe because non-'Sendable' type 'STLyric.IDTagKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'author' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
211 | /// How long the song is
212 | static let length = STLyric.IDTagKey("length")
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/STLyric.swift:212:16: warning: static property 'length' is not concurrency-safe because non-'Sendable' type 'STLyric.IDTagKey' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public struct STLyric {
12 |
13 | public struct IDTagKey: RawRepresentable, ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'IDTagKey' conform to the 'Sendable' protocol
14 |
15 | public var rawValue: String
:
210 | static let author = STLyric.IDTagKey("au")
211 | /// How long the song is
212 | static let length = STLyric.IDTagKey("length")
| |- warning: static property 'length' is not concurrency-safe because non-'Sendable' type 'STLyric.IDTagKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'length' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
213 | /// Creator of the LRC file
214 | static let creator = STLyric.IDTagKey("by")
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/STLyric.swift:214:16: warning: static property 'creator' is not concurrency-safe because non-'Sendable' type 'STLyric.IDTagKey' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public struct STLyric {
12 |
13 | public struct IDTagKey: RawRepresentable, ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'IDTagKey' conform to the 'Sendable' protocol
14 |
15 | public var rawValue: String
:
212 | static let length = STLyric.IDTagKey("length")
213 | /// Creator of the LRC file
214 | static let creator = STLyric.IDTagKey("by")
| |- warning: static property 'creator' is not concurrency-safe because non-'Sendable' type 'STLyric.IDTagKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'creator' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
215 | /// +/- Overall timestamp adjustment in milliseconds, + shifts time up, - shifts down
216 | static let offset = STLyric.IDTagKey("offset")
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/STLyric.swift:216:16: warning: static property 'offset' is not concurrency-safe because non-'Sendable' type 'STLyric.IDTagKey' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public struct STLyric {
12 |
13 | public struct IDTagKey: RawRepresentable, ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'IDTagKey' conform to the 'Sendable' protocol
14 |
15 | public var rawValue: String
:
214 | static let creator = STLyric.IDTagKey("by")
215 | /// +/- Overall timestamp adjustment in milliseconds, + shifts time up, - shifts down
216 | static let offset = STLyric.IDTagKey("offset")
| |- warning: static property 'offset' is not concurrency-safe because non-'Sendable' type 'STLyric.IDTagKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'offset' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
217 | /// The player or editor that created the LRC file
218 | static let editor = STLyric.IDTagKey("re")
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/STLyric.swift:218:16: warning: static property 'editor' is not concurrency-safe because non-'Sendable' type 'STLyric.IDTagKey' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public struct STLyric {
12 |
13 | public struct IDTagKey: RawRepresentable, ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'IDTagKey' conform to the 'Sendable' protocol
14 |
15 | public var rawValue: String
:
216 | static let offset = STLyric.IDTagKey("offset")
217 | /// The player or editor that created the LRC file
218 | static let editor = STLyric.IDTagKey("re")
| |- warning: static property 'editor' is not concurrency-safe because non-'Sendable' type 'STLyric.IDTagKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'editor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
219 | /// version of program
220 | static let version = STLyric.IDTagKey("ve")
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/STLyric.swift:220:16: warning: static property 'version' is not concurrency-safe because non-'Sendable' type 'STLyric.IDTagKey' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public struct STLyric {
12 |
13 | public struct IDTagKey: RawRepresentable, ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'IDTagKey' conform to the 'Sendable' protocol
14 |
15 | public var rawValue: String
:
218 | static let editor = STLyric.IDTagKey("re")
219 | /// version of program
220 | static let version = STLyric.IDTagKey("ve")
| |- warning: static property 'version' is not concurrency-safe because non-'Sendable' type 'STLyric.IDTagKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'version' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
221 | }
222 |
/Users/admin/builder/spi-builder-workspace/Sources/Stem/CrossPlatform/WebKit/HybridCookieStorage.swift:29:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HybridCookieStorage' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | @available(iOS 13.0, *)
28 | public class HybridCookieStorage {
| `- note: class 'HybridCookieStorage' does not conform to the 'Sendable' protocol
29 | public static let shared = HybridCookieStorage()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HybridCookieStorage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | private var cancellable: AnyCancellable?
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stem/UIKit/Image/SVG/StemSVG.swift:23:23: warning: static property 'CoreSVG' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
21 | public class StemSVG {
22 |
23 | private static let CoreSVG = dlopen("/System/Library/PrivateFrameworks/CoreSVG.framework/CoreSVG", RTLD_NOW)
| |- warning: static property 'CoreSVG' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'CoreSVG' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | #if canImport(AppKit) && !targetEnvironment(macCatalyst)
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
Build complete! (46.18s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Stem",
"name" : "Stem",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "Stem",
"targets" : [
"Stem"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "StemTests",
"module_type" : "SwiftTarget",
"name" : "StemTests",
"path" : "Tests/StemTests",
"sources" : [
"AttributedString+HTML.swift",
"LyricTests.swift",
"MimeType/CGFloatExtensionTests.swift",
"MimeType/MimeTypeTest.swift",
"MimeType/StringExtensionTests.swift",
"MimeType/Tests.swift",
"Test-Combine.swift",
"XMLTest.swift"
],
"target_dependencies" : [
"Stem"
],
"type" : "test"
},
{
"c99name" : "Stem",
"module_type" : "SwiftTarget",
"name" : "Stem",
"path" : "Sources/Stem",
"product_memberships" : [
"Stem"
],
"sources" : [
"Core/Stem.swift",
"CrossPlatform/AVKit/AVAsset.swift",
"CrossPlatform/AVKit/AudioFileService.swift",
"CrossPlatform/AVKit/CoreAudioTypes.swift",
"CrossPlatform/AVKit/STAudioPlayer.swift",
"CrossPlatform/AVKit/STAudioQueueService.swift",
"CrossPlatform/AVKit/STAudioRecorder.swift",
"CrossPlatform/AVKit/STMetadataObject/STAVMetadataObjectKind.swift",
"CrossPlatform/AVKit/STMetadataObject/STMetadataFaceObject.swift",
"CrossPlatform/AVKit/STMetadataObject/STMetadataMachineReadableCodeObject.swift",
"CrossPlatform/AVKit/STMetadataObject/STMetadataObject.swift",
"CrossPlatform/AVKit/UIDevice+AVFoundation.swift",
"CrossPlatform/AVKit/UIImage+video.swift",
"CrossPlatform/Color/Color+darkMode.swift",
"CrossPlatform/Color/STWrapperColor+typealias.swift",
"CrossPlatform/Color/STWrapperColor.swift",
"CrossPlatform/Custom/Bundle/Bundle.swift",
"CrossPlatform/Custom/Combine/Combine+Async.swift",
"CrossPlatform/Custom/Combine/Combine+NSObject.swift",
"CrossPlatform/Custom/Combine/Combine+Publisher.swift",
"CrossPlatform/Custom/Device/Device+cpu.swift",
"CrossPlatform/Custom/Device/Device+information.swift",
"CrossPlatform/Custom/Device/Device+network.swift",
"CrossPlatform/Custom/Device/Device+other.swift",
"CrossPlatform/Custom/Device/Device+space.swift",
"CrossPlatform/Custom/Device/Device.swift",
"CrossPlatform/Custom/Foundation/Delegate.swift",
"CrossPlatform/Custom/Foundation/Gcd.swift",
"CrossPlatform/Custom/Foundation/Notice/Notice.swift",
"CrossPlatform/Custom/Foundation/Notice/NoticeParsable.swift",
"CrossPlatform/Custom/Foundation/Notice/NoticeToken.swift",
"CrossPlatform/Custom/Foundation/Notice/NoticeType.swift",
"CrossPlatform/Custom/Foundation/STLRUCache.swift",
"CrossPlatform/Custom/Foundation/UserDefaults.swift",
"CrossPlatform/Custom/Foundation/Version/STVersion.swift",
"CrossPlatform/Custom/Foundation/Version/Version+StringLiteralConvertible.swift",
"CrossPlatform/Custom/Location/LocationTransformer.swift",
"CrossPlatform/Custom/StemArrayResultBuilder.swift",
"CrossPlatform/Custom/StemError.swift",
"CrossPlatform/Custom/StemFont.swift",
"CrossPlatform/Custom/StemShell.swift",
"CrossPlatform/Custom/StringMarker/StringMarker.swift",
"CrossPlatform/Custom/StringMarker/StringRender+Marker.swift",
"CrossPlatform/Custom/StringMarker/StringRender.swift",
"CrossPlatform/Foundation/Coder/Coder.swift",
"CrossPlatform/Foundation/Date/Date.swift",
"CrossPlatform/Foundation/Date/Timer.swift",
"CrossPlatform/Foundation/Dispatch/DispatchQueue.swift",
"CrossPlatform/Foundation/Fundamentals/Formatter/ByteCountFormatter.swift",
"CrossPlatform/Foundation/Fundamentals/Formatter/NumberFormatter.swift",
"CrossPlatform/Foundation/NSItemProvider/NSItemProvider.swift",
"CrossPlatform/Foundation/StringProtocol/CharacterSet.swift",
"CrossPlatform/Foundation/StringProtocol/StringProtocol.swift",
"CrossPlatform/Foundation/Then.swift",
"CrossPlatform/Fundamentals/Collections/Array.swift",
"CrossPlatform/Fundamentals/Collections/CollectionConcurrencyKit.swift",
"CrossPlatform/Fundamentals/Collections/Dictionary.swift",
"CrossPlatform/Fundamentals/Collections/IndexPath.swift",
"CrossPlatform/Fundamentals/Collections/STCountedSet.swift",
"CrossPlatform/Fundamentals/Collections/Sequence.swift",
"CrossPlatform/Fundamentals/Data/Data+MimeType.swift",
"CrossPlatform/Fundamentals/Data/Data+crypto.swift",
"CrossPlatform/Fundamentals/Data/Data.swift",
"CrossPlatform/Fundamentals/Geometry/CGFloat.swift",
"CrossPlatform/Fundamentals/Geometry/CGPoint.swift",
"CrossPlatform/Fundamentals/Geometry/CGRect.swift",
"CrossPlatform/Fundamentals/Geometry/CGSize.swift",
"CrossPlatform/Fundamentals/Geometry/CGVector.swift",
"CrossPlatform/Fundamentals/Number/Bool.swift",
"CrossPlatform/Fundamentals/Number/Decimal.swift",
"CrossPlatform/Fundamentals/Number/Double.swift",
"CrossPlatform/Fundamentals/String/Character/Character.swift",
"CrossPlatform/Fundamentals/String/String+Emoji.swift",
"CrossPlatform/Fundamentals/String/String+Header.swift",
"CrossPlatform/Fundamentals/String/String+Map.swift",
"CrossPlatform/Fundamentals/String/String+random.swift",
"CrossPlatform/Fundamentals/String/String+substring.swift",
"CrossPlatform/Fundamentals/String/String+tokenize.swift",
"CrossPlatform/Fundamentals/URL/URL.swift",
"CrossPlatform/ISO/ISO_3166-1_alpha-2.swift",
"CrossPlatform/MapKit/CLGeocoder.swift",
"CrossPlatform/NSObject/NSObject.swift",
"CrossPlatform/NSObject/NSObjectObserver.swift",
"CrossPlatform/NSObject/STWeak.swift",
"CrossPlatform/Network/NetworkMonitor.swift",
"CrossPlatform/Parser/JSON/StemXML.swift",
"CrossPlatform/Runtime/Invocation.swift",
"CrossPlatform/Runtime/RunTime+Exchange.swift",
"CrossPlatform/Runtime/RunTime+ObjectType.swift",
"CrossPlatform/Runtime/RunTime+Print.swift",
"CrossPlatform/Runtime/RunTime.swift",
"CrossPlatform/SFSymbol/SFSymbol+Image.swift",
"CrossPlatform/SFSymbol/SFSymbol+NSImage.swift",
"CrossPlatform/SFSymbol/SFSymbol+UIImage.swift",
"CrossPlatform/SFSymbol/SFSymbol.swift",
"CrossPlatform/STImage.swift",
"CrossPlatform/STLyric.swift",
"CrossPlatform/SwiftUI/STLazyView.swift",
"CrossPlatform/UserNotifications/UNUserNotificationCenter.swift",
"CrossPlatform/WebKit/HybridCookieStorage.swift",
"CrossPlatform/WebKit/WebKit+WKWebView.swift",
"STUIKit/RecoverNavigationProtocol/RecoverNavigationProtocol.swift",
"UIKit/Application/UIApplication.swift",
"UIKit/Application/UIWindow.swift",
"UIKit/AttributedString/AttributedString+Attribute.swift",
"UIKit/AttributedString/AttributedString.swift",
"UIKit/AttributedString/MutableAttributedString.swift",
"UIKit/Control/UIButton.swift",
"UIKit/Control/UIControl.swift",
"UIKit/Custom/GestureRecognizer/STGestureRecognizer.swift",
"UIKit/Custom/TapticEngine/TapticEngine.swift",
"UIKit/Font/UIFont.swift",
"UIKit/GestureRecognizer/UIGestureRecognizer+State.swift",
"UIKit/Image/CGImage/CGImage.swift",
"UIKit/Image/CoreImage/CIFilter+Generator.swift",
"UIKit/Image/CoreImage/CIFilter+enum.swift",
"UIKit/Image/CoreImage/CIFilter+protocol.swift",
"UIKit/Image/NSImage/NSImage+Data.swift",
"UIKit/Image/NSImage/NSImage+Resize.swift",
"UIKit/Image/SVG/StemSVG.swift",
"UIKit/Image/UIImage/UIImage+Color.swift",
"UIKit/Image/UIImage/UIImage+CoreImage.swift",
"UIKit/Image/UIImage/UIImage+Edit.swift",
"UIKit/Image/UIImage/UIImage+Format.swift",
"UIKit/Image/UIImage/UIImage+info.swift",
"UIKit/Image/UIImage/UIImage+size.swift",
"UIKit/Image/UIImage/UImage+other.swift",
"UIKit/ImageView/UIImageView.swift",
"UIKit/InputView/UISearchBar.swift",
"UIKit/InputView/UITextField.swift",
"UIKit/InputView/UITextView.swift",
"UIKit/Interface/UINib.swift",
"UIKit/Interface/UIStoryboard.swift",
"UIKit/Keyboard/KeyboardStateManager.swift",
"UIKit/Keyboard/UIKeyCommand.swift",
"UIKit/Label/UILabel.swift",
"UIKit/ListView/UIScrollView.swift",
"UIKit/NSLayoutConstraint/NSLayoutConstraint.swift",
"UIKit/View/CALayer+Stem.swift",
"UIKit/View/STLayerView.swift",
"UIKit/View/STSwitch.swift",
"UIKit/View/UIResponder.swift",
"UIKit/View/UIStackView.swift",
"UIKit/View/UIView.swift",
"UIKit/ViewController/STControllerPreview.swift",
"UIKit/ViewController/UINavigationController.swift",
"UIKit/ViewController/UIViewController.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.