Build Information
Successful build of Roadmap with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 3
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/AvdLee/Roadmap.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/AvdLee/Roadmap
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 04cca0c Merge pull request #83 from MaartenBorsje/MaartenBorsje-print-to-logger
Cloned https://github.com/AvdLee/Roadmap.git
Revision (git rev-parse @):
04cca0ceec2dda141421b88c7f789ac24000010e
SUCCESS checkout https://github.com/AvdLee/Roadmap.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/AvdLee/Roadmap.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[3/21] Compiling Roadmap RoadmapVoteButton.swift
[4/21] Compiling Roadmap RoadmapStyle.swift
[5/21] Compiling Roadmap RoadmapView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/RoadmapViewModel.swift:67:16: warning: capture of 'self' with non-sendable type 'RoadmapViewModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | final class RoadmapViewModel: ObservableObject {
| `- note: class 'RoadmapViewModel' does not conform to the 'Sendable' protocol
11 | @Published private var features: [RoadmapFeature] = []
12 | @Published var searchText = ""
:
65 |
66 | Task { @MainActor in
67 | if configuration.shuffledOrder {
| `- warning: capture of 'self' with non-sendable type 'RoadmapViewModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
68 | self.features = await FeaturesFetcher(featureRequest: request).fetch().shuffled()
69 | } else if let sorting = configuration.sorting {
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/RoadmapViewModel.swift:68:80: warning: non-sendable type '[RoadmapFeature]' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
66 | Task { @MainActor in
67 | if configuration.shuffledOrder {
68 | self.features = await FeaturesFetcher(featureRequest: request).fetch().shuffled()
| `- warning: non-sendable type '[RoadmapFeature]' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
69 | } else if let sorting = configuration.sorting {
70 | self.features = await FeaturesFetcher(featureRequest: request).fetch().sorted(by: sorting)
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/Models/RoadmapFeature.swift:10:15: note: consider making struct 'RoadmapFeature' conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public struct RoadmapFeature: Codable, Identifiable {
| `- note: consider making struct 'RoadmapFeature' conform to the 'Sendable' protocol
11 | public let id: String
12 | public let title: String?
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/RoadmapViewModel.swift:70:80: warning: non-sendable type '[RoadmapFeature]' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
68 | self.features = await FeaturesFetcher(featureRequest: request).fetch().shuffled()
69 | } else if let sorting = configuration.sorting {
70 | self.features = await FeaturesFetcher(featureRequest: request).fetch().sorted(by: sorting)
| `- warning: non-sendable type '[RoadmapFeature]' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
71 | } else {
72 | self.features = await FeaturesFetcher(featureRequest: request).fetch()
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/Models/RoadmapFeature.swift:10:15: note: consider making struct 'RoadmapFeature' conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public struct RoadmapFeature: Codable, Identifiable {
| `- note: consider making struct 'RoadmapFeature' conform to the 'Sendable' protocol
11 | public let id: String
12 | public let title: String?
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/RoadmapViewModel.swift:72:80: warning: non-sendable type '[RoadmapFeature]' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
70 | self.features = await FeaturesFetcher(featureRequest: request).fetch().sorted(by: sorting)
71 | } else {
72 | self.features = await FeaturesFetcher(featureRequest: request).fetch()
| `- warning: non-sendable type '[RoadmapFeature]' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/Models/RoadmapFeature.swift:10:15: note: consider making struct 'RoadmapFeature' conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public struct RoadmapFeature: Codable, Identifiable {
| `- note: consider making struct 'RoadmapFeature' conform to the 'Sendable' protocol
11 | public let id: String
12 | public let title: String?
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/RoadmapViewModel.swift:77:62: warning: capture of 'self' with non-sendable type 'RoadmapViewModel' in an isolated closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | final class RoadmapViewModel: ObservableObject {
| `- note: class 'RoadmapViewModel' does not conform to the 'Sendable' protocol
11 | @Published private var features: [RoadmapFeature] = []
12 | @Published var searchText = ""
:
75 | self.statuses = {
76 | var featureStatuses = ["all"]
77 | featureStatuses.append(contentsOf: Array(Set(self.features.map { $0.localizedFeatureStatus ?? "" })))
| `- warning: capture of 'self' with non-sendable type 'RoadmapViewModel' in an isolated closure; this is an error in the Swift 6 language mode
78 | return featureStatuses
79 | }()
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/RoadmapViewModel.swift:68:71: warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
66 | Task { @MainActor in
67 | if configuration.shuffledOrder {
68 | self.features = await FeaturesFetcher(featureRequest: request).fetch().shuffled()
| |- warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'request' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
69 | } else if let sorting = configuration.sorting {
70 | self.features = await FeaturesFetcher(featureRequest: request).fetch().sorted(by: sorting)
[6/21] Compiling Roadmap RoadmapViewModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/RoadmapViewModel.swift:67:16: warning: capture of 'self' with non-sendable type 'RoadmapViewModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | final class RoadmapViewModel: ObservableObject {
| `- note: class 'RoadmapViewModel' does not conform to the 'Sendable' protocol
11 | @Published private var features: [RoadmapFeature] = []
12 | @Published var searchText = ""
:
65 |
66 | Task { @MainActor in
67 | if configuration.shuffledOrder {
| `- warning: capture of 'self' with non-sendable type 'RoadmapViewModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
68 | self.features = await FeaturesFetcher(featureRequest: request).fetch().shuffled()
69 | } else if let sorting = configuration.sorting {
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/RoadmapViewModel.swift:68:80: warning: non-sendable type '[RoadmapFeature]' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
66 | Task { @MainActor in
67 | if configuration.shuffledOrder {
68 | self.features = await FeaturesFetcher(featureRequest: request).fetch().shuffled()
| `- warning: non-sendable type '[RoadmapFeature]' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
69 | } else if let sorting = configuration.sorting {
70 | self.features = await FeaturesFetcher(featureRequest: request).fetch().sorted(by: sorting)
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/Models/RoadmapFeature.swift:10:15: note: consider making struct 'RoadmapFeature' conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public struct RoadmapFeature: Codable, Identifiable {
| `- note: consider making struct 'RoadmapFeature' conform to the 'Sendable' protocol
11 | public let id: String
12 | public let title: String?
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/RoadmapViewModel.swift:70:80: warning: non-sendable type '[RoadmapFeature]' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
68 | self.features = await FeaturesFetcher(featureRequest: request).fetch().shuffled()
69 | } else if let sorting = configuration.sorting {
70 | self.features = await FeaturesFetcher(featureRequest: request).fetch().sorted(by: sorting)
| `- warning: non-sendable type '[RoadmapFeature]' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
71 | } else {
72 | self.features = await FeaturesFetcher(featureRequest: request).fetch()
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/Models/RoadmapFeature.swift:10:15: note: consider making struct 'RoadmapFeature' conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public struct RoadmapFeature: Codable, Identifiable {
| `- note: consider making struct 'RoadmapFeature' conform to the 'Sendable' protocol
11 | public let id: String
12 | public let title: String?
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/RoadmapViewModel.swift:72:80: warning: non-sendable type '[RoadmapFeature]' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
70 | self.features = await FeaturesFetcher(featureRequest: request).fetch().sorted(by: sorting)
71 | } else {
72 | self.features = await FeaturesFetcher(featureRequest: request).fetch()
| `- warning: non-sendable type '[RoadmapFeature]' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/Models/RoadmapFeature.swift:10:15: note: consider making struct 'RoadmapFeature' conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public struct RoadmapFeature: Codable, Identifiable {
| `- note: consider making struct 'RoadmapFeature' conform to the 'Sendable' protocol
11 | public let id: String
12 | public let title: String?
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/RoadmapViewModel.swift:77:62: warning: capture of 'self' with non-sendable type 'RoadmapViewModel' in an isolated closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | final class RoadmapViewModel: ObservableObject {
| `- note: class 'RoadmapViewModel' does not conform to the 'Sendable' protocol
11 | @Published private var features: [RoadmapFeature] = []
12 | @Published var searchText = ""
:
75 | self.statuses = {
76 | var featureStatuses = ["all"]
77 | featureStatuses.append(contentsOf: Array(Set(self.features.map { $0.localizedFeatureStatus ?? "" })))
| `- warning: capture of 'self' with non-sendable type 'RoadmapViewModel' in an isolated closure; this is an error in the Swift 6 language mode
78 | return featureStatuses
79 | }()
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/RoadmapViewModel.swift:68:71: warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
66 | Task { @MainActor in
67 | if configuration.shuffledOrder {
68 | self.features = await FeaturesFetcher(featureRequest: request).fetch().shuffled()
| |- warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'request' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
69 | } else if let sorting = configuration.sorting {
70 | self.features = await FeaturesFetcher(featureRequest: request).fetch().sorted(by: sorting)
[7/22] Compiling Roadmap Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/Extensions/Logger.swift:13:24: warning: static property 'subsystem' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | extension Logger {
12 | /// Using your bundle identifier is a great way to ensure a unique identifier.
13 | private static var subsystem = Bundle.main.bundleIdentifier!
| |- warning: static property 'subsystem' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'subsystem' 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
14 |
15 | /// Logs the view cycles like a view that appeared.
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/Extensions/Logger.swift:16:16: warning: static property 'roadmap' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Logs the view cycles like a view that appeared.
16 | static let roadmap = Logger(subsystem: subsystem, category: "Roadmap")
| `- warning: static property 'roadmap' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
17 | }
18 |
os.Logger:2:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
1 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
2 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
3 | public init(subsystem: String, category: String)
4 | public init()
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/Extensions/Logger.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
7 |
8 | import Foundation
9 | import OSLog
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
10 |
11 | extension Logger {
:
14 |
15 | /// Logs the view cycles like a view that appeared.
16 | static let roadmap = Logger(subsystem: subsystem, category: "Roadmap")
| |- note: annotate 'roadmap' 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
17 | }
18 |
[8/22] Compiling Roadmap ViewExtensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/Extensions/Logger.swift:13:24: warning: static property 'subsystem' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | extension Logger {
12 | /// Using your bundle identifier is a great way to ensure a unique identifier.
13 | private static var subsystem = Bundle.main.bundleIdentifier!
| |- warning: static property 'subsystem' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'subsystem' 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
14 |
15 | /// Logs the view cycles like a view that appeared.
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/Extensions/Logger.swift:16:16: warning: static property 'roadmap' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Logs the view cycles like a view that appeared.
16 | static let roadmap = Logger(subsystem: subsystem, category: "Roadmap")
| `- warning: static property 'roadmap' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
17 | }
18 |
os.Logger:2:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
1 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
2 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
3 | public init(subsystem: String, category: String)
4 | public init()
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/Extensions/Logger.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
7 |
8 | import Foundation
9 | import OSLog
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
10 |
11 | extension Logger {
:
14 |
15 | /// Logs the view cycles like a view that appeared.
16 | static let roadmap = Logger(subsystem: subsystem, category: "Roadmap")
| |- note: annotate 'roadmap' 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
17 | }
18 |
[9/22] Compiling Roadmap RoadmapFeatureView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/RoadmapFeatureViewModel.swift:27:47: warning: sending 'self.feature' risks causing data races; this is an error in the Swift 6 language mode
25 | @MainActor
26 | func getCurrentVotes() async {
27 | voteCount = await configuration.voter.fetch(for: feature)
| |- warning: sending 'self.feature' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.feature' to nonisolated instance method 'fetch(for:)' risks causing data races between nonisolated and main actor-isolated uses
28 | }
29 |
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/RoadmapFeatureViewModel.swift:27:47: warning: sending 'self.configuration.voter' risks causing data races; this is an error in the Swift 6 language mode
25 | @MainActor
26 | func getCurrentVotes() async {
27 | voteCount = await configuration.voter.fetch(for: feature)
| |- warning: sending 'self.configuration.voter' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.configuration.voter' to nonisolated instance method 'fetch(for:)' risks causing data races between nonisolated and main actor-isolated uses
28 | }
29 |
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/RoadmapFeatureViewModel.swift:32:50: warning: sending 'self.feature' risks causing data races; this is an error in the Swift 6 language mode
30 | @MainActor
31 | func vote() async {
32 | let newCount = await configuration.voter.vote(for: feature)
| |- warning: sending 'self.feature' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.feature' to nonisolated instance method 'vote(for:)' risks causing data races between nonisolated and main actor-isolated uses
33 | voteCount = newCount ?? (voteCount + 1)
34 | feature.hasVoted = true
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/RoadmapFeatureViewModel.swift:32:50: warning: sending 'self.configuration.voter' risks causing data races; this is an error in the Swift 6 language mode
30 | @MainActor
31 | func vote() async {
32 | let newCount = await configuration.voter.vote(for: feature)
| |- warning: sending 'self.configuration.voter' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.configuration.voter' to nonisolated instance method 'vote(for:)' risks causing data races between nonisolated and main actor-isolated uses
33 | voteCount = newCount ?? (voteCount + 1)
34 | feature.hasVoted = true
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/RoadmapFeatureViewModel.swift:39:50: warning: sending 'self.feature' risks causing data races; this is an error in the Swift 6 language mode
37 | @MainActor
38 | func unvote() async {
39 | let newCount = await configuration.voter.unvote(for: feature)
| |- warning: sending 'self.feature' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.feature' to nonisolated instance method 'unvote(for:)' risks causing data races between nonisolated and main actor-isolated uses
40 | voteCount = newCount ?? (voteCount - 1)
41 | feature.hasVoted = false
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/RoadmapFeatureViewModel.swift:39:50: warning: sending 'self.configuration.voter' risks causing data races; this is an error in the Swift 6 language mode
37 | @MainActor
38 | func unvote() async {
39 | let newCount = await configuration.voter.unvote(for: feature)
| |- warning: sending 'self.configuration.voter' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.configuration.voter' to nonisolated instance method 'unvote(for:)' risks causing data races between nonisolated and main actor-isolated uses
40 | voteCount = newCount ?? (voteCount - 1)
41 | feature.hasVoted = false
[10/22] Compiling Roadmap RoadmapFeatureViewModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/RoadmapFeatureViewModel.swift:27:47: warning: sending 'self.feature' risks causing data races; this is an error in the Swift 6 language mode
25 | @MainActor
26 | func getCurrentVotes() async {
27 | voteCount = await configuration.voter.fetch(for: feature)
| |- warning: sending 'self.feature' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.feature' to nonisolated instance method 'fetch(for:)' risks causing data races between nonisolated and main actor-isolated uses
28 | }
29 |
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/RoadmapFeatureViewModel.swift:27:47: warning: sending 'self.configuration.voter' risks causing data races; this is an error in the Swift 6 language mode
25 | @MainActor
26 | func getCurrentVotes() async {
27 | voteCount = await configuration.voter.fetch(for: feature)
| |- warning: sending 'self.configuration.voter' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.configuration.voter' to nonisolated instance method 'fetch(for:)' risks causing data races between nonisolated and main actor-isolated uses
28 | }
29 |
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/RoadmapFeatureViewModel.swift:32:50: warning: sending 'self.feature' risks causing data races; this is an error in the Swift 6 language mode
30 | @MainActor
31 | func vote() async {
32 | let newCount = await configuration.voter.vote(for: feature)
| |- warning: sending 'self.feature' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.feature' to nonisolated instance method 'vote(for:)' risks causing data races between nonisolated and main actor-isolated uses
33 | voteCount = newCount ?? (voteCount + 1)
34 | feature.hasVoted = true
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/RoadmapFeatureViewModel.swift:32:50: warning: sending 'self.configuration.voter' risks causing data races; this is an error in the Swift 6 language mode
30 | @MainActor
31 | func vote() async {
32 | let newCount = await configuration.voter.vote(for: feature)
| |- warning: sending 'self.configuration.voter' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.configuration.voter' to nonisolated instance method 'vote(for:)' risks causing data races between nonisolated and main actor-isolated uses
33 | voteCount = newCount ?? (voteCount + 1)
34 | feature.hasVoted = true
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/RoadmapFeatureViewModel.swift:39:50: warning: sending 'self.feature' risks causing data races; this is an error in the Swift 6 language mode
37 | @MainActor
38 | func unvote() async {
39 | let newCount = await configuration.voter.unvote(for: feature)
| |- warning: sending 'self.feature' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.feature' to nonisolated instance method 'unvote(for:)' risks causing data races between nonisolated and main actor-isolated uses
40 | voteCount = newCount ?? (voteCount - 1)
41 | feature.hasVoted = false
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/RoadmapFeatureViewModel.swift:39:50: warning: sending 'self.configuration.voter' risks causing data races; this is an error in the Swift 6 language mode
37 | @MainActor
38 | func unvote() async {
39 | let newCount = await configuration.voter.unvote(for: feature)
| |- warning: sending 'self.configuration.voter' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.configuration.voter' to nonisolated instance method 'unvote(for:)' risks causing data races between nonisolated and main actor-isolated uses
40 | voteCount = newCount ?? (voteCount - 1)
41 | feature.hasVoted = false
[11/22] Compiling Roadmap Language.swift
[12/22] Compiling Roadmap RoadmapFeature.swift
[13/22] Compiling Roadmap ArrayExtensions.swift
[14/22] Compiling Roadmap ColorExtensions.swift
[15/22] Compiling Roadmap FeaturesFetcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/Extensions/Logger.swift:16:16: warning: static property 'roadmap' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Logs the view cycles like a view that appeared.
16 | static let roadmap = Logger(subsystem: subsystem, category: "Roadmap")
| `- warning: static property 'roadmap' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
17 | }
18 |
os.Logger:2:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
1 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
2 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
3 | public init(subsystem: String, category: String)
4 | public init()
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/Extensions/Logger.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
7 |
8 | import Foundation
9 | import OSLog
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
10 |
11 | extension Logger {
:
14 |
15 | /// Logs the view cycles like a view that appeared.
16 | static let roadmap = Logger(subsystem: subsystem, category: "Roadmap")
| |- note: annotate 'roadmap' 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
17 | }
18 |
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/DataProviders/JSONDataFetcher.swift:15:24: warning: static property 'urlSession' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | }
14 |
15 | private static var urlSession: URLSession = {
| |- warning: static property 'urlSession' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'urlSession' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'urlSession' 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 | URLSession(configuration: .ephemeral)
17 | }()
[16/22] Compiling Roadmap JSONDataFetcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/Extensions/Logger.swift:16:16: warning: static property 'roadmap' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Logs the view cycles like a view that appeared.
16 | static let roadmap = Logger(subsystem: subsystem, category: "Roadmap")
| `- warning: static property 'roadmap' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
17 | }
18 |
os.Logger:2:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
1 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
2 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
3 | public init(subsystem: String, category: String)
4 | public init()
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/Extensions/Logger.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
7 |
8 | import Foundation
9 | import OSLog
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
10 |
11 | extension Logger {
:
14 |
15 | /// Logs the view cycles like a view that appeared.
16 | static let roadmap = Logger(subsystem: subsystem, category: "Roadmap")
| |- note: annotate 'roadmap' 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
17 | }
18 |
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/DataProviders/JSONDataFetcher.swift:15:24: warning: static property 'urlSession' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | }
14 |
15 | private static var urlSession: URLSession = {
| |- warning: static property 'urlSession' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'urlSession' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'urlSession' 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 | URLSession(configuration: .ephemeral)
17 | }()
[17/22] Emitting module Roadmap
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/DataProviders/JSONDataFetcher.swift:15:24: warning: static property 'urlSession' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | }
14 |
15 | private static var urlSession: URLSession = {
| |- warning: static property 'urlSession' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'urlSession' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'urlSession' 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 | URLSession(configuration: .ephemeral)
17 | }()
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/Extensions/Logger.swift:13:24: warning: static property 'subsystem' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | extension Logger {
12 | /// Using your bundle identifier is a great way to ensure a unique identifier.
13 | private static var subsystem = Bundle.main.bundleIdentifier!
| |- warning: static property 'subsystem' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'subsystem' 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
14 |
15 | /// Logs the view cycles like a view that appeared.
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/Extensions/Logger.swift:16:16: warning: static property 'roadmap' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Logs the view cycles like a view that appeared.
16 | static let roadmap = Logger(subsystem: subsystem, category: "Roadmap")
| `- warning: static property 'roadmap' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
17 | }
18 |
os.Logger:2:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
1 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
2 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
3 | public init(subsystem: String, category: String)
4 | public init()
/Users/admin/builder/spi-builder-workspace/Sources/Roadmap/Extensions/Logger.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
7 |
8 | import Foundation
9 | import OSLog
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
10 |
11 | extension Logger {
:
14 |
15 | /// Logs the view cycles like a view that appeared.
16 | static let roadmap = Logger(subsystem: subsystem, category: "Roadmap")
| |- note: annotate 'roadmap' 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
17 | }
18 |
[18/22] Compiling Roadmap FeatureVoter.swift
[19/22] Compiling Roadmap FeatureVoterCountAPI.swift
[20/22] Compiling Roadmap RoadmapFeatureVotingCount.swift
[21/22] Compiling Roadmap RoadmapConfiguration.swift
[22/22] Compiling Roadmap RoadmapTemplates.swift
Build complete! (36.60s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Roadmap",
"name" : "Roadmap",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "Roadmap",
"targets" : [
"Roadmap"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "RoadmapTests",
"module_type" : "SwiftTarget",
"name" : "RoadmapTests",
"path" : "Tests/RoadmapTests",
"sources" : [
"RoadmapTests.swift"
],
"target_dependencies" : [
"Roadmap"
],
"type" : "test"
},
{
"c99name" : "Roadmap",
"module_type" : "SwiftTarget",
"name" : "Roadmap",
"path" : "Sources/Roadmap",
"product_memberships" : [
"Roadmap"
],
"sources" : [
"DataProviders/FeatureVoter.swift",
"DataProviders/FeatureVoterCountAPI.swift",
"DataProviders/FeaturesFetcher.swift",
"DataProviders/JSONDataFetcher.swift",
"Extensions/ArrayExtensions.swift",
"Extensions/ColorExtensions.swift",
"Extensions/Logger.swift",
"Extensions/ViewExtensions.swift",
"Language.swift",
"Models/RoadmapFeature.swift",
"Models/RoadmapFeatureVotingCount.swift",
"RoadmapConfiguration.swift",
"RoadmapFeatureView.swift",
"RoadmapFeatureViewModel.swift",
"RoadmapView.swift",
"RoadmapViewModel.swift",
"RoadmapVoteButton.swift",
"Styling/RoadmapStyle.swift",
"Styling/RoadmapTemplates.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.