Build Information
Successful build of Shapes, reference 0.2.1 (4f4425
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 13:26:03 UTC.
Swift 6 data race errors: 11
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/c-villain/Shapes.git
Reference: 0.2.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/c-villain/Shapes
* tag 0.2.1 -> FETCH_HEAD
HEAD is now at 4f44259 Merge pull request #7 from c-villain/fix-Bubble-initializer
Cloned https://github.com/c-villain/Shapes.git
Revision (git rev-parse @):
4f44259a55f74087b6aac3d0baae056ccdd531c0
SUCCESS checkout https://github.com/c-villain/Shapes.git at 0.2.1
========================================
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": "shapes",
"name": "Shapes",
"url": "https://github.com/c-villain/Shapes.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Shapes",
"dependencies": [
]
}
]
}
Fetching https://github.com/c-villain/Shapes.git
[1/149] Fetching shapes
Fetched https://github.com/c-villain/Shapes.git from cache (1.17s)
Creating working copy for https://github.com/c-villain/Shapes.git
Working copy of https://github.com/c-villain/Shapes.git resolved at 0.2.1 (4f44259)
warning: '.resolve-product-dependencies': dependency 'shapes' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/c-villain/Shapes.git
https://github.com/c-villain/Shapes.git
{
"dependencies" : [
],
"manifest_display_name" : "Shapes",
"name" : "Shapes",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "Shapes",
"targets" : [
"Shapes"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "Shapes",
"module_type" : "SwiftTarget",
"name" : "Shapes",
"path" : "Sources/Shapes",
"product_memberships" : [
"Shapes"
],
"sources" : [
"CustomShapes/Bubbles/BottomRight.swift",
"CustomShapes/Bubbles/Bubble.swift",
"CustomShapes/Bubbles/TopRight.swift",
"CustomShapes/Diamond.swift",
"CustomShapes/RoundedRectangle.swift",
"CustomShapes/Wave.swift",
"ViewModifiers/Bubbled.swift",
"ViewModifiers/CornerRadius.swift",
"ViewModifiers/Diamonded.swift",
"ViewModifiers/ShapeStyle.swift",
"ViewModifiers/Waved.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/13] Compiling Shapes Diamonded.swift
[4/13] Compiling Shapes ShapeStyle.swift
[5/14] Compiling Shapes Bubbled.swift
[6/14] Compiling Shapes Wave.swift
[7/14] Compiling Shapes RoundedRectangle.swift
[8/14] Compiling Shapes CornerRadius.swift
/Users/admin/builder/spi-builder-workspace/Sources/Shapes/ViewModifiers/CornerRadius.swift:10:23: warning: static property 'topLeft' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct Edges: OptionSet {
| `- note: consider making struct 'Edges' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
8 | }
9 |
10 | public static let topLeft: Edges = .init(rawValue: 1 << 0)
| |- warning: static property 'topLeft' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'topLeft' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | public static let topRight: Edges = .init(rawValue: 1 << 1)
12 | public static let bottomLeft: Edges = .init(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/Shapes/ViewModifiers/CornerRadius.swift:11:23: warning: static property 'topRight' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct Edges: OptionSet {
| `- note: consider making struct 'Edges' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
9 |
10 | public static let topLeft: Edges = .init(rawValue: 1 << 0)
11 | public static let topRight: Edges = .init(rawValue: 1 << 1)
| |- warning: static property 'topRight' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'topRight' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public static let bottomLeft: Edges = .init(rawValue: 1 << 2)
13 | public static let bottomRight: Edges = .init(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/Shapes/ViewModifiers/CornerRadius.swift:12:23: warning: static property 'bottomLeft' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct Edges: OptionSet {
| `- note: consider making struct 'Edges' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
10 | public static let topLeft: Edges = .init(rawValue: 1 << 0)
11 | public static let topRight: Edges = .init(rawValue: 1 << 1)
12 | public static let bottomLeft: Edges = .init(rawValue: 1 << 2)
| |- warning: static property 'bottomLeft' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bottomLeft' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | public static let bottomRight: Edges = .init(rawValue: 1 << 3)
14 |
/Users/admin/builder/spi-builder-workspace/Sources/Shapes/ViewModifiers/CornerRadius.swift:13:23: warning: static property 'bottomRight' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct Edges: OptionSet {
| `- note: consider making struct 'Edges' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
11 | public static let topRight: Edges = .init(rawValue: 1 << 1)
12 | public static let bottomLeft: Edges = .init(rawValue: 1 << 2)
13 | public static let bottomRight: Edges = .init(rawValue: 1 << 3)
| |- warning: static property 'bottomRight' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bottomRight' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | public static let all: Edges = [.topLeft, .topRight, .bottomLeft, .bottomRight]
/Users/admin/builder/spi-builder-workspace/Sources/Shapes/ViewModifiers/CornerRadius.swift:15:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct Edges: OptionSet {
| `- note: consider making struct 'Edges' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
13 | public static let bottomRight: Edges = .init(rawValue: 1 << 3)
14 |
15 | public static let all: Edges = [.topLeft, .topRight, .bottomLeft, .bottomRight]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public static let tops: Edges = [.topLeft, .topRight]
/Users/admin/builder/spi-builder-workspace/Sources/Shapes/ViewModifiers/CornerRadius.swift:17:23: warning: static property 'tops' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct Edges: OptionSet {
| `- note: consider making struct 'Edges' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
15 | public static let all: Edges = [.topLeft, .topRight, .bottomLeft, .bottomRight]
16 |
17 | public static let tops: Edges = [.topLeft, .topRight]
| |- warning: static property 'tops' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'tops' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | public static let bottoms: Edges = [.bottomLeft, .bottomRight]
19 |
/Users/admin/builder/spi-builder-workspace/Sources/Shapes/ViewModifiers/CornerRadius.swift:18:23: warning: static property 'bottoms' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct Edges: OptionSet {
| `- note: consider making struct 'Edges' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
16 |
17 | public static let tops: Edges = [.topLeft, .topRight]
18 | public static let bottoms: Edges = [.bottomLeft, .bottomRight]
| |- warning: static property 'bottoms' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bottoms' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | public static let lefts: Edges = [.topLeft, .bottomLeft]
/Users/admin/builder/spi-builder-workspace/Sources/Shapes/ViewModifiers/CornerRadius.swift:20:23: warning: static property 'lefts' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct Edges: OptionSet {
| `- note: consider making struct 'Edges' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
18 | public static let bottoms: Edges = [.bottomLeft, .bottomRight]
19 |
20 | public static let lefts: Edges = [.topLeft, .bottomLeft]
| |- warning: static property 'lefts' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lefts' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public static let rights: Edges = [.topRight, .bottomRight]
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/Shapes/ViewModifiers/CornerRadius.swift:21:23: warning: static property 'rights' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct Edges: OptionSet {
| `- note: consider making struct 'Edges' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
19 |
20 | public static let lefts: Edges = [.topLeft, .bottomLeft]
21 | public static let rights: Edges = [.topRight, .bottomRight]
| |- warning: static property 'rights' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'rights' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | }
23 |
[9/14] Compiling Shapes TopRight.swift
[10/14] Compiling Shapes Diamond.swift
[11/14] Emitting module Shapes
/Users/admin/builder/spi-builder-workspace/Sources/Shapes/CustomShapes/Bubbles/Bubble.swift:15:9: warning: stored property 'type' of 'Sendable'-conforming struct 'Bubble' has non-sendable type 'MessageType'; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public enum MessageType {
| `- note: consider making enum 'MessageType' conform to the 'Sendable' protocol
4 | case send
5 | case received
:
13 | public struct Bubble: Shape {
14 |
15 | var type: MessageType
| `- warning: stored property 'type' of 'Sendable'-conforming struct 'Bubble' has non-sendable type 'MessageType'; this is an error in the Swift 6 language mode
16 | var cornerRadius: CGFloat
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Shapes/CustomShapes/Bubbles/Bubble.swift:19:9: warning: stored property 'tailPosition' of 'Sendable'-conforming struct 'Bubble' has non-sendable type 'TailPosition'; this is an error in the Swift 6 language mode
6 | }
7 |
8 | public enum TailPosition {
| `- note: consider making enum 'TailPosition' conform to the 'Sendable' protocol
9 | case bottom
10 | case top
:
17 |
18 | var tail: (width: CGFloat, height: CGFloat)
19 | var tailPosition: TailPosition
| `- warning: stored property 'tailPosition' of 'Sendable'-conforming struct 'Bubble' has non-sendable type 'TailPosition'; this is an error in the Swift 6 language mode
20 |
21 | public init(
/Users/admin/builder/spi-builder-workspace/Sources/Shapes/ViewModifiers/CornerRadius.swift:10:23: warning: static property 'topLeft' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct Edges: OptionSet {
| `- note: consider making struct 'Edges' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
8 | }
9 |
10 | public static let topLeft: Edges = .init(rawValue: 1 << 0)
| |- warning: static property 'topLeft' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'topLeft' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | public static let topRight: Edges = .init(rawValue: 1 << 1)
12 | public static let bottomLeft: Edges = .init(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/Shapes/ViewModifiers/CornerRadius.swift:11:23: warning: static property 'topRight' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct Edges: OptionSet {
| `- note: consider making struct 'Edges' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
9 |
10 | public static let topLeft: Edges = .init(rawValue: 1 << 0)
11 | public static let topRight: Edges = .init(rawValue: 1 << 1)
| |- warning: static property 'topRight' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'topRight' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public static let bottomLeft: Edges = .init(rawValue: 1 << 2)
13 | public static let bottomRight: Edges = .init(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/Shapes/ViewModifiers/CornerRadius.swift:12:23: warning: static property 'bottomLeft' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct Edges: OptionSet {
| `- note: consider making struct 'Edges' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
10 | public static let topLeft: Edges = .init(rawValue: 1 << 0)
11 | public static let topRight: Edges = .init(rawValue: 1 << 1)
12 | public static let bottomLeft: Edges = .init(rawValue: 1 << 2)
| |- warning: static property 'bottomLeft' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bottomLeft' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | public static let bottomRight: Edges = .init(rawValue: 1 << 3)
14 |
/Users/admin/builder/spi-builder-workspace/Sources/Shapes/ViewModifiers/CornerRadius.swift:13:23: warning: static property 'bottomRight' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct Edges: OptionSet {
| `- note: consider making struct 'Edges' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
11 | public static let topRight: Edges = .init(rawValue: 1 << 1)
12 | public static let bottomLeft: Edges = .init(rawValue: 1 << 2)
13 | public static let bottomRight: Edges = .init(rawValue: 1 << 3)
| |- warning: static property 'bottomRight' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bottomRight' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | public static let all: Edges = [.topLeft, .topRight, .bottomLeft, .bottomRight]
/Users/admin/builder/spi-builder-workspace/Sources/Shapes/ViewModifiers/CornerRadius.swift:15:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct Edges: OptionSet {
| `- note: consider making struct 'Edges' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
13 | public static let bottomRight: Edges = .init(rawValue: 1 << 3)
14 |
15 | public static let all: Edges = [.topLeft, .topRight, .bottomLeft, .bottomRight]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public static let tops: Edges = [.topLeft, .topRight]
/Users/admin/builder/spi-builder-workspace/Sources/Shapes/ViewModifiers/CornerRadius.swift:17:23: warning: static property 'tops' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct Edges: OptionSet {
| `- note: consider making struct 'Edges' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
15 | public static let all: Edges = [.topLeft, .topRight, .bottomLeft, .bottomRight]
16 |
17 | public static let tops: Edges = [.topLeft, .topRight]
| |- warning: static property 'tops' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'tops' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | public static let bottoms: Edges = [.bottomLeft, .bottomRight]
19 |
/Users/admin/builder/spi-builder-workspace/Sources/Shapes/ViewModifiers/CornerRadius.swift:18:23: warning: static property 'bottoms' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct Edges: OptionSet {
| `- note: consider making struct 'Edges' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
16 |
17 | public static let tops: Edges = [.topLeft, .topRight]
18 | public static let bottoms: Edges = [.bottomLeft, .bottomRight]
| |- warning: static property 'bottoms' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bottoms' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | public static let lefts: Edges = [.topLeft, .bottomLeft]
/Users/admin/builder/spi-builder-workspace/Sources/Shapes/ViewModifiers/CornerRadius.swift:20:23: warning: static property 'lefts' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct Edges: OptionSet {
| `- note: consider making struct 'Edges' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
18 | public static let bottoms: Edges = [.bottomLeft, .bottomRight]
19 |
20 | public static let lefts: Edges = [.topLeft, .bottomLeft]
| |- warning: static property 'lefts' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lefts' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public static let rights: Edges = [.topRight, .bottomRight]
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/Shapes/ViewModifiers/CornerRadius.swift:21:23: warning: static property 'rights' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct Edges: OptionSet {
| `- note: consider making struct 'Edges' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
19 |
20 | public static let lefts: Edges = [.topLeft, .bottomLeft]
21 | public static let rights: Edges = [.topRight, .bottomRight]
| |- warning: static property 'rights' is not concurrency-safe because non-'Sendable' type 'Edges' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'rights' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | }
23 |
[12/14] Compiling Shapes BottomRight.swift
/Users/admin/builder/spi-builder-workspace/Sources/Shapes/CustomShapes/Bubbles/Bubble.swift:15:9: warning: stored property 'type' of 'Sendable'-conforming struct 'Bubble' has non-sendable type 'MessageType'; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public enum MessageType {
| `- note: consider making enum 'MessageType' conform to the 'Sendable' protocol
4 | case send
5 | case received
:
13 | public struct Bubble: Shape {
14 |
15 | var type: MessageType
| `- warning: stored property 'type' of 'Sendable'-conforming struct 'Bubble' has non-sendable type 'MessageType'; this is an error in the Swift 6 language mode
16 | var cornerRadius: CGFloat
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Shapes/CustomShapes/Bubbles/Bubble.swift:19:9: warning: stored property 'tailPosition' of 'Sendable'-conforming struct 'Bubble' has non-sendable type 'TailPosition'; this is an error in the Swift 6 language mode
6 | }
7 |
8 | public enum TailPosition {
| `- note: consider making enum 'TailPosition' conform to the 'Sendable' protocol
9 | case bottom
10 | case top
:
17 |
18 | var tail: (width: CGFloat, height: CGFloat)
19 | var tailPosition: TailPosition
| `- warning: stored property 'tailPosition' of 'Sendable'-conforming struct 'Bubble' has non-sendable type 'TailPosition'; this is an error in the Swift 6 language mode
20 |
21 | public init(
[13/14] Compiling Shapes Bubble.swift
/Users/admin/builder/spi-builder-workspace/Sources/Shapes/CustomShapes/Bubbles/Bubble.swift:15:9: warning: stored property 'type' of 'Sendable'-conforming struct 'Bubble' has non-sendable type 'MessageType'; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public enum MessageType {
| `- note: consider making enum 'MessageType' conform to the 'Sendable' protocol
4 | case send
5 | case received
:
13 | public struct Bubble: Shape {
14 |
15 | var type: MessageType
| `- warning: stored property 'type' of 'Sendable'-conforming struct 'Bubble' has non-sendable type 'MessageType'; this is an error in the Swift 6 language mode
16 | var cornerRadius: CGFloat
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Shapes/CustomShapes/Bubbles/Bubble.swift:19:9: warning: stored property 'tailPosition' of 'Sendable'-conforming struct 'Bubble' has non-sendable type 'TailPosition'; this is an error in the Swift 6 language mode
6 | }
7 |
8 | public enum TailPosition {
| `- note: consider making enum 'TailPosition' conform to the 'Sendable' protocol
9 | case bottom
10 | case top
:
17 |
18 | var tail: (width: CGFloat, height: CGFloat)
19 | var tailPosition: TailPosition
| `- warning: stored property 'tailPosition' of 'Sendable'-conforming struct 'Bubble' has non-sendable type 'TailPosition'; this is an error in the Swift 6 language mode
20 |
21 | public init(
[14/14] Compiling Shapes Waved.swift
Build complete! (11.26s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Shapes",
"name" : "Shapes",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "Shapes",
"targets" : [
"Shapes"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "Shapes",
"module_type" : "SwiftTarget",
"name" : "Shapes",
"path" : "Sources/Shapes",
"product_memberships" : [
"Shapes"
],
"sources" : [
"CustomShapes/Bubbles/BottomRight.swift",
"CustomShapes/Bubbles/Bubble.swift",
"CustomShapes/Bubbles/TopRight.swift",
"CustomShapes/Diamond.swift",
"CustomShapes/RoundedRectangle.swift",
"CustomShapes/Wave.swift",
"ViewModifiers/Bubbled.swift",
"ViewModifiers/CornerRadius.swift",
"ViewModifiers/Diamonded.swift",
"ViewModifiers/ShapeStyle.swift",
"ViewModifiers/Waved.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.