Build Information
Successful build of XMLCoder with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 6
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/CoreOffice/XMLCoder.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/CoreOffice/XMLCoder
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at efda1cc Update unit tests to newer Swift versions (#270)
Cloned https://github.com/CoreOffice/XMLCoder.git
Revision (git rev-parse @):
efda1cc8e0a97d198b6d16d53ff73751bd93f801
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/CoreOffice/XMLCoder.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/CoreOffice/XMLCoder.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/49] Emitting module XMLCoder
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Auxiliaries/ISO8601DateFormatter.swift:17:5: warning: var '_iso8601Formatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// we better not hit this code path on an older OS.
16 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | var _iso8601Formatter: ISO8601DateFormatter = {
| |- warning: var '_iso8601Formatter' 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 '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_iso8601Formatter' 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
18 | let formatter = ISO8601DateFormatter()
19 | formatter.formatOptions = .withInternetDateTime
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Decoder/SingleValueDecodingContainer.swift:22:17: warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
20 | }
21 |
22 | public func decode(_: Decimal.Type) throws -> Decimal {
| |- warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
| |- note: candidate has non-matching type '(Decimal.Type) throws -> Decimal'
| `- note: move 'decode' to another extension to silence this warning
23 | return try unbox(try topContainer())
24 | }
Swift.SingleValueDecodingContainer:14:10: note: requirement 'decode' declared here
12 | func decode(_ type: Int64.Type) throws -> Int64
13 | @available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
14 | func decode(_ type: Int128.Type) throws -> Int128
| `- note: requirement 'decode' declared here
15 | func decode(_ type: UInt.Type) throws -> UInt
16 | func decode(_ type: UInt8.Type) throws -> UInt8
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Decoder/SingleValueDecodingContainer.swift:46:17: warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
44 | }
45 |
46 | public func decode(_: String.Type) throws -> Date {
| |- warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
| |- note: candidate has non-matching type '(String.Type) throws -> Date'
| `- note: move 'decode' to another extension to silence this warning
47 | return try unbox(try topContainer())
48 | }
Swift.SingleValueDecodingContainer:21:10: note: requirement 'decode' declared here
19 | func decode(_ type: UInt64.Type) throws -> UInt64
20 | @available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
21 | func decode(_ type: UInt128.Type) throws -> UInt128
| `- note: requirement 'decode' declared here
22 | func decode<T>(_ type: T.Type) throws -> T where T : Decodable
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:26:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
24 |
25 | /// Produce human-readable XML with indented output.
26 | public static let prettyPrinted = OutputFormatting(rawValue: 1 << 0)
| |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'prettyPrinted' 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 |
28 | /// Produce XML with keys sorted in lexicographic order.
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:29:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
27 |
28 | /// Produce XML with keys sorted in lexicographic order.
29 | public static let sortedKeys = OutputFormatting(rawValue: 1 << 1)
| |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortedKeys' 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
30 |
31 | /// Produce XML with no short-hand annotation for empty elements, e.g., use `<p></p>` over `</p>`
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:32:27: warning: static property 'noEmptyElements' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
30 |
31 | /// Produce XML with no short-hand annotation for empty elements, e.g., use `<p></p>` over `</p>`
32 | public static let noEmptyElements = OutputFormatting(rawValue: 1 << 2)
| |- warning: static property 'noEmptyElements' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noEmptyElements' 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
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:47:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.NodeEncoding' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// A node's encoding type. Specifies how a node will be encoded.
42 | public enum NodeEncoding {
| `- note: consider making enum 'NodeEncoding' conform to the 'Sendable' protocol
43 | case attribute
44 | case element
45 | case both
46 |
47 | public static let `default`: NodeEncoding = .element
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.NodeEncoding' 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
48 | }
49 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:261:20: warning: static property 'defaultEncoder' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.XMLEncodingClosure' (aka '(any Encodable.Type, any Encoder) -> (any CodingKey) -> Optional<XMLEncoder.NodeEncoding>') may have shared mutable state; this is an error in the Swift 6 language mode
259 | }
260 |
261 | static let defaultEncoder: XMLEncodingClosure = { codableType, _ in
| |- warning: static property 'defaultEncoder' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.XMLEncodingClosure' (aka '(any Encodable.Type, any Encoder) -> (any CodingKey) -> Optional<XMLEncoder.NodeEncoding>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultEncoder' 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 | guard let dynamicType = codableType as? DynamicNodeEncoding.Type else {
263 | return { _ in nil }
[4/54] Compiling XMLCoder NullBox.swift
[5/54] Compiling XMLCoder SharedBox.swift
[6/54] Compiling XMLCoder SingleKeyedBox.swift
[7/54] Compiling XMLCoder StringBox.swift
[8/54] Compiling XMLCoder UIntBox.swift
[9/54] Compiling XMLCoder Attribute.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Auxiliaries/ISO8601DateFormatter.swift:17:5: warning: var '_iso8601Formatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// we better not hit this code path on an older OS.
16 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | var _iso8601Formatter: ISO8601DateFormatter = {
| |- warning: var '_iso8601Formatter' 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 '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_iso8601Formatter' 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
18 | let formatter = ISO8601DateFormatter()
19 | formatter.formatOptions = .withInternetDateTime
[10/54] Compiling XMLCoder BoolBox.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Auxiliaries/ISO8601DateFormatter.swift:17:5: warning: var '_iso8601Formatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// we better not hit this code path on an older OS.
16 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | var _iso8601Formatter: ISO8601DateFormatter = {
| |- warning: var '_iso8601Formatter' 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 '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_iso8601Formatter' 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
18 | let formatter = ISO8601DateFormatter()
19 | formatter.formatOptions = .withInternetDateTime
[11/54] Compiling XMLCoder Box.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Auxiliaries/ISO8601DateFormatter.swift:17:5: warning: var '_iso8601Formatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// we better not hit this code path on an older OS.
16 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | var _iso8601Formatter: ISO8601DateFormatter = {
| |- warning: var '_iso8601Formatter' 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 '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_iso8601Formatter' 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
18 | let formatter = ISO8601DateFormatter()
19 | formatter.formatOptions = .withInternetDateTime
[12/54] Compiling XMLCoder ChoiceBox.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Auxiliaries/ISO8601DateFormatter.swift:17:5: warning: var '_iso8601Formatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// we better not hit this code path on an older OS.
16 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | var _iso8601Formatter: ISO8601DateFormatter = {
| |- warning: var '_iso8601Formatter' 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 '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_iso8601Formatter' 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
18 | let formatter = ISO8601DateFormatter()
19 | formatter.formatOptions = .withInternetDateTime
[13/54] Compiling XMLCoder DataBox.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Auxiliaries/ISO8601DateFormatter.swift:17:5: warning: var '_iso8601Formatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// we better not hit this code path on an older OS.
16 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | var _iso8601Formatter: ISO8601DateFormatter = {
| |- warning: var '_iso8601Formatter' 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 '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_iso8601Formatter' 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
18 | let formatter = ISO8601DateFormatter()
19 | formatter.formatOptions = .withInternetDateTime
[14/54] Compiling XMLCoder DateBox.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Auxiliaries/ISO8601DateFormatter.swift:17:5: warning: var '_iso8601Formatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// we better not hit this code path on an older OS.
16 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | var _iso8601Formatter: ISO8601DateFormatter = {
| |- warning: var '_iso8601Formatter' 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 '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_iso8601Formatter' 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
18 | let formatter = ISO8601DateFormatter()
19 | formatter.formatOptions = .withInternetDateTime
[15/54] Compiling XMLCoder URLBox.swift
[16/54] Compiling XMLCoder UnkeyedBox.swift
[17/54] Compiling XMLCoder ValueBox.swift
[18/54] Compiling XMLCoder Element.swift
[19/54] Compiling XMLCoder ElementAndAttribute.swift
[20/54] Compiling XMLCoder XMLEncoderImplementation.swift
[21/54] Compiling XMLCoder XMLEncodingStorage.swift
[22/54] Compiling XMLCoder XMLKeyedEncodingContainer.swift
[23/54] Compiling XMLCoder XMLReferencingEncoder.swift
[24/54] Compiling XMLCoder XMLUnkeyedEncodingContainer.swift
[25/54] Compiling XMLCoder XMLStackParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Decoder/SingleValueDecodingContainer.swift:22:17: warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
20 | }
21 |
22 | public func decode(_: Decimal.Type) throws -> Decimal {
| |- warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
| |- note: candidate has non-matching type '(Decimal.Type) throws -> Decimal'
| `- note: move 'decode' to another extension to silence this warning
23 | return try unbox(try topContainer())
24 | }
Swift.SingleValueDecodingContainer:14:10: note: requirement 'decode' declared here
12 | func decode(_ type: Int64.Type) throws -> Int64
13 | @available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
14 | func decode(_ type: Int128.Type) throws -> Int128
| `- note: requirement 'decode' declared here
15 | func decode(_ type: UInt.Type) throws -> UInt
16 | func decode(_ type: UInt8.Type) throws -> UInt8
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Decoder/SingleValueDecodingContainer.swift:46:17: warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
44 | }
45 |
46 | public func decode(_: String.Type) throws -> Date {
| |- warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
| |- note: candidate has non-matching type '(String.Type) throws -> Date'
| `- note: move 'decode' to another extension to silence this warning
47 | return try unbox(try topContainer())
48 | }
Swift.SingleValueDecodingContainer:21:10: note: requirement 'decode' declared here
19 | func decode(_ type: UInt64.Type) throws -> UInt64
20 | @available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
21 | func decode(_ type: UInt128.Type) throws -> UInt128
| `- note: requirement 'decode' declared here
22 | func decode<T>(_ type: T.Type) throws -> T where T : Decodable
23 | }
[26/54] Compiling XMLCoder DecodingErrorExtension.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Decoder/SingleValueDecodingContainer.swift:22:17: warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
20 | }
21 |
22 | public func decode(_: Decimal.Type) throws -> Decimal {
| |- warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
| |- note: candidate has non-matching type '(Decimal.Type) throws -> Decimal'
| `- note: move 'decode' to another extension to silence this warning
23 | return try unbox(try topContainer())
24 | }
Swift.SingleValueDecodingContainer:14:10: note: requirement 'decode' declared here
12 | func decode(_ type: Int64.Type) throws -> Int64
13 | @available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
14 | func decode(_ type: Int128.Type) throws -> Int128
| `- note: requirement 'decode' declared here
15 | func decode(_ type: UInt.Type) throws -> UInt
16 | func decode(_ type: UInt8.Type) throws -> UInt8
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Decoder/SingleValueDecodingContainer.swift:46:17: warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
44 | }
45 |
46 | public func decode(_: String.Type) throws -> Date {
| |- warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
| |- note: candidate has non-matching type '(String.Type) throws -> Date'
| `- note: move 'decode' to another extension to silence this warning
47 | return try unbox(try topContainer())
48 | }
Swift.SingleValueDecodingContainer:21:10: note: requirement 'decode' declared here
19 | func decode(_ type: UInt64.Type) throws -> UInt64
20 | @available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
21 | func decode(_ type: UInt128.Type) throws -> UInt128
| `- note: requirement 'decode' declared here
22 | func decode<T>(_ type: T.Type) throws -> T where T : Decodable
23 | }
[27/54] Compiling XMLCoder DynamicNodeDecoding.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Decoder/SingleValueDecodingContainer.swift:22:17: warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
20 | }
21 |
22 | public func decode(_: Decimal.Type) throws -> Decimal {
| |- warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
| |- note: candidate has non-matching type '(Decimal.Type) throws -> Decimal'
| `- note: move 'decode' to another extension to silence this warning
23 | return try unbox(try topContainer())
24 | }
Swift.SingleValueDecodingContainer:14:10: note: requirement 'decode' declared here
12 | func decode(_ type: Int64.Type) throws -> Int64
13 | @available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
14 | func decode(_ type: Int128.Type) throws -> Int128
| `- note: requirement 'decode' declared here
15 | func decode(_ type: UInt.Type) throws -> UInt
16 | func decode(_ type: UInt8.Type) throws -> UInt8
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Decoder/SingleValueDecodingContainer.swift:46:17: warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
44 | }
45 |
46 | public func decode(_: String.Type) throws -> Date {
| |- warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
| |- note: candidate has non-matching type '(String.Type) throws -> Date'
| `- note: move 'decode' to another extension to silence this warning
47 | return try unbox(try topContainer())
48 | }
Swift.SingleValueDecodingContainer:21:10: note: requirement 'decode' declared here
19 | func decode(_ type: UInt64.Type) throws -> UInt64
20 | @available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
21 | func decode(_ type: UInt128.Type) throws -> UInt128
| `- note: requirement 'decode' declared here
22 | func decode<T>(_ type: T.Type) throws -> T where T : Decodable
23 | }
[28/54] Compiling XMLCoder SingleValueDecodingContainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Decoder/SingleValueDecodingContainer.swift:22:17: warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
20 | }
21 |
22 | public func decode(_: Decimal.Type) throws -> Decimal {
| |- warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
| |- note: candidate has non-matching type '(Decimal.Type) throws -> Decimal'
| `- note: move 'decode' to another extension to silence this warning
23 | return try unbox(try topContainer())
24 | }
Swift.SingleValueDecodingContainer:14:10: note: requirement 'decode' declared here
12 | func decode(_ type: Int64.Type) throws -> Int64
13 | @available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
14 | func decode(_ type: Int128.Type) throws -> Int128
| `- note: requirement 'decode' declared here
15 | func decode(_ type: UInt.Type) throws -> UInt
16 | func decode(_ type: UInt8.Type) throws -> UInt8
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Decoder/SingleValueDecodingContainer.swift:46:17: warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
44 | }
45 |
46 | public func decode(_: String.Type) throws -> Date {
| |- warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
| |- note: candidate has non-matching type '(String.Type) throws -> Date'
| `- note: move 'decode' to another extension to silence this warning
47 | return try unbox(try topContainer())
48 | }
Swift.SingleValueDecodingContainer:21:10: note: requirement 'decode' declared here
19 | func decode(_ type: UInt64.Type) throws -> UInt64
20 | @available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
21 | func decode(_ type: UInt128.Type) throws -> UInt128
| `- note: requirement 'decode' declared here
22 | func decode<T>(_ type: T.Type) throws -> T where T : Decodable
23 | }
[29/54] Compiling XMLCoder XMLChoiceDecodingContainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Decoder/SingleValueDecodingContainer.swift:22:17: warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
20 | }
21 |
22 | public func decode(_: Decimal.Type) throws -> Decimal {
| |- warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
| |- note: candidate has non-matching type '(Decimal.Type) throws -> Decimal'
| `- note: move 'decode' to another extension to silence this warning
23 | return try unbox(try topContainer())
24 | }
Swift.SingleValueDecodingContainer:14:10: note: requirement 'decode' declared here
12 | func decode(_ type: Int64.Type) throws -> Int64
13 | @available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
14 | func decode(_ type: Int128.Type) throws -> Int128
| `- note: requirement 'decode' declared here
15 | func decode(_ type: UInt.Type) throws -> UInt
16 | func decode(_ type: UInt8.Type) throws -> UInt8
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Decoder/SingleValueDecodingContainer.swift:46:17: warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
44 | }
45 |
46 | public func decode(_: String.Type) throws -> Date {
| |- warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
| |- note: candidate has non-matching type '(String.Type) throws -> Date'
| `- note: move 'decode' to another extension to silence this warning
47 | return try unbox(try topContainer())
48 | }
Swift.SingleValueDecodingContainer:21:10: note: requirement 'decode' declared here
19 | func decode(_ type: UInt64.Type) throws -> UInt64
20 | @available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
21 | func decode(_ type: UInt128.Type) throws -> UInt128
| `- note: requirement 'decode' declared here
22 | func decode<T>(_ type: T.Type) throws -> T where T : Decodable
23 | }
[30/54] Compiling XMLCoder XMLDecoder.swift
[31/54] Compiling XMLCoder XMLDecoderImplementation.swift
[32/54] Compiling XMLCoder XMLDecodingStorage.swift
[33/54] Compiling XMLCoder XMLKeyedDecodingContainer.swift
[34/54] Compiling XMLCoder XMLUnkeyedDecodingContainer.swift
[35/54] Compiling XMLCoder DecimalBox.swift
[36/54] Compiling XMLCoder DoubleBox.swift
[37/54] Compiling XMLCoder FloatBox.swift
[38/54] Compiling XMLCoder IntBox.swift
[39/54] Compiling XMLCoder KeyedBox.swift
[40/54] Compiling XMLCoder ISO8601DateFormatter.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Auxiliaries/ISO8601DateFormatter.swift:17:5: warning: var '_iso8601Formatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// we better not hit this code path on an older OS.
16 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | var _iso8601Formatter: ISO8601DateFormatter = {
| |- warning: var '_iso8601Formatter' 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 '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_iso8601Formatter' 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
18 | let formatter = ISO8601DateFormatter()
19 | formatter.formatOptions = .withInternetDateTime
[41/54] Compiling XMLCoder KeyedStorage.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Auxiliaries/ISO8601DateFormatter.swift:17:5: warning: var '_iso8601Formatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// we better not hit this code path on an older OS.
16 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | var _iso8601Formatter: ISO8601DateFormatter = {
| |- warning: var '_iso8601Formatter' 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 '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_iso8601Formatter' 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
18 | let formatter = ISO8601DateFormatter()
19 | formatter.formatOptions = .withInternetDateTime
[42/54] Compiling XMLCoder Metatypes.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Auxiliaries/ISO8601DateFormatter.swift:17:5: warning: var '_iso8601Formatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// we better not hit this code path on an older OS.
16 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | var _iso8601Formatter: ISO8601DateFormatter = {
| |- warning: var '_iso8601Formatter' 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 '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_iso8601Formatter' 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
18 | let formatter = ISO8601DateFormatter()
19 | formatter.formatOptions = .withInternetDateTime
[43/54] Compiling XMLCoder String+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Auxiliaries/ISO8601DateFormatter.swift:17:5: warning: var '_iso8601Formatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// we better not hit this code path on an older OS.
16 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | var _iso8601Formatter: ISO8601DateFormatter = {
| |- warning: var '_iso8601Formatter' 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 '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_iso8601Formatter' 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
18 | let formatter = ISO8601DateFormatter()
19 | formatter.formatOptions = .withInternetDateTime
[44/54] Compiling XMLCoder Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Auxiliaries/ISO8601DateFormatter.swift:17:5: warning: var '_iso8601Formatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// we better not hit this code path on an older OS.
16 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | var _iso8601Formatter: ISO8601DateFormatter = {
| |- warning: var '_iso8601Formatter' 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 '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_iso8601Formatter' 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
18 | let formatter = ISO8601DateFormatter()
19 | formatter.formatOptions = .withInternetDateTime
[45/54] Compiling XMLCoder DynamicNodeEncoding.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:26:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
24 |
25 | /// Produce human-readable XML with indented output.
26 | public static let prettyPrinted = OutputFormatting(rawValue: 1 << 0)
| |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'prettyPrinted' 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 |
28 | /// Produce XML with keys sorted in lexicographic order.
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:29:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
27 |
28 | /// Produce XML with keys sorted in lexicographic order.
29 | public static let sortedKeys = OutputFormatting(rawValue: 1 << 1)
| |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortedKeys' 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
30 |
31 | /// Produce XML with no short-hand annotation for empty elements, e.g., use `<p></p>` over `</p>`
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:32:27: warning: static property 'noEmptyElements' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
30 |
31 | /// Produce XML with no short-hand annotation for empty elements, e.g., use `<p></p>` over `</p>`
32 | public static let noEmptyElements = OutputFormatting(rawValue: 1 << 2)
| |- warning: static property 'noEmptyElements' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noEmptyElements' 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
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:47:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.NodeEncoding' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// A node's encoding type. Specifies how a node will be encoded.
42 | public enum NodeEncoding {
| `- note: consider making enum 'NodeEncoding' conform to the 'Sendable' protocol
43 | case attribute
44 | case element
45 | case both
46 |
47 | public static let `default`: NodeEncoding = .element
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.NodeEncoding' 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
48 | }
49 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:261:20: warning: static property 'defaultEncoder' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.XMLEncodingClosure' (aka '(any Encodable.Type, any Encoder) -> (any CodingKey) -> Optional<XMLEncoder.NodeEncoding>') may have shared mutable state; this is an error in the Swift 6 language mode
259 | }
260 |
261 | static let defaultEncoder: XMLEncodingClosure = { codableType, _ in
| |- warning: static property 'defaultEncoder' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.XMLEncodingClosure' (aka '(any Encodable.Type, any Encoder) -> (any CodingKey) -> Optional<XMLEncoder.NodeEncoding>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultEncoder' 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 | guard let dynamicType = codableType as? DynamicNodeEncoding.Type else {
263 | return { _ in nil }
[46/54] Compiling XMLCoder EncodingErrorExtension.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:26:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
24 |
25 | /// Produce human-readable XML with indented output.
26 | public static let prettyPrinted = OutputFormatting(rawValue: 1 << 0)
| |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'prettyPrinted' 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 |
28 | /// Produce XML with keys sorted in lexicographic order.
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:29:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
27 |
28 | /// Produce XML with keys sorted in lexicographic order.
29 | public static let sortedKeys = OutputFormatting(rawValue: 1 << 1)
| |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortedKeys' 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
30 |
31 | /// Produce XML with no short-hand annotation for empty elements, e.g., use `<p></p>` over `</p>`
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:32:27: warning: static property 'noEmptyElements' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
30 |
31 | /// Produce XML with no short-hand annotation for empty elements, e.g., use `<p></p>` over `</p>`
32 | public static let noEmptyElements = OutputFormatting(rawValue: 1 << 2)
| |- warning: static property 'noEmptyElements' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noEmptyElements' 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
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:47:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.NodeEncoding' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// A node's encoding type. Specifies how a node will be encoded.
42 | public enum NodeEncoding {
| `- note: consider making enum 'NodeEncoding' conform to the 'Sendable' protocol
43 | case attribute
44 | case element
45 | case both
46 |
47 | public static let `default`: NodeEncoding = .element
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.NodeEncoding' 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
48 | }
49 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:261:20: warning: static property 'defaultEncoder' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.XMLEncodingClosure' (aka '(any Encodable.Type, any Encoder) -> (any CodingKey) -> Optional<XMLEncoder.NodeEncoding>') may have shared mutable state; this is an error in the Swift 6 language mode
259 | }
260 |
261 | static let defaultEncoder: XMLEncodingClosure = { codableType, _ in
| |- warning: static property 'defaultEncoder' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.XMLEncodingClosure' (aka '(any Encodable.Type, any Encoder) -> (any CodingKey) -> Optional<XMLEncoder.NodeEncoding>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultEncoder' 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 | guard let dynamicType = codableType as? DynamicNodeEncoding.Type else {
263 | return { _ in nil }
[47/54] Compiling XMLCoder SingleValueEncodingContainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:26:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
24 |
25 | /// Produce human-readable XML with indented output.
26 | public static let prettyPrinted = OutputFormatting(rawValue: 1 << 0)
| |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'prettyPrinted' 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 |
28 | /// Produce XML with keys sorted in lexicographic order.
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:29:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
27 |
28 | /// Produce XML with keys sorted in lexicographic order.
29 | public static let sortedKeys = OutputFormatting(rawValue: 1 << 1)
| |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortedKeys' 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
30 |
31 | /// Produce XML with no short-hand annotation for empty elements, e.g., use `<p></p>` over `</p>`
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:32:27: warning: static property 'noEmptyElements' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
30 |
31 | /// Produce XML with no short-hand annotation for empty elements, e.g., use `<p></p>` over `</p>`
32 | public static let noEmptyElements = OutputFormatting(rawValue: 1 << 2)
| |- warning: static property 'noEmptyElements' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noEmptyElements' 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
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:47:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.NodeEncoding' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// A node's encoding type. Specifies how a node will be encoded.
42 | public enum NodeEncoding {
| `- note: consider making enum 'NodeEncoding' conform to the 'Sendable' protocol
43 | case attribute
44 | case element
45 | case both
46 |
47 | public static let `default`: NodeEncoding = .element
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.NodeEncoding' 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
48 | }
49 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:261:20: warning: static property 'defaultEncoder' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.XMLEncodingClosure' (aka '(any Encodable.Type, any Encoder) -> (any CodingKey) -> Optional<XMLEncoder.NodeEncoding>') may have shared mutable state; this is an error in the Swift 6 language mode
259 | }
260 |
261 | static let defaultEncoder: XMLEncodingClosure = { codableType, _ in
| |- warning: static property 'defaultEncoder' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.XMLEncodingClosure' (aka '(any Encodable.Type, any Encoder) -> (any CodingKey) -> Optional<XMLEncoder.NodeEncoding>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultEncoder' 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 | guard let dynamicType = codableType as? DynamicNodeEncoding.Type else {
263 | return { _ in nil }
[48/54] Compiling XMLCoder XMLChoiceEncodingContainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:26:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
24 |
25 | /// Produce human-readable XML with indented output.
26 | public static let prettyPrinted = OutputFormatting(rawValue: 1 << 0)
| |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'prettyPrinted' 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 |
28 | /// Produce XML with keys sorted in lexicographic order.
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:29:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
27 |
28 | /// Produce XML with keys sorted in lexicographic order.
29 | public static let sortedKeys = OutputFormatting(rawValue: 1 << 1)
| |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortedKeys' 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
30 |
31 | /// Produce XML with no short-hand annotation for empty elements, e.g., use `<p></p>` over `</p>`
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:32:27: warning: static property 'noEmptyElements' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
30 |
31 | /// Produce XML with no short-hand annotation for empty elements, e.g., use `<p></p>` over `</p>`
32 | public static let noEmptyElements = OutputFormatting(rawValue: 1 << 2)
| |- warning: static property 'noEmptyElements' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noEmptyElements' 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
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:47:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.NodeEncoding' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// A node's encoding type. Specifies how a node will be encoded.
42 | public enum NodeEncoding {
| `- note: consider making enum 'NodeEncoding' conform to the 'Sendable' protocol
43 | case attribute
44 | case element
45 | case both
46 |
47 | public static let `default`: NodeEncoding = .element
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.NodeEncoding' 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
48 | }
49 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:261:20: warning: static property 'defaultEncoder' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.XMLEncodingClosure' (aka '(any Encodable.Type, any Encoder) -> (any CodingKey) -> Optional<XMLEncoder.NodeEncoding>') may have shared mutable state; this is an error in the Swift 6 language mode
259 | }
260 |
261 | static let defaultEncoder: XMLEncodingClosure = { codableType, _ in
| |- warning: static property 'defaultEncoder' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.XMLEncodingClosure' (aka '(any Encodable.Type, any Encoder) -> (any CodingKey) -> Optional<XMLEncoder.NodeEncoding>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultEncoder' 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 | guard let dynamicType = codableType as? DynamicNodeEncoding.Type else {
263 | return { _ in nil }
[49/54] Compiling XMLCoder XMLEncoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:26:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
24 |
25 | /// Produce human-readable XML with indented output.
26 | public static let prettyPrinted = OutputFormatting(rawValue: 1 << 0)
| |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'prettyPrinted' 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 |
28 | /// Produce XML with keys sorted in lexicographic order.
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:29:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
27 |
28 | /// Produce XML with keys sorted in lexicographic order.
29 | public static let sortedKeys = OutputFormatting(rawValue: 1 << 1)
| |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortedKeys' 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
30 |
31 | /// Produce XML with no short-hand annotation for empty elements, e.g., use `<p></p>` over `</p>`
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:32:27: warning: static property 'noEmptyElements' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
30 |
31 | /// Produce XML with no short-hand annotation for empty elements, e.g., use `<p></p>` over `</p>`
32 | public static let noEmptyElements = OutputFormatting(rawValue: 1 << 2)
| |- warning: static property 'noEmptyElements' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noEmptyElements' 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
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:47:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.NodeEncoding' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// A node's encoding type. Specifies how a node will be encoded.
42 | public enum NodeEncoding {
| `- note: consider making enum 'NodeEncoding' conform to the 'Sendable' protocol
43 | case attribute
44 | case element
45 | case both
46 |
47 | public static let `default`: NodeEncoding = .element
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.NodeEncoding' 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
48 | }
49 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:261:20: warning: static property 'defaultEncoder' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.XMLEncodingClosure' (aka '(any Encodable.Type, any Encoder) -> (any CodingKey) -> Optional<XMLEncoder.NodeEncoding>') may have shared mutable state; this is an error in the Swift 6 language mode
259 | }
260 |
261 | static let defaultEncoder: XMLEncodingClosure = { codableType, _ in
| |- warning: static property 'defaultEncoder' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.XMLEncodingClosure' (aka '(any Encodable.Type, any Encoder) -> (any CodingKey) -> Optional<XMLEncoder.NodeEncoding>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultEncoder' 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 | guard let dynamicType = codableType as? DynamicNodeEncoding.Type else {
263 | return { _ in nil }
[50/54] Compiling XMLCoder XMLChoiceCodingKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:29:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
27 |
28 | /// Produce XML with keys sorted in lexicographic order.
29 | public static let sortedKeys = OutputFormatting(rawValue: 1 << 1)
| |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortedKeys' 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
30 |
31 | /// Produce XML with no short-hand annotation for empty elements, e.g., use `<p></p>` over `</p>`
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:26:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
24 |
25 | /// Produce human-readable XML with indented output.
26 | public static let prettyPrinted = OutputFormatting(rawValue: 1 << 0)
| |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'prettyPrinted' 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 |
28 | /// Produce XML with keys sorted in lexicographic order.
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:32:27: warning: static property 'noEmptyElements' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
30 |
31 | /// Produce XML with no short-hand annotation for empty elements, e.g., use `<p></p>` over `</p>`
32 | public static let noEmptyElements = OutputFormatting(rawValue: 1 << 2)
| |- warning: static property 'noEmptyElements' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noEmptyElements' 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
33 | }
34 |
[51/54] Compiling XMLCoder XMLCoderElement.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:29:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
27 |
28 | /// Produce XML with keys sorted in lexicographic order.
29 | public static let sortedKeys = OutputFormatting(rawValue: 1 << 1)
| |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortedKeys' 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
30 |
31 | /// Produce XML with no short-hand annotation for empty elements, e.g., use `<p></p>` over `</p>`
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:26:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
24 |
25 | /// Produce human-readable XML with indented output.
26 | public static let prettyPrinted = OutputFormatting(rawValue: 1 << 0)
| |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'prettyPrinted' 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 |
28 | /// Produce XML with keys sorted in lexicographic order.
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:32:27: warning: static property 'noEmptyElements' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
30 |
31 | /// Produce XML with no short-hand annotation for empty elements, e.g., use `<p></p>` over `</p>`
32 | public static let noEmptyElements = OutputFormatting(rawValue: 1 << 2)
| |- warning: static property 'noEmptyElements' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noEmptyElements' 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
33 | }
34 |
[52/54] Compiling XMLCoder XMLDocumentType.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:29:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
27 |
28 | /// Produce XML with keys sorted in lexicographic order.
29 | public static let sortedKeys = OutputFormatting(rawValue: 1 << 1)
| |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortedKeys' 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
30 |
31 | /// Produce XML with no short-hand annotation for empty elements, e.g., use `<p></p>` over `</p>`
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:26:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
24 |
25 | /// Produce human-readable XML with indented output.
26 | public static let prettyPrinted = OutputFormatting(rawValue: 1 << 0)
| |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'prettyPrinted' 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 |
28 | /// Produce XML with keys sorted in lexicographic order.
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:32:27: warning: static property 'noEmptyElements' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
30 |
31 | /// Produce XML with no short-hand annotation for empty elements, e.g., use `<p></p>` over `</p>`
32 | public static let noEmptyElements = OutputFormatting(rawValue: 1 << 2)
| |- warning: static property 'noEmptyElements' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noEmptyElements' 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
33 | }
34 |
[53/54] Compiling XMLCoder XMLHeader.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:29:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
27 |
28 | /// Produce XML with keys sorted in lexicographic order.
29 | public static let sortedKeys = OutputFormatting(rawValue: 1 << 1)
| |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortedKeys' 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
30 |
31 | /// Produce XML with no short-hand annotation for empty elements, e.g., use `<p></p>` over `</p>`
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:26:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
24 |
25 | /// Produce human-readable XML with indented output.
26 | public static let prettyPrinted = OutputFormatting(rawValue: 1 << 0)
| |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'prettyPrinted' 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 |
28 | /// Produce XML with keys sorted in lexicographic order.
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:32:27: warning: static property 'noEmptyElements' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
30 |
31 | /// Produce XML with no short-hand annotation for empty elements, e.g., use `<p></p>` over `</p>`
32 | public static let noEmptyElements = OutputFormatting(rawValue: 1 << 2)
| |- warning: static property 'noEmptyElements' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noEmptyElements' 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
33 | }
34 |
[54/54] Compiling XMLCoder XMLKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:29:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
27 |
28 | /// Produce XML with keys sorted in lexicographic order.
29 | public static let sortedKeys = OutputFormatting(rawValue: 1 << 1)
| |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortedKeys' 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
30 |
31 | /// Produce XML with no short-hand annotation for empty elements, e.g., use `<p></p>` over `</p>`
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:26:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
24 |
25 | /// Produce human-readable XML with indented output.
26 | public static let prettyPrinted = OutputFormatting(rawValue: 1 << 0)
| |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'prettyPrinted' 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 |
28 | /// Produce XML with keys sorted in lexicographic order.
/Users/admin/builder/spi-builder-workspace/Sources/XMLCoder/Encoder/XMLEncoder.swift:32:27: warning: static property 'noEmptyElements' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The formatting of the output XML data.
16 | public struct OutputFormatting: OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
17 | /// The format's default value.
18 | public let rawValue: UInt
:
30 |
31 | /// Produce XML with no short-hand annotation for empty elements, e.g., use `<p></p>` over `</p>`
32 | public static let noEmptyElements = OutputFormatting(rawValue: 1 << 2)
| |- warning: static property 'noEmptyElements' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noEmptyElements' 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
33 | }
34 |
Build complete! (23.59s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "XMLCoder",
"name" : "XMLCoder",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
},
{
"name" : "ios",
"version" : "12.0"
},
{
"name" : "watchos",
"version" : "4.0"
},
{
"name" : "tvos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "XMLCoder",
"targets" : [
"XMLCoder"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "XMLCoderTests",
"module_type" : "SwiftTarget",
"name" : "XMLCoderTests",
"path" : "Tests/XMLCoderTests",
"sources" : [
"AdvancedFeatures/AttributedEnumIntrinsicTest.swift",
"AdvancedFeatures/AttributedIntrinsicLegacyTest.swift",
"AdvancedFeatures/AttributedIntrinsicTest.swift",
"AdvancedFeatures/CompositeChoiceTests.swift",
"AdvancedFeatures/DynamicNodeDecodingLegacyTest.swift",
"AdvancedFeatures/DynamicNodeDecodingTest.swift",
"AdvancedFeatures/DynamicNodeEncodingTest.swift",
"AdvancedFeatures/ErrorContextTest.swift",
"AdvancedFeatures/InlinePropertyTests.swift",
"AdvancedFeatures/MixedChoiceAndNonChoiceTests.swift",
"AdvancedFeatures/NestedAttributeChoiceTests.swift",
"AdvancedFeatures/NestedChoiceArrayTest.swift",
"AdvancedFeatures/NestedChoiceTests.swift",
"AdvancedFeatures/PropertyWrappersTest.swift",
"AdvancedFeatures/SimpleChoiceTests.swift",
"Auxiliary/String+ExtensionsTests.swift",
"Auxiliary/XMLElementTests.swift",
"Auxiliary/XMLHeaderTests.swift",
"Auxiliary/XMLKeyTests.swift",
"Auxiliary/XMLStackParserTests.swift",
"BenchmarkTests.swift",
"Box/BoolBoxTests.swift",
"Box/DataBoxTests.swift",
"Box/DateBoxTests.swift",
"Box/DecimalBoxTests.swift",
"Box/FloatBoxTests.swift",
"Box/IntBoxTests.swift",
"Box/KeyedBoxTests.swift",
"Box/NullBoxTests.swift",
"Box/SharedBoxTests.swift",
"Box/StringBoxTests.swift",
"Box/UIntBoxTests.swift",
"Box/URLBoxTests.swift",
"Box/UnkeyedBoxTests.swift",
"CDATAMixedUsageTest.swift",
"CDATATest.swift",
"ClassTests.swift",
"CombineTests.swift",
"DecodingContainerTests.swift",
"DocTypeTests.swift",
"EmptyArrayTest.swift",
"EmptyElementEmptyStringTests.swift",
"EndToEnd/BooksTest.swift",
"EndToEnd/BorderTest.swift",
"EndToEnd/BreakfastTest.swift",
"EndToEnd/CDCatalog.swift",
"EndToEnd/CDTest.swift",
"EndToEnd/NoteTest.swift",
"EndToEnd/PlantCatalog.swift",
"EndToEnd/PlantTest.swift",
"EndToEnd/RJISample.swift",
"EndToEnd/RJITest.swift",
"EndToEnd/RelationshipsTest.swift",
"EscapedCharactersTest.swift",
"IntOrString.swift",
"KeyDecodingAndEncodingStrategyTests.swift",
"Minimal/BoolTests.swift",
"Minimal/BoxTreeTests.swift",
"Minimal/DataTests.swift",
"Minimal/DateTests.swift",
"Minimal/DecimalTests.swift",
"Minimal/EmptyTests.swift",
"Minimal/FloatTests.swift",
"Minimal/IntTests.swift",
"Minimal/KeyedIntTests.swift",
"Minimal/KeyedTests.swift",
"Minimal/MixedContentTests.swift",
"Minimal/NestedStringList.swift",
"Minimal/NullTests.swift",
"Minimal/OptionalTests.swift",
"Minimal/StringTests.swift",
"Minimal/UIntTests.swift",
"Minimal/URLTests.swift",
"Minimal/UnkeyedIntTests.swift",
"Minimal/UnkeyedTests.swift",
"MixedContainerTest.swift",
"NamespaceTest.swift",
"NestingTests.swift",
"NodeEncodingStrategyTests.swift",
"PrettyPrintTest.swift",
"RootLevelAttributeTest.swift",
"RootLevetExtraAttributesTests.swift",
"SingleChildTests.swift",
"SpacePreserveTest.swift"
],
"target_dependencies" : [
"XMLCoder"
],
"type" : "test"
},
{
"c99name" : "XMLCoder",
"module_type" : "SwiftTarget",
"name" : "XMLCoder",
"path" : "Sources/XMLCoder",
"product_memberships" : [
"XMLCoder"
],
"sources" : [
"Auxiliaries/Attribute.swift",
"Auxiliaries/Box/BoolBox.swift",
"Auxiliaries/Box/Box.swift",
"Auxiliaries/Box/ChoiceBox.swift",
"Auxiliaries/Box/DataBox.swift",
"Auxiliaries/Box/DateBox.swift",
"Auxiliaries/Box/DecimalBox.swift",
"Auxiliaries/Box/DoubleBox.swift",
"Auxiliaries/Box/FloatBox.swift",
"Auxiliaries/Box/IntBox.swift",
"Auxiliaries/Box/KeyedBox.swift",
"Auxiliaries/Box/NullBox.swift",
"Auxiliaries/Box/SharedBox.swift",
"Auxiliaries/Box/SingleKeyedBox.swift",
"Auxiliaries/Box/StringBox.swift",
"Auxiliaries/Box/UIntBox.swift",
"Auxiliaries/Box/URLBox.swift",
"Auxiliaries/Box/UnkeyedBox.swift",
"Auxiliaries/Box/ValueBox.swift",
"Auxiliaries/Element.swift",
"Auxiliaries/ElementAndAttribute.swift",
"Auxiliaries/ISO8601DateFormatter.swift",
"Auxiliaries/KeyedStorage.swift",
"Auxiliaries/Metatypes.swift",
"Auxiliaries/String+Extensions.swift",
"Auxiliaries/Utils.swift",
"Auxiliaries/XMLChoiceCodingKey.swift",
"Auxiliaries/XMLCoderElement.swift",
"Auxiliaries/XMLDocumentType.swift",
"Auxiliaries/XMLHeader.swift",
"Auxiliaries/XMLKey.swift",
"Auxiliaries/XMLStackParser.swift",
"Decoder/DecodingErrorExtension.swift",
"Decoder/DynamicNodeDecoding.swift",
"Decoder/SingleValueDecodingContainer.swift",
"Decoder/XMLChoiceDecodingContainer.swift",
"Decoder/XMLDecoder.swift",
"Decoder/XMLDecoderImplementation.swift",
"Decoder/XMLDecodingStorage.swift",
"Decoder/XMLKeyedDecodingContainer.swift",
"Decoder/XMLUnkeyedDecodingContainer.swift",
"Encoder/DynamicNodeEncoding.swift",
"Encoder/EncodingErrorExtension.swift",
"Encoder/SingleValueEncodingContainer.swift",
"Encoder/XMLChoiceEncodingContainer.swift",
"Encoder/XMLEncoder.swift",
"Encoder/XMLEncoderImplementation.swift",
"Encoder/XMLEncodingStorage.swift",
"Encoder/XMLKeyedEncodingContainer.swift",
"Encoder/XMLReferencingEncoder.swift",
"Encoder/XMLUnkeyedEncodingContainer.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.