Build Information
Successful build of CoreGraphicsExtensions, reference main (2e1b17
), with Swift 6.0 for macOS (SPM) on 6 Nov 2024 14:32:04 UTC.
Swift 6 data race errors: 5
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/heestand-xyz/CoreGraphicsExtensions.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/heestand-xyz/CoreGraphicsExtensions
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2e1b177 Glider
Cloned https://github.com/heestand-xyz/CoreGraphicsExtensions.git
Revision (git rev-parse @):
2e1b17725603cf3e77cfbf9d58394f479a96d19d
SUCCESS checkout https://github.com/heestand-xyz/CoreGraphicsExtensions.git at main
========================================
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": "coregraphicsextensions",
"name": "CoreGraphicsExtensions",
"url": "https://github.com/heestand-xyz/CoreGraphicsExtensions.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CoreGraphicsExtensions",
"dependencies": [
]
}
]
}
Fetching https://github.com/heestand-xyz/CoreGraphicsExtensions.git
[1/337] Fetching coregraphicsextensions
Fetched https://github.com/heestand-xyz/CoreGraphicsExtensions.git from cache (0.79s)
Creating working copy for https://github.com/heestand-xyz/CoreGraphicsExtensions.git
Working copy of https://github.com/heestand-xyz/CoreGraphicsExtensions.git resolved at main (2e1b177)
warning: '.resolve-product-dependencies': dependency 'coregraphicsextensions' 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/heestand-xyz/CoreGraphicsExtensions.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/16] Compiling CoreGraphicsExtensions CGFloat+Lerp.swift
[4/16] Compiling CoreGraphicsExtensions ReaderTiming.swift
/Users/admin/builder/spi-builder-workspace/Sources/CoreGraphicsExtensions/Geometry/Timing/ReaderTiming.swift:14:23: warning: static property 'onAppear' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct ReaderTiming: OptionSet {
| `- note: consider making struct 'ReaderTiming' conform to the 'Sendable' protocol
11 |
12 | public let rawValue: Int
13 |
14 | public static let onAppear = ReaderTiming(rawValue: 1 << 0)
| |- warning: static property 'onAppear' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'onAppear' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | public static let onChange = ReaderTiming(rawValue: 1 << 1)
16 |
/Users/admin/builder/spi-builder-workspace/Sources/CoreGraphicsExtensions/Geometry/Timing/ReaderTiming.swift:15:23: warning: static property 'onChange' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct ReaderTiming: OptionSet {
| `- note: consider making struct 'ReaderTiming' conform to the 'Sendable' protocol
11 |
12 | public let rawValue: Int
13 |
14 | public static let onAppear = ReaderTiming(rawValue: 1 << 0)
15 | public static let onChange = ReaderTiming(rawValue: 1 << 1)
| |- warning: static property 'onChange' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'onChange' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public static let always: ReaderTiming = [.onAppear, .onChange]
/Users/admin/builder/spi-builder-workspace/Sources/CoreGraphicsExtensions/Geometry/Timing/ReaderTiming.swift:17:23: warning: static property 'always' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct ReaderTiming: OptionSet {
| `- note: consider making struct 'ReaderTiming' conform to the 'Sendable' protocol
11 |
12 | public let rawValue: Int
:
15 | public static let onChange = ReaderTiming(rawValue: 1 << 1)
16 |
17 | public static let always: ReaderTiming = [.onAppear, .onChange]
| |- warning: static property 'always' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'always' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public init(rawValue: Int) {
[5/17] Compiling CoreGraphicsExtensions CGPoint+Lerp.swift
[6/17] Emitting module CoreGraphicsExtensions
/Users/admin/builder/spi-builder-workspace/Sources/CoreGraphicsExtensions/Geometry/SafeAreaReader.swift:25:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'SafeArea' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 14, macOS 11, *)
11 | public struct SafeArea: Equatable {
| `- note: consider making struct 'SafeArea' conform to the 'Sendable' protocol
12 | /// Size ignoring safe area
13 | public let size: CGSize
:
23 | size: frame.size)
24 | }
25 | public static let zero = SafeArea(frame: .zero, insets: EdgeInsets(top: 0.0, leading: 0.0, bottom: 0.0, trailing: 0.0))
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'SafeArea' 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
26 | public static let one = SafeArea(frame: .one, insets: EdgeInsets(top: 1.0, leading: 1.0, bottom: 1.0, trailing: 1.0))
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/CoreGraphicsExtensions/Geometry/SafeAreaReader.swift:26:23: warning: static property 'one' is not concurrency-safe because non-'Sendable' type 'SafeArea' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 14, macOS 11, *)
11 | public struct SafeArea: Equatable {
| `- note: consider making struct 'SafeArea' conform to the 'Sendable' protocol
12 | /// Size ignoring safe area
13 | public let size: CGSize
:
24 | }
25 | public static let zero = SafeArea(frame: .zero, insets: EdgeInsets(top: 0.0, leading: 0.0, bottom: 0.0, trailing: 0.0))
26 | public static let one = SafeArea(frame: .one, insets: EdgeInsets(top: 1.0, leading: 1.0, bottom: 1.0, trailing: 1.0))
| |- warning: static property 'one' is not concurrency-safe because non-'Sendable' type 'SafeArea' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'one' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/CoreGraphicsExtensions/Geometry/Timing/ReaderTiming.swift:14:23: warning: static property 'onAppear' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct ReaderTiming: OptionSet {
| `- note: consider making struct 'ReaderTiming' conform to the 'Sendable' protocol
11 |
12 | public let rawValue: Int
13 |
14 | public static let onAppear = ReaderTiming(rawValue: 1 << 0)
| |- warning: static property 'onAppear' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'onAppear' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | public static let onChange = ReaderTiming(rawValue: 1 << 1)
16 |
/Users/admin/builder/spi-builder-workspace/Sources/CoreGraphicsExtensions/Geometry/Timing/ReaderTiming.swift:15:23: warning: static property 'onChange' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct ReaderTiming: OptionSet {
| `- note: consider making struct 'ReaderTiming' conform to the 'Sendable' protocol
11 |
12 | public let rawValue: Int
13 |
14 | public static let onAppear = ReaderTiming(rawValue: 1 << 0)
15 | public static let onChange = ReaderTiming(rawValue: 1 << 1)
| |- warning: static property 'onChange' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'onChange' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public static let always: ReaderTiming = [.onAppear, .onChange]
/Users/admin/builder/spi-builder-workspace/Sources/CoreGraphicsExtensions/Geometry/Timing/ReaderTiming.swift:17:23: warning: static property 'always' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct ReaderTiming: OptionSet {
| `- note: consider making struct 'ReaderTiming' conform to the 'Sendable' protocol
11 |
12 | public let rawValue: Int
:
15 | public static let onChange = ReaderTiming(rawValue: 1 << 1)
16 |
17 | public static let always: ReaderTiming = [.onAppear, .onChange]
| |- warning: static property 'always' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'always' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public init(rawValue: Int) {
[7/17] Compiling CoreGraphicsExtensions CGSize+Resolution.swift
[8/17] Compiling CoreGraphicsExtensions CGSize.swift
[9/17] Compiling CoreGraphicsExtensions CGFloat+Scale.swift
[10/17] Compiling CoreGraphicsExtensions CGPoint.swift
[11/17] Compiling CoreGraphicsExtensions SafeAreaReader.swift
/Users/admin/builder/spi-builder-workspace/Sources/CoreGraphicsExtensions/Geometry/SafeAreaReader.swift:25:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'SafeArea' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 14, macOS 11, *)
11 | public struct SafeArea: Equatable {
| `- note: consider making struct 'SafeArea' conform to the 'Sendable' protocol
12 | /// Size ignoring safe area
13 | public let size: CGSize
:
23 | size: frame.size)
24 | }
25 | public static let zero = SafeArea(frame: .zero, insets: EdgeInsets(top: 0.0, leading: 0.0, bottom: 0.0, trailing: 0.0))
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'SafeArea' 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
26 | public static let one = SafeArea(frame: .one, insets: EdgeInsets(top: 1.0, leading: 1.0, bottom: 1.0, trailing: 1.0))
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/CoreGraphicsExtensions/Geometry/SafeAreaReader.swift:26:23: warning: static property 'one' is not concurrency-safe because non-'Sendable' type 'SafeArea' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 14, macOS 11, *)
11 | public struct SafeArea: Equatable {
| `- note: consider making struct 'SafeArea' conform to the 'Sendable' protocol
12 | /// Size ignoring safe area
13 | public let size: CGSize
:
24 | }
25 | public static let zero = SafeArea(frame: .zero, insets: EdgeInsets(top: 0.0, leading: 0.0, bottom: 0.0, trailing: 0.0))
26 | public static let one = SafeArea(frame: .one, insets: EdgeInsets(top: 1.0, leading: 1.0, bottom: 1.0, trailing: 1.0))
| |- warning: static property 'one' is not concurrency-safe because non-'Sendable' type 'SafeArea' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'one' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/CoreGraphicsExtensions/Geometry/Timing/ReaderTiming.swift:14:23: warning: static property 'onAppear' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct ReaderTiming: OptionSet {
| `- note: consider making struct 'ReaderTiming' conform to the 'Sendable' protocol
11 |
12 | public let rawValue: Int
13 |
14 | public static let onAppear = ReaderTiming(rawValue: 1 << 0)
| |- warning: static property 'onAppear' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'onAppear' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | public static let onChange = ReaderTiming(rawValue: 1 << 1)
16 |
/Users/admin/builder/spi-builder-workspace/Sources/CoreGraphicsExtensions/Geometry/Timing/ReaderTiming.swift:15:23: warning: static property 'onChange' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct ReaderTiming: OptionSet {
| `- note: consider making struct 'ReaderTiming' conform to the 'Sendable' protocol
11 |
12 | public let rawValue: Int
13 |
14 | public static let onAppear = ReaderTiming(rawValue: 1 << 0)
15 | public static let onChange = ReaderTiming(rawValue: 1 << 1)
| |- warning: static property 'onChange' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'onChange' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public static let always: ReaderTiming = [.onAppear, .onChange]
[12/17] Compiling CoreGraphicsExtensions CGVector.swift
/Users/admin/builder/spi-builder-workspace/Sources/CoreGraphicsExtensions/Geometry/Timing/ReaderTiming.swift:14:23: warning: static property 'onAppear' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct ReaderTiming: OptionSet {
| `- note: consider making struct 'ReaderTiming' conform to the 'Sendable' protocol
11 |
12 | public let rawValue: Int
13 |
14 | public static let onAppear = ReaderTiming(rawValue: 1 << 0)
| |- warning: static property 'onAppear' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'onAppear' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | public static let onChange = ReaderTiming(rawValue: 1 << 1)
16 |
/Users/admin/builder/spi-builder-workspace/Sources/CoreGraphicsExtensions/Geometry/Timing/ReaderTiming.swift:15:23: warning: static property 'onChange' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct ReaderTiming: OptionSet {
| `- note: consider making struct 'ReaderTiming' conform to the 'Sendable' protocol
11 |
12 | public let rawValue: Int
13 |
14 | public static let onAppear = ReaderTiming(rawValue: 1 << 0)
15 | public static let onChange = ReaderTiming(rawValue: 1 << 1)
| |- warning: static property 'onChange' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'onChange' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public static let always: ReaderTiming = [.onAppear, .onChange]
[13/17] Compiling CoreGraphicsExtensions FrameReader.swift
/Users/admin/builder/spi-builder-workspace/Sources/CoreGraphicsExtensions/Geometry/Timing/ReaderTiming.swift:14:23: warning: static property 'onAppear' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct ReaderTiming: OptionSet {
| `- note: consider making struct 'ReaderTiming' conform to the 'Sendable' protocol
11 |
12 | public let rawValue: Int
13 |
14 | public static let onAppear = ReaderTiming(rawValue: 1 << 0)
| |- warning: static property 'onAppear' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'onAppear' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | public static let onChange = ReaderTiming(rawValue: 1 << 1)
16 |
/Users/admin/builder/spi-builder-workspace/Sources/CoreGraphicsExtensions/Geometry/Timing/ReaderTiming.swift:15:23: warning: static property 'onChange' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct ReaderTiming: OptionSet {
| `- note: consider making struct 'ReaderTiming' conform to the 'Sendable' protocol
11 |
12 | public let rawValue: Int
13 |
14 | public static let onAppear = ReaderTiming(rawValue: 1 << 0)
15 | public static let onChange = ReaderTiming(rawValue: 1 << 1)
| |- warning: static property 'onChange' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'onChange' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public static let always: ReaderTiming = [.onAppear, .onChange]
[14/17] Compiling CoreGraphicsExtensions OriginReader.swift
/Users/admin/builder/spi-builder-workspace/Sources/CoreGraphicsExtensions/Geometry/Timing/ReaderTiming.swift:14:23: warning: static property 'onAppear' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct ReaderTiming: OptionSet {
| `- note: consider making struct 'ReaderTiming' conform to the 'Sendable' protocol
11 |
12 | public let rawValue: Int
13 |
14 | public static let onAppear = ReaderTiming(rawValue: 1 << 0)
| |- warning: static property 'onAppear' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'onAppear' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | public static let onChange = ReaderTiming(rawValue: 1 << 1)
16 |
/Users/admin/builder/spi-builder-workspace/Sources/CoreGraphicsExtensions/Geometry/Timing/ReaderTiming.swift:15:23: warning: static property 'onChange' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct ReaderTiming: OptionSet {
| `- note: consider making struct 'ReaderTiming' conform to the 'Sendable' protocol
11 |
12 | public let rawValue: Int
13 |
14 | public static let onAppear = ReaderTiming(rawValue: 1 << 0)
15 | public static let onChange = ReaderTiming(rawValue: 1 << 1)
| |- warning: static property 'onChange' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'onChange' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public static let always: ReaderTiming = [.onAppear, .onChange]
[15/17] Compiling CoreGraphicsExtensions CGRect.swift
[16/17] Compiling CoreGraphicsExtensions CGSize+Place.swift
[17/17] Compiling CoreGraphicsExtensions SizeReader.swift
/Users/admin/builder/spi-builder-workspace/Sources/CoreGraphicsExtensions/Geometry/Timing/ReaderTiming.swift:14:23: warning: static property 'onAppear' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct ReaderTiming: OptionSet {
| `- note: consider making struct 'ReaderTiming' conform to the 'Sendable' protocol
11 |
12 | public let rawValue: Int
13 |
14 | public static let onAppear = ReaderTiming(rawValue: 1 << 0)
| |- warning: static property 'onAppear' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'onAppear' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | public static let onChange = ReaderTiming(rawValue: 1 << 1)
16 |
/Users/admin/builder/spi-builder-workspace/Sources/CoreGraphicsExtensions/Geometry/Timing/ReaderTiming.swift:15:23: warning: static property 'onChange' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct ReaderTiming: OptionSet {
| `- note: consider making struct 'ReaderTiming' conform to the 'Sendable' protocol
11 |
12 | public let rawValue: Int
13 |
14 | public static let onAppear = ReaderTiming(rawValue: 1 << 0)
15 | public static let onChange = ReaderTiming(rawValue: 1 << 1)
| |- warning: static property 'onChange' is not concurrency-safe because non-'Sendable' type 'ReaderTiming' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'onChange' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public static let always: ReaderTiming = [.onAppear, .onChange]
Build complete! (15.72s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "CoreGraphicsExtensions",
"name" : "CoreGraphicsExtensions",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "CoreGraphicsExtensions",
"targets" : [
"CoreGraphicsExtensions"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CoreGraphicsExtensions",
"module_type" : "SwiftTarget",
"name" : "CoreGraphicsExtensions",
"path" : "Sources/CoreGraphicsExtensions",
"product_memberships" : [
"CoreGraphicsExtensions"
],
"sources" : [
"CGFloat+Scale.swift",
"CGPoint.swift",
"CGRect.swift",
"CGSize+Place.swift",
"CGSize+Resolution.swift",
"CGSize.swift",
"CGVector.swift",
"Geometry/FrameReader.swift",
"Geometry/OriginReader.swift",
"Geometry/SafeAreaReader.swift",
"Geometry/SizeReader.swift",
"Geometry/Timing/ReaderTiming.swift",
"Lerp/CGFloat+Lerp.swift",
"Lerp/CGPoint+Lerp.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.