Build Information
Successful build of OSLogTrace, reference master (2c3064
), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 00:46:29 UTC.
Swift 6 data race errors: 9
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
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/outfoxx/OSLogTrace.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/outfoxx/OSLogTrace
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 2c30647 Test with multiple Xcode versions
Cloned https://github.com/outfoxx/OSLogTrace.git
Revision (git rev-parse @):
2c3064725a411fcd2f4ad34402f15357d73d815c
SUCCESS checkout https://github.com/outfoxx/OSLogTrace.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": "oslogtrace",
"name": "OSLogTrace",
"url": "https://github.com/outfoxx/OSLogTrace.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/OSLogTrace",
"dependencies": [
]
}
]
}
Fetching https://github.com/outfoxx/OSLogTrace.git
[1/64] Fetching oslogtrace
Fetched https://github.com/outfoxx/OSLogTrace.git from cache (0.66s)
Creating working copy for https://github.com/outfoxx/OSLogTrace.git
Working copy of https://github.com/outfoxx/OSLogTrace.git resolved at master (2c30647)
warning: '.resolve-product-dependencies': dependency 'oslogtrace' 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/outfoxx/OSLogTrace.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/7] Compiling OSLogTrace Logging.swift
/Users/admin/builder/spi-builder-workspace/Sources/Logging.swift:74:12: warning: var 'logConfig' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public var logConfig = OSLogConfig()
| |- warning: var 'logConfig' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logConfig' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logConfig' 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
75 |
76 | extension OSLog {
[4/7] Compiling OSLogTrace LogMessage.swift
/Users/admin/builder/spi-builder-workspace/Sources/LogMessage.swift:112:14: warning: '_swift_os_log_return_address()' is deprecated: The _SwiftOSOverlayShims module is obsolete. Please stop importing it.
110 |
111 | public func log(type: OSLogType, log: OSLog, prefix: String, dso: UnsafeRawPointer = #dsohandle) {
112 | let ra = _swift_os_log_return_address()
| `- warning: '_swift_os_log_return_address()' is deprecated: The _SwiftOSOverlayShims module is obsolete. Please stop importing it.
113 | "\(prefix)\(interpolation.format)".withCString { str in
114 | withVaList(interpolation.arguments) { args in
/Users/admin/builder/spi-builder-workspace/Sources/LogMessage.swift:115:9: warning: '_swift_os_log' is deprecated: The _SwiftOSOverlayShims module is obsolete. Please stop importing it.
113 | "\(prefix)\(interpolation.format)".withCString { str in
114 | withVaList(interpolation.arguments) { args in
115 | _swift_os_log(dso, ra, log, .default, str, args)
| `- warning: '_swift_os_log' is deprecated: The _SwiftOSOverlayShims module is obsolete. Please stop importing it.
116 | }
117 | }
[5/7] Compiling OSLogTrace Signposts.swift
/Users/admin/builder/spi-builder-workspace/Sources/Signposts.swift:261:12: warning: '_swift_os_log_return_address()' is deprecated: The _SwiftOSOverlayShims module is obsolete. Please stop importing it.
259 | @available(macOS 10.14, iOS 12, tvOS 12, watchOS 5, *)
260 | private func _mark(_ type: OSSignpostType, in log: OSLog, id: OSSignpostID, name: String, dso: UnsafeRawPointer) {
261 | let ra = _swift_os_log_return_address()
| `- warning: '_swift_os_log_return_address()' is deprecated: The _SwiftOSOverlayShims module is obsolete. Please stop importing it.
262 | name.withCString { namePtr in
263 | _swift_os_signpost(dso, ra, log, type, namePtr, id.rawValue)
/Users/admin/builder/spi-builder-workspace/Sources/Signposts.swift:263:5: warning: '_swift_os_signpost' is deprecated: The _SwiftOSOverlayShims module is obsolete. Please stop importing it.
261 | let ra = _swift_os_log_return_address()
262 | name.withCString { namePtr in
263 | _swift_os_signpost(dso, ra, log, type, namePtr, id.rawValue)
| `- warning: '_swift_os_signpost' is deprecated: The _SwiftOSOverlayShims module is obsolete. Please stop importing it.
264 | }
265 | }
/Users/admin/builder/spi-builder-workspace/Sources/Signposts.swift:269:12: warning: '_swift_os_log_return_address()' is deprecated: The _SwiftOSOverlayShims module is obsolete. Please stop importing it.
267 | @available(macOS 10.14, iOS 12, tvOS 12, watchOS 5, *)
268 | private func _mark(_ type: OSSignpostType, in log: OSLog, id: OSSignpostID, name: String, format: String, formatArgs: [CVarArg], dso: UnsafeRawPointer) {
269 | let ra = _swift_os_log_return_address()
| `- warning: '_swift_os_log_return_address()' is deprecated: The _SwiftOSOverlayShims module is obsolete. Please stop importing it.
270 | name.withCString { namePtr in
271 | format.withCString { formatPtr in
/Users/admin/builder/spi-builder-workspace/Sources/Signposts.swift:273:9: warning: '_swift_os_signpost_with_format' is deprecated: The _SwiftOSOverlayShims module is obsolete. Please stop importing it.
271 | format.withCString { formatPtr in
272 | withVaList(formatArgs) { formatArgs in
273 | _swift_os_signpost_with_format(dso, ra, log, type, namePtr, id.rawValue, formatPtr, formatArgs)
| `- warning: '_swift_os_signpost_with_format' is deprecated: The _SwiftOSOverlayShims module is obsolete. Please stop importing it.
274 | }
275 | }
[6/7] Compiling OSLogTrace Activity.swift
/Users/admin/builder/spi-builder-workspace/Sources/Activity.swift:24:21: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Activity' may have shared mutable state; this is an error in the Swift 6 language mode
14 | /// An OS activity
15 | ///
16 | public struct Activity {
| `- note: consider making struct 'Activity' conform to the 'Sendable' protocol
17 | /// Unique ID of the activity
18 | public typealias ID = os_activity_id_t
:
22 | /// When used as a parent activity, it is the equivalent of a passing the `detached` flag.
23 | ///
24 | public static let none = Activity(_none)
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Activity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
25 |
26 | /// Represents the activity of the current thread.
/Users/admin/builder/spi-builder-workspace/Sources/Activity.swift:261:13: warning: let '_none' is not concurrency-safe because non-'Sendable' type 'any OS_os_activity' may have shared mutable state; this is an error in the Swift 6 language mode
259 | }
260 |
261 | private let _none = unsafeBitCast(dlsym(UnsafeMutableRawPointer(bitPattern: -2), "_os_activity_none"), to: OS_os_activity.self)
| `- warning: let '_none' is not concurrency-safe because non-'Sendable' type 'any OS_os_activity' may have shared mutable state; this is an error in the Swift 6 language mode
262 | private let _current = unsafeBitCast(dlsym(UnsafeMutableRawPointer(bitPattern: -2), "_os_activity_current"), to: OS_os_activity.self)
263 |
os.OS_os_activity:2:17: note: protocol 'OS_os_activity' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.12, *)
2 | public protocol OS_os_activity : NSObjectProtocol {
| `- note: protocol 'OS_os_activity' does not conform to the 'Sendable' protocol
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/Activity.swift:12:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
10 |
11 | import Foundation
12 | import os.activity
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
13 |
14 | /// An OS activity
:
259 | }
260 |
261 | private let _none = unsafeBitCast(dlsym(UnsafeMutableRawPointer(bitPattern: -2), "_os_activity_none"), to: OS_os_activity.self)
| |- note: annotate '_none' 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
262 | private let _current = unsafeBitCast(dlsym(UnsafeMutableRawPointer(bitPattern: -2), "_os_activity_current"), to: OS_os_activity.self)
263 |
/Users/admin/builder/spi-builder-workspace/Sources/Activity.swift:31:21: warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'Activity' may have shared mutable state; this is an error in the Swift 6 language mode
14 | /// An OS activity
15 | ///
16 | public struct Activity {
| `- note: consider making struct 'Activity' conform to the 'Sendable' protocol
17 | /// Unique ID of the activity
18 | public typealias ID = os_activity_id_t
:
29 | /// activity is present it is treated as if it is `detached`.
30 | ///
31 | public static let current = Activity(_none)
| |- warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'Activity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'current' 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
32 |
33 | /// Options to create activity objects
/Users/admin/builder/spi-builder-workspace/Sources/Activity.swift:43:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Activity.Options' may have shared mutable state; this is an error in the Swift 6 language mode
33 | /// Options to create activity objects
34 | ///
35 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
36 | public let rawValue: UInt32
37 |
:
41 |
42 | /// Use the default flags
43 | public static let `default` = Options(rawValue: OS_ACTIVITY_FLAG_DEFAULT.rawValue)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Activity.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
44 |
45 | /// Detach the newly created activity from the provided activity (if any). If passed in conjunction with an existing
/Users/admin/builder/spi-builder-workspace/Sources/Activity.swift:48:23: warning: static property 'detached' is not concurrency-safe because non-'Sendable' type 'Activity.Options' may have shared mutable state; this is an error in the Swift 6 language mode
33 | /// Options to create activity objects
34 | ///
35 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
36 | public let rawValue: UInt32
37 |
:
46 | /// activity, the activity will only note what activity "created" the new one, but will make the new activity a top
47 | /// level activity. This allows users to see what activity triggered work without actually relating the activities.
48 | public static let detached = Options(rawValue: OS_ACTIVITY_FLAG_DETACHED.rawValue)
| |- warning: static property 'detached' is not concurrency-safe because non-'Sendable' type 'Activity.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'detached' 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
49 |
50 | /// Will only create a new activity if none present. If an activity ID is already present, a new object will be
/Users/admin/builder/spi-builder-workspace/Sources/Activity.swift:52:23: warning: static property 'ifNonePresent' is not concurrency-safe because non-'Sendable' type 'Activity.Options' may have shared mutable state; this is an error in the Swift 6 language mode
33 | /// Options to create activity objects
34 | ///
35 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
36 | public let rawValue: UInt32
37 |
:
50 | /// Will only create a new activity if none present. If an activity ID is already present, a new object will be
51 | /// returned with the same activity ID underneath.
52 | public static let ifNonePresent = Options(rawValue: OS_ACTIVITY_FLAG_IF_NONE_PRESENT.rawValue)
| |- warning: static property 'ifNonePresent' is not concurrency-safe because non-'Sendable' type 'Activity.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ifNonePresent' 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
53 | }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/Activity.swift:239:21: warning: static property 'unsafe' is not concurrency-safe because non-'Sendable' type 'any ActivityUnsafe' may have shared mutable state; this is an error in the Swift 6 language mode
237 | /// purposes.
238 | ///
239 | public static let unsafe: ActivityUnsafe = _ActivityUnsafe()
| |- warning: static property 'unsafe' is not concurrency-safe because non-'Sendable' type 'any ActivityUnsafe' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unsafe' 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
240 | }
241 |
242 | public protocol ActivityUnsafe {
| `- note: protocol 'ActivityUnsafe' does not conform to the 'Sendable' protocol
243 | /// Retrieves the current active ID hierarchy
244 | ///
/Users/admin/builder/spi-builder-workspace/Sources/Activity.swift:262:13: warning: let '_current' is not concurrency-safe because non-'Sendable' type 'any OS_os_activity' may have shared mutable state; this is an error in the Swift 6 language mode
260 |
261 | private let _none = unsafeBitCast(dlsym(UnsafeMutableRawPointer(bitPattern: -2), "_os_activity_none"), to: OS_os_activity.self)
262 | private let _current = unsafeBitCast(dlsym(UnsafeMutableRawPointer(bitPattern: -2), "_os_activity_current"), to: OS_os_activity.self)
| |- warning: let '_current' is not concurrency-safe because non-'Sendable' type 'any OS_os_activity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '_current' 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
263 |
os.OS_os_activity:2:17: note: protocol 'OS_os_activity' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.12, *)
2 | public protocol OS_os_activity : NSObjectProtocol {
| `- note: protocol 'OS_os_activity' does not conform to the 'Sendable' protocol
3 | }
[7/7] Emitting module OSLogTrace
/Users/admin/builder/spi-builder-workspace/Sources/Activity.swift:24:21: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Activity' may have shared mutable state; this is an error in the Swift 6 language mode
14 | /// An OS activity
15 | ///
16 | public struct Activity {
| `- note: consider making struct 'Activity' conform to the 'Sendable' protocol
17 | /// Unique ID of the activity
18 | public typealias ID = os_activity_id_t
:
22 | /// When used as a parent activity, it is the equivalent of a passing the `detached` flag.
23 | ///
24 | public static let none = Activity(_none)
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Activity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
25 |
26 | /// Represents the activity of the current thread.
/Users/admin/builder/spi-builder-workspace/Sources/Activity.swift:261:13: warning: let '_none' is not concurrency-safe because non-'Sendable' type 'any OS_os_activity' may have shared mutable state; this is an error in the Swift 6 language mode
259 | }
260 |
261 | private let _none = unsafeBitCast(dlsym(UnsafeMutableRawPointer(bitPattern: -2), "_os_activity_none"), to: OS_os_activity.self)
| `- warning: let '_none' is not concurrency-safe because non-'Sendable' type 'any OS_os_activity' may have shared mutable state; this is an error in the Swift 6 language mode
262 | private let _current = unsafeBitCast(dlsym(UnsafeMutableRawPointer(bitPattern: -2), "_os_activity_current"), to: OS_os_activity.self)
263 |
os.OS_os_activity:2:17: note: protocol 'OS_os_activity' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.12, *)
2 | public protocol OS_os_activity : NSObjectProtocol {
| `- note: protocol 'OS_os_activity' does not conform to the 'Sendable' protocol
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/Activity.swift:12:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
10 |
11 | import Foundation
12 | import os.activity
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
13 |
14 | /// An OS activity
:
259 | }
260 |
261 | private let _none = unsafeBitCast(dlsym(UnsafeMutableRawPointer(bitPattern: -2), "_os_activity_none"), to: OS_os_activity.self)
| |- note: annotate '_none' 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
262 | private let _current = unsafeBitCast(dlsym(UnsafeMutableRawPointer(bitPattern: -2), "_os_activity_current"), to: OS_os_activity.self)
263 |
/Users/admin/builder/spi-builder-workspace/Sources/Activity.swift:31:21: warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'Activity' may have shared mutable state; this is an error in the Swift 6 language mode
14 | /// An OS activity
15 | ///
16 | public struct Activity {
| `- note: consider making struct 'Activity' conform to the 'Sendable' protocol
17 | /// Unique ID of the activity
18 | public typealias ID = os_activity_id_t
:
29 | /// activity is present it is treated as if it is `detached`.
30 | ///
31 | public static let current = Activity(_none)
| |- warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'Activity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'current' 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
32 |
33 | /// Options to create activity objects
/Users/admin/builder/spi-builder-workspace/Sources/Activity.swift:43:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Activity.Options' may have shared mutable state; this is an error in the Swift 6 language mode
33 | /// Options to create activity objects
34 | ///
35 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
36 | public let rawValue: UInt32
37 |
:
41 |
42 | /// Use the default flags
43 | public static let `default` = Options(rawValue: OS_ACTIVITY_FLAG_DEFAULT.rawValue)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Activity.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
44 |
45 | /// Detach the newly created activity from the provided activity (if any). If passed in conjunction with an existing
/Users/admin/builder/spi-builder-workspace/Sources/Activity.swift:48:23: warning: static property 'detached' is not concurrency-safe because non-'Sendable' type 'Activity.Options' may have shared mutable state; this is an error in the Swift 6 language mode
33 | /// Options to create activity objects
34 | ///
35 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
36 | public let rawValue: UInt32
37 |
:
46 | /// activity, the activity will only note what activity "created" the new one, but will make the new activity a top
47 | /// level activity. This allows users to see what activity triggered work without actually relating the activities.
48 | public static let detached = Options(rawValue: OS_ACTIVITY_FLAG_DETACHED.rawValue)
| |- warning: static property 'detached' is not concurrency-safe because non-'Sendable' type 'Activity.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'detached' 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
49 |
50 | /// Will only create a new activity if none present. If an activity ID is already present, a new object will be
/Users/admin/builder/spi-builder-workspace/Sources/Activity.swift:52:23: warning: static property 'ifNonePresent' is not concurrency-safe because non-'Sendable' type 'Activity.Options' may have shared mutable state; this is an error in the Swift 6 language mode
33 | /// Options to create activity objects
34 | ///
35 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
36 | public let rawValue: UInt32
37 |
:
50 | /// Will only create a new activity if none present. If an activity ID is already present, a new object will be
51 | /// returned with the same activity ID underneath.
52 | public static let ifNonePresent = Options(rawValue: OS_ACTIVITY_FLAG_IF_NONE_PRESENT.rawValue)
| |- warning: static property 'ifNonePresent' is not concurrency-safe because non-'Sendable' type 'Activity.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ifNonePresent' 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
53 | }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/Activity.swift:239:21: warning: static property 'unsafe' is not concurrency-safe because non-'Sendable' type 'any ActivityUnsafe' may have shared mutable state; this is an error in the Swift 6 language mode
237 | /// purposes.
238 | ///
239 | public static let unsafe: ActivityUnsafe = _ActivityUnsafe()
| |- warning: static property 'unsafe' is not concurrency-safe because non-'Sendable' type 'any ActivityUnsafe' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unsafe' 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
240 | }
241 |
242 | public protocol ActivityUnsafe {
| `- note: protocol 'ActivityUnsafe' does not conform to the 'Sendable' protocol
243 | /// Retrieves the current active ID hierarchy
244 | ///
/Users/admin/builder/spi-builder-workspace/Sources/Activity.swift:262:13: warning: let '_current' is not concurrency-safe because non-'Sendable' type 'any OS_os_activity' may have shared mutable state; this is an error in the Swift 6 language mode
260 |
261 | private let _none = unsafeBitCast(dlsym(UnsafeMutableRawPointer(bitPattern: -2), "_os_activity_none"), to: OS_os_activity.self)
262 | private let _current = unsafeBitCast(dlsym(UnsafeMutableRawPointer(bitPattern: -2), "_os_activity_current"), to: OS_os_activity.self)
| |- warning: let '_current' is not concurrency-safe because non-'Sendable' type 'any OS_os_activity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '_current' 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
263 |
os.OS_os_activity:2:17: note: protocol 'OS_os_activity' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.12, *)
2 | public protocol OS_os_activity : NSObjectProtocol {
| `- note: protocol 'OS_os_activity' does not conform to the 'Sendable' protocol
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/Logging.swift:74:12: warning: var 'logConfig' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public var logConfig = OSLogConfig()
| |- warning: var 'logConfig' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logConfig' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logConfig' 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
75 |
76 | extension OSLog {
Build complete! (7.00s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "OSLogTrace",
"name" : "OSLogTrace",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "macos",
"version" : "10.12"
},
{
"name" : "watchos",
"version" : "3.0"
},
{
"name" : "tvos",
"version" : "10.0"
}
],
"products" : [
{
"name" : "OSLogTrace",
"targets" : [
"OSLogTrace"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "OSLogTraceTests",
"module_type" : "SwiftTarget",
"name" : "OSLogTraceTests",
"path" : "Tests",
"sources" : [
"ActivityTests.swift",
"LinuxMain.swift",
"LoggingTests.swift",
"SignpostTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"OSLogTrace"
],
"type" : "test"
},
{
"c99name" : "OSLogTrace",
"module_type" : "SwiftTarget",
"name" : "OSLogTrace",
"path" : "Sources",
"product_memberships" : [
"OSLogTrace"
],
"sources" : [
"Activity.swift",
"LogMessage.swift",
"Logging.swift",
"Signposts.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.