Build Information
Successful build of KYLogger with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 2
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kjuly/KYLogger.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Kjuly/KYLogger
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at a7f01e7 KYLog.swift: Add KYPrint(_:_:)
Cloned https://github.com/Kjuly/KYLogger.git
Revision (git rev-parse @):
a7f01e76b6e76ac80a333fdba0c49098b856f4b7
SUCCESS checkout https://github.com/Kjuly/KYLogger.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/Kjuly/KYLogger.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Write sources
[1/3] Write swift-version-6F35C1178C84523A.txt
[2/12] Compiling KYLoggerObjC KYLoggerObjC.m
[4/12] Compiling KYLogger KYLogType.swift
[5/12] Compiling KYLogger KYFileLoggerError.swift
[6/12] Compiling KYLogger KYLog.swift
[7/12] Compiling KYLogger KYFileLogger+Session.swift
/Users/admin/builder/spi-builder-workspace/KYLogger/Sources/KYFileLogger/KYFileLogger.swift:14:14: warning: static property '_currentSessionIdentifier' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
12 | public class KYFileLogger: NSObject {
13 |
14 | static var _currentSessionIdentifier: String?
| |- warning: static property '_currentSessionIdentifier' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_currentSessionIdentifier' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_currentSessionIdentifier' 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
15 | static var _logFileURL: URL?
16 |
/Users/admin/builder/spi-builder-workspace/KYLogger/Sources/KYFileLogger/KYFileLogger.swift:15:14: warning: static property '_logFileURL' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | static var _currentSessionIdentifier: String?
15 | static var _logFileURL: URL?
| |- warning: static property '_logFileURL' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_logFileURL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_logFileURL' 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
16 |
17 | // MARK: - Public (Log)
[8/12] Compiling KYLogger KYFileLogger+FolderNFile.swift
/Users/admin/builder/spi-builder-workspace/KYLogger/Sources/KYFileLogger/KYFileLogger.swift:15:14: warning: static property '_logFileURL' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | static var _currentSessionIdentifier: String?
15 | static var _logFileURL: URL?
| |- warning: static property '_logFileURL' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_logFileURL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_logFileURL' 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
16 |
17 | // MARK: - Public (Log)
[9/12] Emitting module KYLogger
/Users/admin/builder/spi-builder-workspace/KYLogger/Sources/KYFileLogger/KYFileLogger.swift:14:14: warning: static property '_currentSessionIdentifier' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
12 | public class KYFileLogger: NSObject {
13 |
14 | static var _currentSessionIdentifier: String?
| |- warning: static property '_currentSessionIdentifier' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_currentSessionIdentifier' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_currentSessionIdentifier' 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
15 | static var _logFileURL: URL?
16 |
/Users/admin/builder/spi-builder-workspace/KYLogger/Sources/KYFileLogger/KYFileLogger.swift:15:14: warning: static property '_logFileURL' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | static var _currentSessionIdentifier: String?
15 | static var _logFileURL: URL?
| |- warning: static property '_logFileURL' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_logFileURL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_logFileURL' 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
16 |
17 | // MARK: - Public (Log)
[10/12] Compiling KYLogger KYFileLogger.swift
/Users/admin/builder/spi-builder-workspace/KYLogger/Sources/KYFileLogger/KYFileLogger.swift:14:14: warning: static property '_currentSessionIdentifier' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
12 | public class KYFileLogger: NSObject {
13 |
14 | static var _currentSessionIdentifier: String?
| |- warning: static property '_currentSessionIdentifier' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_currentSessionIdentifier' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_currentSessionIdentifier' 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
15 | static var _logFileURL: URL?
16 |
/Users/admin/builder/spi-builder-workspace/KYLogger/Sources/KYFileLogger/KYFileLogger.swift:15:14: warning: static property '_logFileURL' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | static var _currentSessionIdentifier: String?
15 | static var _logFileURL: URL?
| |- warning: static property '_logFileURL' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_logFileURL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_logFileURL' 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
16 |
17 | // MARK: - Public (Log)
[11/12] Compiling KYLogger KYFileLoggerConfig.swift
[12/12] Compiling KYLogger KYFileLogger+LogDetails.swift
Build complete! (19.87s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "KYLogger",
"name" : "KYLogger",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.5"
},
{
"name" : "watchos",
"version" : "6.0"
},
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "KYLogger",
"targets" : [
"KYLogger",
"KYLoggerObjC"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "KYLoggerTests",
"module_type" : "SwiftTarget",
"name" : "KYLoggerTests",
"path" : "KYLoggerTests",
"sources" : [
"KYFileLogger/KYFileLoggerConfigTests.swift",
"KYFileLogger/KYFileLoggerErrorTests.swift",
"KYFileLogger/KYFileLoggerTests.swift",
"KYFileLogger/KYFileLogger_FolderNFileTests.swift",
"KYFileLogger/KYFileLogger_LogDetailsTests.swift",
"KYFileLogger/KYFileLogger_SessionTests.swift",
"KYLogger/KYLoggerTests.swift"
],
"target_dependencies" : [
"KYLogger"
],
"type" : "test"
},
{
"c99name" : "KYLoggerObjC",
"module_type" : "ClangTarget",
"name" : "KYLoggerObjC",
"path" : "KYLogger/SourcesObjC",
"product_memberships" : [
"KYLogger"
],
"sources" : [
"KYLoggerObjC.m"
],
"type" : "library"
},
{
"c99name" : "KYLogger",
"module_type" : "SwiftTarget",
"name" : "KYLogger",
"path" : "KYLogger/Sources",
"product_memberships" : [
"KYLogger"
],
"sources" : [
"KYFileLogger/KYFileLogger+FolderNFile.swift",
"KYFileLogger/KYFileLogger+LogDetails.swift",
"KYFileLogger/KYFileLogger+Session.swift",
"KYFileLogger/KYFileLogger.swift",
"KYFileLogger/KYFileLoggerConfig.swift",
"KYFileLogger/KYFileLoggerError.swift",
"KYLogger/KYLog.swift",
"KYLogger/KYLogType.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.