Build Information
Successful build of LaunchAtLogin 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/sindresorhus/LaunchAtLogin-Modern.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sindresorhus/LaunchAtLogin-Modern
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at a04ec1c Add `wasLaunchedAtLogin` property
Cloned https://github.com/sindresorhus/LaunchAtLogin-Modern.git
Revision (git rev-parse @):
a04ec1c363be3627734f6dad757d82f5d4fa8fcc
SUCCESS checkout https://github.com/sindresorhus/LaunchAtLogin-Modern.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/sindresorhus/LaunchAtLogin-Modern.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/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/4] Emitting module LaunchAtLogin
/Users/admin/builder/spi-builder-workspace/Sources/LaunchAtLogin/LaunchAtLogin.swift:7:21: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | public enum LaunchAtLogin {
7 | private static let logger = Logger(subsystem: "com.sindresorhus.LaunchAtLogin", category: "main")
| `- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
8 | fileprivate static let observable = Observable()
9 |
os.Logger:2:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
1 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
2 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
3 | public init(subsystem: String, category: String)
4 | public init()
/Users/admin/builder/spi-builder-workspace/Sources/LaunchAtLogin/LaunchAtLogin.swift:4:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
2 | import SwiftUI
3 | import ServiceManagement
4 | import os.log
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
5 |
6 | public enum LaunchAtLogin {
7 | private static let logger = Logger(subsystem: "com.sindresorhus.LaunchAtLogin", category: "main")
| |- 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
8 | fileprivate static let observable = Observable()
9 |
/Users/admin/builder/spi-builder-workspace/Sources/LaunchAtLogin/LaunchAtLogin.swift:8:25: warning: static property 'observable' is not concurrency-safe because non-'Sendable' type 'LaunchAtLogin.Observable' may have shared mutable state; this is an error in the Swift 6 language mode
6 | public enum LaunchAtLogin {
7 | private static let logger = Logger(subsystem: "com.sindresorhus.LaunchAtLogin", category: "main")
8 | fileprivate static let observable = Observable()
| |- warning: static property 'observable' is not concurrency-safe because non-'Sendable' type 'LaunchAtLogin.Observable' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'observable' 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
9 |
10 | /**
:
45 |
46 | extension LaunchAtLogin {
47 | final class Observable: ObservableObject {
| `- note: class 'Observable' does not conform to the 'Sendable' protocol
48 | var isEnabled: Bool {
49 | get { LaunchAtLogin.isEnabled }
[4/4] Compiling LaunchAtLogin LaunchAtLogin.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaunchAtLogin/LaunchAtLogin.swift:7:21: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | public enum LaunchAtLogin {
7 | private static let logger = Logger(subsystem: "com.sindresorhus.LaunchAtLogin", category: "main")
| `- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
8 | fileprivate static let observable = Observable()
9 |
os.Logger:2:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
1 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
2 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
3 | public init(subsystem: String, category: String)
4 | public init()
/Users/admin/builder/spi-builder-workspace/Sources/LaunchAtLogin/LaunchAtLogin.swift:4:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
2 | import SwiftUI
3 | import ServiceManagement
4 | import os.log
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
5 |
6 | public enum LaunchAtLogin {
7 | private static let logger = Logger(subsystem: "com.sindresorhus.LaunchAtLogin", category: "main")
| |- 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
8 | fileprivate static let observable = Observable()
9 |
/Users/admin/builder/spi-builder-workspace/Sources/LaunchAtLogin/LaunchAtLogin.swift:8:25: warning: static property 'observable' is not concurrency-safe because non-'Sendable' type 'LaunchAtLogin.Observable' may have shared mutable state; this is an error in the Swift 6 language mode
6 | public enum LaunchAtLogin {
7 | private static let logger = Logger(subsystem: "com.sindresorhus.LaunchAtLogin", category: "main")
8 | fileprivate static let observable = Observable()
| |- warning: static property 'observable' is not concurrency-safe because non-'Sendable' type 'LaunchAtLogin.Observable' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'observable' 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
9 |
10 | /**
:
45 |
46 | extension LaunchAtLogin {
47 | final class Observable: ObservableObject {
| `- note: class 'Observable' does not conform to the 'Sendable' protocol
48 | var isEnabled: Bool {
49 | get { LaunchAtLogin.isEnabled }
Build complete! (31.90s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "LaunchAtLogin",
"name" : "LaunchAtLogin",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "maccatalyst",
"version" : "16.0"
}
],
"products" : [
{
"name" : "LaunchAtLogin",
"targets" : [
"LaunchAtLogin"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "LaunchAtLogin",
"module_type" : "SwiftTarget",
"name" : "LaunchAtLogin",
"path" : "Sources/LaunchAtLogin",
"product_memberships" : [
"LaunchAtLogin"
],
"sources" : [
"LaunchAtLogin.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.