Build Information
Successful build of SLLog, reference master (d8cded
), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 05:48:37 UTC.
Swift 6 data race errors: 3
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/shial4/LogSwift.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/shial4/LogSwift
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at d8cded7 Update scheme
Cloned https://github.com/shial4/LogSwift.git
Revision (git rev-parse @):
d8cded7fa03270655bee79304cdabb4a341027f9
SUCCESS checkout https://github.com/shial4/LogSwift.git at master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "logswift",
"name": "SLLog",
"url": "https://github.com/shial4/LogSwift.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/LogSwift",
"dependencies": [
]
}
]
}
Fetching https://github.com/shial4/LogSwift.git
[1/225] Fetching logswift
Fetched https://github.com/shial4/LogSwift.git from cache (0.91s)
Creating working copy for https://github.com/shial4/LogSwift.git
Working copy of https://github.com/shial4/LogSwift.git resolved at master (d8cded7)
warning: '.resolve-product-dependencies': dependency 'logswift' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/shial4/LogSwift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/8] Compiling SLLog SLLogFile.swift
/Users/admin/builder/spi-builder-workspace/Sources/SLLog/SLLogFile.swift:61:36: warning: capture of 'self' with non-sendable type 'SLLogFile?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Dispatch
10 |
11 | public class SLLogFile {
| `- note: class 'SLLogFile' does not conform to the 'Sendable' protocol
12 | struct LogObject: Codable {
13 | let d: String
:
59 | public func addEntry(level: SLLog.LogType, occurrence: Occurrence, message: Any) {
60 | queue.addOperation { [weak self] in
61 | guard let strongSelf = self else { return }
| `- warning: capture of 'self' with non-sendable type 'SLLogFile?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | guard let path = strongSelf.filePath else { return }
63 | do {
/Users/admin/builder/spi-builder-workspace/Sources/SLLog/SLLogFile.swift:64:64: warning: capture of 'message' with non-sendable type 'Any' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | guard let path = strongSelf.filePath else { return }
63 | do {
64 | let data = try strongSelf.buildObject(message: message, level: level, occurrence: occurrence)
| `- warning: capture of 'message' with non-sendable type 'Any' in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 | if FileManager.default.fileExists(atPath: path) {
66 | strongSelf.appendEntry(data, path: path)
/Users/admin/builder/spi-builder-workspace/Sources/SLLog/SLLogFile.swift:64:80: warning: capture of 'level' with non-sendable type 'SLLog.LogType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | guard let path = strongSelf.filePath else { return }
63 | do {
64 | let data = try strongSelf.buildObject(message: message, level: level, occurrence: occurrence)
| `- warning: capture of 'level' with non-sendable type 'SLLog.LogType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 | if FileManager.default.fileExists(atPath: path) {
66 | strongSelf.appendEntry(data, path: path)
/Users/admin/builder/spi-builder-workspace/Sources/SLLog/SLLog.swift:54:10: note: consider making enum 'LogType' conform to the 'Sendable' protocol
52 |
53 | public extension SLLog {
54 | enum LogType: Int, CustomStringConvertible {
| `- note: consider making enum 'LogType' conform to the 'Sendable' protocol
55 | public var description: String {
56 | switch self {
/Users/admin/builder/spi-builder-workspace/Sources/SLLog/SLLogFile.swift:121:35: warning: capture of 'self' with non-sendable type 'SLLogFile' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Dispatch
10 |
11 | public class SLLogFile {
| `- note: class 'SLLogFile' does not conform to the 'Sendable' protocol
12 | struct LogObject: Codable {
13 | let d: String
:
119 | private func removeFile(_ files: [String]) {
120 | DispatchQueue.global().async {
121 | files.forEach { [weak self] in
| `- warning: capture of 'self' with non-sendable type 'SLLogFile' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | guard let path = self?.path else { return }
123 | let file: String = "\(path)/\($0)"
[4/8] Compiling SLLog SLLogConsole.swift
[5/8] Compiling SLLog DateFormatterExtension.swift
[6/8] Emitting module SLLog
/Users/admin/builder/spi-builder-workspace/Sources/SLLog/SLLog.swift:25:36: warning: static property 'providers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | public class SLLog {
25 | public private(set) static var providers: [LogProvider] = []
| |- warning: static property 'providers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'providers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'providers' 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
26 | public private(set) static var targets: [LogHandler] = []
27 | public private(set) static var dateFormat: DateFormatter = DateFormatter(dateFormat: "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",
/Users/admin/builder/spi-builder-workspace/Sources/SLLog/SLLog.swift:26:36: warning: static property 'targets' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 | public class SLLog {
25 | public private(set) static var providers: [LogProvider] = []
26 | public private(set) static var targets: [LogHandler] = []
| |- warning: static property 'targets' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'targets' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'targets' 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 | public private(set) static var dateFormat: DateFormatter = DateFormatter(dateFormat: "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",
28 | timeZone: "UTC",
/Users/admin/builder/spi-builder-workspace/Sources/SLLog/SLLog.swift:27:36: warning: static property 'dateFormat' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | public private(set) static var providers: [LogProvider] = []
26 | public private(set) static var targets: [LogHandler] = []
27 | public private(set) static var dateFormat: DateFormatter = DateFormatter(dateFormat: "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",
| |- warning: static property 'dateFormat' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dateFormat' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dateFormat' 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
28 | timeZone: "UTC",
29 | locale: "en_US_POSIX")
[7/8] Compiling SLLog Log.swift
/Users/admin/builder/spi-builder-workspace/Sources/SLLog/SLLog.swift:27:36: warning: static property 'dateFormat' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | public private(set) static var providers: [LogProvider] = []
26 | public private(set) static var targets: [LogHandler] = []
27 | public private(set) static var dateFormat: DateFormatter = DateFormatter(dateFormat: "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",
| |- warning: static property 'dateFormat' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dateFormat' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dateFormat' 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
28 | timeZone: "UTC",
29 | locale: "en_US_POSIX")
[8/8] Compiling SLLog SLLog.swift
/Users/admin/builder/spi-builder-workspace/Sources/SLLog/SLLog.swift:25:36: warning: static property 'providers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | public class SLLog {
25 | public private(set) static var providers: [LogProvider] = []
| |- warning: static property 'providers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'providers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'providers' 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
26 | public private(set) static var targets: [LogHandler] = []
27 | public private(set) static var dateFormat: DateFormatter = DateFormatter(dateFormat: "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",
/Users/admin/builder/spi-builder-workspace/Sources/SLLog/SLLog.swift:26:36: warning: static property 'targets' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 | public class SLLog {
25 | public private(set) static var providers: [LogProvider] = []
26 | public private(set) static var targets: [LogHandler] = []
| |- warning: static property 'targets' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'targets' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'targets' 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 | public private(set) static var dateFormat: DateFormatter = DateFormatter(dateFormat: "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",
28 | timeZone: "UTC",
/Users/admin/builder/spi-builder-workspace/Sources/SLLog/SLLog.swift:27:36: warning: static property 'dateFormat' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | public private(set) static var providers: [LogProvider] = []
26 | public private(set) static var targets: [LogHandler] = []
27 | public private(set) static var dateFormat: DateFormatter = DateFormatter(dateFormat: "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",
| |- warning: static property 'dateFormat' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dateFormat' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dateFormat' 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
28 | timeZone: "UTC",
29 | locale: "en_US_POSIX")
Build complete! (7.44s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SLLog",
"name" : "SLLog",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SLLog",
"targets" : [
"SLLog"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SLLogTests",
"module_type" : "SwiftTarget",
"name" : "SLLogTests",
"path" : "Tests/SLLogTests",
"sources" : [
"SLLogConsoleTests.swift",
"SLLogFileTests.swift",
"SLLogTests.swift"
],
"target_dependencies" : [
"SLLog"
],
"type" : "test"
},
{
"c99name" : "SLLog",
"module_type" : "SwiftTarget",
"name" : "SLLog",
"path" : "Sources/SLLog",
"product_memberships" : [
"SLLog"
],
"sources" : [
"Extensions/DateFormatterExtension.swift",
"Log.swift",
"SLLog.swift",
"SLLogConsole.swift",
"SLLogFile.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Done.