Build Information
Successful build of DFService, reference main (2a2f29
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 21:37:37 UTC.
Swift 6 data race errors: 19
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
| `- note: sending 'self'-isolated 'provider' to nonisolated instance method 'performAsyncStartup()' risks causing data races between nonisolated and 'self'-isolated uses
76 | provider.isBooted = true
77 | success = true
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:38:28: warning: sending 'provider' risks causing data races; this is an error in the Swift 6 language mode
36 | logger.debug("\(provider.name) 停止服务\(success)用时: \(cost_time)毫秒")
37 | }
38 | await provider.performAsyncShutdown()
| |- warning: sending 'provider' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'provider' to nonisolated instance method 'performAsyncShutdown()' risks causing data races between nonisolated and 'self'-isolated uses
39 | provider.isBooted = false
40 | success = true
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:92:21: warning: sending 'app' risks causing data races; this is an error in the Swift 6 language mode
90 | let bootstrap: Bootstrap
91 | required init(_ app: Application) {
92 | bootstrap = Bootstrap(app: app)
| |- warning: sending 'app' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'app' to actor-isolated initializer 'init(app:)' risks causing data races between actor-isolated and task-isolated uses
93 | super.init(app)
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:101:39: 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
99 | }
100 | func bootstrap(_ when: ProviderWhen) {
101 | Task(priority: .userInitiated){
| `- 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
102 | await bootstrap.bootstrap(when)
| `- note: closure captures 'self' which is accessible to code in the current task
103 | }
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:102:29: warning: sending 'when' risks causing data races; this is an error in the Swift 6 language mode
100 | func bootstrap(_ when: ProviderWhen) {
101 | Task(priority: .userInitiated){
102 | await bootstrap.bootstrap(when)
| |- warning: sending 'when' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'when' to actor-isolated instance method 'bootstrap' risks causing data races between actor-isolated and task-isolated uses
103 | }
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:107:39: 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
105 |
106 | func reset(_ when: ProviderWhen) {
107 | Task(priority: .userInitiated){
| `- 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
108 | await bootstrap.reset(when)
| `- note: closure captures 'self' which is accessible to code in the current task
109 | }
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:108:29: warning: sending 'when' risks causing data races; this is an error in the Swift 6 language mode
106 | func reset(_ when: ProviderWhen) {
107 | Task(priority: .userInitiated){
108 | await bootstrap.reset(when)
| |- warning: sending 'when' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'when' to actor-isolated instance method 'reset' risks causing data races between actor-isolated and task-isolated uses
109 | }
110 | }
[12/57] Compiling DFService MockApiServiceImpl.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/router/Router.swift:26:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Router' may have shared mutable state; this is an error in the Swift 6 language mode
6 | }
7 |
8 | public class Router: ObservableObject {
| `- note: class 'Router' does not conform to the 'Sendable' protocol
9 | public enum RouteAction: Equatable, Hashable {
10 | case empty
:
24 | typealias PageBuilder = (RouteRequest) -> any View
25 | public typealias ActionBuilder = (RouteRequest) -> Void
26 | public static let shared = Router()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Router' 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
27 | /// 自定义go实现
28 | internal var customHandlerGo: ActionBuilder?
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/RuntimeService.swift:5:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | #endif
4 | public struct RuntimeService: DFServiceKey {
5 | public static var defaultValue: Value = Value()
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' 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
6 |
7 | public struct Value {}
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/RuntimeService.swift:9:24: warning: static property 'uuid' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 | public struct Value {}
8 |
9 | private static var uuid: String?
| |- warning: static property 'uuid' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'uuid' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'uuid' 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
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:69:27: warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
67 | public let rawValue: Int
68 | /// 默认启动
69 | public static let eager = ProviderWhen(rawValue: 0)
| |- warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eager' 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
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/framework/provider/ServiceFactory.swift:3: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 | /// 服务提供者
2 | public final class ServiceFactory {
3 | public static var shared = ServiceFactory()
| |- 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: 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
4 | var storage: [String: ServiceHandler] = [:]
5 | var interceptor: ServiceInterceptor
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/router/Router.swift:16:27: warning: static property 'page404' is not concurrency-safe because non-'Sendable' type 'Router.RoutePath' may have shared mutable state; this is an error in the Swift 6 language mode
13 | }
14 |
15 | public struct RoutePath: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'RoutePath' conform to the 'Sendable' protocol
16 | public static let page404 = RoutePath(rawValue: "page/404")
| |- warning: static property 'page404' is not concurrency-safe because non-'Sendable' type 'Router.RoutePath' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'page404' 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 | public static let root = RoutePath(rawValue: "page/root")
18 | public let rawValue: String
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:75:36: warning: sending 'provider' risks causing data races; this is an error in the Swift 6 language mode
73 | }
74 | do {
75 | try await provider.performAsyncStartup()
| |- warning: sending 'provider' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'provider' to nonisolated instance method 'performAsyncStartup()' risks causing data races between nonisolated and 'self'-isolated uses
76 | provider.isBooted = true
77 | success = true
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:38:28: warning: sending 'provider' risks causing data races; this is an error in the Swift 6 language mode
36 | logger.debug("\(provider.name) 停止服务\(success)用时: \(cost_time)毫秒")
37 | }
38 | await provider.performAsyncShutdown()
| |- warning: sending 'provider' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'provider' to nonisolated instance method 'performAsyncShutdown()' risks causing data races between nonisolated and 'self'-isolated uses
39 | provider.isBooted = false
40 | success = true
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:92:21: warning: sending 'app' risks causing data races; this is an error in the Swift 6 language mode
90 | let bootstrap: Bootstrap
91 | required init(_ app: Application) {
92 | bootstrap = Bootstrap(app: app)
| |- warning: sending 'app' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'app' to actor-isolated initializer 'init(app:)' risks causing data races between actor-isolated and task-isolated uses
93 | super.init(app)
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:101:39: 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
99 | }
100 | func bootstrap(_ when: ProviderWhen) {
101 | Task(priority: .userInitiated){
| `- 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
102 | await bootstrap.bootstrap(when)
| `- note: closure captures 'self' which is accessible to code in the current task
103 | }
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:102:29: warning: sending 'when' risks causing data races; this is an error in the Swift 6 language mode
100 | func bootstrap(_ when: ProviderWhen) {
101 | Task(priority: .userInitiated){
102 | await bootstrap.bootstrap(when)
| |- warning: sending 'when' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'when' to actor-isolated instance method 'bootstrap' risks causing data races between actor-isolated and task-isolated uses
103 | }
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:107:39: 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
105 |
106 | func reset(_ when: ProviderWhen) {
107 | Task(priority: .userInitiated){
| `- 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
108 | await bootstrap.reset(when)
| `- note: closure captures 'self' which is accessible to code in the current task
109 | }
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:108:29: warning: sending 'when' risks causing data races; this is an error in the Swift 6 language mode
106 | func reset(_ when: ProviderWhen) {
107 | Task(priority: .userInitiated){
108 | await bootstrap.reset(when)
| |- warning: sending 'when' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'when' to actor-isolated instance method 'reset' risks causing data races between actor-isolated and task-isolated uses
109 | }
110 | }
[13/57] Compiling DFService BootstrapServiceProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/router/Router.swift:26:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Router' may have shared mutable state; this is an error in the Swift 6 language mode
6 | }
7 |
8 | public class Router: ObservableObject {
| `- note: class 'Router' does not conform to the 'Sendable' protocol
9 | public enum RouteAction: Equatable, Hashable {
10 | case empty
:
24 | typealias PageBuilder = (RouteRequest) -> any View
25 | public typealias ActionBuilder = (RouteRequest) -> Void
26 | public static let shared = Router()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Router' 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
27 | /// 自定义go实现
28 | internal var customHandlerGo: ActionBuilder?
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/RuntimeService.swift:5:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | #endif
4 | public struct RuntimeService: DFServiceKey {
5 | public static var defaultValue: Value = Value()
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' 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
6 |
7 | public struct Value {}
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/RuntimeService.swift:9:24: warning: static property 'uuid' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 | public struct Value {}
8 |
9 | private static var uuid: String?
| |- warning: static property 'uuid' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'uuid' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'uuid' 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
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:69:27: warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
67 | public let rawValue: Int
68 | /// 默认启动
69 | public static let eager = ProviderWhen(rawValue: 0)
| |- warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eager' 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
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/framework/provider/ServiceFactory.swift:3: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 | /// 服务提供者
2 | public final class ServiceFactory {
3 | public static var shared = ServiceFactory()
| |- 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: 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
4 | var storage: [String: ServiceHandler] = [:]
5 | var interceptor: ServiceInterceptor
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/router/Router.swift:16:27: warning: static property 'page404' is not concurrency-safe because non-'Sendable' type 'Router.RoutePath' may have shared mutable state; this is an error in the Swift 6 language mode
13 | }
14 |
15 | public struct RoutePath: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'RoutePath' conform to the 'Sendable' protocol
16 | public static let page404 = RoutePath(rawValue: "page/404")
| |- warning: static property 'page404' is not concurrency-safe because non-'Sendable' type 'Router.RoutePath' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'page404' 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 | public static let root = RoutePath(rawValue: "page/root")
18 | public let rawValue: String
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:75:36: warning: sending 'provider' risks causing data races; this is an error in the Swift 6 language mode
73 | }
74 | do {
75 | try await provider.performAsyncStartup()
| |- warning: sending 'provider' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'provider' to nonisolated instance method 'performAsyncStartup()' risks causing data races between nonisolated and 'self'-isolated uses
76 | provider.isBooted = true
77 | success = true
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:38:28: warning: sending 'provider' risks causing data races; this is an error in the Swift 6 language mode
36 | logger.debug("\(provider.name) 停止服务\(success)用时: \(cost_time)毫秒")
37 | }
38 | await provider.performAsyncShutdown()
| |- warning: sending 'provider' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'provider' to nonisolated instance method 'performAsyncShutdown()' risks causing data races between nonisolated and 'self'-isolated uses
39 | provider.isBooted = false
40 | success = true
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:92:21: warning: sending 'app' risks causing data races; this is an error in the Swift 6 language mode
90 | let bootstrap: Bootstrap
91 | required init(_ app: Application) {
92 | bootstrap = Bootstrap(app: app)
| |- warning: sending 'app' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'app' to actor-isolated initializer 'init(app:)' risks causing data races between actor-isolated and task-isolated uses
93 | super.init(app)
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:101:39: 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
99 | }
100 | func bootstrap(_ when: ProviderWhen) {
101 | Task(priority: .userInitiated){
| `- 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
102 | await bootstrap.bootstrap(when)
| `- note: closure captures 'self' which is accessible to code in the current task
103 | }
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:102:29: warning: sending 'when' risks causing data races; this is an error in the Swift 6 language mode
100 | func bootstrap(_ when: ProviderWhen) {
101 | Task(priority: .userInitiated){
102 | await bootstrap.bootstrap(when)
| |- warning: sending 'when' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'when' to actor-isolated instance method 'bootstrap' risks causing data races between actor-isolated and task-isolated uses
103 | }
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:107:39: 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
105 |
106 | func reset(_ when: ProviderWhen) {
107 | Task(priority: .userInitiated){
| `- 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
108 | await bootstrap.reset(when)
| `- note: closure captures 'self' which is accessible to code in the current task
109 | }
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:108:29: warning: sending 'when' risks causing data races; this is an error in the Swift 6 language mode
106 | func reset(_ when: ProviderWhen) {
107 | Task(priority: .userInitiated){
108 | await bootstrap.reset(when)
| |- warning: sending 'when' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'when' to actor-isolated instance method 'reset' risks causing data races between actor-isolated and task-isolated uses
109 | }
110 | }
[14/57] Compiling DFService RouteRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/router/Router.swift:26:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Router' may have shared mutable state; this is an error in the Swift 6 language mode
6 | }
7 |
8 | public class Router: ObservableObject {
| `- note: class 'Router' does not conform to the 'Sendable' protocol
9 | public enum RouteAction: Equatable, Hashable {
10 | case empty
:
24 | typealias PageBuilder = (RouteRequest) -> any View
25 | public typealias ActionBuilder = (RouteRequest) -> Void
26 | public static let shared = Router()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Router' 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
27 | /// 自定义go实现
28 | internal var customHandlerGo: ActionBuilder?
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/RuntimeService.swift:5:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | #endif
4 | public struct RuntimeService: DFServiceKey {
5 | public static var defaultValue: Value = Value()
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' 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
6 |
7 | public struct Value {}
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/RuntimeService.swift:9:24: warning: static property 'uuid' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 | public struct Value {}
8 |
9 | private static var uuid: String?
| |- warning: static property 'uuid' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'uuid' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'uuid' 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
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:69:27: warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
67 | public let rawValue: Int
68 | /// 默认启动
69 | public static let eager = ProviderWhen(rawValue: 0)
| |- warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eager' 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
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/framework/provider/ServiceFactory.swift:3: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 | /// 服务提供者
2 | public final class ServiceFactory {
3 | public static var shared = ServiceFactory()
| |- 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: 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
4 | var storage: [String: ServiceHandler] = [:]
5 | var interceptor: ServiceInterceptor
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/router/Router.swift:16:27: warning: static property 'page404' is not concurrency-safe because non-'Sendable' type 'Router.RoutePath' may have shared mutable state; this is an error in the Swift 6 language mode
13 | }
14 |
15 | public struct RoutePath: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'RoutePath' conform to the 'Sendable' protocol
16 | public static let page404 = RoutePath(rawValue: "page/404")
| |- warning: static property 'page404' is not concurrency-safe because non-'Sendable' type 'Router.RoutePath' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'page404' 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 | public static let root = RoutePath(rawValue: "page/root")
18 | public let rawValue: String
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:75:36: warning: sending 'provider' risks causing data races; this is an error in the Swift 6 language mode
73 | }
74 | do {
75 | try await provider.performAsyncStartup()
| |- warning: sending 'provider' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'provider' to nonisolated instance method 'performAsyncStartup()' risks causing data races between nonisolated and 'self'-isolated uses
76 | provider.isBooted = true
77 | success = true
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:38:28: warning: sending 'provider' risks causing data races; this is an error in the Swift 6 language mode
36 | logger.debug("\(provider.name) 停止服务\(success)用时: \(cost_time)毫秒")
37 | }
38 | await provider.performAsyncShutdown()
| |- warning: sending 'provider' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'provider' to nonisolated instance method 'performAsyncShutdown()' risks causing data races between nonisolated and 'self'-isolated uses
39 | provider.isBooted = false
40 | success = true
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:92:21: warning: sending 'app' risks causing data races; this is an error in the Swift 6 language mode
90 | let bootstrap: Bootstrap
91 | required init(_ app: Application) {
92 | bootstrap = Bootstrap(app: app)
| |- warning: sending 'app' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'app' to actor-isolated initializer 'init(app:)' risks causing data races between actor-isolated and task-isolated uses
93 | super.init(app)
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:101:39: 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
99 | }
100 | func bootstrap(_ when: ProviderWhen) {
101 | Task(priority: .userInitiated){
| `- 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
102 | await bootstrap.bootstrap(when)
| `- note: closure captures 'self' which is accessible to code in the current task
103 | }
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:102:29: warning: sending 'when' risks causing data races; this is an error in the Swift 6 language mode
100 | func bootstrap(_ when: ProviderWhen) {
101 | Task(priority: .userInitiated){
102 | await bootstrap.bootstrap(when)
| |- warning: sending 'when' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'when' to actor-isolated instance method 'bootstrap' risks causing data races between actor-isolated and task-isolated uses
103 | }
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:107:39: 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
105 |
106 | func reset(_ when: ProviderWhen) {
107 | Task(priority: .userInitiated){
| `- 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
108 | await bootstrap.reset(when)
| `- note: closure captures 'self' which is accessible to code in the current task
109 | }
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/provider/BootstrapServiceProvider.swift:108:29: warning: sending 'when' risks causing data races; this is an error in the Swift 6 language mode
106 | func reset(_ when: ProviderWhen) {
107 | Task(priority: .userInitiated){
108 | await bootstrap.reset(when)
| |- warning: sending 'when' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'when' to actor-isolated instance method 'reset' risks causing data races between actor-isolated and task-isolated uses
109 | }
110 | }
[15/57] Compiling DFService ErrorPage.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/router/Router.swift:26:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Router' may have shared mutable state; this is an error in the Swift 6 language mode
6 | }
7 |
8 | public class Router: ObservableObject {
| `- note: class 'Router' does not conform to the 'Sendable' protocol
9 | public enum RouteAction: Equatable, Hashable {
10 | case empty
:
24 | typealias PageBuilder = (RouteRequest) -> any View
25 | public typealias ActionBuilder = (RouteRequest) -> Void
26 | public static let shared = Router()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Router' 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
27 | /// 自定义go实现
28 | internal var customHandlerGo: ActionBuilder?
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/router/Router.swift:17:27: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'Router.RoutePath' may have shared mutable state; this is an error in the Swift 6 language mode
13 | }
14 |
15 | public struct RoutePath: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'RoutePath' conform to the 'Sendable' protocol
16 | public static let page404 = RoutePath(rawValue: "page/404")
17 | public static let root = RoutePath(rawValue: "page/root")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'Router.RoutePath' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
18 | public let rawValue: String
19 | public init(rawValue: String) {
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/AppService.swift:2:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | public struct AppService: DFServiceKey {
2 | public static var defaultValue = Application.shared
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' 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
3 | }
4 |
[16/57] Compiling DFService NavigationPage.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/router/Router.swift:26:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Router' may have shared mutable state; this is an error in the Swift 6 language mode
6 | }
7 |
8 | public class Router: ObservableObject {
| `- note: class 'Router' does not conform to the 'Sendable' protocol
9 | public enum RouteAction: Equatable, Hashable {
10 | case empty
:
24 | typealias PageBuilder = (RouteRequest) -> any View
25 | public typealias ActionBuilder = (RouteRequest) -> Void
26 | public static let shared = Router()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Router' 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
27 | /// 自定义go实现
28 | internal var customHandlerGo: ActionBuilder?
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/router/Router.swift:17:27: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'Router.RoutePath' may have shared mutable state; this is an error in the Swift 6 language mode
13 | }
14 |
15 | public struct RoutePath: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'RoutePath' conform to the 'Sendable' protocol
16 | public static let page404 = RoutePath(rawValue: "page/404")
17 | public static let root = RoutePath(rawValue: "page/root")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'Router.RoutePath' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
18 | public let rawValue: String
19 | public init(rawValue: String) {
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/AppService.swift:2:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | public struct AppService: DFServiceKey {
2 | public static var defaultValue = Application.shared
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' 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
3 | }
4 |
[17/57] Compiling DFService RoutePage.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/router/Router.swift:26:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Router' may have shared mutable state; this is an error in the Swift 6 language mode
6 | }
7 |
8 | public class Router: ObservableObject {
| `- note: class 'Router' does not conform to the 'Sendable' protocol
9 | public enum RouteAction: Equatable, Hashable {
10 | case empty
:
24 | typealias PageBuilder = (RouteRequest) -> any View
25 | public typealias ActionBuilder = (RouteRequest) -> Void
26 | public static let shared = Router()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Router' 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
27 | /// 自定义go实现
28 | internal var customHandlerGo: ActionBuilder?
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/router/Router.swift:17:27: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'Router.RoutePath' may have shared mutable state; this is an error in the Swift 6 language mode
13 | }
14 |
15 | public struct RoutePath: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'RoutePath' conform to the 'Sendable' protocol
16 | public static let page404 = RoutePath(rawValue: "page/404")
17 | public static let root = RoutePath(rawValue: "page/root")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'Router.RoutePath' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
18 | public let rawValue: String
19 | public init(rawValue: String) {
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/AppService.swift:2:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | public struct AppService: DFServiceKey {
2 | public static var defaultValue = Application.shared
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' 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
3 | }
4 |
[18/57] Compiling DFService WebPage.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/router/Router.swift:26:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Router' may have shared mutable state; this is an error in the Swift 6 language mode
6 | }
7 |
8 | public class Router: ObservableObject {
| `- note: class 'Router' does not conform to the 'Sendable' protocol
9 | public enum RouteAction: Equatable, Hashable {
10 | case empty
:
24 | typealias PageBuilder = (RouteRequest) -> any View
25 | public typealias ActionBuilder = (RouteRequest) -> Void
26 | public static let shared = Router()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Router' 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
27 | /// 自定义go实现
28 | internal var customHandlerGo: ActionBuilder?
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/router/Router.swift:17:27: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'Router.RoutePath' may have shared mutable state; this is an error in the Swift 6 language mode
13 | }
14 |
15 | public struct RoutePath: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'RoutePath' conform to the 'Sendable' protocol
16 | public static let page404 = RoutePath(rawValue: "page/404")
17 | public static let root = RoutePath(rawValue: "page/root")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'Router.RoutePath' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
18 | public let rawValue: String
19 | public init(rawValue: String) {
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/AppService.swift:2:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | public struct AppService: DFServiceKey {
2 | public static var defaultValue = Application.shared
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' 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
3 | }
4 |
[19/57] Compiling DFService AppService.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/router/Router.swift:26:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Router' may have shared mutable state; this is an error in the Swift 6 language mode
6 | }
7 |
8 | public class Router: ObservableObject {
| `- note: class 'Router' does not conform to the 'Sendable' protocol
9 | public enum RouteAction: Equatable, Hashable {
10 | case empty
:
24 | typealias PageBuilder = (RouteRequest) -> any View
25 | public typealias ActionBuilder = (RouteRequest) -> Void
26 | public static let shared = Router()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Router' 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
27 | /// 自定义go实现
28 | internal var customHandlerGo: ActionBuilder?
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/router/Router.swift:17:27: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'Router.RoutePath' may have shared mutable state; this is an error in the Swift 6 language mode
13 | }
14 |
15 | public struct RoutePath: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'RoutePath' conform to the 'Sendable' protocol
16 | public static let page404 = RoutePath(rawValue: "page/404")
17 | public static let root = RoutePath(rawValue: "page/root")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'Router.RoutePath' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
18 | public let rawValue: String
19 | public init(rawValue: String) {
/Users/admin/builder/spi-builder-workspace/Sources/DFService/service/AppService.swift:2:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | public struct AppService: DFServiceKey {
2 | public static var defaultValue = Application.shared
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' 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
3 | }
4 |
[20/57] Compiling DFService Application.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/Application.swift:5:28: warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | public class Application {
4 | public static let version = "0.1.0"
5 | fileprivate static var _instance: Application?
| |- warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_instance' 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
6 | public var loadProviders: [DFService.ServiceProvider] = []
7 | private var storage: [FactoryKey: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/DFService/Application.swift:80:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
78 |
79 | struct AppEnvironmentKey: EnvironmentKey {
80 | static var defaultValue = Application.shared
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' 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
81 | }
82 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/Application.swift:94:12: warning: let 'DF' is not concurrency-safe because non-'Sendable' type 'Application' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public class Application {
| `- note: class 'Application' does not conform to the 'Sendable' protocol
4 | public static let version = "0.1.0"
5 | fileprivate static var _instance: Application?
:
92 | }
93 |
94 | public let DF = Application.shared
| |- warning: let 'DF' is not concurrency-safe because non-'Sendable' type 'Application' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'DF' 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
95 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/CommonError.swift:11:10: warning: associated value 'notFound' of 'Sendable'-conforming enum 'CommonError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
9 | case custom(Error)
10 | /// 未找到
11 | case notFound(Any = ())
| `- warning: associated value 'notFound' of 'Sendable'-conforming enum 'CommonError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
12 | /// 转换失败
13 | case convert(from: String, to: String)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:69:27: warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
67 | public let rawValue: Int
68 | /// 默认启动
69 | public static let eager = ProviderWhen(rawValue: 0)
| |- warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eager' 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
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:71:27: warning: static property 'window' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
69 | public static let eager = ProviderWhen(rawValue: 0)
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
| |- warning: static property 'window' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'window' 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
72 | /// 主窗口创建的第一个页面
73 | public static let splash = ProviderWhen(rawValue: 8)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:73:27: warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
71 | public static let window = ProviderWhen(rawValue: 4)
72 | /// 主窗口创建的第一个页面
73 | public static let splash = ProviderWhen(rawValue: 8)
| |- warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'splash' 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
74 |
75 | public static func + (lhs: ProviderWhen, rhs: Int) -> ProviderWhen {
[21/57] Compiling DFService CommonError.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/Application.swift:5:28: warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | public class Application {
4 | public static let version = "0.1.0"
5 | fileprivate static var _instance: Application?
| |- warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_instance' 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
6 | public var loadProviders: [DFService.ServiceProvider] = []
7 | private var storage: [FactoryKey: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/DFService/Application.swift:80:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
78 |
79 | struct AppEnvironmentKey: EnvironmentKey {
80 | static var defaultValue = Application.shared
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' 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
81 | }
82 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/Application.swift:94:12: warning: let 'DF' is not concurrency-safe because non-'Sendable' type 'Application' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public class Application {
| `- note: class 'Application' does not conform to the 'Sendable' protocol
4 | public static let version = "0.1.0"
5 | fileprivate static var _instance: Application?
:
92 | }
93 |
94 | public let DF = Application.shared
| |- warning: let 'DF' is not concurrency-safe because non-'Sendable' type 'Application' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'DF' 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
95 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/CommonError.swift:11:10: warning: associated value 'notFound' of 'Sendable'-conforming enum 'CommonError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
9 | case custom(Error)
10 | /// 未找到
11 | case notFound(Any = ())
| `- warning: associated value 'notFound' of 'Sendable'-conforming enum 'CommonError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
12 | /// 转换失败
13 | case convert(from: String, to: String)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:69:27: warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
67 | public let rawValue: Int
68 | /// 默认启动
69 | public static let eager = ProviderWhen(rawValue: 0)
| |- warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eager' 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
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:71:27: warning: static property 'window' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
69 | public static let eager = ProviderWhen(rawValue: 0)
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
| |- warning: static property 'window' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'window' 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
72 | /// 主窗口创建的第一个页面
73 | public static let splash = ProviderWhen(rawValue: 8)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:73:27: warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
71 | public static let window = ProviderWhen(rawValue: 4)
72 | /// 主窗口创建的第一个页面
73 | public static let splash = ProviderWhen(rawValue: 8)
| |- warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'splash' 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
74 |
75 | public static func + (lhs: ProviderWhen, rhs: Int) -> ProviderWhen {
[22/57] Compiling DFService Injected.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/Application.swift:5:28: warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | public class Application {
4 | public static let version = "0.1.0"
5 | fileprivate static var _instance: Application?
| |- warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_instance' 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
6 | public var loadProviders: [DFService.ServiceProvider] = []
7 | private var storage: [FactoryKey: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/DFService/Application.swift:80:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
78 |
79 | struct AppEnvironmentKey: EnvironmentKey {
80 | static var defaultValue = Application.shared
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' 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
81 | }
82 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/Application.swift:94:12: warning: let 'DF' is not concurrency-safe because non-'Sendable' type 'Application' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public class Application {
| `- note: class 'Application' does not conform to the 'Sendable' protocol
4 | public static let version = "0.1.0"
5 | fileprivate static var _instance: Application?
:
92 | }
93 |
94 | public let DF = Application.shared
| |- warning: let 'DF' is not concurrency-safe because non-'Sendable' type 'Application' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'DF' 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
95 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/CommonError.swift:11:10: warning: associated value 'notFound' of 'Sendable'-conforming enum 'CommonError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
9 | case custom(Error)
10 | /// 未找到
11 | case notFound(Any = ())
| `- warning: associated value 'notFound' of 'Sendable'-conforming enum 'CommonError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
12 | /// 转换失败
13 | case convert(from: String, to: String)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:69:27: warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
67 | public let rawValue: Int
68 | /// 默认启动
69 | public static let eager = ProviderWhen(rawValue: 0)
| |- warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eager' 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
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:71:27: warning: static property 'window' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
69 | public static let eager = ProviderWhen(rawValue: 0)
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
| |- warning: static property 'window' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'window' 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
72 | /// 主窗口创建的第一个页面
73 | public static let splash = ProviderWhen(rawValue: 8)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:73:27: warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
71 | public static let window = ProviderWhen(rawValue: 4)
72 | /// 主窗口创建的第一个页面
73 | public static let splash = ProviderWhen(rawValue: 8)
| |- warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'splash' 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
74 |
75 | public static func + (lhs: ProviderWhen, rhs: Int) -> ProviderWhen {
[23/57] Compiling DFService Assets.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/Application.swift:5:28: warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | public class Application {
4 | public static let version = "0.1.0"
5 | fileprivate static var _instance: Application?
| |- warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_instance' 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
6 | public var loadProviders: [DFService.ServiceProvider] = []
7 | private var storage: [FactoryKey: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/DFService/Application.swift:80:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
78 |
79 | struct AppEnvironmentKey: EnvironmentKey {
80 | static var defaultValue = Application.shared
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' 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
81 | }
82 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/Application.swift:94:12: warning: let 'DF' is not concurrency-safe because non-'Sendable' type 'Application' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public class Application {
| `- note: class 'Application' does not conform to the 'Sendable' protocol
4 | public static let version = "0.1.0"
5 | fileprivate static var _instance: Application?
:
92 | }
93 |
94 | public let DF = Application.shared
| |- warning: let 'DF' is not concurrency-safe because non-'Sendable' type 'Application' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'DF' 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
95 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/CommonError.swift:11:10: warning: associated value 'notFound' of 'Sendable'-conforming enum 'CommonError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
9 | case custom(Error)
10 | /// 未找到
11 | case notFound(Any = ())
| `- warning: associated value 'notFound' of 'Sendable'-conforming enum 'CommonError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
12 | /// 转换失败
13 | case convert(from: String, to: String)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:69:27: warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
67 | public let rawValue: Int
68 | /// 默认启动
69 | public static let eager = ProviderWhen(rawValue: 0)
| |- warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eager' 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
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:71:27: warning: static property 'window' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
69 | public static let eager = ProviderWhen(rawValue: 0)
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
| |- warning: static property 'window' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'window' 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
72 | /// 主窗口创建的第一个页面
73 | public static let splash = ProviderWhen(rawValue: 8)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:73:27: warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
71 | public static let window = ProviderWhen(rawValue: 4)
72 | /// 主窗口创建的第一个页面
73 | public static let splash = ProviderWhen(rawValue: 8)
| |- warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'splash' 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
74 |
75 | public static func + (lhs: ProviderWhen, rhs: Int) -> ProviderWhen {
[24/57] Compiling DFService Space.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/Application.swift:5:28: warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | public class Application {
4 | public static let version = "0.1.0"
5 | fileprivate static var _instance: Application?
| |- warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_instance' 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
6 | public var loadProviders: [DFService.ServiceProvider] = []
7 | private var storage: [FactoryKey: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/DFService/Application.swift:80:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
78 |
79 | struct AppEnvironmentKey: EnvironmentKey {
80 | static var defaultValue = Application.shared
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' 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
81 | }
82 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/Application.swift:94:12: warning: let 'DF' is not concurrency-safe because non-'Sendable' type 'Application' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public class Application {
| `- note: class 'Application' does not conform to the 'Sendable' protocol
4 | public static let version = "0.1.0"
5 | fileprivate static var _instance: Application?
:
92 | }
93 |
94 | public let DF = Application.shared
| |- warning: let 'DF' is not concurrency-safe because non-'Sendable' type 'Application' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'DF' 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
95 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/CommonError.swift:11:10: warning: associated value 'notFound' of 'Sendable'-conforming enum 'CommonError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
9 | case custom(Error)
10 | /// 未找到
11 | case notFound(Any = ())
| `- warning: associated value 'notFound' of 'Sendable'-conforming enum 'CommonError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
12 | /// 转换失败
13 | case convert(from: String, to: String)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:69:27: warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
67 | public let rawValue: Int
68 | /// 默认启动
69 | public static let eager = ProviderWhen(rawValue: 0)
| |- warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eager' 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
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:71:27: warning: static property 'window' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
69 | public static let eager = ProviderWhen(rawValue: 0)
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
| |- warning: static property 'window' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'window' 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
72 | /// 主窗口创建的第一个页面
73 | public static let splash = ProviderWhen(rawValue: 8)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:73:27: warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
71 | public static let window = ProviderWhen(rawValue: 4)
72 | /// 主窗口创建的第一个页面
73 | public static let splash = ProviderWhen(rawValue: 8)
| |- warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'splash' 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
74 |
75 | public static func + (lhs: ProviderWhen, rhs: Int) -> ProviderWhen {
[25/57] Compiling DFService SwiftApp.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/Application.swift:5:28: warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | public class Application {
4 | public static let version = "0.1.0"
5 | fileprivate static var _instance: Application?
| |- warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_instance' 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
6 | public var loadProviders: [DFService.ServiceProvider] = []
7 | private var storage: [FactoryKey: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/DFService/Application.swift:80:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
78 |
79 | struct AppEnvironmentKey: EnvironmentKey {
80 | static var defaultValue = Application.shared
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' 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
81 | }
82 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/Application.swift:94:12: warning: let 'DF' is not concurrency-safe because non-'Sendable' type 'Application' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public class Application {
| `- note: class 'Application' does not conform to the 'Sendable' protocol
4 | public static let version = "0.1.0"
5 | fileprivate static var _instance: Application?
:
92 | }
93 |
94 | public let DF = Application.shared
| |- warning: let 'DF' is not concurrency-safe because non-'Sendable' type 'Application' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'DF' 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
95 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/CommonError.swift:11:10: warning: associated value 'notFound' of 'Sendable'-conforming enum 'CommonError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
9 | case custom(Error)
10 | /// 未找到
11 | case notFound(Any = ())
| `- warning: associated value 'notFound' of 'Sendable'-conforming enum 'CommonError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
12 | /// 转换失败
13 | case convert(from: String, to: String)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:69:27: warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
67 | public let rawValue: Int
68 | /// 默认启动
69 | public static let eager = ProviderWhen(rawValue: 0)
| |- warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eager' 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
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:71:27: warning: static property 'window' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
69 | public static let eager = ProviderWhen(rawValue: 0)
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
| |- warning: static property 'window' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'window' 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
72 | /// 主窗口创建的第一个页面
73 | public static let splash = ProviderWhen(rawValue: 8)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:73:27: warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
71 | public static let window = ProviderWhen(rawValue: 4)
72 | /// 主窗口创建的第一个页面
73 | public static let splash = ProviderWhen(rawValue: 8)
| |- warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'splash' 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
74 |
75 | public static func + (lhs: ProviderWhen, rhs: Int) -> ProviderWhen {
[26/57] Compiling DFService app.chain.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/extension/app.thread.swift:9:17: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
7 | } else {
8 | DispatchQueue.main.sync {
9 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
10 | }
11 | }
[27/57] Compiling DFService app.string.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/extension/app.thread.swift:9:17: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
7 | } else {
8 | DispatchQueue.main.sync {
9 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
10 | }
11 | }
[28/57] Compiling DFService app.thread.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/extension/app.thread.swift:9:17: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
7 | } else {
8 | DispatchQueue.main.sync {
9 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
10 | }
11 | }
[29/57] Compiling DFService app.view.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/extension/app.thread.swift:9:17: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
7 | } else {
8 | DispatchQueue.main.sync {
9 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
10 | }
11 | }
[30/57] Compiling DFService AnyCodable.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/extension/app.thread.swift:9:17: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
7 | } else {
8 | DispatchQueue.main.sync {
9 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
10 | }
11 | }
[31/57] Compiling DFService ServicePromise.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/modifier/PageModifier.swift:19:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | value = nextValue()
18 | }
19 | public static var defaultValue = PageAction.none
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' 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
20 | }
21 |
[32/57] Compiling DFService ServiceResult.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/modifier/PageModifier.swift:19:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | value = nextValue()
18 | }
19 | public static var defaultValue = PageAction.none
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' 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
20 | }
21 |
[33/57] Compiling DFService LogService.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/modifier/PageModifier.swift:19:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | value = nextValue()
18 | }
19 | public static var defaultValue = PageAction.none
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' 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
20 | }
21 |
[34/57] Compiling DFService ServiceMock.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/modifier/PageModifier.swift:19:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | value = nextValue()
18 | }
19 | public static var defaultValue = PageAction.none
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' 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
20 | }
21 |
[35/57] Compiling DFService PageModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/modifier/PageModifier.swift:19:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | value = nextValue()
18 | }
19 | public static var defaultValue = PageAction.none
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' 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
20 | }
21 |
[36/57] Compiling DFService Service.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/framework/provider/ServiceFactory.swift:3: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 | /// 服务提供者
2 | public final class ServiceFactory {
3 | public static var shared = ServiceFactory()
| |- 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: 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
4 | var storage: [String: ServiceHandler] = [:]
5 | var interceptor: ServiceInterceptor
[37/57] Compiling DFService ServiceFactory.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/framework/provider/ServiceFactory.swift:3: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 | /// 服务提供者
2 | public final class ServiceFactory {
3 | public static var shared = ServiceFactory()
| |- 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: 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
4 | var storage: [String: ServiceHandler] = [:]
5 | var interceptor: ServiceInterceptor
[38/57] Compiling DFService ServiceHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/framework/provider/ServiceFactory.swift:3: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 | /// 服务提供者
2 | public final class ServiceFactory {
3 | public static var shared = ServiceFactory()
| |- 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: 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
4 | var storage: [String: ServiceHandler] = [:]
5 | var interceptor: ServiceInterceptor
[39/57] Compiling DFService ServiceInterceptor.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/framework/provider/ServiceFactory.swift:3: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 | /// 服务提供者
2 | public final class ServiceFactory {
3 | public static var shared = ServiceFactory()
| |- 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: 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
4 | var storage: [String: ServiceHandler] = [:]
5 | var interceptor: ServiceInterceptor
[40/57] Compiling DFService ServiceKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/framework/provider/ServiceFactory.swift:3: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 | /// 服务提供者
2 | public final class ServiceFactory {
3 | public static var shared = ServiceFactory()
| |- 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: 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
4 | var storage: [String: ServiceHandler] = [:]
5 | var interceptor: ServiceInterceptor
[41/57] Compiling DFService DFApiCall.swift
[42/57] Compiling DFService DFApplication.swift
[43/57] Compiling DFService DFHandler.swift
[44/57] Compiling DFService DFServiceKey.swift
[45/57] Compiling DFService FactoryKey.swift
[46/57] Compiling DFService ServiceName.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceName.swift:12:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'ServiceName' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct ServiceName: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'ServiceName' conform to the 'Sendable' protocol
2 | public let rawValue: String
3 |
:
10 |
11 |
12 | public static let logger = ServiceName("df.logger")
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'ServiceName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- 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
13 | public static let router = ServiceName("df.router")
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceName.swift:13:23: warning: static property 'router' is not concurrency-safe because non-'Sendable' type 'ServiceName' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct ServiceName: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'ServiceName' conform to the 'Sendable' protocol
2 | public let rawValue: String
3 |
:
11 |
12 | public static let logger = ServiceName("df.logger")
13 | public static let router = ServiceName("df.router")
| |- warning: static property 'router' is not concurrency-safe because non-'Sendable' type 'ServiceName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'router' 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
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:69:27: warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
67 | public let rawValue: Int
68 | /// 默认启动
69 | public static let eager = ProviderWhen(rawValue: 0)
| |- warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eager' 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
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:71:27: warning: static property 'window' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
69 | public static let eager = ProviderWhen(rawValue: 0)
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
| |- warning: static property 'window' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'window' 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
72 | /// 主窗口创建的第一个页面
73 | public static let splash = ProviderWhen(rawValue: 8)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:73:27: warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
71 | public static let window = ProviderWhen(rawValue: 4)
72 | /// 主窗口创建的第一个页面
73 | public static let splash = ProviderWhen(rawValue: 8)
| |- warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'splash' 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
74 |
75 | public static func + (lhs: ProviderWhen, rhs: Int) -> ProviderWhen {
[47/57] Compiling DFService ServiceProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceName.swift:12:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'ServiceName' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct ServiceName: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'ServiceName' conform to the 'Sendable' protocol
2 | public let rawValue: String
3 |
:
10 |
11 |
12 | public static let logger = ServiceName("df.logger")
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'ServiceName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- 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
13 | public static let router = ServiceName("df.router")
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceName.swift:13:23: warning: static property 'router' is not concurrency-safe because non-'Sendable' type 'ServiceName' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct ServiceName: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'ServiceName' conform to the 'Sendable' protocol
2 | public let rawValue: String
3 |
:
11 |
12 | public static let logger = ServiceName("df.logger")
13 | public static let router = ServiceName("df.router")
| |- warning: static property 'router' is not concurrency-safe because non-'Sendable' type 'ServiceName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'router' 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
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:69:27: warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
67 | public let rawValue: Int
68 | /// 默认启动
69 | public static let eager = ProviderWhen(rawValue: 0)
| |- warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eager' 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
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:71:27: warning: static property 'window' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
69 | public static let eager = ProviderWhen(rawValue: 0)
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
| |- warning: static property 'window' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'window' 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
72 | /// 主窗口创建的第一个页面
73 | public static let splash = ProviderWhen(rawValue: 8)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:73:27: warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
71 | public static let window = ProviderWhen(rawValue: 4)
72 | /// 主窗口创建的第一个页面
73 | public static let splash = ProviderWhen(rawValue: 8)
| |- warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'splash' 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
74 |
75 | public static func + (lhs: ProviderWhen, rhs: Int) -> ProviderWhen {
[48/57] Compiling DFService exported.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceName.swift:12:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'ServiceName' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct ServiceName: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'ServiceName' conform to the 'Sendable' protocol
2 | public let rawValue: String
3 |
:
10 |
11 |
12 | public static let logger = ServiceName("df.logger")
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'ServiceName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- 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
13 | public static let router = ServiceName("df.router")
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceName.swift:13:23: warning: static property 'router' is not concurrency-safe because non-'Sendable' type 'ServiceName' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct ServiceName: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'ServiceName' conform to the 'Sendable' protocol
2 | public let rawValue: String
3 |
:
11 |
12 | public static let logger = ServiceName("df.logger")
13 | public static let router = ServiceName("df.router")
| |- warning: static property 'router' is not concurrency-safe because non-'Sendable' type 'ServiceName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'router' 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
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:69:27: warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
67 | public let rawValue: Int
68 | /// 默认启动
69 | public static let eager = ProviderWhen(rawValue: 0)
| |- warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eager' 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
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:71:27: warning: static property 'window' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
69 | public static let eager = ProviderWhen(rawValue: 0)
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
| |- warning: static property 'window' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'window' 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
72 | /// 主窗口创建的第一个页面
73 | public static let splash = ProviderWhen(rawValue: 8)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:73:27: warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
71 | public static let window = ProviderWhen(rawValue: 4)
72 | /// 主窗口创建的第一个页面
73 | public static let splash = ProviderWhen(rawValue: 8)
| |- warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'splash' 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
74 |
75 | public static func + (lhs: ProviderWhen, rhs: Int) -> ProviderWhen {
[49/57] Compiling DFService app.bool.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceName.swift:12:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'ServiceName' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct ServiceName: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'ServiceName' conform to the 'Sendable' protocol
2 | public let rawValue: String
3 |
:
10 |
11 |
12 | public static let logger = ServiceName("df.logger")
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'ServiceName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- 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
13 | public static let router = ServiceName("df.router")
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceName.swift:13:23: warning: static property 'router' is not concurrency-safe because non-'Sendable' type 'ServiceName' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct ServiceName: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'ServiceName' conform to the 'Sendable' protocol
2 | public let rawValue: String
3 |
:
11 |
12 | public static let logger = ServiceName("df.logger")
13 | public static let router = ServiceName("df.router")
| |- warning: static property 'router' is not concurrency-safe because non-'Sendable' type 'ServiceName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'router' 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
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:69:27: warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
67 | public let rawValue: Int
68 | /// 默认启动
69 | public static let eager = ProviderWhen(rawValue: 0)
| |- warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eager' 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
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:71:27: warning: static property 'window' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
69 | public static let eager = ProviderWhen(rawValue: 0)
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
| |- warning: static property 'window' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'window' 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
72 | /// 主窗口创建的第一个页面
73 | public static let splash = ProviderWhen(rawValue: 8)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:73:27: warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
71 | public static let window = ProviderWhen(rawValue: 4)
72 | /// 主窗口创建的第一个页面
73 | public static let splash = ProviderWhen(rawValue: 8)
| |- warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'splash' 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
74 |
75 | public static func + (lhs: ProviderWhen, rhs: Int) -> ProviderWhen {
[50/57] Compiling DFService app.bundle.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceName.swift:12:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'ServiceName' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct ServiceName: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'ServiceName' conform to the 'Sendable' protocol
2 | public let rawValue: String
3 |
:
10 |
11 |
12 | public static let logger = ServiceName("df.logger")
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'ServiceName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- 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
13 | public static let router = ServiceName("df.router")
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceName.swift:13:23: warning: static property 'router' is not concurrency-safe because non-'Sendable' type 'ServiceName' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct ServiceName: RawRepresentable, Equatable, Hashable {
| `- note: consider making struct 'ServiceName' conform to the 'Sendable' protocol
2 | public let rawValue: String
3 |
:
11 |
12 | public static let logger = ServiceName("df.logger")
13 | public static let router = ServiceName("df.router")
| |- warning: static property 'router' is not concurrency-safe because non-'Sendable' type 'ServiceName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'router' 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
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:69:27: warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
67 | public let rawValue: Int
68 | /// 默认启动
69 | public static let eager = ProviderWhen(rawValue: 0)
| |- warning: static property 'eager' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eager' 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
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:71:27: warning: static property 'window' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
69 | public static let eager = ProviderWhen(rawValue: 0)
70 | /// 窗口创建后启动
71 | public static let window = ProviderWhen(rawValue: 4)
| |- warning: static property 'window' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'window' 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
72 | /// 主窗口创建的第一个页面
73 | public static let splash = ProviderWhen(rawValue: 8)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/core/ServiceProvider.swift:73:27: warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
57 | extension ServiceProvider {
58 | /// 启动时机
59 | public struct ProviderWhen: RawRepresentable, Comparable {
| `- note: consider making struct 'ProviderWhen' conform to the 'Sendable' protocol
60 | public static func < (lhs: ProviderWhen, rhs: ProviderWhen) -> Bool {
61 | return lhs.rawValue < rhs.rawValue
:
71 | public static let window = ProviderWhen(rawValue: 4)
72 | /// 主窗口创建的第一个页面
73 | public static let splash = ProviderWhen(rawValue: 8)
| |- warning: static property 'splash' is not concurrency-safe because non-'Sendable' type 'ServiceProvider.ProviderWhen' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'splash' 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
74 |
75 | public static func + (lhs: ProviderWhen, rhs: Int) -> ProviderWhen {
[51/57] Compiling DFService CircularLoading.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:7:9: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
5 | public init() {}
6 |
7 | let config = WKWebViewConfiguration().app.then { config in
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
8 | config.websiteDataStore = .default()
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:32:17: warning: main actor-isolated instance method 'makeView(context:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
21 | import WebKit
22 |
23 | public struct WebView: PlatformRepresentable {
| `- note: add '@preconcurrency' to the 'PlatformRepresentable' conformance to defer isolation checking to run time
24 | let controller: WebController
25 | let request: URLRequest?
:
30 | self.controller = controller
31 | }
32 | public func makeView(context: Context) -> WKWebView {
| |- warning: main actor-isolated instance method 'makeView(context:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'makeView(context:)' to make this instance method not isolated to the actor
33 | let web = context.coordinator.webView
34 | if let req = request {
/Users/admin/builder/spi-builder-workspace/Sources/DFService/exported.swift:33:10: note: mark the protocol requirement 'makeView(context:)' 'async' to allow actor-isolated conformances
31 | associatedtype PlatformView = NSViewType
32 |
33 | func makeView(context: Context) -> PlatformView
| `- note: mark the protocol requirement 'makeView(context:)' 'async' to allow actor-isolated conformances
34 | }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/framework/provider/ServiceFactory.swift:3: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 | /// 服务提供者
2 | public final class ServiceFactory {
3 | public static var shared = ServiceFactory()
| |- 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: 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
4 | var storage: [String: ServiceHandler] = [:]
5 | var interceptor: ServiceInterceptor
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:64:28: warning: call to main actor-isolated initializer 'init(frame:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
62 | required init(_ controller: WebController) {
63 | self.controller = controller
64 | self.webView = WKWebView(frame: CGRect(x: 0.0, y: 0.0, width: 0.1, height: 0.1), configuration: controller.config)
| `- warning: call to main actor-isolated initializer 'init(frame:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 | super.init()
66 | makeObserve()
WebKit.WKWebView:9:23: note: calls to initializer 'init(frame:configuration:)' from outside of its actor context are implicitly asynchronous
7 | weak open var UIDelegate: (any WKUIDelegate)? { get set }
8 | open var backForwardList: WKBackForwardList { get }
9 | @MainActor public init(frame: CGRect, configuration: WKWebViewConfiguration)
| `- note: calls to initializer 'init(frame:configuration:)' from outside of its actor context are implicitly asynchronous
10 | public init?(coder: NSCoder)
11 | @MainActor open func load(_ request: URLRequest) -> WKNavigation?
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:73:34: warning: cannot form key path to main actor-isolated property 'estimatedProgress'; this is an error in the Swift 6 language mode
71 | extension WebView.Coordinator {
72 | func makeObserve() {
73 | webView.publisher(for: \.estimatedProgress)
| `- warning: cannot form key path to main actor-isolated property 'estimatedProgress'; this is an error in the Swift 6 language mode
74 | .receive(on: DispatchQueue.main)
75 | .assign(to: &controller.$progress)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:76:34: warning: cannot form key path to main actor-isolated property 'isLoading'; this is an error in the Swift 6 language mode
74 | .receive(on: DispatchQueue.main)
75 | .assign(to: &controller.$progress)
76 | webView.publisher(for: \.isLoading)
| `- warning: cannot form key path to main actor-isolated property 'isLoading'; this is an error in the Swift 6 language mode
77 | .receive(on: DispatchQueue.main)
78 | .assign(to: &controller.$isLoading)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:80:34: warning: cannot form key path to main actor-isolated property 'title'; this is an error in the Swift 6 language mode
78 | .assign(to: &controller.$isLoading)
79 |
80 | webView.publisher(for: \.title)
| `- warning: cannot form key path to main actor-isolated property 'title'; this is an error in the Swift 6 language mode
81 | .receive(on: DispatchQueue.main)
82 | .assign(to: &controller.$title)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:84:17: warning: main actor-isolated property 'uiDelegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
70 |
71 | extension WebView.Coordinator {
72 | func makeObserve() {
| `- note: add '@MainActor' to make instance method 'makeObserve()' part of global actor 'MainActor'
73 | webView.publisher(for: \.estimatedProgress)
74 | .receive(on: DispatchQueue.main)
:
82 | .assign(to: &controller.$title)
83 |
84 | webView.uiDelegate = self
| `- warning: main actor-isolated property 'uiDelegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
85 | webView.navigationDelegate = self
86 | }
WebKit.WKWebView:5:19: note: mutation of this property is only permitted within the actor
3 | @NSCopying open var configuration: WKWebViewConfiguration { get }
4 | weak open var navigationDelegate: (any WKNavigationDelegate)? { get set }
5 | weak open var uiDelegate: (any WKUIDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
6 | @available(swift, obsoleted: 3, renamed: "uiDelegate")
7 | weak open var UIDelegate: (any WKUIDelegate)? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:85:17: warning: main actor-isolated property 'navigationDelegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
70 |
71 | extension WebView.Coordinator {
72 | func makeObserve() {
| `- note: add '@MainActor' to make instance method 'makeObserve()' part of global actor 'MainActor'
73 | webView.publisher(for: \.estimatedProgress)
74 | .receive(on: DispatchQueue.main)
:
83 |
84 | webView.uiDelegate = self
85 | webView.navigationDelegate = self
| `- warning: main actor-isolated property 'navigationDelegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
86 | }
87 | }
WebKit.WKWebView:4:19: note: mutation of this property is only permitted within the actor
2 | @MainActor open class WKWebView : NSView {
3 | @NSCopying open var configuration: WKWebViewConfiguration { get }
4 | weak open var navigationDelegate: (any WKNavigationDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
5 | weak open var uiDelegate: (any WKUIDelegate)? { get set }
6 | @available(swift, obsoleted: 3, renamed: "uiDelegate")
[52/57] Compiling DFService PageBar.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:7:9: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
5 | public init() {}
6 |
7 | let config = WKWebViewConfiguration().app.then { config in
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
8 | config.websiteDataStore = .default()
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:32:17: warning: main actor-isolated instance method 'makeView(context:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
21 | import WebKit
22 |
23 | public struct WebView: PlatformRepresentable {
| `- note: add '@preconcurrency' to the 'PlatformRepresentable' conformance to defer isolation checking to run time
24 | let controller: WebController
25 | let request: URLRequest?
:
30 | self.controller = controller
31 | }
32 | public func makeView(context: Context) -> WKWebView {
| |- warning: main actor-isolated instance method 'makeView(context:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'makeView(context:)' to make this instance method not isolated to the actor
33 | let web = context.coordinator.webView
34 | if let req = request {
/Users/admin/builder/spi-builder-workspace/Sources/DFService/exported.swift:33:10: note: mark the protocol requirement 'makeView(context:)' 'async' to allow actor-isolated conformances
31 | associatedtype PlatformView = NSViewType
32 |
33 | func makeView(context: Context) -> PlatformView
| `- note: mark the protocol requirement 'makeView(context:)' 'async' to allow actor-isolated conformances
34 | }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/framework/provider/ServiceFactory.swift:3: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 | /// 服务提供者
2 | public final class ServiceFactory {
3 | public static var shared = ServiceFactory()
| |- 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: 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
4 | var storage: [String: ServiceHandler] = [:]
5 | var interceptor: ServiceInterceptor
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:64:28: warning: call to main actor-isolated initializer 'init(frame:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
62 | required init(_ controller: WebController) {
63 | self.controller = controller
64 | self.webView = WKWebView(frame: CGRect(x: 0.0, y: 0.0, width: 0.1, height: 0.1), configuration: controller.config)
| `- warning: call to main actor-isolated initializer 'init(frame:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 | super.init()
66 | makeObserve()
WebKit.WKWebView:9:23: note: calls to initializer 'init(frame:configuration:)' from outside of its actor context are implicitly asynchronous
7 | weak open var UIDelegate: (any WKUIDelegate)? { get set }
8 | open var backForwardList: WKBackForwardList { get }
9 | @MainActor public init(frame: CGRect, configuration: WKWebViewConfiguration)
| `- note: calls to initializer 'init(frame:configuration:)' from outside of its actor context are implicitly asynchronous
10 | public init?(coder: NSCoder)
11 | @MainActor open func load(_ request: URLRequest) -> WKNavigation?
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:73:34: warning: cannot form key path to main actor-isolated property 'estimatedProgress'; this is an error in the Swift 6 language mode
71 | extension WebView.Coordinator {
72 | func makeObserve() {
73 | webView.publisher(for: \.estimatedProgress)
| `- warning: cannot form key path to main actor-isolated property 'estimatedProgress'; this is an error in the Swift 6 language mode
74 | .receive(on: DispatchQueue.main)
75 | .assign(to: &controller.$progress)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:76:34: warning: cannot form key path to main actor-isolated property 'isLoading'; this is an error in the Swift 6 language mode
74 | .receive(on: DispatchQueue.main)
75 | .assign(to: &controller.$progress)
76 | webView.publisher(for: \.isLoading)
| `- warning: cannot form key path to main actor-isolated property 'isLoading'; this is an error in the Swift 6 language mode
77 | .receive(on: DispatchQueue.main)
78 | .assign(to: &controller.$isLoading)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:80:34: warning: cannot form key path to main actor-isolated property 'title'; this is an error in the Swift 6 language mode
78 | .assign(to: &controller.$isLoading)
79 |
80 | webView.publisher(for: \.title)
| `- warning: cannot form key path to main actor-isolated property 'title'; this is an error in the Swift 6 language mode
81 | .receive(on: DispatchQueue.main)
82 | .assign(to: &controller.$title)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:84:17: warning: main actor-isolated property 'uiDelegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
70 |
71 | extension WebView.Coordinator {
72 | func makeObserve() {
| `- note: add '@MainActor' to make instance method 'makeObserve()' part of global actor 'MainActor'
73 | webView.publisher(for: \.estimatedProgress)
74 | .receive(on: DispatchQueue.main)
:
82 | .assign(to: &controller.$title)
83 |
84 | webView.uiDelegate = self
| `- warning: main actor-isolated property 'uiDelegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
85 | webView.navigationDelegate = self
86 | }
WebKit.WKWebView:5:19: note: mutation of this property is only permitted within the actor
3 | @NSCopying open var configuration: WKWebViewConfiguration { get }
4 | weak open var navigationDelegate: (any WKNavigationDelegate)? { get set }
5 | weak open var uiDelegate: (any WKUIDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
6 | @available(swift, obsoleted: 3, renamed: "uiDelegate")
7 | weak open var UIDelegate: (any WKUIDelegate)? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:85:17: warning: main actor-isolated property 'navigationDelegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
70 |
71 | extension WebView.Coordinator {
72 | func makeObserve() {
| `- note: add '@MainActor' to make instance method 'makeObserve()' part of global actor 'MainActor'
73 | webView.publisher(for: \.estimatedProgress)
74 | .receive(on: DispatchQueue.main)
:
83 |
84 | webView.uiDelegate = self
85 | webView.navigationDelegate = self
| `- warning: main actor-isolated property 'navigationDelegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
86 | }
87 | }
WebKit.WKWebView:4:19: note: mutation of this property is only permitted within the actor
2 | @MainActor open class WKWebView : NSView {
3 | @NSCopying open var configuration: WKWebViewConfiguration { get }
4 | weak open var navigationDelegate: (any WKNavigationDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
5 | weak open var uiDelegate: (any WKUIDelegate)? { get set }
6 | @available(swift, obsoleted: 3, renamed: "uiDelegate")
[53/57] Compiling DFService PageLayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:7:9: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
5 | public init() {}
6 |
7 | let config = WKWebViewConfiguration().app.then { config in
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
8 | config.websiteDataStore = .default()
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:32:17: warning: main actor-isolated instance method 'makeView(context:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
21 | import WebKit
22 |
23 | public struct WebView: PlatformRepresentable {
| `- note: add '@preconcurrency' to the 'PlatformRepresentable' conformance to defer isolation checking to run time
24 | let controller: WebController
25 | let request: URLRequest?
:
30 | self.controller = controller
31 | }
32 | public func makeView(context: Context) -> WKWebView {
| |- warning: main actor-isolated instance method 'makeView(context:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'makeView(context:)' to make this instance method not isolated to the actor
33 | let web = context.coordinator.webView
34 | if let req = request {
/Users/admin/builder/spi-builder-workspace/Sources/DFService/exported.swift:33:10: note: mark the protocol requirement 'makeView(context:)' 'async' to allow actor-isolated conformances
31 | associatedtype PlatformView = NSViewType
32 |
33 | func makeView(context: Context) -> PlatformView
| `- note: mark the protocol requirement 'makeView(context:)' 'async' to allow actor-isolated conformances
34 | }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/framework/provider/ServiceFactory.swift:3: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 | /// 服务提供者
2 | public final class ServiceFactory {
3 | public static var shared = ServiceFactory()
| |- 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: 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
4 | var storage: [String: ServiceHandler] = [:]
5 | var interceptor: ServiceInterceptor
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:64:28: warning: call to main actor-isolated initializer 'init(frame:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
62 | required init(_ controller: WebController) {
63 | self.controller = controller
64 | self.webView = WKWebView(frame: CGRect(x: 0.0, y: 0.0, width: 0.1, height: 0.1), configuration: controller.config)
| `- warning: call to main actor-isolated initializer 'init(frame:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 | super.init()
66 | makeObserve()
WebKit.WKWebView:9:23: note: calls to initializer 'init(frame:configuration:)' from outside of its actor context are implicitly asynchronous
7 | weak open var UIDelegate: (any WKUIDelegate)? { get set }
8 | open var backForwardList: WKBackForwardList { get }
9 | @MainActor public init(frame: CGRect, configuration: WKWebViewConfiguration)
| `- note: calls to initializer 'init(frame:configuration:)' from outside of its actor context are implicitly asynchronous
10 | public init?(coder: NSCoder)
11 | @MainActor open func load(_ request: URLRequest) -> WKNavigation?
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:73:34: warning: cannot form key path to main actor-isolated property 'estimatedProgress'; this is an error in the Swift 6 language mode
71 | extension WebView.Coordinator {
72 | func makeObserve() {
73 | webView.publisher(for: \.estimatedProgress)
| `- warning: cannot form key path to main actor-isolated property 'estimatedProgress'; this is an error in the Swift 6 language mode
74 | .receive(on: DispatchQueue.main)
75 | .assign(to: &controller.$progress)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:76:34: warning: cannot form key path to main actor-isolated property 'isLoading'; this is an error in the Swift 6 language mode
74 | .receive(on: DispatchQueue.main)
75 | .assign(to: &controller.$progress)
76 | webView.publisher(for: \.isLoading)
| `- warning: cannot form key path to main actor-isolated property 'isLoading'; this is an error in the Swift 6 language mode
77 | .receive(on: DispatchQueue.main)
78 | .assign(to: &controller.$isLoading)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:80:34: warning: cannot form key path to main actor-isolated property 'title'; this is an error in the Swift 6 language mode
78 | .assign(to: &controller.$isLoading)
79 |
80 | webView.publisher(for: \.title)
| `- warning: cannot form key path to main actor-isolated property 'title'; this is an error in the Swift 6 language mode
81 | .receive(on: DispatchQueue.main)
82 | .assign(to: &controller.$title)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:84:17: warning: main actor-isolated property 'uiDelegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
70 |
71 | extension WebView.Coordinator {
72 | func makeObserve() {
| `- note: add '@MainActor' to make instance method 'makeObserve()' part of global actor 'MainActor'
73 | webView.publisher(for: \.estimatedProgress)
74 | .receive(on: DispatchQueue.main)
:
82 | .assign(to: &controller.$title)
83 |
84 | webView.uiDelegate = self
| `- warning: main actor-isolated property 'uiDelegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
85 | webView.navigationDelegate = self
86 | }
WebKit.WKWebView:5:19: note: mutation of this property is only permitted within the actor
3 | @NSCopying open var configuration: WKWebViewConfiguration { get }
4 | weak open var navigationDelegate: (any WKNavigationDelegate)? { get set }
5 | weak open var uiDelegate: (any WKUIDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
6 | @available(swift, obsoleted: 3, renamed: "uiDelegate")
7 | weak open var UIDelegate: (any WKUIDelegate)? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:85:17: warning: main actor-isolated property 'navigationDelegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
70 |
71 | extension WebView.Coordinator {
72 | func makeObserve() {
| `- note: add '@MainActor' to make instance method 'makeObserve()' part of global actor 'MainActor'
73 | webView.publisher(for: \.estimatedProgress)
74 | .receive(on: DispatchQueue.main)
:
83 |
84 | webView.uiDelegate = self
85 | webView.navigationDelegate = self
| `- warning: main actor-isolated property 'navigationDelegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
86 | }
87 | }
WebKit.WKWebView:4:19: note: mutation of this property is only permitted within the actor
2 | @MainActor open class WKWebView : NSView {
3 | @NSCopying open var configuration: WKWebViewConfiguration { get }
4 | weak open var navigationDelegate: (any WKNavigationDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
5 | weak open var uiDelegate: (any WKUIDelegate)? { get set }
6 | @available(swift, obsoleted: 3, renamed: "uiDelegate")
[54/57] Compiling DFService WebView.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:7:9: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
5 | public init() {}
6 |
7 | let config = WKWebViewConfiguration().app.then { config in
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
8 | config.websiteDataStore = .default()
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:32:17: warning: main actor-isolated instance method 'makeView(context:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
21 | import WebKit
22 |
23 | public struct WebView: PlatformRepresentable {
| `- note: add '@preconcurrency' to the 'PlatformRepresentable' conformance to defer isolation checking to run time
24 | let controller: WebController
25 | let request: URLRequest?
:
30 | self.controller = controller
31 | }
32 | public func makeView(context: Context) -> WKWebView {
| |- warning: main actor-isolated instance method 'makeView(context:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'makeView(context:)' to make this instance method not isolated to the actor
33 | let web = context.coordinator.webView
34 | if let req = request {
/Users/admin/builder/spi-builder-workspace/Sources/DFService/exported.swift:33:10: note: mark the protocol requirement 'makeView(context:)' 'async' to allow actor-isolated conformances
31 | associatedtype PlatformView = NSViewType
32 |
33 | func makeView(context: Context) -> PlatformView
| `- note: mark the protocol requirement 'makeView(context:)' 'async' to allow actor-isolated conformances
34 | }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/framework/provider/ServiceFactory.swift:3: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 | /// 服务提供者
2 | public final class ServiceFactory {
3 | public static var shared = ServiceFactory()
| |- 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: 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
4 | var storage: [String: ServiceHandler] = [:]
5 | var interceptor: ServiceInterceptor
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:64:28: warning: call to main actor-isolated initializer 'init(frame:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
62 | required init(_ controller: WebController) {
63 | self.controller = controller
64 | self.webView = WKWebView(frame: CGRect(x: 0.0, y: 0.0, width: 0.1, height: 0.1), configuration: controller.config)
| `- warning: call to main actor-isolated initializer 'init(frame:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 | super.init()
66 | makeObserve()
WebKit.WKWebView:9:23: note: calls to initializer 'init(frame:configuration:)' from outside of its actor context are implicitly asynchronous
7 | weak open var UIDelegate: (any WKUIDelegate)? { get set }
8 | open var backForwardList: WKBackForwardList { get }
9 | @MainActor public init(frame: CGRect, configuration: WKWebViewConfiguration)
| `- note: calls to initializer 'init(frame:configuration:)' from outside of its actor context are implicitly asynchronous
10 | public init?(coder: NSCoder)
11 | @MainActor open func load(_ request: URLRequest) -> WKNavigation?
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:73:34: warning: cannot form key path to main actor-isolated property 'estimatedProgress'; this is an error in the Swift 6 language mode
71 | extension WebView.Coordinator {
72 | func makeObserve() {
73 | webView.publisher(for: \.estimatedProgress)
| `- warning: cannot form key path to main actor-isolated property 'estimatedProgress'; this is an error in the Swift 6 language mode
74 | .receive(on: DispatchQueue.main)
75 | .assign(to: &controller.$progress)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:76:34: warning: cannot form key path to main actor-isolated property 'isLoading'; this is an error in the Swift 6 language mode
74 | .receive(on: DispatchQueue.main)
75 | .assign(to: &controller.$progress)
76 | webView.publisher(for: \.isLoading)
| `- warning: cannot form key path to main actor-isolated property 'isLoading'; this is an error in the Swift 6 language mode
77 | .receive(on: DispatchQueue.main)
78 | .assign(to: &controller.$isLoading)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:80:34: warning: cannot form key path to main actor-isolated property 'title'; this is an error in the Swift 6 language mode
78 | .assign(to: &controller.$isLoading)
79 |
80 | webView.publisher(for: \.title)
| `- warning: cannot form key path to main actor-isolated property 'title'; this is an error in the Swift 6 language mode
81 | .receive(on: DispatchQueue.main)
82 | .assign(to: &controller.$title)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:84:17: warning: main actor-isolated property 'uiDelegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
70 |
71 | extension WebView.Coordinator {
72 | func makeObserve() {
| `- note: add '@MainActor' to make instance method 'makeObserve()' part of global actor 'MainActor'
73 | webView.publisher(for: \.estimatedProgress)
74 | .receive(on: DispatchQueue.main)
:
82 | .assign(to: &controller.$title)
83 |
84 | webView.uiDelegate = self
| `- warning: main actor-isolated property 'uiDelegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
85 | webView.navigationDelegate = self
86 | }
WebKit.WKWebView:5:19: note: mutation of this property is only permitted within the actor
3 | @NSCopying open var configuration: WKWebViewConfiguration { get }
4 | weak open var navigationDelegate: (any WKNavigationDelegate)? { get set }
5 | weak open var uiDelegate: (any WKUIDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
6 | @available(swift, obsoleted: 3, renamed: "uiDelegate")
7 | weak open var UIDelegate: (any WKUIDelegate)? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:85:17: warning: main actor-isolated property 'navigationDelegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
70 |
71 | extension WebView.Coordinator {
72 | func makeObserve() {
| `- note: add '@MainActor' to make instance method 'makeObserve()' part of global actor 'MainActor'
73 | webView.publisher(for: \.estimatedProgress)
74 | .receive(on: DispatchQueue.main)
:
83 |
84 | webView.uiDelegate = self
85 | webView.navigationDelegate = self
| `- warning: main actor-isolated property 'navigationDelegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
86 | }
87 | }
WebKit.WKWebView:4:19: note: mutation of this property is only permitted within the actor
2 | @MainActor open class WKWebView : NSView {
3 | @NSCopying open var configuration: WKWebViewConfiguration { get }
4 | weak open var navigationDelegate: (any WKNavigationDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
5 | weak open var uiDelegate: (any WKUIDelegate)? { get set }
6 | @available(swift, obsoleted: 3, renamed: "uiDelegate")
[55/57] Compiling DFService resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:7:9: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
5 | public init() {}
6 |
7 | let config = WKWebViewConfiguration().app.then { config in
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
8 | config.websiteDataStore = .default()
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:32:17: warning: main actor-isolated instance method 'makeView(context:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
21 | import WebKit
22 |
23 | public struct WebView: PlatformRepresentable {
| `- note: add '@preconcurrency' to the 'PlatformRepresentable' conformance to defer isolation checking to run time
24 | let controller: WebController
25 | let request: URLRequest?
:
30 | self.controller = controller
31 | }
32 | public func makeView(context: Context) -> WKWebView {
| |- warning: main actor-isolated instance method 'makeView(context:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'makeView(context:)' to make this instance method not isolated to the actor
33 | let web = context.coordinator.webView
34 | if let req = request {
/Users/admin/builder/spi-builder-workspace/Sources/DFService/exported.swift:33:10: note: mark the protocol requirement 'makeView(context:)' 'async' to allow actor-isolated conformances
31 | associatedtype PlatformView = NSViewType
32 |
33 | func makeView(context: Context) -> PlatformView
| `- note: mark the protocol requirement 'makeView(context:)' 'async' to allow actor-isolated conformances
34 | }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/DFService/framework/provider/ServiceFactory.swift:3: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 | /// 服务提供者
2 | public final class ServiceFactory {
3 | public static var shared = ServiceFactory()
| |- 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: 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
4 | var storage: [String: ServiceHandler] = [:]
5 | var interceptor: ServiceInterceptor
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:64:28: warning: call to main actor-isolated initializer 'init(frame:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
62 | required init(_ controller: WebController) {
63 | self.controller = controller
64 | self.webView = WKWebView(frame: CGRect(x: 0.0, y: 0.0, width: 0.1, height: 0.1), configuration: controller.config)
| `- warning: call to main actor-isolated initializer 'init(frame:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 | super.init()
66 | makeObserve()
WebKit.WKWebView:9:23: note: calls to initializer 'init(frame:configuration:)' from outside of its actor context are implicitly asynchronous
7 | weak open var UIDelegate: (any WKUIDelegate)? { get set }
8 | open var backForwardList: WKBackForwardList { get }
9 | @MainActor public init(frame: CGRect, configuration: WKWebViewConfiguration)
| `- note: calls to initializer 'init(frame:configuration:)' from outside of its actor context are implicitly asynchronous
10 | public init?(coder: NSCoder)
11 | @MainActor open func load(_ request: URLRequest) -> WKNavigation?
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:73:34: warning: cannot form key path to main actor-isolated property 'estimatedProgress'; this is an error in the Swift 6 language mode
71 | extension WebView.Coordinator {
72 | func makeObserve() {
73 | webView.publisher(for: \.estimatedProgress)
| `- warning: cannot form key path to main actor-isolated property 'estimatedProgress'; this is an error in the Swift 6 language mode
74 | .receive(on: DispatchQueue.main)
75 | .assign(to: &controller.$progress)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:76:34: warning: cannot form key path to main actor-isolated property 'isLoading'; this is an error in the Swift 6 language mode
74 | .receive(on: DispatchQueue.main)
75 | .assign(to: &controller.$progress)
76 | webView.publisher(for: \.isLoading)
| `- warning: cannot form key path to main actor-isolated property 'isLoading'; this is an error in the Swift 6 language mode
77 | .receive(on: DispatchQueue.main)
78 | .assign(to: &controller.$isLoading)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:80:34: warning: cannot form key path to main actor-isolated property 'title'; this is an error in the Swift 6 language mode
78 | .assign(to: &controller.$isLoading)
79 |
80 | webView.publisher(for: \.title)
| `- warning: cannot form key path to main actor-isolated property 'title'; this is an error in the Swift 6 language mode
81 | .receive(on: DispatchQueue.main)
82 | .assign(to: &controller.$title)
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:84:17: warning: main actor-isolated property 'uiDelegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
70 |
71 | extension WebView.Coordinator {
72 | func makeObserve() {
| `- note: add '@MainActor' to make instance method 'makeObserve()' part of global actor 'MainActor'
73 | webView.publisher(for: \.estimatedProgress)
74 | .receive(on: DispatchQueue.main)
:
82 | .assign(to: &controller.$title)
83 |
84 | webView.uiDelegate = self
| `- warning: main actor-isolated property 'uiDelegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
85 | webView.navigationDelegate = self
86 | }
WebKit.WKWebView:5:19: note: mutation of this property is only permitted within the actor
3 | @NSCopying open var configuration: WKWebViewConfiguration { get }
4 | weak open var navigationDelegate: (any WKNavigationDelegate)? { get set }
5 | weak open var uiDelegate: (any WKUIDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
6 | @available(swift, obsoleted: 3, renamed: "uiDelegate")
7 | weak open var UIDelegate: (any WKUIDelegate)? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DFService/views/WebView.swift:85:17: warning: main actor-isolated property 'navigationDelegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
70 |
71 | extension WebView.Coordinator {
72 | func makeObserve() {
| `- note: add '@MainActor' to make instance method 'makeObserve()' part of global actor 'MainActor'
73 | webView.publisher(for: \.estimatedProgress)
74 | .receive(on: DispatchQueue.main)
:
83 |
84 | webView.uiDelegate = self
85 | webView.navigationDelegate = self
| `- warning: main actor-isolated property 'navigationDelegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
86 | }
87 | }
WebKit.WKWebView:4:19: note: mutation of this property is only permitted within the actor
2 | @MainActor open class WKWebView : NSView {
3 | @NSCopying open var configuration: WKWebViewConfiguration { get }
4 | weak open var navigationDelegate: (any WKNavigationDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
5 | weak open var uiDelegate: (any WKUIDelegate)? { get set }
6 | @available(swift, obsoleted: 3, renamed: "uiDelegate")
[55/57] Write Objects.LinkFileList
[56/57] Linking libDFService-Dynamic.dylib
Build complete! (34.20s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "DFService",
"name" : "DFService",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "maccatalyst",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "tvos",
"version" : "14.0"
},
{
"name" : "watchos",
"version" : "8.0"
}
],
"products" : [
{
"name" : "DFService",
"targets" : [
"DFService"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "DFService-Dynamic",
"targets" : [
"DFService"
],
"type" : {
"library" : [
"dynamic"
]
}
}
],
"targets" : [
{
"c99name" : "DFServiceTests",
"module_type" : "SwiftTarget",
"name" : "DFServiceTests",
"path" : "Tests/DFServiceTests",
"sources" : [
"CodeTests.swift",
"DFServiceTests.swift"
],
"target_dependencies" : [
"DFService"
],
"type" : "test"
},
{
"c99name" : "DFService",
"module_type" : "SwiftTarget",
"name" : "DFService",
"path" : "Sources/DFService",
"product_memberships" : [
"DFService",
"DFService-Dynamic"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/DFService/Resources/Assets.xcassets",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"Application.swift",
"CommonError.swift",
"Injected.swift",
"Resources/Assets.swift",
"Space.swift",
"app/SwiftApp.swift",
"contract/DFApiCall.swift",
"contract/DFApplication.swift",
"contract/DFHandler.swift",
"contract/DFServiceKey.swift",
"core/FactoryKey.swift",
"core/ServiceName.swift",
"core/ServiceProvider.swift",
"exported.swift",
"extension/app.bool.swift",
"extension/app.bundle.swift",
"extension/app.chain.swift",
"extension/app.string.swift",
"extension/app.thread.swift",
"extension/app.view.swift",
"framework/codeable/AnyCodable.swift",
"framework/provider/Service.swift",
"framework/provider/ServiceFactory.swift",
"framework/provider/ServiceHandler.swift",
"framework/provider/ServiceInterceptor.swift",
"framework/provider/ServiceKey.swift",
"framework/provider/ServicePromise.swift",
"framework/provider/ServiceResult.swift",
"framework/provider/service/LogService.swift",
"framework/provider/service/impl/ServiceMock.swift",
"modifier/PageModifier.swift",
"pages/ErrorPage.swift",
"pages/NavigationPage.swift",
"pages/RoutePage.swift",
"pages/WebPage.swift",
"service/AppService.swift",
"service/RouteService.swift",
"service/RuntimeService.swift",
"service/impl/MockApiServiceImpl.swift",
"service/provider/BootstrapServiceProvider.swift",
"service/router/RouteRequest.swift",
"service/router/Router.action.swift",
"service/router/Router.page.swift",
"service/router/Router.swift",
"utils/ArrayBuilder.swift",
"utils/BoxValue.swift",
"views/CircularLoading.swift",
"views/PageBar.swift",
"views/PageLayout.swift",
"views/WebView.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.