Build Information
Successful build of Ola, reference master (61379a
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 11:26:08 UTC.
Swift 6 data race errors: 2
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/michaelnisi/ola.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/michaelnisi/ola
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 61379a0 Add changelog
Cloned https://github.com/michaelnisi/ola.git
Revision (git rev-parse @):
61379a00e4020b4e58241e972e9a1b0af8582232
SUCCESS checkout https://github.com/michaelnisi/ola.git at master
========================================
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": "ola",
"name": "Ola",
"url": "https://github.com/michaelnisi/ola.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ola",
"dependencies": [
]
}
]
}
Fetching https://github.com/michaelnisi/ola.git
[1/678] Fetching ola
Fetched https://github.com/michaelnisi/ola.git from cache (0.82s)
Creating working copy for https://github.com/michaelnisi/ola.git
Working copy of https://github.com/michaelnisi/ola.git resolved at master (61379a0)
warning: '.resolve-product-dependencies': dependency 'ola' 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/michaelnisi/ola.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/5] Compiling Ola Ola.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ola/Ola.swift:128:3: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
126 | private var callback: ((OlaStatus) -> Void)?
127 |
128 | private (set) var status = OlaStatus.unknown {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
129 | didSet {
130 | guard status != oldValue else {
/Users/admin/builder/spi-builder-workspace/Sources/Ola/Ola.swift:119:26: warning: capture of 'self' with non-sendable type 'Ola?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | }
74 |
75 | final public class Ola: Reaching {
| `- note: class 'Ola' does not conform to the 'Sendable' protocol
76 |
77 | private let host: String
:
117 | public func reach(statusBlock: @escaping (OlaStatus) -> Void) {
118 | DispatchQueue.global(qos: .userInitiated).async { [weak self] in
119 | guard let status = self?.reach() else {
| `- warning: capture of 'self' with non-sendable type 'Ola?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | return statusBlock(.unknown)
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Ola/Ola.swift:120:16: warning: capture of 'statusBlock' with non-sendable type '(OlaStatus) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | DispatchQueue.global(qos: .userInitiated).async { [weak self] in
119 | guard let status = self?.reach() else {
120 | return statusBlock(.unknown)
| |- warning: capture of 'statusBlock' with non-sendable type '(OlaStatus) -> 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'
121 | }
122 | statusBlock(status)
[4/5] Emitting module Ola
/Users/admin/builder/spi-builder-workspace/Sources/Ola/NetworkActivityCounter.swift:20:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkActivityCounter' may have shared mutable state; this is an error in the Swift 6 language mode
10 | import Combine
11 |
12 | public class NetworkActivityCounter {
| `- note: class 'NetworkActivityCounter' does not conform to the 'Sendable' protocol
13 |
14 | private let subject = CurrentValueSubject<Int, Never>(0)
:
18 | // MARK: - API
19 |
20 | public static let shared = NetworkActivityCounter()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkActivityCounter' 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
21 |
22 | public var isActive: AnyPublisher<Bool, Never> {
/Users/admin/builder/spi-builder-workspace/Sources/Ola/Ola.swift:128:3: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
126 | private var callback: ((OlaStatus) -> Void)?
127 |
128 | private (set) var status = OlaStatus.unknown {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
129 | didSet {
130 | guard status != oldValue else {
[5/5] Compiling Ola NetworkActivityCounter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ola/NetworkActivityCounter.swift:20:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkActivityCounter' may have shared mutable state; this is an error in the Swift 6 language mode
10 | import Combine
11 |
12 | public class NetworkActivityCounter {
| `- note: class 'NetworkActivityCounter' does not conform to the 'Sendable' protocol
13 |
14 | private let subject = CurrentValueSubject<Int, Never>(0)
:
18 | // MARK: - API
19 |
20 | public static let shared = NetworkActivityCounter()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkActivityCounter' 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
21 |
22 | public var isActive: AnyPublisher<Bool, Never> {
Build complete! (5.86s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Ola",
"name" : "Ola",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "Ola",
"targets" : [
"Ola"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "OlaTests",
"module_type" : "SwiftTarget",
"name" : "OlaTests",
"path" : "Tests/OlaTests",
"sources" : [
"OlaTests.swift"
],
"target_dependencies" : [
"Ola"
],
"type" : "test"
},
{
"c99name" : "Ola",
"module_type" : "SwiftTarget",
"name" : "Ola",
"path" : "Sources/Ola",
"product_memberships" : [
"Ola"
],
"sources" : [
"NetworkActivityCounter.swift",
"Ola.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.