Build Information
Failed to build GatheredKit, reference main (5fe60e
), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 20:45:25 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/JosephDuffy/GatheredKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/JosephDuffy/GatheredKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 5fe60e4 Use `ResolutionMeasurement` for screen resolution properties
Cloned https://github.com/JosephDuffy/GatheredKit.git
Revision (git rev-parse @):
5fe60e4ce57c97b9109d032c426051c7db21432c
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/JosephDuffy/GatheredKit.git at main
Fetching https://github.com/apple/swift-docc-plugin
[1/2038] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (1.26s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.0.0 (0.70s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.0.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "gatheredkit",
"name": "GatheredKit",
"url": "https://github.com/JosephDuffy/GatheredKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/GatheredKit",
"dependencies": [
]
}
]
}
Fetching https://github.com/JosephDuffy/GatheredKit.git
[1/6344] Fetching gatheredkit
Fetched https://github.com/JosephDuffy/GatheredKit.git from cache (8.47s)
Creating working copy for https://github.com/JosephDuffy/GatheredKit.git
Working copy of https://github.com/JosephDuffy/GatheredKit.git resolved at main (5fe60e4)
warning: '.resolve-product-dependencies': dependency 'gatheredkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/JosephDuffy/GatheredKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/15] Write sources
[14/15] Write swift-version--7754E27361AE5C74.txt
[16/59] Emitting module GatheredKit
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Units/UnitMagneticField.swift:8:23: warning: static property 'tesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class UnitMagneticField: Dimension {
| `- note: class 'UnitMagneticField' does not conform to the 'Sendable' protocol
4 | public override class func baseUnit() -> UnitMagneticField {
5 | tesla
6 | }
7 |
8 | public static let tesla = UnitMagneticField(
| |- warning: static property 'tesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'tesla' 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
9 | symbol: "T", converter: UnitConverterLinear(coefficient: 1)
10 | )
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Units/UnitMagneticField.swift:12:23: warning: static property 'microTesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class UnitMagneticField: Dimension {
| `- note: class 'UnitMagneticField' does not conform to the 'Sendable' protocol
4 | public override class func baseUnit() -> UnitMagneticField {
5 | tesla
:
10 | )
11 |
12 | public static let microTesla = UnitMagneticField(
| |- warning: static property 'microTesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'microTesla' 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
13 | symbol: "µT", converter: UnitConverterLinear(coefficient: 1 / 1000)
14 | )
[17/63] Compiling GatheredKit SourceProviderIdentifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Units/UnitMagneticField.swift:8:23: warning: static property 'tesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class UnitMagneticField: Dimension {
| `- note: class 'UnitMagneticField' does not conform to the 'Sendable' protocol
4 | public override class func baseUnit() -> UnitMagneticField {
5 | tesla
6 | }
7 |
8 | public static let tesla = UnitMagneticField(
| |- warning: static property 'tesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'tesla' 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
9 | symbol: "T", converter: UnitConverterLinear(coefficient: 1)
10 | )
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Units/UnitMagneticField.swift:12:23: warning: static property 'microTesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class UnitMagneticField: Dimension {
| `- note: class 'UnitMagneticField' does not conform to the 'Sendable' protocol
4 | public override class func baseUnit() -> UnitMagneticField {
5 | tesla
:
10 | )
11 |
12 | public static let microTesla = UnitMagneticField(
| |- warning: static property 'microTesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'microTesla' 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
13 | symbol: "µT", converter: UnitConverterLinear(coefficient: 1 / 1000)
14 | )
[18/63] Compiling GatheredKit UpdatingSourceProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Units/UnitMagneticField.swift:8:23: warning: static property 'tesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class UnitMagneticField: Dimension {
| `- note: class 'UnitMagneticField' does not conform to the 'Sendable' protocol
4 | public override class func baseUnit() -> UnitMagneticField {
5 | tesla
6 | }
7 |
8 | public static let tesla = UnitMagneticField(
| |- warning: static property 'tesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'tesla' 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
9 | symbol: "T", converter: UnitConverterLinear(coefficient: 1)
10 | )
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Units/UnitMagneticField.swift:12:23: warning: static property 'microTesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class UnitMagneticField: Dimension {
| `- note: class 'UnitMagneticField' does not conform to the 'Sendable' protocol
4 | public override class func baseUnit() -> UnitMagneticField {
5 | tesla
:
10 | )
11 |
12 | public static let microTesla = UnitMagneticField(
| |- warning: static property 'microTesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'microTesla' 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
13 | symbol: "µT", converter: UnitConverterLinear(coefficient: 1 / 1000)
14 | )
[19/63] Compiling GatheredKit UnitFrequency+radiansPerSecond.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Units/UnitMagneticField.swift:8:23: warning: static property 'tesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class UnitMagneticField: Dimension {
| `- note: class 'UnitMagneticField' does not conform to the 'Sendable' protocol
4 | public override class func baseUnit() -> UnitMagneticField {
5 | tesla
6 | }
7 |
8 | public static let tesla = UnitMagneticField(
| |- warning: static property 'tesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'tesla' 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
9 | symbol: "T", converter: UnitConverterLinear(coefficient: 1)
10 | )
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Units/UnitMagneticField.swift:12:23: warning: static property 'microTesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class UnitMagneticField: Dimension {
| `- note: class 'UnitMagneticField' does not conform to the 'Sendable' protocol
4 | public override class func baseUnit() -> UnitMagneticField {
5 | tesla
:
10 | )
11 |
12 | public static let microTesla = UnitMagneticField(
| |- warning: static property 'microTesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'microTesla' 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
13 | symbol: "µT", converter: UnitConverterLinear(coefficient: 1 / 1000)
14 | )
[20/63] Compiling GatheredKit UnitMagneticField.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Units/UnitMagneticField.swift:8:23: warning: static property 'tesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class UnitMagneticField: Dimension {
| `- note: class 'UnitMagneticField' does not conform to the 'Sendable' protocol
4 | public override class func baseUnit() -> UnitMagneticField {
5 | tesla
6 | }
7 |
8 | public static let tesla = UnitMagneticField(
| |- warning: static property 'tesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'tesla' 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
9 | symbol: "T", converter: UnitConverterLinear(coefficient: 1)
10 | )
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Units/UnitMagneticField.swift:12:23: warning: static property 'microTesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class UnitMagneticField: Dimension {
| `- note: class 'UnitMagneticField' does not conform to the 'Sendable' protocol
4 | public override class func baseUnit() -> UnitMagneticField {
5 | tesla
:
10 | )
11 |
12 | public static let microTesla = UnitMagneticField(
| |- warning: static property 'microTesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'microTesla' 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
13 | symbol: "µT", converter: UnitConverterLinear(coefficient: 1 / 1000)
14 | )
[21/63] Compiling GatheredKit ManuallyUpdatablePropertiesProvider.swift
[22/63] Compiling GatheredKit PropertiesProviding.swift
[23/63] Compiling GatheredKit AnySnapshot.swift
[24/63] Compiling GatheredKit BasicProperty.swift
[25/63] Compiling GatheredKit OptionalProperty.swift
[26/63] Compiling GatheredKit castToOptional.swift
[27/63] Compiling GatheredKit BoolProperty.swift
[28/63] Compiling GatheredKit AccelerationProperty.swift
[29/63] Compiling GatheredKit AngleProperty.swift
[30/63] Compiling GatheredKit AnyProperty+measurement.swift
[31/63] Compiling GatheredKit SourceEvent.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Source/UpdatingSource.swift:25:17: warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | }
24 | continuation.onTermination = { @Sendable [cancellable] _ in
25 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 | }
Combine.AnyCancellable:2:20: note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class AnyCancellable : Cancellable, Hashable {
| `- note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
3 | public init(_ cancel: @escaping () -> Void)
4 | public init<C>(_ canceller: C) where C : Cancellable
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Source/UpdatingSource.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
1 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
2 |
3 | public protocol UpdatesProviding: AnyObject {
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Source/UpdatingSource.swift:22:30: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
20 | AsyncStream<SourceEvent> { continuation in
21 | let cancellable = eventsPublisher.sink { event in
22 | continuation.yield(event)
| |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'event' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
23 | }
24 | continuation.onTermination = { @Sendable [cancellable] _ in
[32/63] Compiling GatheredKit SourceIdentifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Source/UpdatingSource.swift:25:17: warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | }
24 | continuation.onTermination = { @Sendable [cancellable] _ in
25 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 | }
Combine.AnyCancellable:2:20: note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class AnyCancellable : Cancellable, Hashable {
| `- note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
3 | public init(_ cancel: @escaping () -> Void)
4 | public init<C>(_ canceller: C) where C : Cancellable
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Source/UpdatingSource.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
1 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
2 |
3 | public protocol UpdatesProviding: AnyObject {
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Source/UpdatingSource.swift:22:30: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
20 | AsyncStream<SourceEvent> { continuation in
21 | let cancellable = eventsPublisher.sink { event in
22 | continuation.yield(event)
| |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'event' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
23 | }
24 | continuation.onTermination = { @Sendable [cancellable] _ in
[33/63] Compiling GatheredKit SourceKind.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Source/UpdatingSource.swift:25:17: warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | }
24 | continuation.onTermination = { @Sendable [cancellable] _ in
25 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 | }
Combine.AnyCancellable:2:20: note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class AnyCancellable : Cancellable, Hashable {
| `- note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
3 | public init(_ cancel: @escaping () -> Void)
4 | public init<C>(_ canceller: C) where C : Cancellable
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Source/UpdatingSource.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
1 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
2 |
3 | public protocol UpdatesProviding: AnyObject {
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Source/UpdatingSource.swift:22:30: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
20 | AsyncStream<SourceEvent> { continuation in
21 | let cancellable = eventsPublisher.sink { event in
22 | continuation.yield(event)
| |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'event' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
23 | }
24 | continuation.onTermination = { @Sendable [cancellable] _ in
[34/63] Compiling GatheredKit UpdatingSource.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Source/UpdatingSource.swift:25:17: warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | }
24 | continuation.onTermination = { @Sendable [cancellable] _ in
25 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 | }
Combine.AnyCancellable:2:20: note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class AnyCancellable : Cancellable, Hashable {
| `- note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
3 | public init(_ cancel: @escaping () -> Void)
4 | public init<C>(_ canceller: C) where C : Cancellable
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Source/UpdatingSource.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
1 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
2 |
3 | public protocol UpdatesProviding: AnyObject {
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Source/UpdatingSource.swift:22:30: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
20 | AsyncStream<SourceEvent> { continuation in
21 | let cancellable = eventsPublisher.sink { event in
22 | continuation.yield(event)
| |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'event' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
23 | }
24 | continuation.onTermination = { @Sendable [cancellable] _ in
[35/63] Compiling GatheredKit Controllable.swift
[36/63] Compiling GatheredKit ControllableError.swift
[37/63] Compiling GatheredKit CustomisableUpdateIntervalControllable.swift
[38/63] Compiling GatheredKit OperationQueue+convenience.swift
[39/63] Compiling GatheredKit String+localized.swift
[40/63] Compiling GatheredKit UpdatableProperty.swift
[41/63] Compiling GatheredKit BasePollingSource.swift
[42/63] Compiling GatheredKit Source.swift
[43/63] Compiling GatheredKit SourceAvailability.swift
[44/63] Compiling GatheredKit SourceError.swift
[45/63] Compiling GatheredKit FrequencyProperty.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Units/UnitMagneticField.swift:8:23: warning: static property 'tesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class UnitMagneticField: Dimension {
| `- note: class 'UnitMagneticField' does not conform to the 'Sendable' protocol
4 | public override class func baseUnit() -> UnitMagneticField {
5 | tesla
6 | }
7 |
8 | public static let tesla = UnitMagneticField(
| |- warning: static property 'tesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'tesla' 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
9 | symbol: "T", converter: UnitConverterLinear(coefficient: 1)
10 | )
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Units/UnitMagneticField.swift:12:23: warning: static property 'microTesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class UnitMagneticField: Dimension {
| `- note: class 'UnitMagneticField' does not conform to the 'Sendable' protocol
4 | public override class func baseUnit() -> UnitMagneticField {
5 | tesla
:
10 | )
11 |
12 | public static let microTesla = UnitMagneticField(
| |- warning: static property 'microTesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'microTesla' 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
13 | symbol: "µT", converter: UnitConverterLinear(coefficient: 1 / 1000)
14 | )
[46/63] Compiling GatheredKit LengthProperty.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Units/UnitMagneticField.swift:8:23: warning: static property 'tesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class UnitMagneticField: Dimension {
| `- note: class 'UnitMagneticField' does not conform to the 'Sendable' protocol
4 | public override class func baseUnit() -> UnitMagneticField {
5 | tesla
6 | }
7 |
8 | public static let tesla = UnitMagneticField(
| |- warning: static property 'tesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'tesla' 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
9 | symbol: "T", converter: UnitConverterLinear(coefficient: 1)
10 | )
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Units/UnitMagneticField.swift:12:23: warning: static property 'microTesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class UnitMagneticField: Dimension {
| `- note: class 'UnitMagneticField' does not conform to the 'Sendable' protocol
4 | public override class func baseUnit() -> UnitMagneticField {
5 | tesla
:
10 | )
11 |
12 | public static let microTesla = UnitMagneticField(
| |- warning: static property 'microTesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'microTesla' 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
13 | symbol: "µT", converter: UnitConverterLinear(coefficient: 1 / 1000)
14 | )
[47/63] Compiling GatheredKit MagneticFieldProperty.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Units/UnitMagneticField.swift:8:23: warning: static property 'tesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class UnitMagneticField: Dimension {
| `- note: class 'UnitMagneticField' does not conform to the 'Sendable' protocol
4 | public override class func baseUnit() -> UnitMagneticField {
5 | tesla
6 | }
7 |
8 | public static let tesla = UnitMagneticField(
| |- warning: static property 'tesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'tesla' 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
9 | symbol: "T", converter: UnitConverterLinear(coefficient: 1)
10 | )
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Units/UnitMagneticField.swift:12:23: warning: static property 'microTesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class UnitMagneticField: Dimension {
| `- note: class 'UnitMagneticField' does not conform to the 'Sendable' protocol
4 | public override class func baseUnit() -> UnitMagneticField {
5 | tesla
:
10 | )
11 |
12 | public static let microTesla = UnitMagneticField(
| |- warning: static property 'microTesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'microTesla' 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
13 | symbol: "µT", converter: UnitConverterLinear(coefficient: 1 / 1000)
14 | )
[48/63] Compiling GatheredKit MeasurementProperty.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Units/UnitMagneticField.swift:8:23: warning: static property 'tesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class UnitMagneticField: Dimension {
| `- note: class 'UnitMagneticField' does not conform to the 'Sendable' protocol
4 | public override class func baseUnit() -> UnitMagneticField {
5 | tesla
6 | }
7 |
8 | public static let tesla = UnitMagneticField(
| |- warning: static property 'tesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'tesla' 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
9 | symbol: "T", converter: UnitConverterLinear(coefficient: 1)
10 | )
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Units/UnitMagneticField.swift:12:23: warning: static property 'microTesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class UnitMagneticField: Dimension {
| `- note: class 'UnitMagneticField' does not conform to the 'Sendable' protocol
4 | public override class func baseUnit() -> UnitMagneticField {
5 | tesla
:
10 | )
11 |
12 | public static let microTesla = UnitMagneticField(
| |- warning: static property 'microTesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'microTesla' 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
13 | symbol: "µT", converter: UnitConverterLinear(coefficient: 1 / 1000)
14 | )
[49/63] Compiling GatheredKit OptionalMeasurementProperty.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Units/UnitMagneticField.swift:8:23: warning: static property 'tesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class UnitMagneticField: Dimension {
| `- note: class 'UnitMagneticField' does not conform to the 'Sendable' protocol
4 | public override class func baseUnit() -> UnitMagneticField {
5 | tesla
6 | }
7 |
8 | public static let tesla = UnitMagneticField(
| |- warning: static property 'tesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'tesla' 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
9 | symbol: "T", converter: UnitConverterLinear(coefficient: 1)
10 | )
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Units/UnitMagneticField.swift:12:23: warning: static property 'microTesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class UnitMagneticField: Dimension {
| `- note: class 'UnitMagneticField' does not conform to the 'Sendable' protocol
4 | public override class func baseUnit() -> UnitMagneticField {
5 | tesla
:
10 | )
11 |
12 | public static let microTesla = UnitMagneticField(
| |- warning: static property 'microTesla' is not concurrency-safe because non-'Sendable' type 'UnitMagneticField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'microTesla' 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
13 | symbol: "µT", converter: UnitConverterLinear(coefficient: 1 / 1000)
14 | )
[50/63] Compiling GatheredKit ControllableSourceProvider.swift
[51/63] Compiling GatheredKit SingleSourceProvider.swift
[52/63] Compiling GatheredKit SourceProvider.swift
[53/63] Compiling GatheredKit SourceProviderEvent.swift
[54/63] Compiling GatheredKit PressureProperty.swift
[55/63] Compiling GatheredKit SpeedProperty.swift
[56/63] Compiling GatheredKit NumericProperties.swift
[57/63] Compiling GatheredKit PercentProperty.swift
[58/63] Compiling GatheredKit StringProperty.swift
[59/63] Compiling GatheredKit Property.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:43:17: warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 | }
42 | continuation.onTermination = { @Sendable [cancellable] _ in
43 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 | }
Combine.AnyCancellable:2:20: note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class AnyCancellable : Cancellable, Hashable {
| `- note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
3 | public init(_ cancel: @escaping () -> Void)
4 | public init<C>(_ canceller: C) where C : Cancellable
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
1 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
2 | import Foundation
3 |
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:55:17: warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | }
54 | continuation.onTermination = { @Sendable [cancellable] _ in
55 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | }
57 | }
Combine.AnyCancellable:2:20: note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class AnyCancellable : Cancellable, Hashable {
| `- note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
3 | public init(_ cancel: @escaping () -> Void)
4 | public init<C>(_ canceller: C) where C : Cancellable
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:40:30: warning: sending 'snapshot' risks causing data races; this is an error in the Swift 6 language mode
38 | AsyncStream<Snapshot<Value>> { continuation in
39 | let cancellable = snapshotsPublisher.sink { snapshot in
40 | continuation.yield(snapshot)
| |- warning: sending 'snapshot' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'snapshot' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
41 | }
42 | continuation.onTermination = { @Sendable [cancellable] _ in
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:52:30: warning: sending 'snapshot.value' risks causing data races; this is an error in the Swift 6 language mode
50 | AsyncStream<Value> { continuation in
51 | let cancellable = snapshotsPublisher.sink { snapshot in
52 | continuation.yield(snapshot.value)
| |- warning: sending 'snapshot.value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'snapshot.value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
53 | }
54 | continuation.onTermination = { @Sendable [cancellable] _ in
[60/63] Compiling GatheredKit PropertyIdentifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:43:17: warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 | }
42 | continuation.onTermination = { @Sendable [cancellable] _ in
43 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 | }
Combine.AnyCancellable:2:20: note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class AnyCancellable : Cancellable, Hashable {
| `- note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
3 | public init(_ cancel: @escaping () -> Void)
4 | public init<C>(_ canceller: C) where C : Cancellable
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
1 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
2 | import Foundation
3 |
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:55:17: warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | }
54 | continuation.onTermination = { @Sendable [cancellable] _ in
55 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | }
57 | }
Combine.AnyCancellable:2:20: note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class AnyCancellable : Cancellable, Hashable {
| `- note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
3 | public init(_ cancel: @escaping () -> Void)
4 | public init<C>(_ canceller: C) where C : Cancellable
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:40:30: warning: sending 'snapshot' risks causing data races; this is an error in the Swift 6 language mode
38 | AsyncStream<Snapshot<Value>> { continuation in
39 | let cancellable = snapshotsPublisher.sink { snapshot in
40 | continuation.yield(snapshot)
| |- warning: sending 'snapshot' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'snapshot' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
41 | }
42 | continuation.onTermination = { @Sendable [cancellable] _ in
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:52:30: warning: sending 'snapshot.value' risks causing data races; this is an error in the Swift 6 language mode
50 | AsyncStream<Value> { continuation in
51 | let cancellable = snapshotsPublisher.sink { snapshot in
52 | continuation.yield(snapshot.value)
| |- warning: sending 'snapshot.value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'snapshot.value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
53 | }
54 | continuation.onTermination = { @Sendable [cancellable] _ in
[61/63] Compiling GatheredKit ReadOnlyProperty.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:43:17: warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 | }
42 | continuation.onTermination = { @Sendable [cancellable] _ in
43 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 | }
Combine.AnyCancellable:2:20: note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class AnyCancellable : Cancellable, Hashable {
| `- note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
3 | public init(_ cancel: @escaping () -> Void)
4 | public init<C>(_ canceller: C) where C : Cancellable
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
1 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
2 | import Foundation
3 |
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:55:17: warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | }
54 | continuation.onTermination = { @Sendable [cancellable] _ in
55 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | }
57 | }
Combine.AnyCancellable:2:20: note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class AnyCancellable : Cancellable, Hashable {
| `- note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
3 | public init(_ cancel: @escaping () -> Void)
4 | public init<C>(_ canceller: C) where C : Cancellable
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:40:30: warning: sending 'snapshot' risks causing data races; this is an error in the Swift 6 language mode
38 | AsyncStream<Snapshot<Value>> { continuation in
39 | let cancellable = snapshotsPublisher.sink { snapshot in
40 | continuation.yield(snapshot)
| |- warning: sending 'snapshot' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'snapshot' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
41 | }
42 | continuation.onTermination = { @Sendable [cancellable] _ in
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:52:30: warning: sending 'snapshot.value' risks causing data races; this is an error in the Swift 6 language mode
50 | AsyncStream<Value> { continuation in
51 | let cancellable = snapshotsPublisher.sink { snapshot in
52 | continuation.yield(snapshot.value)
| |- warning: sending 'snapshot.value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'snapshot.value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
53 | }
54 | continuation.onTermination = { @Sendable [cancellable] _ in
[62/63] Compiling GatheredKit ScaleProperty.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:43:17: warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 | }
42 | continuation.onTermination = { @Sendable [cancellable] _ in
43 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 | }
Combine.AnyCancellable:2:20: note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class AnyCancellable : Cancellable, Hashable {
| `- note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
3 | public init(_ cancel: @escaping () -> Void)
4 | public init<C>(_ canceller: C) where C : Cancellable
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
1 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
2 | import Foundation
3 |
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:55:17: warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | }
54 | continuation.onTermination = { @Sendable [cancellable] _ in
55 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | }
57 | }
Combine.AnyCancellable:2:20: note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class AnyCancellable : Cancellable, Hashable {
| `- note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
3 | public init(_ cancel: @escaping () -> Void)
4 | public init<C>(_ canceller: C) where C : Cancellable
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:40:30: warning: sending 'snapshot' risks causing data races; this is an error in the Swift 6 language mode
38 | AsyncStream<Snapshot<Value>> { continuation in
39 | let cancellable = snapshotsPublisher.sink { snapshot in
40 | continuation.yield(snapshot)
| |- warning: sending 'snapshot' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'snapshot' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
41 | }
42 | continuation.onTermination = { @Sendable [cancellable] _ in
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:52:30: warning: sending 'snapshot.value' risks causing data races; this is an error in the Swift 6 language mode
50 | AsyncStream<Value> { continuation in
51 | let cancellable = snapshotsPublisher.sink { snapshot in
52 | continuation.yield(snapshot.value)
| |- warning: sending 'snapshot.value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'snapshot.value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
53 | }
54 | continuation.onTermination = { @Sendable [cancellable] _ in
[63/63] Compiling GatheredKit Snapshot.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:43:17: warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 | }
42 | continuation.onTermination = { @Sendable [cancellable] _ in
43 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 | }
Combine.AnyCancellable:2:20: note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class AnyCancellable : Cancellable, Hashable {
| `- note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
3 | public init(_ cancel: @escaping () -> Void)
4 | public init<C>(_ canceller: C) where C : Cancellable
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
1 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
2 | import Foundation
3 |
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:55:17: warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | }
54 | continuation.onTermination = { @Sendable [cancellable] _ in
55 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'AnyCancellable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | }
57 | }
Combine.AnyCancellable:2:20: note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class AnyCancellable : Cancellable, Hashable {
| `- note: class 'AnyCancellable' does not conform to the 'Sendable' protocol
3 | public init(_ cancel: @escaping () -> Void)
4 | public init<C>(_ canceller: C) where C : Cancellable
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:40:30: warning: sending 'snapshot' risks causing data races; this is an error in the Swift 6 language mode
38 | AsyncStream<Snapshot<Value>> { continuation in
39 | let cancellable = snapshotsPublisher.sink { snapshot in
40 | continuation.yield(snapshot)
| |- warning: sending 'snapshot' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'snapshot' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
41 | }
42 | continuation.onTermination = { @Sendable [cancellable] _ in
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKit/Property/Property.swift:52:30: warning: sending 'snapshot.value' risks causing data races; this is an error in the Swift 6 language mode
50 | AsyncStream<Value> { continuation in
51 | let cancellable = snapshotsPublisher.sink { snapshot in
52 | continuation.yield(snapshot.value)
| |- warning: sending 'snapshot.value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'snapshot.value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
53 | }
54 | continuation.onTermination = { @Sendable [cancellable] _ in
[64/140] Compiling GatheredKitDevice SourceKind+battery.swift
[65/140] Emitting module GatheredKitDevice
[66/140] Compiling GatheredKitDevice BatteryStateProperty.swift
[67/140] Compiling GatheredKitDevice Battery.swift
[68/140] Compiling GatheredKitSystemStatistics SourceKind+memoryUsage.swift
[69/140] Compiling GatheredKitExternalAccessory SourceKind+externalAccessory.swift
[70/140] Compiling GatheredKitProcessInfo ThermalStateProperty.swift
[71/140] Emitting module GatheredKitTestHelpers
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitTestHelpers/Mocks/MockNotificationCenter.swift:3:20: warning: class 'MockNotificationCenter' must restate inherited '@unchecked Sendable' conformance
1 | import Foundation
2 |
3 | public final class MockNotificationCenter: NotificationCenter {
| `- warning: class 'MockNotificationCenter' must restate inherited '@unchecked Sendable' conformance
4 | public typealias AddObserverParameters = (
5 | name: Notification.Name?, object: Any?, queue: OperationQueue?,
[72/140] Compiling GatheredKitTestHelpers MockNotificationCenter.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitTestHelpers/Mocks/MockNotificationCenter.swift:3:20: warning: class 'MockNotificationCenter' must restate inherited '@unchecked Sendable' conformance
1 | import Foundation
2 |
3 | public final class MockNotificationCenter: NotificationCenter {
| `- warning: class 'MockNotificationCenter' must restate inherited '@unchecked Sendable' conformance
4 | public typealias AddObserverParameters = (
5 | name: Notification.Name?, object: Any?, queue: OperationQueue?,
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitTestHelpers/Mocks/MockNotificationCenter.swift:75:95: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
65 | public override func addObserver(
66 | forName name: Notification.Name?, object obj: Any?, queue: OperationQueue?,
67 | using block: @escaping (Notification) -> Void
| `- note: parameter 'block' is implicitly non-sendable
68 | ) -> NSObjectProtocol {
69 | defer {
:
73 | addObserverParameters.append((name: name, object: obj, queue: queue, block: block))
74 |
75 | let opaqueObject = super.addObserver(forName: name, object: obj, queue: queue, using: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
76 | addObserverOpaqueObjects.append(opaqueObject)
77 | return opaqueObject
[73/146] Emitting module GatheredKitUserTracking
[74/146] Compiling GatheredKitLocation SourceKind+location.swift
[75/146] Emitting module GatheredKitProcessInfo
[76/146] Compiling GatheredKitProcessInfo SourceKind+thermalState.swift
[77/146] Compiling GatheredKitProcessInfo ThermalState.swift
[78/146] Compiling GatheredKitExternalAccessory ExternalAccessoryProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitExternalAccessory/ExternalAccessoryProvider.swift:97:18: warning: TODO: Perform a diff based on ids
95 |
96 | private func updateSources() {
97 | #warning("TODO: Perform a diff based on ids")
| `- warning: TODO: Perform a diff based on ids
98 | sources = accessoryManager.connectedAccessories.map { accessory in
99 | ExternalAccessory(accessory: accessory)
[79/146] Compiling GatheredKitUserTracking UserTracking.swift
[80/146] Compiling GatheredKitUserTracking SourceKind+userTracking.swift
[81/146] Emitting module GatheredKitExternalAccessory
[82/146] Compiling GatheredKitExternalAccessory ExternalAccessory.swift
[83/146] Compiling GatheredKitLocation CoordinateProperty.swift
[84/146] Compiling GatheredKitLocation CoordinatePropertyIdentifier.swift
[85/146] Compiling GatheredKitLocation CLLocationAuthorizationProperty.swift
[86/146] Emitting module GatheredKitLocation
[87/146] Compiling GatheredKitMotion CMAccelerationFormatter.swift
[88/146] Compiling GatheredKitMotion CMAttitudeFormatter.swift
[89/146] Compiling GatheredKitMotion CMCalibratedMagneticFieldFormatter.swift
[90/146] Compiling GatheredKitMotion CMMagneticFieldFormatter.swift
[91/149] Compiling GatheredKitMotion CMLogItem+date.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitMotion/Sources/CMMotionManager+shared.swift:6:13: warning: var '_sharedCMMotionManager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | @available(macOS, unavailable)
6 | private var _sharedCMMotionManager: CMMotionManager?
| |- warning: var '_sharedCMMotionManager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_sharedCMMotionManager' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_sharedCMMotionManager' 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
7 | private let accessLock = NSLock()
8 |
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitMotion/Sources/DeviceMotion.swift:18:23: warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | public let availability: SourceAvailability
17 |
18 | public static var defaultUpdateInterval: TimeInterval = 1
| |- warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultUpdateInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultUpdateInterval' 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
19 |
20 | public static func availableReferenceFrames() -> CMAttitudeReferenceFrame {
[92/149] Compiling GatheredKitMotion CMMotionManager+shared.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitMotion/Sources/CMMotionManager+shared.swift:6:13: warning: var '_sharedCMMotionManager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | @available(macOS, unavailable)
6 | private var _sharedCMMotionManager: CMMotionManager?
| |- warning: var '_sharedCMMotionManager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_sharedCMMotionManager' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_sharedCMMotionManager' 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
7 | private let accessLock = NSLock()
8 |
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitMotion/Sources/DeviceMotion.swift:18:23: warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | public let availability: SourceAvailability
17 |
18 | public static var defaultUpdateInterval: TimeInterval = 1
| |- warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultUpdateInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultUpdateInterval' 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
19 |
20 | public static func availableReferenceFrames() -> CMAttitudeReferenceFrame {
[93/149] Compiling GatheredKitMotion DeviceMotion.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitMotion/Sources/CMMotionManager+shared.swift:6:13: warning: var '_sharedCMMotionManager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | @available(macOS, unavailable)
6 | private var _sharedCMMotionManager: CMMotionManager?
| |- warning: var '_sharedCMMotionManager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_sharedCMMotionManager' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_sharedCMMotionManager' 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
7 | private let accessLock = NSLock()
8 |
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitMotion/Sources/DeviceMotion.swift:18:23: warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | public let availability: SourceAvailability
17 |
18 | public static var defaultUpdateInterval: TimeInterval = 1
| |- warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultUpdateInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultUpdateInterval' 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
19 |
20 | public static func availableReferenceFrames() -> CMAttitudeReferenceFrame {
[94/149] Emitting module GatheredKitSystemStatistics
[95/149] Compiling GatheredKitSystemStatistics MemoryStatistics.swift
[96/149] Compiling GatheredKitMotion CMAbsoluteAltitudeDataShim.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitMotion/Sources/Accelerometer.swift:18:23: warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | public let availability: SourceAvailability
17 |
18 | public static var defaultUpdateInterval: TimeInterval = 1
| |- warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultUpdateInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultUpdateInterval' 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
19 |
20 | public var eventsPublisher: AnyPublisher<SourceEvent, Never> {
[97/149] Compiling GatheredKitMotion Accelerometer.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitMotion/Sources/Accelerometer.swift:18:23: warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | public let availability: SourceAvailability
17 |
18 | public static var defaultUpdateInterval: TimeInterval = 1
| |- warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultUpdateInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultUpdateInterval' 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
19 |
20 | public var eventsPublisher: AnyPublisher<SourceEvent, Never> {
[98/149] Compiling GatheredKitMotion Altimeter.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitMotion/Sources/Accelerometer.swift:18:23: warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | public let availability: SourceAvailability
17 |
18 | public static var defaultUpdateInterval: TimeInterval = 1
| |- warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultUpdateInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultUpdateInterval' 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
19 |
20 | public var eventsPublisher: AnyPublisher<SourceEvent, Never> {
[99/149] Compiling GatheredKitMotion MagneticFieldCalibrationAccuracyProperty.swift
[100/149] Compiling GatheredKitMotion OptionalCMAbsoluteAltitudeDataProperty.swift
[101/149] Compiling GatheredKitMotion OptionalCMAccelerationProperty.swift
[102/149] Compiling GatheredKitMotion OptionalCMAttitudeProperty.swift
[103/149] Compiling GatheredKitMotion OptionalCMCalibratedMagneticFieldProperty.swift
[104/149] Compiling GatheredKitMotion OptionalCMMagneticFieldProperty.swift
[105/149] Compiling GatheredKitMotion OptionalCMQuaternionProperty.swift
[106/149] Compiling GatheredKitMotion OptionalCMRotationMatrixProperty.swift
[107/149] Compiling GatheredKitMotion OptionalCMRotationRateProperty.swift
[108/149] Compiling GatheredKitLocation OptionalCoordinateProperty.swift
[109/149] Compiling GatheredKitLocation Location.swift
[110/149] Compiling GatheredKitMotion CMMagneticFieldProperty.swift
[111/149] Compiling GatheredKitMotion CMQuaternionProperty.swift
[112/149] Compiling GatheredKitMotion CMRotationMatrixProperty.swift
[113/149] Compiling GatheredKitMotion CMRotationRateProperty.swift
[114/149] Compiling GatheredKitMotion CMAbsoluteAltitudeDataProperty.swift
[115/149] Compiling GatheredKitMotion CMAccelerationProperty.swift
[116/149] Compiling GatheredKitMotion CMAttitudeProperty.swift
[117/149] Compiling GatheredKitMotion CMCalibratedMagneticFieldProperty.swift
[118/149] Compiling GatheredKitMotion CMQuaternionFormatter.swift
[119/149] Compiling GatheredKitMotion CMRotationMatrixFormatter.swift
[120/149] Compiling GatheredKitMotion CMRotationRateFormatter.swift
[121/149] Compiling GatheredKitMotion MagneticFieldCalibrationAccuracyFormatter.swift
[122/149] Compiling GatheredKitWiFi WiFi.swift
[123/149] Compiling GatheredKitWiFi WiFiProvider.swift
[124/149] Compiling GatheredKitWiFi SourceKind+wifi.swift
[125/149] Emitting module GatheredKitWiFi
[126/149] Emitting module GatheredKitMotion
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitMotion/Sources/Accelerometer.swift:18:23: warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | public let availability: SourceAvailability
17 |
18 | public static var defaultUpdateInterval: TimeInterval = 1
| |- warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultUpdateInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultUpdateInterval' 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
19 |
20 | public var eventsPublisher: AnyPublisher<SourceEvent, Never> {
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitMotion/Sources/CMMotionManager+shared.swift:6:13: warning: var '_sharedCMMotionManager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | @available(macOS, unavailable)
6 | private var _sharedCMMotionManager: CMMotionManager?
| |- warning: var '_sharedCMMotionManager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_sharedCMMotionManager' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_sharedCMMotionManager' 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
7 | private let accessLock = NSLock()
8 |
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitMotion/Sources/DeviceMotion.swift:18:23: warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | public let availability: SourceAvailability
17 |
18 | public static var defaultUpdateInterval: TimeInterval = 1
| |- warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultUpdateInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultUpdateInterval' 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
19 |
20 | public static func availableReferenceFrames() -> CMAttitudeReferenceFrame {
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitMotion/Sources/Gyroscope.swift:18:23: warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | public let availability: SourceAvailability
17 |
18 | public static var defaultUpdateInterval: TimeInterval = 1
| |- warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultUpdateInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultUpdateInterval' 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
19 |
20 | public var eventsPublisher: AnyPublisher<SourceEvent, Never> {
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitMotion/Sources/Magnetometer.swift:18:23: warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | public let availability: SourceAvailability
17 |
18 | public static var defaultUpdateInterval: TimeInterval = 1
| |- warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultUpdateInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultUpdateInterval' 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
19 |
20 | public var eventsPublisher: AnyPublisher<SourceEvent, Never> {
[127/149] Compiling GatheredKitMotion Gyroscope.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitMotion/Sources/Gyroscope.swift:18:23: warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | public let availability: SourceAvailability
17 |
18 | public static var defaultUpdateInterval: TimeInterval = 1
| |- warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultUpdateInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultUpdateInterval' 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
19 |
20 | public var eventsPublisher: AnyPublisher<SourceEvent, Never> {
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitMotion/Sources/Magnetometer.swift:18:23: warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | public let availability: SourceAvailability
17 |
18 | public static var defaultUpdateInterval: TimeInterval = 1
| |- warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultUpdateInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultUpdateInterval' 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
19 |
20 | public var eventsPublisher: AnyPublisher<SourceEvent, Never> {
[128/149] Compiling GatheredKitMotion Magnetometer.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitMotion/Sources/Gyroscope.swift:18:23: warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | public let availability: SourceAvailability
17 |
18 | public static var defaultUpdateInterval: TimeInterval = 1
| |- warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultUpdateInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultUpdateInterval' 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
19 |
20 | public var eventsPublisher: AnyPublisher<SourceEvent, Never> {
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitMotion/Sources/Magnetometer.swift:18:23: warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | public let availability: SourceAvailability
17 |
18 | public static var defaultUpdateInterval: TimeInterval = 1
| |- warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultUpdateInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultUpdateInterval' 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
19 |
20 | public var eventsPublisher: AnyPublisher<SourceEvent, Never> {
[129/149] Compiling GatheredKitMotion SourceKind+motionSources.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitMotion/Sources/Gyroscope.swift:18:23: warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | public let availability: SourceAvailability
17 |
18 | public static var defaultUpdateInterval: TimeInterval = 1
| |- warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultUpdateInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultUpdateInterval' 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
19 |
20 | public var eventsPublisher: AnyPublisher<SourceEvent, Never> {
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitMotion/Sources/Magnetometer.swift:18:23: warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | public let availability: SourceAvailability
17 |
18 | public static var defaultUpdateInterval: TimeInterval = 1
| |- warning: static property 'defaultUpdateInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultUpdateInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultUpdateInterval' 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
19 |
20 | public var eventsPublisher: AnyPublisher<SourceEvent, Never> {
[130/149] Compiling GatheredKitScreen Screen_watchOS.swift
[131/149] Compiling GatheredKitScreen SourceKind+screen.swift
[132/150] Compiling GatheredKitScreen UnitResolution.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitScreen/Units/UnitResolution.swift:10:23: warning: static property 'pixels' is not concurrency-safe because non-'Sendable' type 'UnitResolution' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// Unit of measurement for screen resolution.
5 | public final class UnitResolution: Dimension {
| `- note: class 'UnitResolution' does not conform to the 'Sendable' protocol
6 | public override class func baseUnit() -> UnitResolution {
7 | pixels
8 | }
9 |
10 | public static let pixels = UnitResolution(
| |- warning: static property 'pixels' is not concurrency-safe because non-'Sendable' type 'UnitResolution' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pixels' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | symbol: "px", converter: UnitConverterLinear(coefficient: 1)
12 | )
[133/150] Compiling GatheredKitScreen Screen_iOS_tvOS.swift
[134/150] Compiling GatheredKitScreen Screen_macOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitScreen/Screen_macOS.swift:44:29: error: property type 'CGSize' does not match 'wrappedValue' type 'ResolutionMeasurement'
42 | */
43 | @ResolutionProperty
44 | public private(set) var resolution: CGSize
| `- error: property type 'CGSize' does not match 'wrappedValue' type 'ResolutionMeasurement'
45 |
46 | /**
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitScreen/Screen_macOS.swift:116:24: error: cannot infer contextual base in reference to member 'init'
114 | self.notificationCenter = notificationCenter
115 |
116 | _resolution = .init(
| `- error: cannot infer contextual base in reference to member 'init'
117 | id: id.identifierForChildPropertyWithId("resolution"),
118 | value: screen.frame.size,
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitScreen/Screen_macOS.swift:119:20: error: cannot infer contextual base in reference to member 'pixels'
117 | id: id.identifierForChildPropertyWithId("resolution"),
118 | value: screen.frame.size,
119 | unit: .pixels
| `- error: cannot infer contextual base in reference to member 'pixels'
120 | )
121 | _colorSpace = .init(
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitScreen/Screen_macOS.swift:156:30: warning: capture of 'self' with non-sendable type 'Screen?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
5 |
6 | /// A wrapper around `NSScreen`.
7 | public final class Screen: UpdatingSource, Controllable {
| `- note: class 'Screen' does not conform to the 'Sendable' protocol
8 | private enum State {
9 | case notMonitoring
:
154 | queue: updatesQueue
155 | ) { [weak self] notification in
156 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Screen?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | guard let screen = notification.object as? NSScreen else { return }
158 | self._colorSpace.updateValue(screen.colorSpace)
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitScreen/Screen_macOS.swift:181:39: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
171 | Stop performing automatic date refreshes
172 | */
173 | public func stopUpdating() {
| `- note: add '@MainActor' to make instance method 'stopUpdating()' part of global actor 'MainActor'
174 | guard case .monitoring(let screenParametersObserver, let colorSpaceObserver, _) = state
175 | else { return }
:
179 | screenParametersObserver,
180 | name: NSApplication.didChangeScreenParametersNotification,
181 | object: NSApplication.shared
| `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
182 | )
183 |
AppKit.NSApplication:2:31: note: class property declared here
1 | @MainActor open class NSApplication : NSResponder, NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
2 | @MainActor open class var shared: NSApplication { get }
| `- note: class property declared here
3 | @available(swift, obsoleted: 3, renamed: "shared")
4 | open class var sharedApplication: NSApplication { get }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[137/150] Emitting module GatheredKitScreen
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitScreen/Screen_macOS.swift:44:29: error: property type 'CGSize' does not match 'wrappedValue' type 'ResolutionMeasurement'
42 | */
43 | @ResolutionProperty
44 | public private(set) var resolution: CGSize
| `- error: property type 'CGSize' does not match 'wrappedValue' type 'ResolutionMeasurement'
45 |
46 | /**
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitScreen/Units/UnitResolution.swift:10:23: warning: static property 'pixels' is not concurrency-safe because non-'Sendable' type 'UnitResolution' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// Unit of measurement for screen resolution.
5 | public final class UnitResolution: Dimension {
| `- note: class 'UnitResolution' does not conform to the 'Sendable' protocol
6 | public override class func baseUnit() -> UnitResolution {
7 | pixels
8 | }
9 |
10 | public static let pixels = UnitResolution(
| |- warning: static property 'pixels' is not concurrency-safe because non-'Sendable' type 'UnitResolution' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pixels' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | symbol: "px", converter: UnitConverterLinear(coefficient: 1)
12 | )
[140/150] Compiling GatheredKitScreen ScreenProvider_macOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/GatheredKitScreen/Screen_macOS.swift:44:29: error: property type 'CGSize' does not match 'wrappedValue' type 'ResolutionMeasurement'
42 | */
43 | @ResolutionProperty
44 | public private(set) var resolution: CGSize
| `- error: property type 'CGSize' does not match 'wrappedValue' type 'ResolutionMeasurement'
45 |
46 | /**
[145/150] Compiling GatheredKitCamera SourceKind+camera.swift
[146/150] Emitting module GatheredKitCamera
BUILD FAILURE 6.0 macosSpm