Build Information
Successful build of Chary with Swift 6.0 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/hainayanda/Chary.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/hainayanda/Chary
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at bfa364d Update README.md
Cloned https://github.com/hainayanda/Chary.git
Revision (git rev-parse @):
bfa364d2bfc1911b53e1fd3ce421da013622cfa8
SUCCESS checkout https://github.com/hainayanda/Chary.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/hainayanda/Chary.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/5] Compiling Chary Atomic.swift
[4/5] Emitting module Chary
/Users/admin/builder/spi-builder-workspace/Chary/Classes/DispatchQueue+Extensions.swift:16:17: warning: let 'detectionKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<QueueReference>' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | fileprivate let detectionKey = DispatchSpecificKey<QueueReference>()
| `- warning: let 'detectionKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<QueueReference>' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | extension DispatchQueue {
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
| `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 | public init()
3 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Chary/Classes/DispatchQueue+Extensions.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
6 | //
7 |
8 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
9 |
10 | // MARK: Detection
:
14 | }
15 |
16 | fileprivate let detectionKey = DispatchSpecificKey<QueueReference>()
| |- note: annotate 'detectionKey' 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 | extension DispatchQueue {
[5/5] Compiling Chary DispatchQueue+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Chary/Classes/DispatchQueue+Extensions.swift:16:17: warning: let 'detectionKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<QueueReference>' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | fileprivate let detectionKey = DispatchSpecificKey<QueueReference>()
| `- warning: let 'detectionKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<QueueReference>' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | extension DispatchQueue {
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
| `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 | public init()
3 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Chary/Classes/DispatchQueue+Extensions.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
6 | //
7 |
8 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
9 |
10 | // MARK: Detection
:
14 | }
15 |
16 | fileprivate let detectionKey = DispatchSpecificKey<QueueReference>()
| |- note: annotate 'detectionKey' 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 | extension DispatchQueue {
/Users/admin/builder/spi-builder-workspace/Chary/Classes/DispatchQueue+Extensions.swift:101:52: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
97 | /// Perform asynchronous task if in different queue than the target. It will run the block right away if turns out its on the same queue as the target
98 | /// - Parameter block: The work item to be invoked on the queue.
99 | public func asyncIfNeeded(qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], execute block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
100 | ifAtDifferentQueue {
101 | async(qos: qos, flags: flags, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
102 | } ifNot: {
103 | block()
Build complete! (16.48s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Chary",
"name" : "Chary",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "macos",
"version" : "10.10"
},
{
"name" : "tvos",
"version" : "10.0"
},
{
"name" : "watchos",
"version" : "4.0"
}
],
"products" : [
{
"name" : "Chary",
"targets" : [
"Chary"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "Chary",
"module_type" : "SwiftTarget",
"name" : "Chary",
"path" : "Chary/Classes",
"product_memberships" : [
"Chary"
],
"sources" : [
"Atomic.swift",
"DispatchQueue+Extensions.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.