Build Information
Successful build of FirebladeTime, reference master (ec6e64
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 15:59:36 UTC.
Swift 6 data race errors: 11
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/fireblade-engine/time.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fireblade-engine/time
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at ec6e64b Update actions/upload-artifact action to v3 (#6)
Cloned https://github.com/fireblade-engine/time.git
Revision (git rev-parse @):
ec6e64b4d2fac43f1c188fe4a66abe9d8fdd74d6
SUCCESS checkout https://github.com/fireblade-engine/time.git at master
========================================
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": "time",
"name": "FirebladeTime",
"url": "https://github.com/fireblade-engine/time.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/time",
"dependencies": [
]
}
]
}
Fetching https://github.com/fireblade-engine/time.git
[1/400] Fetching time
Fetched https://github.com/fireblade-engine/time.git from cache (0.78s)
Creating working copy for https://github.com/fireblade-engine/time.git
Working copy of https://github.com/fireblade-engine/time.git resolved at master (ec6e64b)
warning: '.resolve-product-dependencies': dependency 'time' 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/fireblade-engine/time.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/10] Compiling FirebladeTime Timer.swift
[4/10] Compiling FirebladeTime MachTime.swift
[5/10] Compiling FirebladeTime Time.swift
/Users/admin/builder/spi-builder-workspace/Sources/FirebladeTime/Time.swift:9:34: warning: static property 'time' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public enum Time {
9 | @usableFromInline static var time: TimeProviding = makeTime()
| |- warning: static property 'time' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'time' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'time' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | @inlinable
[6/10] Compiling FirebladeTime POSIXClock.swift
/Users/admin/builder/spi-builder-workspace/Sources/FirebladeTime/POSIXClock.swift:22:60: warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
20 | public typealias CTimeSpec = mach_timespec_t
21 |
22 | public let machTaskSelf: () -> mach_port_t = { mach_task_self_ }
| `- warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
23 | #elseif canImport(Glibc)
24 | public typealias CTimeSpec = timespec
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
| `- note: var declared here
[7/10] Emitting module FirebladeTime
/Users/admin/builder/spi-builder-workspace/Sources/FirebladeTime/Duration.swift:32:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public struct Duration: Equatable, Comparable, Hashable, CustomDebugStringConvertible, CustomStringConvertible {
| `- note: consider making struct 'Duration' conform to the 'Sendable' protocol
32 | public static let zero = Duration(DurationUnit(0))
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | public static let nanosecond = Duration(nanoseconds: DurationUnit(1))
34 | public static let microsecond = Duration(microseconds: DurationUnit(1))
/Users/admin/builder/spi-builder-workspace/Sources/FirebladeTime/Duration.swift:33:23: warning: static property 'nanosecond' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public struct Duration: Equatable, Comparable, Hashable, CustomDebugStringConvertible, CustomStringConvertible {
| `- note: consider making struct 'Duration' conform to the 'Sendable' protocol
32 | public static let zero = Duration(DurationUnit(0))
33 | public static let nanosecond = Duration(nanoseconds: DurationUnit(1))
| |- warning: static property 'nanosecond' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nanosecond' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | public static let microsecond = Duration(microseconds: DurationUnit(1))
35 | public static let millisecond = Duration(milliseconds: DurationUnit(1))
/Users/admin/builder/spi-builder-workspace/Sources/FirebladeTime/Duration.swift:34:23: warning: static property 'microsecond' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public struct Duration: Equatable, Comparable, Hashable, CustomDebugStringConvertible, CustomStringConvertible {
| `- note: consider making struct 'Duration' conform to the 'Sendable' protocol
32 | public static let zero = Duration(DurationUnit(0))
33 | public static let nanosecond = Duration(nanoseconds: DurationUnit(1))
34 | public static let microsecond = Duration(microseconds: DurationUnit(1))
| |- warning: static property 'microsecond' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'microsecond' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | public static let millisecond = Duration(milliseconds: DurationUnit(1))
36 | public static let second = Duration(seconds: DurationUnit(1))
/Users/admin/builder/spi-builder-workspace/Sources/FirebladeTime/Duration.swift:35:23: warning: static property 'millisecond' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public struct Duration: Equatable, Comparable, Hashable, CustomDebugStringConvertible, CustomStringConvertible {
| `- note: consider making struct 'Duration' conform to the 'Sendable' protocol
32 | public static let zero = Duration(DurationUnit(0))
33 | public static let nanosecond = Duration(nanoseconds: DurationUnit(1))
34 | public static let microsecond = Duration(microseconds: DurationUnit(1))
35 | public static let millisecond = Duration(milliseconds: DurationUnit(1))
| |- warning: static property 'millisecond' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'millisecond' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | public static let second = Duration(seconds: DurationUnit(1))
37 | public static let minute = Duration(minutes: DurationUnit(1))
/Users/admin/builder/spi-builder-workspace/Sources/FirebladeTime/Duration.swift:36:23: warning: static property 'second' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public struct Duration: Equatable, Comparable, Hashable, CustomDebugStringConvertible, CustomStringConvertible {
| `- note: consider making struct 'Duration' conform to the 'Sendable' protocol
32 | public static let zero = Duration(DurationUnit(0))
33 | public static let nanosecond = Duration(nanoseconds: DurationUnit(1))
34 | public static let microsecond = Duration(microseconds: DurationUnit(1))
35 | public static let millisecond = Duration(milliseconds: DurationUnit(1))
36 | public static let second = Duration(seconds: DurationUnit(1))
| |- warning: static property 'second' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'second' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | public static let minute = Duration(minutes: DurationUnit(1))
38 | public static let hour = Duration(hours: DurationUnit(1))
/Users/admin/builder/spi-builder-workspace/Sources/FirebladeTime/Duration.swift:37:23: warning: static property 'minute' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public struct Duration: Equatable, Comparable, Hashable, CustomDebugStringConvertible, CustomStringConvertible {
| `- note: consider making struct 'Duration' conform to the 'Sendable' protocol
32 | public static let zero = Duration(DurationUnit(0))
33 | public static let nanosecond = Duration(nanoseconds: DurationUnit(1))
:
35 | public static let millisecond = Duration(milliseconds: DurationUnit(1))
36 | public static let second = Duration(seconds: DurationUnit(1))
37 | public static let minute = Duration(minutes: DurationUnit(1))
| |- warning: static property 'minute' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'minute' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | public static let hour = Duration(hours: DurationUnit(1))
39 | public static let day = Duration(days: DurationUnit(1))
/Users/admin/builder/spi-builder-workspace/Sources/FirebladeTime/Duration.swift:38:23: warning: static property 'hour' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public struct Duration: Equatable, Comparable, Hashable, CustomDebugStringConvertible, CustomStringConvertible {
| `- note: consider making struct 'Duration' conform to the 'Sendable' protocol
32 | public static let zero = Duration(DurationUnit(0))
33 | public static let nanosecond = Duration(nanoseconds: DurationUnit(1))
:
36 | public static let second = Duration(seconds: DurationUnit(1))
37 | public static let minute = Duration(minutes: DurationUnit(1))
38 | public static let hour = Duration(hours: DurationUnit(1))
| |- warning: static property 'hour' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hour' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | public static let day = Duration(days: DurationUnit(1))
40 |
/Users/admin/builder/spi-builder-workspace/Sources/FirebladeTime/Duration.swift:39:23: warning: static property 'day' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public struct Duration: Equatable, Comparable, Hashable, CustomDebugStringConvertible, CustomStringConvertible {
| `- note: consider making struct 'Duration' conform to the 'Sendable' protocol
32 | public static let zero = Duration(DurationUnit(0))
33 | public static let nanosecond = Duration(nanoseconds: DurationUnit(1))
:
37 | public static let minute = Duration(minutes: DurationUnit(1))
38 | public static let hour = Duration(hours: DurationUnit(1))
39 | public static let day = Duration(days: DurationUnit(1))
| |- warning: static property 'day' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'day' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 |
41 | public static let maxDuration = Duration(DurationUnit.max)
/Users/admin/builder/spi-builder-workspace/Sources/FirebladeTime/Duration.swift:41:23: warning: static property 'maxDuration' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public struct Duration: Equatable, Comparable, Hashable, CustomDebugStringConvertible, CustomStringConvertible {
| `- note: consider making struct 'Duration' conform to the 'Sendable' protocol
32 | public static let zero = Duration(DurationUnit(0))
33 | public static let nanosecond = Duration(nanoseconds: DurationUnit(1))
:
39 | public static let day = Duration(days: DurationUnit(1))
40 |
41 | public static let maxDuration = Duration(DurationUnit.max)
| |- warning: static property 'maxDuration' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'maxDuration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | // can hold up to 584,942417355072 years
/Users/admin/builder/spi-builder-workspace/Sources/FirebladeTime/POSIXClock.swift:22:60: warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
20 | public typealias CTimeSpec = mach_timespec_t
21 |
22 | public let machTaskSelf: () -> mach_port_t = { mach_task_self_ }
| `- warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
23 | #elseif canImport(Glibc)
24 | public typealias CTimeSpec = timespec
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/FirebladeTime/Time.swift:9:34: warning: static property 'time' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public enum Time {
9 | @usableFromInline static var time: TimeProviding = makeTime()
| |- warning: static property 'time' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'time' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'time' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | @inlinable
[8/10] Compiling FirebladeTime TimeProviding.swift
[9/10] Compiling FirebladeTime Duration.swift
/Users/admin/builder/spi-builder-workspace/Sources/FirebladeTime/Duration.swift:32:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public struct Duration: Equatable, Comparable, Hashable, CustomDebugStringConvertible, CustomStringConvertible {
| `- note: consider making struct 'Duration' conform to the 'Sendable' protocol
32 | public static let zero = Duration(DurationUnit(0))
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | public static let nanosecond = Duration(nanoseconds: DurationUnit(1))
34 | public static let microsecond = Duration(microseconds: DurationUnit(1))
/Users/admin/builder/spi-builder-workspace/Sources/FirebladeTime/Duration.swift:33:23: warning: static property 'nanosecond' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public struct Duration: Equatable, Comparable, Hashable, CustomDebugStringConvertible, CustomStringConvertible {
| `- note: consider making struct 'Duration' conform to the 'Sendable' protocol
32 | public static let zero = Duration(DurationUnit(0))
33 | public static let nanosecond = Duration(nanoseconds: DurationUnit(1))
| |- warning: static property 'nanosecond' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nanosecond' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | public static let microsecond = Duration(microseconds: DurationUnit(1))
35 | public static let millisecond = Duration(milliseconds: DurationUnit(1))
/Users/admin/builder/spi-builder-workspace/Sources/FirebladeTime/Duration.swift:34:23: warning: static property 'microsecond' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public struct Duration: Equatable, Comparable, Hashable, CustomDebugStringConvertible, CustomStringConvertible {
| `- note: consider making struct 'Duration' conform to the 'Sendable' protocol
32 | public static let zero = Duration(DurationUnit(0))
33 | public static let nanosecond = Duration(nanoseconds: DurationUnit(1))
34 | public static let microsecond = Duration(microseconds: DurationUnit(1))
| |- warning: static property 'microsecond' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'microsecond' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | public static let millisecond = Duration(milliseconds: DurationUnit(1))
36 | public static let second = Duration(seconds: DurationUnit(1))
/Users/admin/builder/spi-builder-workspace/Sources/FirebladeTime/Duration.swift:35:23: warning: static property 'millisecond' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public struct Duration: Equatable, Comparable, Hashable, CustomDebugStringConvertible, CustomStringConvertible {
| `- note: consider making struct 'Duration' conform to the 'Sendable' protocol
32 | public static let zero = Duration(DurationUnit(0))
33 | public static let nanosecond = Duration(nanoseconds: DurationUnit(1))
34 | public static let microsecond = Duration(microseconds: DurationUnit(1))
35 | public static let millisecond = Duration(milliseconds: DurationUnit(1))
| |- warning: static property 'millisecond' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'millisecond' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | public static let second = Duration(seconds: DurationUnit(1))
37 | public static let minute = Duration(minutes: DurationUnit(1))
/Users/admin/builder/spi-builder-workspace/Sources/FirebladeTime/Duration.swift:36:23: warning: static property 'second' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public struct Duration: Equatable, Comparable, Hashable, CustomDebugStringConvertible, CustomStringConvertible {
| `- note: consider making struct 'Duration' conform to the 'Sendable' protocol
32 | public static let zero = Duration(DurationUnit(0))
33 | public static let nanosecond = Duration(nanoseconds: DurationUnit(1))
34 | public static let microsecond = Duration(microseconds: DurationUnit(1))
35 | public static let millisecond = Duration(milliseconds: DurationUnit(1))
36 | public static let second = Duration(seconds: DurationUnit(1))
| |- warning: static property 'second' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'second' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | public static let minute = Duration(minutes: DurationUnit(1))
38 | public static let hour = Duration(hours: DurationUnit(1))
/Users/admin/builder/spi-builder-workspace/Sources/FirebladeTime/Duration.swift:37:23: warning: static property 'minute' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public struct Duration: Equatable, Comparable, Hashable, CustomDebugStringConvertible, CustomStringConvertible {
| `- note: consider making struct 'Duration' conform to the 'Sendable' protocol
32 | public static let zero = Duration(DurationUnit(0))
33 | public static let nanosecond = Duration(nanoseconds: DurationUnit(1))
:
35 | public static let millisecond = Duration(milliseconds: DurationUnit(1))
36 | public static let second = Duration(seconds: DurationUnit(1))
37 | public static let minute = Duration(minutes: DurationUnit(1))
| |- warning: static property 'minute' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'minute' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | public static let hour = Duration(hours: DurationUnit(1))
39 | public static let day = Duration(days: DurationUnit(1))
/Users/admin/builder/spi-builder-workspace/Sources/FirebladeTime/Duration.swift:38:23: warning: static property 'hour' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public struct Duration: Equatable, Comparable, Hashable, CustomDebugStringConvertible, CustomStringConvertible {
| `- note: consider making struct 'Duration' conform to the 'Sendable' protocol
32 | public static let zero = Duration(DurationUnit(0))
33 | public static let nanosecond = Duration(nanoseconds: DurationUnit(1))
:
36 | public static let second = Duration(seconds: DurationUnit(1))
37 | public static let minute = Duration(minutes: DurationUnit(1))
38 | public static let hour = Duration(hours: DurationUnit(1))
| |- warning: static property 'hour' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hour' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | public static let day = Duration(days: DurationUnit(1))
40 |
/Users/admin/builder/spi-builder-workspace/Sources/FirebladeTime/Duration.swift:39:23: warning: static property 'day' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public struct Duration: Equatable, Comparable, Hashable, CustomDebugStringConvertible, CustomStringConvertible {
| `- note: consider making struct 'Duration' conform to the 'Sendable' protocol
32 | public static let zero = Duration(DurationUnit(0))
33 | public static let nanosecond = Duration(nanoseconds: DurationUnit(1))
:
37 | public static let minute = Duration(minutes: DurationUnit(1))
38 | public static let hour = Duration(hours: DurationUnit(1))
39 | public static let day = Duration(days: DurationUnit(1))
| |- warning: static property 'day' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'day' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 |
41 | public static let maxDuration = Duration(DurationUnit.max)
/Users/admin/builder/spi-builder-workspace/Sources/FirebladeTime/Duration.swift:41:23: warning: static property 'maxDuration' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
29 | }
30 |
31 | public struct Duration: Equatable, Comparable, Hashable, CustomDebugStringConvertible, CustomStringConvertible {
| `- note: consider making struct 'Duration' conform to the 'Sendable' protocol
32 | public static let zero = Duration(DurationUnit(0))
33 | public static let nanosecond = Duration(nanoseconds: DurationUnit(1))
:
39 | public static let day = Duration(days: DurationUnit(1))
40 |
41 | public static let maxDuration = Duration(DurationUnit.max)
| |- warning: static property 'maxDuration' is not concurrency-safe because non-'Sendable' type 'Duration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'maxDuration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | // can hold up to 584,942417355072 years
[10/10] Compiling FirebladeTime POSIXTimeOfDay.swift
Build complete! (5.09s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "FirebladeTime",
"name" : "FirebladeTime",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.12"
},
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "tvos",
"version" : "10.0"
},
{
"name" : "watchos",
"version" : "3.0"
}
],
"products" : [
{
"name" : "FirebladeTime",
"targets" : [
"FirebladeTime"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "FirebladeTimeTests",
"module_type" : "SwiftTarget",
"name" : "FirebladeTimeTests",
"path" : "Tests/FirebladeTimeTests",
"sources" : [
"TimeTests.swift",
"TimerTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"FirebladeTime"
],
"type" : "test"
},
{
"c99name" : "FirebladeTimePerformanceTests",
"module_type" : "SwiftTarget",
"name" : "FirebladeTimePerformanceTests",
"path" : "Tests/FirebladeTimePerformanceTests",
"sources" : [
"MachTimePerformanceTests.swift",
"POSIXTimeOfDayPerformanceTests.swift",
"PosixClockPerformanceTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"FirebladeTime"
],
"type" : "test"
},
{
"c99name" : "FirebladeTime",
"module_type" : "SwiftTarget",
"name" : "FirebladeTime",
"path" : "Sources/FirebladeTime",
"product_memberships" : [
"FirebladeTime"
],
"sources" : [
"Duration.swift",
"MachTime.swift",
"POSIXClock.swift",
"POSIXTimeOfDay.swift",
"Time.swift",
"TimeProviding.swift",
"Timer.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.