Build Information
Successful build of Cancellor, reference 0.2.0 (67da3c
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 12:59:33 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/icanzilb/Cancellor.git
Reference: 0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/icanzilb/Cancellor
* tag 0.2.0 -> FETCH_HEAD
HEAD is now at 67da3cf adding a single subscription method
Cloned https://github.com/icanzilb/Cancellor.git
Revision (git rev-parse @):
67da3cfa416cac9a52e4f8be20c9efcd1f3a7a86
SUCCESS checkout https://github.com/icanzilb/Cancellor.git at 0.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": "cancellor",
"name": "Cancellor",
"url": "https://github.com/icanzilb/Cancellor.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Cancellor",
"dependencies": [
]
}
]
}
Fetching https://github.com/icanzilb/Cancellor.git
[1/36] Fetching cancellor
Fetched https://github.com/icanzilb/Cancellor.git from cache (0.64s)
Creating working copy for https://github.com/icanzilb/Cancellor.git
Working copy of https://github.com/icanzilb/Cancellor.git resolved at 0.2.0 (67da3cf)
warning: '.resolve-product-dependencies': dependency 'cancellor' 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/icanzilb/Cancellor.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/4] Emitting module Cancellor
/Users/admin/builder/spi-builder-workspace/Sources/Cancellor/Cancellor.swift:44:24: warning: static property 'cancellablesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | @available(iOS 13.0, macOS 10.15, *)
43 | extension NSObject {
44 | private static var cancellablesLock: os_unfair_lock_s = { os_unfair_lock_s() }()
| |- warning: static property 'cancellablesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cancellablesLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'cancellablesLock' 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
45 | private static var cancellablesKeyRawValue: UInt8 = 0
46 |
/Users/admin/builder/spi-builder-workspace/Sources/Cancellor/Cancellor.swift:45:24: warning: static property 'cancellablesKeyRawValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
43 | extension NSObject {
44 | private static var cancellablesLock: os_unfair_lock_s = { os_unfair_lock_s() }()
45 | private static var cancellablesKeyRawValue: UInt8 = 0
| |- warning: static property 'cancellablesKeyRawValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cancellablesKeyRawValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'cancellablesKeyRawValue' 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
46 |
47 | fileprivate func addCancellables(_ cancellables: [AnyCancellable]) {
[4/4] Compiling Cancellor Cancellor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cancellor/Cancellor.swift:44:24: warning: static property 'cancellablesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | @available(iOS 13.0, macOS 10.15, *)
43 | extension NSObject {
44 | private static var cancellablesLock: os_unfair_lock_s = { os_unfair_lock_s() }()
| |- warning: static property 'cancellablesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cancellablesLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'cancellablesLock' 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
45 | private static var cancellablesKeyRawValue: UInt8 = 0
46 |
/Users/admin/builder/spi-builder-workspace/Sources/Cancellor/Cancellor.swift:45:24: warning: static property 'cancellablesKeyRawValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
43 | extension NSObject {
44 | private static var cancellablesLock: os_unfair_lock_s = { os_unfair_lock_s() }()
45 | private static var cancellablesKeyRawValue: UInt8 = 0
| |- warning: static property 'cancellablesKeyRawValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cancellablesKeyRawValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'cancellablesKeyRawValue' 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
46 |
47 | fileprivate func addCancellables(_ cancellables: [AnyCancellable]) {
Build complete! (7.17s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Cancellor",
"name" : "Cancellor",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "Cancellor",
"targets" : [
"Cancellor"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CancellorTests",
"module_type" : "SwiftTarget",
"name" : "CancellorTests",
"path" : "Tests/CancellorTests",
"sources" : [
"CancellorTests.swift"
],
"target_dependencies" : [
"Cancellor"
],
"type" : "test"
},
{
"c99name" : "Cancellor",
"module_type" : "SwiftTarget",
"name" : "Cancellor",
"path" : "Sources/Cancellor",
"product_memberships" : [
"Cancellor"
],
"sources" : [
"Cancellor.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.