Build Information
Failed to build ReerKit, reference 1.0.36 (2a65ba
), with Swift 6.0 for Linux on 9 Oct 2024 17:16:41 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
49 | }
/host/spi-builder-workspace/Sources/StandardLibrary/Collection+REExtensions.swift:47:18: warning: capture of 'self' with non-sendable type 'Reer<Base>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | func forEachInParallel(_ each: (Base.Element) -> Void) {
46 | DispatchQueue.concurrentPerform(iterations: base.count) {
47 | each(base[base.index(base.startIndex, offsetBy: $0)])
| `- warning: capture of 'self' with non-sendable type 'Reer<Base>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/host/spi-builder-workspace/Sources/General/ReerKit.swift:24:15: note: consider making generic struct 'Reer' conform to the 'Sendable' protocol
22 | /// Wrapper for ReerKit compatible types. This type provides an extension point for
23 | /// convenience methods in ReerKit.
24 | public struct Reer<Base> {
| `- note: consider making generic struct 'Reer' conform to the 'Sendable' protocol
25 | public let base: Base
26 | public init(_ base: Base) {
[103/135] Compiling ReerKit Int+REExtensions.swift
/host/spi-builder-workspace/Sources/StandardLibrary/Collection+REExtensions.swift:47:13: warning: capture of 'each' with non-sendable type '(Base.Element) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | func forEachInParallel(_ each: (Base.Element) -> Void) {
46 | DispatchQueue.concurrentPerform(iterations: base.count) {
47 | each(base[base.index(base.startIndex, offsetBy: $0)])
| |- warning: capture of 'each' with non-sendable type '(Base.Element) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
48 | }
49 | }
/host/spi-builder-workspace/Sources/StandardLibrary/Collection+REExtensions.swift:47:18: warning: capture of 'self' with non-sendable type 'Reer<Base>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | func forEachInParallel(_ each: (Base.Element) -> Void) {
46 | DispatchQueue.concurrentPerform(iterations: base.count) {
47 | each(base[base.index(base.startIndex, offsetBy: $0)])
| `- warning: capture of 'self' with non-sendable type 'Reer<Base>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/host/spi-builder-workspace/Sources/General/ReerKit.swift:24:15: note: consider making generic struct 'Reer' conform to the 'Sendable' protocol
22 | /// Wrapper for ReerKit compatible types. This type provides an extension point for
23 | /// convenience methods in ReerKit.
24 | public struct Reer<Base> {
| `- note: consider making generic struct 'Reer' conform to the 'Sendable' protocol
25 | public let base: Base
26 | public init(_ base: Base) {
[104/135] Compiling ReerKit UICollectionView+REExtensions.swift
[105/135] Compiling ReerKit UIControl+REExtensions.swift
[106/135] Compiling ReerKit UIDevice+REExtensions.swift
[107/135] Compiling ReerKit UIFont+REExtensions.swift
[108/135] Compiling ReerKit UIGestureRecognizer+REExtensions.swift
[109/135] Compiling ReerKit UIImage+REExtensions.swift
[110/135] Compiling ReerKit UIImageView+REExtensions.swift
[111/135] Compiling ReerKit UILabel+REExtensions.swift
[112/135] Compiling ReerKit UINavigationBar+REExtensions.swift
[113/135] Compiling ReerKit UINavigationController+REExtensions.swift
[114/135] Compiling ReerKit UINavigationItem+REExtensions.swift
[115/135] Compiling ReerKit UIRefreshControl+REExtensions.swift
[116/135] Compiling ReerKit UIResponder+REExtensions.swift
[117/135] Compiling ReerKit UIScreen+REExtensions.swift
[118/135] Compiling ReerKit UIScrollView+REExtensions.swift
[119/135] Compiling ReerKit UISearchBar+REExtensions.swift
[120/135] Compiling ReerKit OrderedSet.swift
/host/spi-builder-workspace/Sources/Utility/Debouncer.swift:28:24: error: cannot find 'UnfairLock' in scope
26 | private let queue: DispatchQueue
27 | public private(set) var workItem = DispatchWorkItem(block: {})
28 | private let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
29 |
30 | public init(queue: DispatchQueue = .main) {
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:17: error: cannot find '__dispatch_queue_get_label' in scope
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: cannot find '__dispatch_queue_get_label' in scope
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:44: error: 'nil' requires a contextual type
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: 'nil' requires a contextual type
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:37:43: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
31 |
32 | /// ReerKit: Execute a closure on main queue asynchronously.
33 | public func asyncOnMainQueue(_ action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
34 | if currentQueueLabel() == DispatchQueue.main.label {
35 | action()
36 | } else {
37 | DispatchQueue.main.async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
38 | }
39 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:52:51: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
49 |
50 | /// ReerKit: Execute a closure on global queue asynchronously.
51 | public func asyncOnGlobalQueue(qos: DispatchQoS.QoSClass = .default, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
52 | DispatchQueue.global(qos: qos).async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
53 | }
54 |
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:62:60: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
59 |
60 | /// ReerKit: Delay to execute a closure on the queue.
61 | public func delay(_ interval: Double, onQueue queue: DispatchQueue = .main, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
62 | queue.asyncAfter(deadline: .now() + interval, execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
63 | }
64 | #endif
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:82:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
83 |
84 | private static let numbersString = "0123456789"
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:46:23: warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | public static var defaultRandomizer: Randomizer = SecureRandomizer()
45 | #else
46 | public static var defaultRandomizer: Randomizer = IntRandomizer()
| |- warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultRandomizer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultRandomizer' 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 | #endif
48 | }
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:78:27: warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
76 | }
77 |
78 | public static let numbers = Self(numbersString)
| |- warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'numbers' 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
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:79:27: warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
77 |
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
| |- warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lowercaseLetters' 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
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:80:27: warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
| |- warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'uppercaseLetters' 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
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:81:27: warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
| |- warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'letters' 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
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
83 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:38:17: warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | }
37 |
38 | fileprivate var tokens = Set<OnceToken>()
| |- warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'tokens' 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 | fileprivate let lock = UnfairLock()
40 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:39:24: error: cannot find 'UnfairLock' in scope
37 |
38 | fileprivate var tokens = Set<OnceToken>()
39 | fileprivate let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
40 |
41 | /// ReerKit: Invoke the passed closure only once during the life time of the process.
[121/135] Compiling ReerKit Queue.swift
/host/spi-builder-workspace/Sources/Utility/Debouncer.swift:28:24: error: cannot find 'UnfairLock' in scope
26 | private let queue: DispatchQueue
27 | public private(set) var workItem = DispatchWorkItem(block: {})
28 | private let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
29 |
30 | public init(queue: DispatchQueue = .main) {
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:17: error: cannot find '__dispatch_queue_get_label' in scope
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: cannot find '__dispatch_queue_get_label' in scope
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:44: error: 'nil' requires a contextual type
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: 'nil' requires a contextual type
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:37:43: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
31 |
32 | /// ReerKit: Execute a closure on main queue asynchronously.
33 | public func asyncOnMainQueue(_ action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
34 | if currentQueueLabel() == DispatchQueue.main.label {
35 | action()
36 | } else {
37 | DispatchQueue.main.async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
38 | }
39 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:52:51: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
49 |
50 | /// ReerKit: Execute a closure on global queue asynchronously.
51 | public func asyncOnGlobalQueue(qos: DispatchQoS.QoSClass = .default, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
52 | DispatchQueue.global(qos: qos).async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
53 | }
54 |
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:62:60: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
59 |
60 | /// ReerKit: Delay to execute a closure on the queue.
61 | public func delay(_ interval: Double, onQueue queue: DispatchQueue = .main, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
62 | queue.asyncAfter(deadline: .now() + interval, execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
63 | }
64 | #endif
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:82:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
83 |
84 | private static let numbersString = "0123456789"
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:46:23: warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | public static var defaultRandomizer: Randomizer = SecureRandomizer()
45 | #else
46 | public static var defaultRandomizer: Randomizer = IntRandomizer()
| |- warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultRandomizer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultRandomizer' 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 | #endif
48 | }
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:78:27: warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
76 | }
77 |
78 | public static let numbers = Self(numbersString)
| |- warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'numbers' 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
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:79:27: warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
77 |
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
| |- warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lowercaseLetters' 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
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:80:27: warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
| |- warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'uppercaseLetters' 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
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:81:27: warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
| |- warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'letters' 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
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
83 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:38:17: warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | }
37 |
38 | fileprivate var tokens = Set<OnceToken>()
| |- warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'tokens' 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 | fileprivate let lock = UnfairLock()
40 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:39:24: error: cannot find 'UnfairLock' in scope
37 |
38 | fileprivate var tokens = Set<OnceToken>()
39 | fileprivate let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
40 |
41 | /// ReerKit: Invoke the passed closure only once during the life time of the process.
[122/135] Compiling ReerKit Stack.swift
/host/spi-builder-workspace/Sources/Utility/Debouncer.swift:28:24: error: cannot find 'UnfairLock' in scope
26 | private let queue: DispatchQueue
27 | public private(set) var workItem = DispatchWorkItem(block: {})
28 | private let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
29 |
30 | public init(queue: DispatchQueue = .main) {
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:17: error: cannot find '__dispatch_queue_get_label' in scope
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: cannot find '__dispatch_queue_get_label' in scope
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:44: error: 'nil' requires a contextual type
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: 'nil' requires a contextual type
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:37:43: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
31 |
32 | /// ReerKit: Execute a closure on main queue asynchronously.
33 | public func asyncOnMainQueue(_ action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
34 | if currentQueueLabel() == DispatchQueue.main.label {
35 | action()
36 | } else {
37 | DispatchQueue.main.async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
38 | }
39 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:52:51: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
49 |
50 | /// ReerKit: Execute a closure on global queue asynchronously.
51 | public func asyncOnGlobalQueue(qos: DispatchQoS.QoSClass = .default, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
52 | DispatchQueue.global(qos: qos).async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
53 | }
54 |
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:62:60: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
59 |
60 | /// ReerKit: Delay to execute a closure on the queue.
61 | public func delay(_ interval: Double, onQueue queue: DispatchQueue = .main, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
62 | queue.asyncAfter(deadline: .now() + interval, execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
63 | }
64 | #endif
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:82:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
83 |
84 | private static let numbersString = "0123456789"
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:46:23: warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | public static var defaultRandomizer: Randomizer = SecureRandomizer()
45 | #else
46 | public static var defaultRandomizer: Randomizer = IntRandomizer()
| |- warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultRandomizer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultRandomizer' 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 | #endif
48 | }
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:78:27: warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
76 | }
77 |
78 | public static let numbers = Self(numbersString)
| |- warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'numbers' 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
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:79:27: warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
77 |
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
| |- warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lowercaseLetters' 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
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:80:27: warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
| |- warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'uppercaseLetters' 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
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:81:27: warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
| |- warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'letters' 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
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
83 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:38:17: warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | }
37 |
38 | fileprivate var tokens = Set<OnceToken>()
| |- warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'tokens' 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 | fileprivate let lock = UnfairLock()
40 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:39:24: error: cannot find 'UnfairLock' in scope
37 |
38 | fileprivate var tokens = Set<OnceToken>()
39 | fileprivate let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
40 |
41 | /// ReerKit: Invoke the passed closure only once during the life time of the process.
[123/135] Compiling ReerKit Debouncer.swift
/host/spi-builder-workspace/Sources/Utility/Debouncer.swift:28:24: error: cannot find 'UnfairLock' in scope
26 | private let queue: DispatchQueue
27 | public private(set) var workItem = DispatchWorkItem(block: {})
28 | private let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
29 |
30 | public init(queue: DispatchQueue = .main) {
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:17: error: cannot find '__dispatch_queue_get_label' in scope
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: cannot find '__dispatch_queue_get_label' in scope
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:44: error: 'nil' requires a contextual type
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: 'nil' requires a contextual type
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:37:43: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
31 |
32 | /// ReerKit: Execute a closure on main queue asynchronously.
33 | public func asyncOnMainQueue(_ action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
34 | if currentQueueLabel() == DispatchQueue.main.label {
35 | action()
36 | } else {
37 | DispatchQueue.main.async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
38 | }
39 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:52:51: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
49 |
50 | /// ReerKit: Execute a closure on global queue asynchronously.
51 | public func asyncOnGlobalQueue(qos: DispatchQoS.QoSClass = .default, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
52 | DispatchQueue.global(qos: qos).async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
53 | }
54 |
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:62:60: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
59 |
60 | /// ReerKit: Delay to execute a closure on the queue.
61 | public func delay(_ interval: Double, onQueue queue: DispatchQueue = .main, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
62 | queue.asyncAfter(deadline: .now() + interval, execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
63 | }
64 | #endif
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:82:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
83 |
84 | private static let numbersString = "0123456789"
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:46:23: warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | public static var defaultRandomizer: Randomizer = SecureRandomizer()
45 | #else
46 | public static var defaultRandomizer: Randomizer = IntRandomizer()
| |- warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultRandomizer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultRandomizer' 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 | #endif
48 | }
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:78:27: warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
76 | }
77 |
78 | public static let numbers = Self(numbersString)
| |- warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'numbers' 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
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:79:27: warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
77 |
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
| |- warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lowercaseLetters' 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
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:80:27: warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
| |- warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'uppercaseLetters' 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
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:81:27: warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
| |- warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'letters' 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
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
83 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:38:17: warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | }
37 |
38 | fileprivate var tokens = Set<OnceToken>()
| |- warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'tokens' 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 | fileprivate let lock = UnfairLock()
40 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:39:24: error: cannot find 'UnfairLock' in scope
37 |
38 | fileprivate var tokens = Set<OnceToken>()
39 | fileprivate let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
40 |
41 | /// ReerKit: Invoke the passed closure only once during the life time of the process.
[124/135] Compiling ReerKit DeinitObserver.swift
/host/spi-builder-workspace/Sources/Utility/Debouncer.swift:28:24: error: cannot find 'UnfairLock' in scope
26 | private let queue: DispatchQueue
27 | public private(set) var workItem = DispatchWorkItem(block: {})
28 | private let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
29 |
30 | public init(queue: DispatchQueue = .main) {
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:17: error: cannot find '__dispatch_queue_get_label' in scope
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: cannot find '__dispatch_queue_get_label' in scope
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:44: error: 'nil' requires a contextual type
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: 'nil' requires a contextual type
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:37:43: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
31 |
32 | /// ReerKit: Execute a closure on main queue asynchronously.
33 | public func asyncOnMainQueue(_ action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
34 | if currentQueueLabel() == DispatchQueue.main.label {
35 | action()
36 | } else {
37 | DispatchQueue.main.async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
38 | }
39 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:52:51: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
49 |
50 | /// ReerKit: Execute a closure on global queue asynchronously.
51 | public func asyncOnGlobalQueue(qos: DispatchQoS.QoSClass = .default, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
52 | DispatchQueue.global(qos: qos).async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
53 | }
54 |
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:62:60: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
59 |
60 | /// ReerKit: Delay to execute a closure on the queue.
61 | public func delay(_ interval: Double, onQueue queue: DispatchQueue = .main, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
62 | queue.asyncAfter(deadline: .now() + interval, execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
63 | }
64 | #endif
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:82:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
83 |
84 | private static let numbersString = "0123456789"
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:46:23: warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | public static var defaultRandomizer: Randomizer = SecureRandomizer()
45 | #else
46 | public static var defaultRandomizer: Randomizer = IntRandomizer()
| |- warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultRandomizer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultRandomizer' 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 | #endif
48 | }
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:78:27: warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
76 | }
77 |
78 | public static let numbers = Self(numbersString)
| |- warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'numbers' 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
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:79:27: warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
77 |
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
| |- warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lowercaseLetters' 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
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:80:27: warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
| |- warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'uppercaseLetters' 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
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:81:27: warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
| |- warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'letters' 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
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
83 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:38:17: warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | }
37 |
38 | fileprivate var tokens = Set<OnceToken>()
| |- warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'tokens' 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 | fileprivate let lock = UnfairLock()
40 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:39:24: error: cannot find 'UnfairLock' in scope
37 |
38 | fileprivate var tokens = Set<OnceToken>()
39 | fileprivate let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
40 |
41 | /// ReerKit: Invoke the passed closure only once during the life time of the process.
[125/135] Compiling ReerKit GlobalFunctions.swift
/host/spi-builder-workspace/Sources/Utility/Debouncer.swift:28:24: error: cannot find 'UnfairLock' in scope
26 | private let queue: DispatchQueue
27 | public private(set) var workItem = DispatchWorkItem(block: {})
28 | private let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
29 |
30 | public init(queue: DispatchQueue = .main) {
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:17: error: cannot find '__dispatch_queue_get_label' in scope
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: cannot find '__dispatch_queue_get_label' in scope
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:44: error: 'nil' requires a contextual type
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: 'nil' requires a contextual type
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:37:43: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
31 |
32 | /// ReerKit: Execute a closure on main queue asynchronously.
33 | public func asyncOnMainQueue(_ action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
34 | if currentQueueLabel() == DispatchQueue.main.label {
35 | action()
36 | } else {
37 | DispatchQueue.main.async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
38 | }
39 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:52:51: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
49 |
50 | /// ReerKit: Execute a closure on global queue asynchronously.
51 | public func asyncOnGlobalQueue(qos: DispatchQoS.QoSClass = .default, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
52 | DispatchQueue.global(qos: qos).async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
53 | }
54 |
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:62:60: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
59 |
60 | /// ReerKit: Delay to execute a closure on the queue.
61 | public func delay(_ interval: Double, onQueue queue: DispatchQueue = .main, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
62 | queue.asyncAfter(deadline: .now() + interval, execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
63 | }
64 | #endif
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:82:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
83 |
84 | private static let numbersString = "0123456789"
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:46:23: warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | public static var defaultRandomizer: Randomizer = SecureRandomizer()
45 | #else
46 | public static var defaultRandomizer: Randomizer = IntRandomizer()
| |- warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultRandomizer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultRandomizer' 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 | #endif
48 | }
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:78:27: warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
76 | }
77 |
78 | public static let numbers = Self(numbersString)
| |- warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'numbers' 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
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:79:27: warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
77 |
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
| |- warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lowercaseLetters' 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
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:80:27: warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
| |- warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'uppercaseLetters' 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
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:81:27: warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
| |- warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'letters' 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
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
83 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:38:17: warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | }
37 |
38 | fileprivate var tokens = Set<OnceToken>()
| |- warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'tokens' 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 | fileprivate let lock = UnfairLock()
40 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:39:24: error: cannot find 'UnfairLock' in scope
37 |
38 | fileprivate var tokens = Set<OnceToken>()
39 | fileprivate let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
40 |
41 | /// ReerKit: Invoke the passed closure only once during the life time of the process.
[126/135] Compiling ReerKit Invocation.swift
/host/spi-builder-workspace/Sources/Utility/Debouncer.swift:28:24: error: cannot find 'UnfairLock' in scope
26 | private let queue: DispatchQueue
27 | public private(set) var workItem = DispatchWorkItem(block: {})
28 | private let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
29 |
30 | public init(queue: DispatchQueue = .main) {
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:17: error: cannot find '__dispatch_queue_get_label' in scope
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: cannot find '__dispatch_queue_get_label' in scope
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:44: error: 'nil' requires a contextual type
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: 'nil' requires a contextual type
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:37:43: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
31 |
32 | /// ReerKit: Execute a closure on main queue asynchronously.
33 | public func asyncOnMainQueue(_ action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
34 | if currentQueueLabel() == DispatchQueue.main.label {
35 | action()
36 | } else {
37 | DispatchQueue.main.async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
38 | }
39 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:52:51: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
49 |
50 | /// ReerKit: Execute a closure on global queue asynchronously.
51 | public func asyncOnGlobalQueue(qos: DispatchQoS.QoSClass = .default, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
52 | DispatchQueue.global(qos: qos).async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
53 | }
54 |
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:62:60: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
59 |
60 | /// ReerKit: Delay to execute a closure on the queue.
61 | public func delay(_ interval: Double, onQueue queue: DispatchQueue = .main, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
62 | queue.asyncAfter(deadline: .now() + interval, execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
63 | }
64 | #endif
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:82:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
83 |
84 | private static let numbersString = "0123456789"
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:46:23: warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | public static var defaultRandomizer: Randomizer = SecureRandomizer()
45 | #else
46 | public static var defaultRandomizer: Randomizer = IntRandomizer()
| |- warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultRandomizer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultRandomizer' 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 | #endif
48 | }
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:78:27: warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
76 | }
77 |
78 | public static let numbers = Self(numbersString)
| |- warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'numbers' 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
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:79:27: warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
77 |
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
| |- warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lowercaseLetters' 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
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:80:27: warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
| |- warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'uppercaseLetters' 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
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:81:27: warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
| |- warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'letters' 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
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
83 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:38:17: warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | }
37 |
38 | fileprivate var tokens = Set<OnceToken>()
| |- warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'tokens' 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 | fileprivate let lock = UnfairLock()
40 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:39:24: error: cannot find 'UnfairLock' in scope
37 |
38 | fileprivate var tokens = Set<OnceToken>()
39 | fileprivate let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
40 |
41 | /// ReerKit: Invoke the passed closure only once during the life time of the process.
[127/135] Compiling ReerKit KeyboardManager.swift
/host/spi-builder-workspace/Sources/Utility/Debouncer.swift:28:24: error: cannot find 'UnfairLock' in scope
26 | private let queue: DispatchQueue
27 | public private(set) var workItem = DispatchWorkItem(block: {})
28 | private let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
29 |
30 | public init(queue: DispatchQueue = .main) {
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:17: error: cannot find '__dispatch_queue_get_label' in scope
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: cannot find '__dispatch_queue_get_label' in scope
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:44: error: 'nil' requires a contextual type
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: 'nil' requires a contextual type
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:37:43: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
31 |
32 | /// ReerKit: Execute a closure on main queue asynchronously.
33 | public func asyncOnMainQueue(_ action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
34 | if currentQueueLabel() == DispatchQueue.main.label {
35 | action()
36 | } else {
37 | DispatchQueue.main.async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
38 | }
39 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:52:51: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
49 |
50 | /// ReerKit: Execute a closure on global queue asynchronously.
51 | public func asyncOnGlobalQueue(qos: DispatchQoS.QoSClass = .default, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
52 | DispatchQueue.global(qos: qos).async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
53 | }
54 |
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:62:60: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
59 |
60 | /// ReerKit: Delay to execute a closure on the queue.
61 | public func delay(_ interval: Double, onQueue queue: DispatchQueue = .main, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
62 | queue.asyncAfter(deadline: .now() + interval, execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
63 | }
64 | #endif
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:82:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
83 |
84 | private static let numbersString = "0123456789"
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:46:23: warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | public static var defaultRandomizer: Randomizer = SecureRandomizer()
45 | #else
46 | public static var defaultRandomizer: Randomizer = IntRandomizer()
| |- warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultRandomizer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultRandomizer' 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 | #endif
48 | }
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:78:27: warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
76 | }
77 |
78 | public static let numbers = Self(numbersString)
| |- warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'numbers' 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
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:79:27: warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
77 |
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
| |- warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lowercaseLetters' 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
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:80:27: warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
| |- warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'uppercaseLetters' 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
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:81:27: warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
| |- warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'letters' 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
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
83 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:38:17: warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | }
37 |
38 | fileprivate var tokens = Set<OnceToken>()
| |- warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'tokens' 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 | fileprivate let lock = UnfairLock()
40 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:39:24: error: cannot find 'UnfairLock' in scope
37 |
38 | fileprivate var tokens = Set<OnceToken>()
39 | fileprivate let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
40 |
41 | /// ReerKit: Invoke the passed closure only once during the life time of the process.
[128/135] Compiling ReerKit ReadWriteLock.swift
/host/spi-builder-workspace/Sources/Utility/Debouncer.swift:28:24: error: cannot find 'UnfairLock' in scope
26 | private let queue: DispatchQueue
27 | public private(set) var workItem = DispatchWorkItem(block: {})
28 | private let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
29 |
30 | public init(queue: DispatchQueue = .main) {
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:17: error: cannot find '__dispatch_queue_get_label' in scope
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: cannot find '__dispatch_queue_get_label' in scope
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:44: error: 'nil' requires a contextual type
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: 'nil' requires a contextual type
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:37:43: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
31 |
32 | /// ReerKit: Execute a closure on main queue asynchronously.
33 | public func asyncOnMainQueue(_ action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
34 | if currentQueueLabel() == DispatchQueue.main.label {
35 | action()
36 | } else {
37 | DispatchQueue.main.async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
38 | }
39 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:52:51: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
49 |
50 | /// ReerKit: Execute a closure on global queue asynchronously.
51 | public func asyncOnGlobalQueue(qos: DispatchQoS.QoSClass = .default, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
52 | DispatchQueue.global(qos: qos).async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
53 | }
54 |
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:62:60: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
59 |
60 | /// ReerKit: Delay to execute a closure on the queue.
61 | public func delay(_ interval: Double, onQueue queue: DispatchQueue = .main, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
62 | queue.asyncAfter(deadline: .now() + interval, execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
63 | }
64 | #endif
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:82:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
83 |
84 | private static let numbersString = "0123456789"
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:46:23: warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | public static var defaultRandomizer: Randomizer = SecureRandomizer()
45 | #else
46 | public static var defaultRandomizer: Randomizer = IntRandomizer()
| |- warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultRandomizer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultRandomizer' 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 | #endif
48 | }
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:78:27: warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
76 | }
77 |
78 | public static let numbers = Self(numbersString)
| |- warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'numbers' 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
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:79:27: warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
77 |
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
| |- warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lowercaseLetters' 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
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:80:27: warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
| |- warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'uppercaseLetters' 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
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:81:27: warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
| |- warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'letters' 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
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
83 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:38:17: warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | }
37 |
38 | fileprivate var tokens = Set<OnceToken>()
| |- warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'tokens' 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 | fileprivate let lock = UnfairLock()
40 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:39:24: error: cannot find 'UnfairLock' in scope
37 |
38 | fileprivate var tokens = Set<OnceToken>()
39 | fileprivate let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
40 |
41 | /// ReerKit: Invoke the passed closure only once during the life time of the process.
[129/135] Compiling ReerKit Synchronizing.swift
/host/spi-builder-workspace/Sources/Utility/Debouncer.swift:28:24: error: cannot find 'UnfairLock' in scope
26 | private let queue: DispatchQueue
27 | public private(set) var workItem = DispatchWorkItem(block: {})
28 | private let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
29 |
30 | public init(queue: DispatchQueue = .main) {
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:17: error: cannot find '__dispatch_queue_get_label' in scope
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: cannot find '__dispatch_queue_get_label' in scope
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:44: error: 'nil' requires a contextual type
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: 'nil' requires a contextual type
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:37:43: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
31 |
32 | /// ReerKit: Execute a closure on main queue asynchronously.
33 | public func asyncOnMainQueue(_ action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
34 | if currentQueueLabel() == DispatchQueue.main.label {
35 | action()
36 | } else {
37 | DispatchQueue.main.async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
38 | }
39 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:52:51: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
49 |
50 | /// ReerKit: Execute a closure on global queue asynchronously.
51 | public func asyncOnGlobalQueue(qos: DispatchQoS.QoSClass = .default, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
52 | DispatchQueue.global(qos: qos).async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
53 | }
54 |
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:62:60: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
59 |
60 | /// ReerKit: Delay to execute a closure on the queue.
61 | public func delay(_ interval: Double, onQueue queue: DispatchQueue = .main, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
62 | queue.asyncAfter(deadline: .now() + interval, execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
63 | }
64 | #endif
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:82:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
83 |
84 | private static let numbersString = "0123456789"
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:46:23: warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | public static var defaultRandomizer: Randomizer = SecureRandomizer()
45 | #else
46 | public static var defaultRandomizer: Randomizer = IntRandomizer()
| |- warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultRandomizer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultRandomizer' 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 | #endif
48 | }
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:78:27: warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
76 | }
77 |
78 | public static let numbers = Self(numbersString)
| |- warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'numbers' 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
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:79:27: warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
77 |
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
| |- warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lowercaseLetters' 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
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:80:27: warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
| |- warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'uppercaseLetters' 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
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:81:27: warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
| |- warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'letters' 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
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
83 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:38:17: warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | }
37 |
38 | fileprivate var tokens = Set<OnceToken>()
| |- warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'tokens' 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 | fileprivate let lock = UnfairLock()
40 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:39:24: error: cannot find 'UnfairLock' in scope
37 |
38 | fileprivate var tokens = Set<OnceToken>()
39 | fileprivate let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
40 |
41 | /// ReerKit: Invoke the passed closure only once during the life time of the process.
[130/135] Compiling ReerKit UnfairLock.swift
/host/spi-builder-workspace/Sources/Utility/Debouncer.swift:28:24: error: cannot find 'UnfairLock' in scope
26 | private let queue: DispatchQueue
27 | public private(set) var workItem = DispatchWorkItem(block: {})
28 | private let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
29 |
30 | public init(queue: DispatchQueue = .main) {
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:17: error: cannot find '__dispatch_queue_get_label' in scope
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: cannot find '__dispatch_queue_get_label' in scope
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:44: error: 'nil' requires a contextual type
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: 'nil' requires a contextual type
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:37:43: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
31 |
32 | /// ReerKit: Execute a closure on main queue asynchronously.
33 | public func asyncOnMainQueue(_ action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
34 | if currentQueueLabel() == DispatchQueue.main.label {
35 | action()
36 | } else {
37 | DispatchQueue.main.async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
38 | }
39 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:52:51: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
49 |
50 | /// ReerKit: Execute a closure on global queue asynchronously.
51 | public func asyncOnGlobalQueue(qos: DispatchQoS.QoSClass = .default, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
52 | DispatchQueue.global(qos: qos).async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
53 | }
54 |
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:62:60: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
59 |
60 | /// ReerKit: Delay to execute a closure on the queue.
61 | public func delay(_ interval: Double, onQueue queue: DispatchQueue = .main, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
62 | queue.asyncAfter(deadline: .now() + interval, execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
63 | }
64 | #endif
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:82:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
83 |
84 | private static let numbersString = "0123456789"
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:46:23: warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | public static var defaultRandomizer: Randomizer = SecureRandomizer()
45 | #else
46 | public static var defaultRandomizer: Randomizer = IntRandomizer()
| |- warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultRandomizer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultRandomizer' 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 | #endif
48 | }
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:78:27: warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
76 | }
77 |
78 | public static let numbers = Self(numbersString)
| |- warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'numbers' 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
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:79:27: warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
77 |
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
| |- warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lowercaseLetters' 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
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:80:27: warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
| |- warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'uppercaseLetters' 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
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:81:27: warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
| |- warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'letters' 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
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
83 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:38:17: warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | }
37 |
38 | fileprivate var tokens = Set<OnceToken>()
| |- warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'tokens' 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 | fileprivate let lock = UnfairLock()
40 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:39:24: error: cannot find 'UnfairLock' in scope
37 |
38 | fileprivate var tokens = Set<OnceToken>()
39 | fileprivate let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
40 |
41 | /// ReerKit: Invoke the passed closure only once during the life time of the process.
[131/135] Compiling ReerKit LinearFunction.swift
/host/spi-builder-workspace/Sources/Utility/Debouncer.swift:28:24: error: cannot find 'UnfairLock' in scope
26 | private let queue: DispatchQueue
27 | public private(set) var workItem = DispatchWorkItem(block: {})
28 | private let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
29 |
30 | public init(queue: DispatchQueue = .main) {
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:17: error: cannot find '__dispatch_queue_get_label' in scope
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: cannot find '__dispatch_queue_get_label' in scope
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:44: error: 'nil' requires a contextual type
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: 'nil' requires a contextual type
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:37:43: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
31 |
32 | /// ReerKit: Execute a closure on main queue asynchronously.
33 | public func asyncOnMainQueue(_ action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
34 | if currentQueueLabel() == DispatchQueue.main.label {
35 | action()
36 | } else {
37 | DispatchQueue.main.async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
38 | }
39 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:52:51: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
49 |
50 | /// ReerKit: Execute a closure on global queue asynchronously.
51 | public func asyncOnGlobalQueue(qos: DispatchQoS.QoSClass = .default, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
52 | DispatchQueue.global(qos: qos).async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
53 | }
54 |
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:62:60: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
59 |
60 | /// ReerKit: Delay to execute a closure on the queue.
61 | public func delay(_ interval: Double, onQueue queue: DispatchQueue = .main, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
62 | queue.asyncAfter(deadline: .now() + interval, execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
63 | }
64 | #endif
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:82:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
83 |
84 | private static let numbersString = "0123456789"
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:46:23: warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | public static var defaultRandomizer: Randomizer = SecureRandomizer()
45 | #else
46 | public static var defaultRandomizer: Randomizer = IntRandomizer()
| |- warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultRandomizer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultRandomizer' 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 | #endif
48 | }
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:78:27: warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
76 | }
77 |
78 | public static let numbers = Self(numbersString)
| |- warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'numbers' 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
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:79:27: warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
77 |
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
| |- warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lowercaseLetters' 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
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:80:27: warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
| |- warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'uppercaseLetters' 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
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:81:27: warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
| |- warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'letters' 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
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
83 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:38:17: warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | }
37 |
38 | fileprivate var tokens = Set<OnceToken>()
| |- warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'tokens' 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 | fileprivate let lock = UnfairLock()
40 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:39:24: error: cannot find 'UnfairLock' in scope
37 |
38 | fileprivate var tokens = Set<OnceToken>()
39 | fileprivate let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
40 |
41 | /// ReerKit: Invoke the passed closure only once during the life time of the process.
[132/135] Compiling ReerKit Memory.swift
/host/spi-builder-workspace/Sources/Utility/Debouncer.swift:28:24: error: cannot find 'UnfairLock' in scope
26 | private let queue: DispatchQueue
27 | public private(set) var workItem = DispatchWorkItem(block: {})
28 | private let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
29 |
30 | public init(queue: DispatchQueue = .main) {
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:17: error: cannot find '__dispatch_queue_get_label' in scope
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: cannot find '__dispatch_queue_get_label' in scope
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:44: error: 'nil' requires a contextual type
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: 'nil' requires a contextual type
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:37:43: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
31 |
32 | /// ReerKit: Execute a closure on main queue asynchronously.
33 | public func asyncOnMainQueue(_ action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
34 | if currentQueueLabel() == DispatchQueue.main.label {
35 | action()
36 | } else {
37 | DispatchQueue.main.async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
38 | }
39 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:52:51: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
49 |
50 | /// ReerKit: Execute a closure on global queue asynchronously.
51 | public func asyncOnGlobalQueue(qos: DispatchQoS.QoSClass = .default, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
52 | DispatchQueue.global(qos: qos).async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
53 | }
54 |
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:62:60: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
59 |
60 | /// ReerKit: Delay to execute a closure on the queue.
61 | public func delay(_ interval: Double, onQueue queue: DispatchQueue = .main, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
62 | queue.asyncAfter(deadline: .now() + interval, execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
63 | }
64 | #endif
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:82:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
83 |
84 | private static let numbersString = "0123456789"
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:46:23: warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | public static var defaultRandomizer: Randomizer = SecureRandomizer()
45 | #else
46 | public static var defaultRandomizer: Randomizer = IntRandomizer()
| |- warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultRandomizer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultRandomizer' 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 | #endif
48 | }
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:78:27: warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
76 | }
77 |
78 | public static let numbers = Self(numbersString)
| |- warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'numbers' 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
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:79:27: warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
77 |
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
| |- warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lowercaseLetters' 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
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:80:27: warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
| |- warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'uppercaseLetters' 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
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:81:27: warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
| |- warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'letters' 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
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
83 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:38:17: warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | }
37 |
38 | fileprivate var tokens = Set<OnceToken>()
| |- warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'tokens' 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 | fileprivate let lock = UnfairLock()
40 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:39:24: error: cannot find 'UnfairLock' in scope
37 |
38 | fileprivate var tokens = Set<OnceToken>()
39 | fileprivate let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
40 |
41 | /// ReerKit: Invoke the passed closure only once during the life time of the process.
[133/135] Compiling ReerKit MulticastDelegate.swift
/host/spi-builder-workspace/Sources/Utility/Debouncer.swift:28:24: error: cannot find 'UnfairLock' in scope
26 | private let queue: DispatchQueue
27 | public private(set) var workItem = DispatchWorkItem(block: {})
28 | private let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
29 |
30 | public init(queue: DispatchQueue = .main) {
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:17: error: cannot find '__dispatch_queue_get_label' in scope
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: cannot find '__dispatch_queue_get_label' in scope
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:44: error: 'nil' requires a contextual type
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: 'nil' requires a contextual type
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:37:43: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
31 |
32 | /// ReerKit: Execute a closure on main queue asynchronously.
33 | public func asyncOnMainQueue(_ action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
34 | if currentQueueLabel() == DispatchQueue.main.label {
35 | action()
36 | } else {
37 | DispatchQueue.main.async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
38 | }
39 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:52:51: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
49 |
50 | /// ReerKit: Execute a closure on global queue asynchronously.
51 | public func asyncOnGlobalQueue(qos: DispatchQoS.QoSClass = .default, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
52 | DispatchQueue.global(qos: qos).async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
53 | }
54 |
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:62:60: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
59 |
60 | /// ReerKit: Delay to execute a closure on the queue.
61 | public func delay(_ interval: Double, onQueue queue: DispatchQueue = .main, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
62 | queue.asyncAfter(deadline: .now() + interval, execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
63 | }
64 | #endif
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:82:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
83 |
84 | private static let numbersString = "0123456789"
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:46:23: warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | public static var defaultRandomizer: Randomizer = SecureRandomizer()
45 | #else
46 | public static var defaultRandomizer: Randomizer = IntRandomizer()
| |- warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultRandomizer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultRandomizer' 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 | #endif
48 | }
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:78:27: warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
76 | }
77 |
78 | public static let numbers = Self(numbersString)
| |- warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'numbers' 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
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:79:27: warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
77 |
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
| |- warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lowercaseLetters' 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
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:80:27: warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
| |- warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'uppercaseLetters' 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
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:81:27: warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
| |- warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'letters' 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
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
83 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:38:17: warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | }
37 |
38 | fileprivate var tokens = Set<OnceToken>()
| |- warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'tokens' 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 | fileprivate let lock = UnfairLock()
40 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:39:24: error: cannot find 'UnfairLock' in scope
37 |
38 | fileprivate var tokens = Set<OnceToken>()
39 | fileprivate let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
40 |
41 | /// ReerKit: Invoke the passed closure only once during the life time of the process.
[134/135] Compiling ReerKit NanoID.swift
/host/spi-builder-workspace/Sources/Utility/Debouncer.swift:28:24: error: cannot find 'UnfairLock' in scope
26 | private let queue: DispatchQueue
27 | public private(set) var workItem = DispatchWorkItem(block: {})
28 | private let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
29 |
30 | public init(queue: DispatchQueue = .main) {
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:17: error: cannot find '__dispatch_queue_get_label' in scope
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: cannot find '__dispatch_queue_get_label' in scope
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:44: error: 'nil' requires a contextual type
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: 'nil' requires a contextual type
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:37:43: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
31 |
32 | /// ReerKit: Execute a closure on main queue asynchronously.
33 | public func asyncOnMainQueue(_ action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
34 | if currentQueueLabel() == DispatchQueue.main.label {
35 | action()
36 | } else {
37 | DispatchQueue.main.async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
38 | }
39 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:52:51: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
49 |
50 | /// ReerKit: Execute a closure on global queue asynchronously.
51 | public func asyncOnGlobalQueue(qos: DispatchQoS.QoSClass = .default, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
52 | DispatchQueue.global(qos: qos).async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
53 | }
54 |
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:62:60: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
59 |
60 | /// ReerKit: Delay to execute a closure on the queue.
61 | public func delay(_ interval: Double, onQueue queue: DispatchQueue = .main, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
62 | queue.asyncAfter(deadline: .now() + interval, execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
63 | }
64 | #endif
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:82:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
83 |
84 | private static let numbersString = "0123456789"
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:46:23: warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | public static var defaultRandomizer: Randomizer = SecureRandomizer()
45 | #else
46 | public static var defaultRandomizer: Randomizer = IntRandomizer()
| |- warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultRandomizer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultRandomizer' 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 | #endif
48 | }
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:78:27: warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
76 | }
77 |
78 | public static let numbers = Self(numbersString)
| |- warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'numbers' 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
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:79:27: warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
77 |
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
| |- warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lowercaseLetters' 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
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:80:27: warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
| |- warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'uppercaseLetters' 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
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:81:27: warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
| |- warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'letters' 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
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
83 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:38:17: warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | }
37 |
38 | fileprivate var tokens = Set<OnceToken>()
| |- warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'tokens' 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 | fileprivate let lock = UnfairLock()
40 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:39:24: error: cannot find 'UnfairLock' in scope
37 |
38 | fileprivate var tokens = Set<OnceToken>()
39 | fileprivate let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
40 |
41 | /// ReerKit: Invoke the passed closure only once during the life time of the process.
[135/135] Compiling ReerKit Once.swift
/host/spi-builder-workspace/Sources/Utility/Debouncer.swift:28:24: error: cannot find 'UnfairLock' in scope
26 | private let queue: DispatchQueue
27 | public private(set) var workItem = DispatchWorkItem(block: {})
28 | private let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
29 |
30 | public init(queue: DispatchQueue = .main) {
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:17: error: cannot find '__dispatch_queue_get_label' in scope
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: cannot find '__dispatch_queue_get_label' in scope
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:28:44: error: 'nil' requires a contextual type
26 | /// - Returns: Queue label string.
27 | public func currentQueueLabel() -> String {
28 | let label = __dispatch_queue_get_label(nil)
| `- error: 'nil' requires a contextual type
29 | return String(cString: label, encoding: .utf8) ?? ""
30 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:37:43: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
31 |
32 | /// ReerKit: Execute a closure on main queue asynchronously.
33 | public func asyncOnMainQueue(_ action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
34 | if currentQueueLabel() == DispatchQueue.main.label {
35 | action()
36 | } else {
37 | DispatchQueue.main.async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
38 | }
39 | }
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:52:51: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
49 |
50 | /// ReerKit: Execute a closure on global queue asynchronously.
51 | public func asyncOnGlobalQueue(qos: DispatchQoS.QoSClass = .default, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
52 | DispatchQueue.global(qos: qos).async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
53 | }
54 |
/host/spi-builder-workspace/Sources/Utility/GlobalFunctions.swift:62:60: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
59 |
60 | /// ReerKit: Delay to execute a closure on the queue.
61 | public func delay(_ interval: Double, onQueue queue: DispatchQueue = .main, action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
62 | queue.asyncAfter(deadline: .now() + interval, execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
63 | }
64 | #endif
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:82:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
83 |
84 | private static let numbersString = "0123456789"
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:46:23: warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | public static var defaultRandomizer: Randomizer = SecureRandomizer()
45 | #else
46 | public static var defaultRandomizer: Randomizer = IntRandomizer()
| |- warning: static property 'defaultRandomizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultRandomizer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultRandomizer' 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 | #endif
48 | }
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:78:27: warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
76 | }
77 |
78 | public static let numbers = Self(numbersString)
| |- warning: static property 'numbers' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'numbers' 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
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:79:27: warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
77 |
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
| |- warning: static property 'lowercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lowercaseLetters' 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
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:80:27: warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
78 | public static let numbers = Self(numbersString)
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
| |- warning: static property 'uppercaseLetters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'uppercaseLetters' 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
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
/host/spi-builder-workspace/Sources/Utility/NanoID.swift:81:27: warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | extension NanoID {
51 | public struct Alphabet {
| `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
52 | let characters: [Character]
53 |
:
79 | public static let lowercaseLetters = Self(lowercaseLettersString)
80 | public static let uppercaseLetters = Self(uppercaseLettersString)
81 | public static let letters = Self(lowercaseLettersString, uppercaseLettersString)
| |- warning: static property 'letters' is not concurrency-safe because non-'Sendable' type 'NanoID.Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'letters' 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
82 | public static let `default` = Self(lowercaseLettersString, uppercaseLettersString, "_-")
83 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:38:17: warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | }
37 |
38 | fileprivate var tokens = Set<OnceToken>()
| |- warning: var 'tokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'tokens' 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 | fileprivate let lock = UnfairLock()
40 |
/host/spi-builder-workspace/Sources/Utility/Once.swift:39:24: error: cannot find 'UnfairLock' in scope
37 |
38 | fileprivate var tokens = Set<OnceToken>()
39 | fileprivate let lock = UnfairLock()
| `- error: cannot find 'UnfairLock' in scope
40 |
41 | /// ReerKit: Invoke the passed closure only once during the life time of the process.
BUILD FAILURE 6.0 linux