Build Information
Successful build of DFService, reference v0.7.0 (c83cd5
), with Swift 6.1 for macOS (SPM) on 14 Jun 2025 07:07:44 UTC.
Swift 6 data race errors: 3
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.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.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/yaochenfeng/DFService.git
Reference: v0.7.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/yaochenfeng/DFService
* tag v0.7.0 -> FETCH_HEAD
HEAD is now at c83cd56 chore(main): release 0.7.0 (#21)
Cloned https://github.com/yaochenfeng/DFService.git
Revision (git rev-parse @):
c83cd5605da0c622896e4ced1b01b68176ed72cd
SUCCESS checkout https://github.com/yaochenfeng/DFService.git at v0.7.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": "dfservice",
"name": "DFService",
"url": "https://github.com/yaochenfeng/DFService.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DFService",
"dependencies": [
]
}
]
}
Fetching https://github.com/yaochenfeng/DFService.git
[1/1022] Fetching dfservice
Fetched https://github.com/yaochenfeng/DFService.git from cache (1.08s)
Creating working copy for https://github.com/yaochenfeng/DFService.git
Working copy of https://github.com/yaochenfeng/DFService.git resolved at v0.7.0 (c83cd56)
warning: '.resolve-product-dependencies': dependency 'dfservice' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/yaochenfeng/DFService.git
https://github.com/yaochenfeng/DFService.git
{
"dependencies" : [
],
"manifest_display_name" : "DFService",
"name" : "DFService",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "DFService",
"targets" : [
"DFService"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "DFServiceTests",
"module_type" : "SwiftTarget",
"name" : "DFServiceTests",
"path" : "Tests/DFServiceTests",
"sources" : [
"DFPromiseTests.swift",
"ServiceStateTypeTests.swift"
],
"target_dependencies" : [
"DFService"
],
"type" : "test"
},
{
"c99name" : "DFService",
"module_type" : "SwiftTarget",
"name" : "DFService",
"path" : "Sources/DFService",
"product_memberships" : [
"DFService"
],
"sources" : [
"DFPromise.swift",
"ServiceError.swift",
"ServiceManager.swift",
"ServiceStore.swift",
"types/ServiceModuleType.swift",
"types/ServiceStateType.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/9] Compiling DFService ServiceManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/ServiceManager.swift:2:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | public final class ServiceManager {
2 | public static var shared = ServiceManager()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
3 | public init() {}
4 |
[4/9] Compiling DFService DFPromise.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/DFPromise.swift:193:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
191 | ) {
192 | self.init { resolve, reject in
193 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
194 | do {
195 | let result = try await work()
| `- note: closure captures 'work' which is accessible to code in the current task
196 | resolve(result)
197 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/DFService/DFPromise.swift:206:30: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
204 | return try await withCheckedThrowingContinuation { continuation in
205 | self.then { value in
206 | continuation.resume(returning: value)
| |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
207 | }.catch { error in
208 | continuation.resume(throwing: error)
[5/9] Compiling DFService ServiceStateType.swift
[6/9] Compiling DFService ServiceStore.swift
[7/9] Compiling DFService ServiceModuleType.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/types/ServiceModuleType.swift:19:23: warning: static property 'initial' is not concurrency-safe because non-'Sendable' type 'ServicePhase' may have shared mutable state; this is an error in the Swift 6 language mode
15 | }
16 | }
17 | public struct ServicePhase: Comparable, RawRepresentable {
| `- note: consider making struct 'ServicePhase' conform to the 'Sendable' protocol
18 | // 内置阶段
19 | public static let initial = ServicePhase(rawValue: 0) // 初始阶段
| |- warning: static property 'initial' is not concurrency-safe because non-'Sendable' type 'ServicePhase' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'initial' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | public static let splash = Self.initial.next(step: 10) // 启动阶段
21 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/types/ServiceModuleType.swift:20:23: warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServicePhase' may have shared mutable state; this is an error in the Swift 6 language mode
15 | }
16 | }
17 | public struct ServicePhase: Comparable, RawRepresentable {
| `- note: consider making struct 'ServicePhase' conform to the 'Sendable' protocol
18 | // 内置阶段
19 | public static let initial = ServicePhase(rawValue: 0) // 初始阶段
20 | public static let splash = Self.initial.next(step: 10) // 启动阶段
| |- warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServicePhase' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'splash' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | public var rawValue: Int
[8/9] Emitting module DFService
/Users/admin/builder/spi-builder-workspace/Sources/DFService/ServiceManager.swift:2:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | public final class ServiceManager {
2 | public static var shared = ServiceManager()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
3 | public init() {}
4 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/types/ServiceModuleType.swift:19:23: warning: static property 'initial' is not concurrency-safe because non-'Sendable' type 'ServicePhase' may have shared mutable state; this is an error in the Swift 6 language mode
15 | }
16 | }
17 | public struct ServicePhase: Comparable, RawRepresentable {
| `- note: consider making struct 'ServicePhase' conform to the 'Sendable' protocol
18 | // 内置阶段
19 | public static let initial = ServicePhase(rawValue: 0) // 初始阶段
| |- warning: static property 'initial' is not concurrency-safe because non-'Sendable' type 'ServicePhase' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'initial' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | public static let splash = Self.initial.next(step: 10) // 启动阶段
21 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/types/ServiceModuleType.swift:20:23: warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServicePhase' may have shared mutable state; this is an error in the Swift 6 language mode
15 | }
16 | }
17 | public struct ServicePhase: Comparable, RawRepresentable {
| `- note: consider making struct 'ServicePhase' conform to the 'Sendable' protocol
18 | // 内置阶段
19 | public static let initial = ServicePhase(rawValue: 0) // 初始阶段
20 | public static let splash = Self.initial.next(step: 10) // 启动阶段
| |- warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServicePhase' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'splash' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | public var rawValue: Int
[9/9] Compiling DFService ServiceError.swift
Build complete! (4.17s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "DFService",
"name" : "DFService",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "DFService",
"targets" : [
"DFService"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "DFServiceTests",
"module_type" : "SwiftTarget",
"name" : "DFServiceTests",
"path" : "Tests/DFServiceTests",
"sources" : [
"DFPromiseTests.swift",
"ServiceStateTypeTests.swift"
],
"target_dependencies" : [
"DFService"
],
"type" : "test"
},
{
"c99name" : "DFService",
"module_type" : "SwiftTarget",
"name" : "DFService",
"path" : "Sources/DFService",
"product_memberships" : [
"DFService"
],
"sources" : [
"DFPromise.swift",
"ServiceError.swift",
"ServiceManager.swift",
"ServiceStore.swift",
"types/ServiceModuleType.swift",
"types/ServiceStateType.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Done.