Build Information
Successful build of StrasbourgParkAPI, reference master (784074
), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 09:39:45 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 -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.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/yageek/StrasbourgParkAPI.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/yageek/StrasbourgParkAPI
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 784074f Update changelog
Cloned https://github.com/yageek/StrasbourgParkAPI.git
Revision (git rev-parse @):
784074f28e99def979c39d53f962f45873bcab36
SUCCESS checkout https://github.com/yageek/StrasbourgParkAPI.git at master
Fetching https://github.com/apple/swift-log.git
[1/3710] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.16s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.2.0 (0.57s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.2.0
========================================
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": "strasbourgparkapi",
"name": "StrasbourgParkAPI",
"url": "https://github.com/yageek/StrasbourgParkAPI.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/StrasbourgParkAPI",
"dependencies": [
{
"identity": "swift-log",
"name": "swift-log",
"url": "https://github.com/apple/swift-log.git",
"version": "1.6.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/yageek/StrasbourgParkAPI.git
[10/481] Fetching strasbourgparkapi
Fetched https://github.com/yageek/StrasbourgParkAPI.git from cache (0.96s)
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.54s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.42s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.2
Creating working copy for https://github.com/yageek/StrasbourgParkAPI.git
Working copy of https://github.com/yageek/StrasbourgParkAPI.git resolved at master (784074f)
warning: '.resolve-product-dependencies': dependency 'strasbourgparkapi' is not used by any target
Found 1 product dependencies
- swift-log
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/yageek/StrasbourgParkAPI.git
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
}
],
"manifest_display_name" : "StrasbourgParkAPI",
"name" : "StrasbourgParkAPI",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "StrasbourgParkAPI",
"targets" : [
"StrasbourgParkAPI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "StrasbourgParkAPITests",
"module_type" : "SwiftTarget",
"name" : "StrasbourgParkAPITests",
"path" : "Tests/StrasbourgParkAPITests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/StrasbourgParkAPITests/samples",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"StrasbourgParkAPITests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"StrasbourgParkAPI"
],
"type" : "test"
},
{
"c99name" : "StrasbourgParkAPI",
"module_type" : "SwiftTarget",
"name" : "StrasbourgParkAPI",
"path" : "Sources/StrasbourgParkAPI",
"product_dependencies" : [
"Logging"
],
"product_memberships" : [
"StrasbourgParkAPI"
],
"sources" : [
"Core/Endpoint.swift",
"Core/Log.swift",
"Core/ParkAPILegacy.swift",
"Core/ParkAPIOpenData.swift",
"Core/ParkingAPIClient.swift",
"Operations/BaseOperation.swift",
"Operations/DownloadAllPageOperation.swift",
"Operations/DownloadOperation.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
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 -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/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/7] Compiling Logging Locks.swift
[5/7] Compiling Logging LogHandler.swift
[6/7] Emitting module Logging
[7/7] Compiling Logging Logging.swift
[8/16] Compiling StrasbourgParkAPI BaseOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Operations/BaseOperation.swift:17:7: warning: class 'BaseOperation' must restate inherited '@unchecked Sendable' conformance
15 | }
16 |
17 | class BaseOperation: Operation {
| `- warning: class 'BaseOperation' must restate inherited '@unchecked Sendable' conformance
18 |
19 | // MARK: - Helper Begin
[9/16] Compiling StrasbourgParkAPI DownloadOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Operations/DownloadOperation.swift:10:13: warning: class 'DownloadOperation' must restate inherited '@unchecked Sendable' conformance
8 | import Foundation
9 |
10 | final class DownloadOperation<T: Decodable>: BaseOperation, CompletableOperation {
| `- warning: class 'DownloadOperation' must restate inherited '@unchecked Sendable' conformance
11 | private let url: URL
12 | private let lock = NSLock()
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Core/Log.swift:10:5: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Logging
9 |
10 | let logger = Logger(label: "net.yageek.StrasbourgPark-API")
| `- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
26 | /// logger.info("Hello World!")
27 | ///
28 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
29 | @usableFromInline
30 | var handler: LogHandler
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Core/Log.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
6 | //
7 |
8 | import Logging
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
9 |
10 | let logger = Logger(label: "net.yageek.StrasbourgPark-API")
| |- note: annotate 'logger' 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
11 |
[10/16] Compiling StrasbourgParkAPI DownloadAllPageOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Operations/DownloadAllPageOperation.swift:20:13: warning: class 'DownloadAllPages' must restate inherited '@unchecked Sendable' conformance
18 | }
19 |
20 | final class DownloadAllPages<T: Decodable>: BaseOperation, CompletableOperation {
| `- warning: class 'DownloadAllPages' must restate inherited '@unchecked Sendable' conformance
21 |
22 | private let workingQueue: OperationQueue
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Core/Log.swift:10:5: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Logging
9 |
10 | let logger = Logger(label: "net.yageek.StrasbourgPark-API")
| `- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
26 | /// logger.info("Hello World!")
27 | ///
28 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
29 | @usableFromInline
30 | var handler: LogHandler
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Core/Log.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
6 | //
7 |
8 | import Logging
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
9 |
10 | let logger = Logger(label: "net.yageek.StrasbourgPark-API")
| |- note: annotate 'logger' 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
11 |
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Operations/DownloadAllPageOperation.swift:161:27: warning: 'as' test is always true
159 | self.records[pageNumber] = elements
160 |
161 | } catch let error as ParkingAPIClientError {
| `- warning: 'as' test is always true
162 | logger.error("Error downloading data: \(error)")
163 | self.errors.append(error)
[11/16] Compiling StrasbourgParkAPI ParkingAPIClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Core/ParkingAPIClient.swift:25:17: warning: stored property 'session' of 'Sendable'-conforming class 'ParkingAPIClient' is mutable; this is an error in the Swift 6 language mode
23 | public final class ParkingAPIClient: NSObject, URLSessionDelegate {
24 |
25 | private var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'ParkingAPIClient' is mutable; this is an error in the Swift 6 language mode
26 | private let workingQueue: OperationQueue
27 | private let pageSize: UInt
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Core/ParkingAPIClient.swift:234:34: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
232 |
233 | operation.completionHandler = { result in
234 | continuation.resume(with: result)
| |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
235 | }
236 | self.workingQueue.addOperation(operation)
[12/16] Compiling StrasbourgParkAPI ParkAPILegacy.swift
[13/16] Compiling StrasbourgParkAPI Endpoint.swift
[14/16] Compiling StrasbourgParkAPI ParkAPIOpenData.swift
[15/16] Compiling StrasbourgParkAPI Log.swift
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Core/Log.swift:10:5: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Logging
9 |
10 | let logger = Logger(label: "net.yageek.StrasbourgPark-API")
| `- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
26 | /// logger.info("Hello World!")
27 | ///
28 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
29 | @usableFromInline
30 | var handler: LogHandler
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Core/Log.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
6 | //
7 |
8 | import Logging
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
9 |
10 | let logger = Logger(label: "net.yageek.StrasbourgPark-API")
| |- note: annotate 'logger' 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
11 |
[16/16] Emitting module StrasbourgParkAPI
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Core/Log.swift:10:5: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Logging
9 |
10 | let logger = Logger(label: "net.yageek.StrasbourgPark-API")
| `- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
26 | /// logger.info("Hello World!")
27 | ///
28 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
29 | @usableFromInline
30 | var handler: LogHandler
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Core/Log.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
6 | //
7 |
8 | import Logging
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
9 |
10 | let logger = Logger(label: "net.yageek.StrasbourgPark-API")
| |- note: annotate 'logger' 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
11 |
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Core/ParkingAPIClient.swift:25:17: warning: stored property 'session' of 'Sendable'-conforming class 'ParkingAPIClient' is mutable; this is an error in the Swift 6 language mode
23 | public final class ParkingAPIClient: NSObject, URLSessionDelegate {
24 |
25 | private var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'ParkingAPIClient' is mutable; this is an error in the Swift 6 language mode
26 | private let workingQueue: OperationQueue
27 | private let pageSize: UInt
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Operations/BaseOperation.swift:17:7: warning: class 'BaseOperation' must restate inherited '@unchecked Sendable' conformance
15 | }
16 |
17 | class BaseOperation: Operation {
| `- warning: class 'BaseOperation' must restate inherited '@unchecked Sendable' conformance
18 |
19 | // MARK: - Helper Begin
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Operations/DownloadAllPageOperation.swift:20:13: warning: class 'DownloadAllPages' must restate inherited '@unchecked Sendable' conformance
18 | }
19 |
20 | final class DownloadAllPages<T: Decodable>: BaseOperation, CompletableOperation {
| `- warning: class 'DownloadAllPages' must restate inherited '@unchecked Sendable' conformance
21 |
22 | private let workingQueue: OperationQueue
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Operations/DownloadOperation.swift:10:13: warning: class 'DownloadOperation' must restate inherited '@unchecked Sendable' conformance
8 | import Foundation
9 |
10 | final class DownloadOperation<T: Decodable>: BaseOperation, CompletableOperation {
| `- warning: class 'DownloadOperation' must restate inherited '@unchecked Sendable' conformance
11 | private let url: URL
12 | private let lock = NSLock()
Build complete! (8.34s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
}
],
"manifest_display_name" : "StrasbourgParkAPI",
"name" : "StrasbourgParkAPI",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "StrasbourgParkAPI",
"targets" : [
"StrasbourgParkAPI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "StrasbourgParkAPITests",
"module_type" : "SwiftTarget",
"name" : "StrasbourgParkAPITests",
"path" : "Tests/StrasbourgParkAPITests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/StrasbourgParkAPITests/samples",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"StrasbourgParkAPITests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"StrasbourgParkAPI"
],
"type" : "test"
},
{
"c99name" : "StrasbourgParkAPI",
"module_type" : "SwiftTarget",
"name" : "StrasbourgParkAPI",
"path" : "Sources/StrasbourgParkAPI",
"product_dependencies" : [
"Logging"
],
"product_memberships" : [
"StrasbourgParkAPI"
],
"sources" : [
"Core/Endpoint.swift",
"Core/Log.swift",
"Core/ParkAPILegacy.swift",
"Core/ParkAPIOpenData.swift",
"Core/ParkingAPIClient.swift",
"Operations/BaseOperation.swift",
"Operations/DownloadAllPageOperation.swift",
"Operations/DownloadOperation.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.