Build Information
Successful build of ProgressReporter with Swift 6.0 (beta) for macOS (SPM).
Swift 6 data race errors: 1
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/Sam-Spencer/ProgressReporter.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Sam-Spencer/ProgressReporter
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 63b5508 Create FUNDING.yml
Cloned https://github.com/Sam-Spencer/ProgressReporter.git
Revision (git rev-parse @):
63b5508dfc67bc1e4892501d6d75dc45ca4d1446
SUCCESS checkout https://github.com/Sam-Spencer/ProgressReporter.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/Sam-Spencer/ProgressReporter.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/4] Compiling ProgressReporter ProgressReporter.swift
/Users/admin/builder/spi-builder-workspace/Sources/ProgressReporter/ProgressReporter.swift:105:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ProgressCoordinator' may have shared mutable state; this is an error in the Swift 6 language mode
101 | ///
102 | @available(iOS 13.0, *)
103 | open class ProgressCoordinator: ProgressCensus {
| `- note: class 'ProgressCoordinator' does not conform to the 'Sendable' protocol
104 |
105 | public static let shared = ProgressCoordinator()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ProgressCoordinator' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
106 | public var watcher: ProgressWatcher?
107 |
/Users/admin/builder/spi-builder-workspace/Sources/ProgressReporter/ProgressReporter.swift:192:17: warning: capture of 'self' with non-sendable type 'ProgressCoordinator' in a `@Sendable` closure; this is an error in the Swift 6 language mode
101 | ///
102 | @available(iOS 13.0, *)
103 | open class ProgressCoordinator: ProgressCensus {
| `- note: class 'ProgressCoordinator' does not conform to the 'Sendable' protocol
104 |
105 | public static let shared = ProgressCoordinator()
:
190 | } else {
191 | DispatchQueue.main.async {
192 | self.watcher?.hasProgressToReport(report: self.progress)
| `- warning: capture of 'self' with non-sendable type 'ProgressCoordinator' in a `@Sendable` closure; this is an error in the Swift 6 language mode
193 | self.rawProgress = self.progress.progress
194 | }
/Users/admin/builder/spi-builder-workspace/Sources/ProgressReporter/ProgressReporter.swift:207:17: warning: capture of 'task' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
205 | } else {
206 | DispatchQueue.main.async {
207 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
208 | }
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/ProgressReporter/ProgressReporter.swift:192:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
190 | } else {
191 | DispatchQueue.main.async {
192 | self.watcher?.hasProgressToReport(report: self.progress)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
193 | self.rawProgress = self.progress.progress
194 | }
/Users/admin/builder/spi-builder-workspace/Sources/ProgressReporter/ProgressReporter.swift:207:17: warning: sending 'task' risks causing data races; this is an error in the Swift 6 language mode
205 | } else {
206 | DispatchQueue.main.async {
207 | task()
| |- warning: sending 'task' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'task' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
208 | }
209 | }
[4/4] Emitting module ProgressReporter
/Users/admin/builder/spi-builder-workspace/Sources/ProgressReporter/ProgressReporter.swift:105:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ProgressCoordinator' may have shared mutable state; this is an error in the Swift 6 language mode
101 | ///
102 | @available(iOS 13.0, *)
103 | open class ProgressCoordinator: ProgressCensus {
| `- note: class 'ProgressCoordinator' does not conform to the 'Sendable' protocol
104 |
105 | public static let shared = ProgressCoordinator()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ProgressCoordinator' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
106 | public var watcher: ProgressWatcher?
107 |
Build complete! (16.54s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "ProgressReporter",
"name" : "ProgressReporter",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "ProgressReporter",
"targets" : [
"ProgressReporter"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ProgressReporterTests",
"module_type" : "SwiftTarget",
"name" : "ProgressReporterTests",
"path" : "Tests/ProgressReporterTests",
"sources" : [
"ProgressReporterTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"ProgressReporter"
],
"type" : "test"
},
{
"c99name" : "ProgressReporter",
"module_type" : "SwiftTarget",
"name" : "ProgressReporter",
"path" : "Sources/ProgressReporter",
"product_memberships" : [
"ProgressReporter"
],
"sources" : [
"ProgressReporter.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.