Build Information
Successful build of swift-custom-dump, reference main (7e82ed
), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 01:18:28 UTC.
Swift 6 data race errors: 6
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/0xLeif/swift-custom-dump.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/0xLeif/swift-custom-dump
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 7e82ed0 Merge branch 'pointfreeco:main' into main
Cloned https://github.com/0xLeif/swift-custom-dump.git
Revision (git rev-parse @):
7e82ed0d2de34933946353336dec5f210c62d658
SUCCESS checkout https://github.com/0xLeif/swift-custom-dump.git at main
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/4985] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.61s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.4.1 (0.69s)
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 0.4.1
========================================
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": "swift-custom-dump",
"name": "swift-custom-dump",
"url": "https://github.com/0xLeif/swift-custom-dump.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-custom-dump",
"dependencies": [
{
"identity": "xctest-dynamic-overlay",
"name": "xctest-dynamic-overlay",
"url": "https://github.com/pointfreeco/xctest-dynamic-overlay",
"version": "0.9.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/xctest-dynamic-overlay",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/0xLeif/swift-custom-dump.git
[1/1379] Fetching swift-custom-dump
Fetched https://github.com/0xLeif/swift-custom-dump.git from cache (0.87s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay from cache
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.46s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.9.0 (0.03s)
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 0.9.0
Creating working copy for https://github.com/0xLeif/swift-custom-dump.git
Working copy of https://github.com/0xLeif/swift-custom-dump.git resolved at main (7e82ed0)
warning: '.resolve-product-dependencies': dependency 'swift-custom-dump' is not used by any target
Found 1 product dependencies
- xctest-dynamic-overlay
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/0xLeif/swift-custom-dump.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/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/9] Compiling XCTestDynamicOverlay XCTUnimplemented.swift
[5/9] Emitting module XCTestDynamicOverlay
[6/9] Compiling XCTestDynamicOverlay XCTCurrentTestCase.swift
[7/9] Compiling XCTestDynamicOverlay XCTFail.swift
[8/9] Compiling XCTestDynamicOverlay XCTIsTesting.swift
[9/9] Compiling XCTestDynamicOverlay RuntimeWarnings.swift
[10/33] Emitting module CustomDump
/Users/admin/builder/spi-builder-workspace/Sources/CustomDump/Conformances/Foundation.swift:40:24: warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ByteCountFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
38 | }
39 |
40 | private static let formatter: ByteCountFormatter = {
| |- warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ByteCountFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'formatter' 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
41 | let formatter = ByteCountFormatter()
42 | formatter.allowedUnits = .useBytes
Foundation.ByteCountFormatter:2:12: note: class 'ByteCountFormatter' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.8, *)
2 | open class ByteCountFormatter : Formatter {
| `- note: class 'ByteCountFormatter' does not conform to the 'Sendable' protocol
3 | open class func string(fromByteCount byteCount: Int64, countStyle: ByteCountFormatter.CountStyle) -> String
4 | @available(swift, obsoleted: 3, renamed: "string(fromByteCount:countStyle:)")
/Users/admin/builder/spi-builder-workspace/Sources/CustomDump/Conformances/KeyPath.swift:30:15: warning: var 'keyPathToName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | }
29 |
30 | private var keyPathToName: [AnyKeyPath: String] = [:]
| |- warning: var 'keyPathToName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'keyPathToName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'keyPathToName' 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
31 |
32 | // The source code below was extracted from the "KeyPath Reflection" branch of Apple's
/Users/admin/builder/spi-builder-workspace/Sources/CustomDump/Diff.swift:591:21: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DiffFormat' may have shared mutable state; this is an error in the Swift 6 language mode
561 | /// This type comes with two pre-configured formats that you will probably want to use for most
562 | /// situations: ``DiffFormat/default`` and ``DiffFormat/proportional``.
563 | public struct DiffFormat {
| `- note: consider making struct 'DiffFormat' conform to the 'Sendable' protocol
564 | /// A string prepended to lines that only appear in the string representation of the first value,
565 | /// e.g. a "removal."
:
589 | /// Uses ascii characters for removals (hyphen "-"), insertions (plus "+"), and unchanged (space
590 | /// " ").
591 | public static let `default` = Self(first: "-", second: "+", both: " ")
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DiffFormat' 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
592 |
593 | /// A diff format appropriate for where proportional (non-monospaced) fonts are used, e.g. Xcode's
/Users/admin/builder/spi-builder-workspace/Sources/CustomDump/Diff.swift:599:21: warning: static property 'proportional' is not concurrency-safe because non-'Sendable' type 'DiffFormat' may have shared mutable state; this is an error in the Swift 6 language mode
561 | /// This type comes with two pre-configured formats that you will probably want to use for most
562 | /// situations: ``DiffFormat/default`` and ``DiffFormat/proportional``.
563 | public struct DiffFormat {
| `- note: consider making struct 'DiffFormat' conform to the 'Sendable' protocol
564 | /// A string prepended to lines that only appear in the string representation of the first value,
565 | /// e.g. a "removal."
:
597 | /// figure space (" ") for unchanged. These three characters are more likely to render with equal
598 | /// widths in proportional fonts.
599 | public static let proportional = Self(first: "\u{2212}", second: "+", both: "\u{2007}")
| |- warning: static property 'proportional' is not concurrency-safe because non-'Sendable' type 'DiffFormat' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'proportional' 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
600 | }
601 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomDump/Dump.swift:63:23: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
49 | /// - Returns: The instance passed as `value`.
50 | @discardableResult
51 | public func customDump<T, TargetStream>(
| `- note: 'T' previously declared here
52 | _ value: T,
53 | to target: inout TargetStream,
:
61 | var visitedItems: Set<ObjectIdentifier> = []
62 |
63 | func customDumpHelp<T, TargetStream>(
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
64 | _ value: T,
65 | to target: inout TargetStream,
/Users/admin/builder/spi-builder-workspace/Sources/CustomDump/Dump.swift:63:26: warning: generic parameter 'TargetStream' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
49 | /// - Returns: The instance passed as `value`.
50 | @discardableResult
51 | public func customDump<T, TargetStream>(
| `- note: 'TargetStream' previously declared here
52 | _ value: T,
53 | to target: inout TargetStream,
:
61 | var visitedItems: Set<ObjectIdentifier> = []
62 |
63 | func customDumpHelp<T, TargetStream>(
| `- warning: generic parameter 'TargetStream' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
64 | _ value: T,
65 | to target: inout TargetStream,
[11/35] Compiling CustomDump AnyType.swift
[12/35] Compiling CustomDump Box.swift
[13/35] Compiling CustomDump CustomDumpRepresentable.swift
[14/35] Compiling CustomDump CustomDumpStringConvertible.swift
[15/35] Compiling CustomDump Diff.swift
/Users/admin/builder/spi-builder-workspace/Sources/CustomDump/Diff.swift:591:21: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DiffFormat' may have shared mutable state; this is an error in the Swift 6 language mode
561 | /// This type comes with two pre-configured formats that you will probably want to use for most
562 | /// situations: ``DiffFormat/default`` and ``DiffFormat/proportional``.
563 | public struct DiffFormat {
| `- note: consider making struct 'DiffFormat' conform to the 'Sendable' protocol
564 | /// A string prepended to lines that only appear in the string representation of the first value,
565 | /// e.g. a "removal."
:
589 | /// Uses ascii characters for removals (hyphen "-"), insertions (plus "+"), and unchanged (space
590 | /// " ").
591 | public static let `default` = Self(first: "-", second: "+", both: " ")
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DiffFormat' 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
592 |
593 | /// A diff format appropriate for where proportional (non-monospaced) fonts are used, e.g. Xcode's
/Users/admin/builder/spi-builder-workspace/Sources/CustomDump/Diff.swift:599:21: warning: static property 'proportional' is not concurrency-safe because non-'Sendable' type 'DiffFormat' may have shared mutable state; this is an error in the Swift 6 language mode
561 | /// This type comes with two pre-configured formats that you will probably want to use for most
562 | /// situations: ``DiffFormat/default`` and ``DiffFormat/proportional``.
563 | public struct DiffFormat {
| `- note: consider making struct 'DiffFormat' conform to the 'Sendable' protocol
564 | /// A string prepended to lines that only appear in the string representation of the first value,
565 | /// e.g. a "removal."
:
597 | /// figure space (" ") for unchanged. These three characters are more likely to render with equal
598 | /// widths in proportional fonts.
599 | public static let proportional = Self(first: "\u{2212}", second: "+", both: "\u{2007}")
| |- warning: static property 'proportional' is not concurrency-safe because non-'Sendable' type 'DiffFormat' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'proportional' 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
600 | }
601 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomDump/Dump.swift:63:23: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
49 | /// - Returns: The instance passed as `value`.
50 | @discardableResult
51 | public func customDump<T, TargetStream>(
| `- note: 'T' previously declared here
52 | _ value: T,
53 | to target: inout TargetStream,
:
61 | var visitedItems: Set<ObjectIdentifier> = []
62 |
63 | func customDumpHelp<T, TargetStream>(
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
64 | _ value: T,
65 | to target: inout TargetStream,
/Users/admin/builder/spi-builder-workspace/Sources/CustomDump/Dump.swift:63:26: warning: generic parameter 'TargetStream' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
49 | /// - Returns: The instance passed as `value`.
50 | @discardableResult
51 | public func customDump<T, TargetStream>(
| `- note: 'TargetStream' previously declared here
52 | _ value: T,
53 | to target: inout TargetStream,
:
61 | var visitedItems: Set<ObjectIdentifier> = []
62 |
63 | func customDumpHelp<T, TargetStream>(
| `- warning: generic parameter 'TargetStream' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
64 | _ value: T,
65 | to target: inout TargetStream,
[16/35] Compiling CustomDump Dump.swift
/Users/admin/builder/spi-builder-workspace/Sources/CustomDump/Diff.swift:591:21: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DiffFormat' may have shared mutable state; this is an error in the Swift 6 language mode
561 | /// This type comes with two pre-configured formats that you will probably want to use for most
562 | /// situations: ``DiffFormat/default`` and ``DiffFormat/proportional``.
563 | public struct DiffFormat {
| `- note: consider making struct 'DiffFormat' conform to the 'Sendable' protocol
564 | /// A string prepended to lines that only appear in the string representation of the first value,
565 | /// e.g. a "removal."
:
589 | /// Uses ascii characters for removals (hyphen "-"), insertions (plus "+"), and unchanged (space
590 | /// " ").
591 | public static let `default` = Self(first: "-", second: "+", both: " ")
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DiffFormat' 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
592 |
593 | /// A diff format appropriate for where proportional (non-monospaced) fonts are used, e.g. Xcode's
/Users/admin/builder/spi-builder-workspace/Sources/CustomDump/Diff.swift:599:21: warning: static property 'proportional' is not concurrency-safe because non-'Sendable' type 'DiffFormat' may have shared mutable state; this is an error in the Swift 6 language mode
561 | /// This type comes with two pre-configured formats that you will probably want to use for most
562 | /// situations: ``DiffFormat/default`` and ``DiffFormat/proportional``.
563 | public struct DiffFormat {
| `- note: consider making struct 'DiffFormat' conform to the 'Sendable' protocol
564 | /// A string prepended to lines that only appear in the string representation of the first value,
565 | /// e.g. a "removal."
:
597 | /// figure space (" ") for unchanged. These three characters are more likely to render with equal
598 | /// widths in proportional fonts.
599 | public static let proportional = Self(first: "\u{2212}", second: "+", both: "\u{2007}")
| |- warning: static property 'proportional' is not concurrency-safe because non-'Sendable' type 'DiffFormat' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'proportional' 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
600 | }
601 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomDump/Dump.swift:63:23: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
49 | /// - Returns: The instance passed as `value`.
50 | @discardableResult
51 | public func customDump<T, TargetStream>(
| `- note: 'T' previously declared here
52 | _ value: T,
53 | to target: inout TargetStream,
:
61 | var visitedItems: Set<ObjectIdentifier> = []
62 |
63 | func customDumpHelp<T, TargetStream>(
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
64 | _ value: T,
65 | to target: inout TargetStream,
/Users/admin/builder/spi-builder-workspace/Sources/CustomDump/Dump.swift:63:26: warning: generic parameter 'TargetStream' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
49 | /// - Returns: The instance passed as `value`.
50 | @discardableResult
51 | public func customDump<T, TargetStream>(
| `- note: 'TargetStream' previously declared here
52 | _ value: T,
53 | to target: inout TargetStream,
:
61 | var visitedItems: Set<ObjectIdentifier> = []
62 |
63 | func customDumpHelp<T, TargetStream>(
| `- warning: generic parameter 'TargetStream' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
64 | _ value: T,
65 | to target: inout TargetStream,
[17/35] Compiling CustomDump CollectionDifference.swift
[18/35] Compiling CustomDump Mirror.swift
[19/35] Compiling CustomDump Foundation.swift
/Users/admin/builder/spi-builder-workspace/Sources/CustomDump/Conformances/Foundation.swift:40:24: warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ByteCountFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
38 | }
39 |
40 | private static let formatter: ByteCountFormatter = {
| |- warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ByteCountFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'formatter' 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
41 | let formatter = ByteCountFormatter()
42 | formatter.allowedUnits = .useBytes
Foundation.ByteCountFormatter:2:12: note: class 'ByteCountFormatter' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.8, *)
2 | open class ByteCountFormatter : Formatter {
| `- note: class 'ByteCountFormatter' does not conform to the 'Sendable' protocol
3 | open class func string(fromByteCount byteCount: Int64, countStyle: ByteCountFormatter.CountStyle) -> String
4 | @available(swift, obsoleted: 3, renamed: "string(fromByteCount:countStyle:)")
/Users/admin/builder/spi-builder-workspace/Sources/CustomDump/Conformances/KeyPath.swift:30:15: warning: var 'keyPathToName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | }
29 |
30 | private var keyPathToName: [AnyKeyPath: String] = [:]
| |- warning: var 'keyPathToName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'keyPathToName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'keyPathToName' 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
31 |
32 | // The source code below was extracted from the "KeyPath Reflection" branch of Apple's
[20/35] Compiling CustomDump GameKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/CustomDump/Conformances/Foundation.swift:40:24: warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ByteCountFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
38 | }
39 |
40 | private static let formatter: ByteCountFormatter = {
| |- warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ByteCountFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'formatter' 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
41 | let formatter = ByteCountFormatter()
42 | formatter.allowedUnits = .useBytes
Foundation.ByteCountFormatter:2:12: note: class 'ByteCountFormatter' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.8, *)
2 | open class ByteCountFormatter : Formatter {
| `- note: class 'ByteCountFormatter' does not conform to the 'Sendable' protocol
3 | open class func string(fromByteCount byteCount: Int64, countStyle: ByteCountFormatter.CountStyle) -> String
4 | @available(swift, obsoleted: 3, renamed: "string(fromByteCount:countStyle:)")
/Users/admin/builder/spi-builder-workspace/Sources/CustomDump/Conformances/KeyPath.swift:30:15: warning: var 'keyPathToName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | }
29 |
30 | private var keyPathToName: [AnyKeyPath: String] = [:]
| |- warning: var 'keyPathToName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'keyPathToName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'keyPathToName' 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
31 |
32 | // The source code below was extracted from the "KeyPath Reflection" branch of Apple's
[21/35] Compiling CustomDump KeyPath.swift
/Users/admin/builder/spi-builder-workspace/Sources/CustomDump/Conformances/Foundation.swift:40:24: warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ByteCountFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
38 | }
39 |
40 | private static let formatter: ByteCountFormatter = {
| |- warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ByteCountFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'formatter' 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
41 | let formatter = ByteCountFormatter()
42 | formatter.allowedUnits = .useBytes
Foundation.ByteCountFormatter:2:12: note: class 'ByteCountFormatter' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.8, *)
2 | open class ByteCountFormatter : Formatter {
| `- note: class 'ByteCountFormatter' does not conform to the 'Sendable' protocol
3 | open class func string(fromByteCount byteCount: Int64, countStyle: ByteCountFormatter.CountStyle) -> String
4 | @available(swift, obsoleted: 3, renamed: "string(fromByteCount:countStyle:)")
/Users/admin/builder/spi-builder-workspace/Sources/CustomDump/Conformances/KeyPath.swift:30:15: warning: var 'keyPathToName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | }
29 |
30 | private var keyPathToName: [AnyKeyPath: String] = [:]
| |- warning: var 'keyPathToName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'keyPathToName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'keyPathToName' 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
31 |
32 | // The source code below was extracted from the "KeyPath Reflection" branch of Apple's
[22/35] Compiling CustomDump String.swift
/Users/admin/builder/spi-builder-workspace/Sources/CustomDump/Diff.swift:599:21: warning: static property 'proportional' is not concurrency-safe because non-'Sendable' type 'DiffFormat' may have shared mutable state; this is an error in the Swift 6 language mode
561 | /// This type comes with two pre-configured formats that you will probably want to use for most
562 | /// situations: ``DiffFormat/default`` and ``DiffFormat/proportional``.
563 | public struct DiffFormat {
| `- note: consider making struct 'DiffFormat' conform to the 'Sendable' protocol
564 | /// A string prepended to lines that only appear in the string representation of the first value,
565 | /// e.g. a "removal."
:
597 | /// figure space (" ") for unchanged. These three characters are more likely to render with equal
598 | /// widths in proportional fonts.
599 | public static let proportional = Self(first: "\u{2212}", second: "+", both: "\u{2007}")
| |- warning: static property 'proportional' is not concurrency-safe because non-'Sendable' type 'DiffFormat' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'proportional' 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
600 | }
601 |
[23/35] Compiling CustomDump XCTAssertNoDifference.swift
/Users/admin/builder/spi-builder-workspace/Sources/CustomDump/Diff.swift:599:21: warning: static property 'proportional' is not concurrency-safe because non-'Sendable' type 'DiffFormat' may have shared mutable state; this is an error in the Swift 6 language mode
561 | /// This type comes with two pre-configured formats that you will probably want to use for most
562 | /// situations: ``DiffFormat/default`` and ``DiffFormat/proportional``.
563 | public struct DiffFormat {
| `- note: consider making struct 'DiffFormat' conform to the 'Sendable' protocol
564 | /// A string prepended to lines that only appear in the string representation of the first value,
565 | /// e.g. a "removal."
:
597 | /// figure space (" ") for unchanged. These three characters are more likely to render with equal
598 | /// widths in proportional fonts.
599 | public static let proportional = Self(first: "\u{2212}", second: "+", both: "\u{2007}")
| |- warning: static property 'proportional' is not concurrency-safe because non-'Sendable' type 'DiffFormat' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'proportional' 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
600 | }
601 |
[24/35] Compiling CustomDump CoreImage.swift
[25/35] Compiling CustomDump CoreLocation.swift
[26/35] Compiling CustomDump CoreMotion.swift
[27/35] Compiling CustomDump Photos.swift
[28/35] Compiling CustomDump Speech.swift
[29/35] Compiling CustomDump StoreKit.swift
[30/35] Compiling CustomDump Swift.swift
[31/35] Compiling CustomDump SwiftUI.swift
[32/35] Compiling CustomDump UIKit.swift
[33/35] Compiling CustomDump UserNotifications.swift
[34/35] Compiling CustomDump UserNotificationsUI.swift
[35/35] Compiling CustomDump CustomDumpReflectable.swift
Build complete! (15.93s)
Build complete.
{
"dependencies" : [
{
"identity" : "xctest-dynamic-overlay",
"requirement" : {
"range" : [
{
"lower_bound" : "0.2.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/xctest-dynamic-overlay"
}
],
"manifest_display_name" : "swift-custom-dump",
"name" : "swift-custom-dump",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "CustomDump",
"targets" : [
"CustomDump"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CustomDumpTests",
"module_type" : "SwiftTarget",
"name" : "CustomDumpTests",
"path" : "Tests/CustomDumpTests",
"sources" : [
"Conformances/CoreImageTests.swift",
"Conformances/FoundationTests.swift",
"Conformances/SwiftTests.swift",
"Conformances/UIKitTests.swift",
"Conformances/UserNotificationsTests.swift",
"DiffTests.swift",
"DumpTests.swift",
"Mocks.swift",
"XCTAssertNoDifferenceTests.swift"
],
"target_dependencies" : [
"CustomDump"
],
"type" : "test"
},
{
"c99name" : "CustomDump",
"module_type" : "SwiftTarget",
"name" : "CustomDump",
"path" : "Sources/CustomDump",
"product_dependencies" : [
"XCTestDynamicOverlay"
],
"product_memberships" : [
"CustomDump"
],
"sources" : [
"Conformances/CoreImage.swift",
"Conformances/CoreLocation.swift",
"Conformances/CoreMotion.swift",
"Conformances/Foundation.swift",
"Conformances/GameKit.swift",
"Conformances/KeyPath.swift",
"Conformances/Photos.swift",
"Conformances/Speech.swift",
"Conformances/StoreKit.swift",
"Conformances/Swift.swift",
"Conformances/SwiftUI.swift",
"Conformances/UIKit.swift",
"Conformances/UserNotifications.swift",
"Conformances/UserNotificationsUI.swift",
"CustomDumpReflectable.swift",
"CustomDumpRepresentable.swift",
"CustomDumpStringConvertible.swift",
"Diff.swift",
"Dump.swift",
"Internal/AnyType.swift",
"Internal/Box.swift",
"Internal/CollectionDifference.swift",
"Internal/Mirror.swift",
"Internal/String.swift",
"XCTAssertNoDifference.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.