Build Information
Successful build of XMLParsing, reference master (4bdaa5
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 00:24:08 UTC.
Swift 6 data race errors: 3
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/dingwilson/XMLParsing.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dingwilson/XMLParsing
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 4bdaa51 Updated podspec to 0.0.2
Cloned https://github.com/dingwilson/XMLParsing.git
Revision (git rev-parse @):
4bdaa51c4871654f8cae31f6683e3eaa635b36df
SUCCESS checkout https://github.com/dingwilson/XMLParsing.git at master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "xmlparsing",
"name": "XMLParsing",
"url": "https://github.com/dingwilson/XMLParsing.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/XMLParsing",
"dependencies": [
]
}
]
}
Fetching https://github.com/dingwilson/XMLParsing.git
[1/319] Fetching xmlparsing
Fetched https://github.com/dingwilson/XMLParsing.git from cache (0.78s)
Creating working copy for https://github.com/dingwilson/XMLParsing.git
Working copy of https://github.com/dingwilson/XMLParsing.git resolved at master (4bdaa51)
warning: '.resolve-product-dependencies': dependency 'xmlparsing' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/dingwilson/XMLParsing.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/14] Compiling XMLParsing XMLKey.swift
[4/15] Compiling XMLParsing XMLEncoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLParsing/Encoder/XMLEncoder.swift:29: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
17 | // MARK: Options
18 | /// The formatting of the output XML data.
19 | public struct OutputFormatting : OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
20 | /// The format's default value.
21 | public let rawValue: UInt
:
27 |
28 | /// Produce human-readable XML with indented output.
29 | 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
30 |
31 | /// Produce XML with dictionary keys sorted in lexicographic order.
/Users/admin/builder/spi-builder-workspace/Sources/XMLParsing/Encoder/XMLEncoder.swift:33: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
17 | // MARK: Options
18 | /// The formatting of the output XML data.
19 | public struct OutputFormatting : OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
20 | /// The format's default value.
21 | public let rawValue: UInt
:
31 | /// Produce XML with dictionary keys sorted in lexicographic order.
32 | @available(OSX 10.13, iOS 11.0, watchOS 4.0, tvOS 11.0, *)
33 | 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
34 | }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/XMLParsing/ISO8601DateFormatter.swift:17:14: warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | // NOTE: This value is implicitly lazy and _must_ be lazy. We're compiled against the latest SDK (w/ ISO8601DateFormatter), but linked against whichever Foundation the user has. ISO8601DateFormatter might not exist, so we better not hit this code path on an older OS.
16 | @available(OSX 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | internal var _iso8601Formatter: ISO8601DateFormatter = {
| |- warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated 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
[5/15] Compiling XMLParsing XMLReferencingEncoder.swift
[6/15] Compiling XMLParsing ISO8601DateFormatter.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLParsing/ISO8601DateFormatter.swift:17:14: warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | // NOTE: This value is implicitly lazy and _must_ be lazy. We're compiled against the latest SDK (w/ ISO8601DateFormatter), but linked against whichever Foundation the user has. ISO8601DateFormatter might not exist, so we better not hit this code path on an older OS.
16 | @available(OSX 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | internal var _iso8601Formatter: ISO8601DateFormatter = {
| |- warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated 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
[7/15] Compiling XMLParsing EncodingErrorExtension.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLParsing/Encoder/EncodingErrorExtension.swift:21:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
19 | /// - parameter path: The path of `CodingKey`s taken to encode this value.
20 | /// - returns: An `EncodingError` with the appropriate path and debug description.
21 | internal static func _invalidFloatingPointValue<T : FloatingPoint>(_ value: T, at codingPath: [CodingKey]) -> EncodingError {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
22 | let valueDescription: String
23 | if value == T.infinity {
[8/15] Compiling XMLParsing XMLUnkeyedDecodingContainer.swift
[9/15] Compiling XMLParsing XMLEncodingStorage.swift
[10/15] Compiling XMLParsing DecodingErrorExtension.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLParsing/Decoder/DecodingErrorExtension.swift:22:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
20 | /// - parameter reality: The value that was encountered instead of the expected type.
21 | /// - returns: A `DecodingError` with the appropriate path and debug description.
22 | internal static func _typeMismatch(at path: [CodingKey], expectation: Any.Type, reality: Any) -> DecodingError {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
23 | let description = "Expected to decode \(expectation) but found \(_typeDescription(of: reality)) instead."
24 | return .typeMismatch(expectation, Context(codingPath: path, debugDescription: description))
/Users/admin/builder/spi-builder-workspace/Sources/XMLParsing/Decoder/DecodingErrorExtension.swift:32:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
30 | /// - returns: A string describing `value`.
31 | /// - precondition: `value` is one of the types below.
32 | internal static func _typeDescription(of value: Any) -> String {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
33 | if value is NSNull {
34 | return "a null value"
/Users/admin/builder/spi-builder-workspace/Sources/XMLParsing/ISO8601DateFormatter.swift:17:14: warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | // NOTE: This value is implicitly lazy and _must_ be lazy. We're compiled against the latest SDK (w/ ISO8601DateFormatter), but linked against whichever Foundation the user has. ISO8601DateFormatter might not exist, so we better not hit this code path on an older OS.
16 | @available(OSX 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | internal var _iso8601Formatter: ISO8601DateFormatter = {
| |- warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated 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/15] Compiling XMLParsing XMLDecoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/XMLParsing/Decoder/DecodingErrorExtension.swift:22:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
20 | /// - parameter reality: The value that was encountered instead of the expected type.
21 | /// - returns: A `DecodingError` with the appropriate path and debug description.
22 | internal static func _typeMismatch(at path: [CodingKey], expectation: Any.Type, reality: Any) -> DecodingError {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
23 | let description = "Expected to decode \(expectation) but found \(_typeDescription(of: reality)) instead."
24 | return .typeMismatch(expectation, Context(codingPath: path, debugDescription: description))
/Users/admin/builder/spi-builder-workspace/Sources/XMLParsing/Decoder/DecodingErrorExtension.swift:32:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
30 | /// - returns: A string describing `value`.
31 | /// - precondition: `value` is one of the types below.
32 | internal static func _typeDescription(of value: Any) -> String {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
33 | if value is NSNull {
34 | return "a null value"
/Users/admin/builder/spi-builder-workspace/Sources/XMLParsing/ISO8601DateFormatter.swift:17:14: warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | // NOTE: This value is implicitly lazy and _must_ be lazy. We're compiled against the latest SDK (w/ ISO8601DateFormatter), but linked against whichever Foundation the user has. ISO8601DateFormatter might not exist, so we better not hit this code path on an older OS.
16 | @available(OSX 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | internal var _iso8601Formatter: ISO8601DateFormatter = {
| |- warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated 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/15] Compiling XMLParsing XMLDecodingStorage.swift
[13/15] Compiling XMLParsing XMLKeyedDecodingContainer.swift
[14/15] Emitting module XMLParsing
/Users/admin/builder/spi-builder-workspace/Sources/XMLParsing/Decoder/DecodingErrorExtension.swift:22:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
20 | /// - parameter reality: The value that was encountered instead of the expected type.
21 | /// - returns: A `DecodingError` with the appropriate path and debug description.
22 | internal static func _typeMismatch(at path: [CodingKey], expectation: Any.Type, reality: Any) -> DecodingError {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
23 | let description = "Expected to decode \(expectation) but found \(_typeDescription(of: reality)) instead."
24 | return .typeMismatch(expectation, Context(codingPath: path, debugDescription: description))
/Users/admin/builder/spi-builder-workspace/Sources/XMLParsing/Decoder/DecodingErrorExtension.swift:32:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
30 | /// - returns: A string describing `value`.
31 | /// - precondition: `value` is one of the types below.
32 | internal static func _typeDescription(of value: Any) -> String {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
33 | if value is NSNull {
34 | return "a null value"
/Users/admin/builder/spi-builder-workspace/Sources/XMLParsing/Encoder/EncodingErrorExtension.swift:21:5: warning: 'internal' modifier is redundant for static method declared in an internal extension
19 | /// - parameter path: The path of `CodingKey`s taken to encode this value.
20 | /// - returns: An `EncodingError` with the appropriate path and debug description.
21 | internal static func _invalidFloatingPointValue<T : FloatingPoint>(_ value: T, at codingPath: [CodingKey]) -> EncodingError {
| `- warning: 'internal' modifier is redundant for static method declared in an internal extension
22 | let valueDescription: String
23 | if value == T.infinity {
/Users/admin/builder/spi-builder-workspace/Sources/XMLParsing/Encoder/XMLEncoder.swift:29: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
17 | // MARK: Options
18 | /// The formatting of the output XML data.
19 | public struct OutputFormatting : OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
20 | /// The format's default value.
21 | public let rawValue: UInt
:
27 |
28 | /// Produce human-readable XML with indented output.
29 | 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
30 |
31 | /// Produce XML with dictionary keys sorted in lexicographic order.
/Users/admin/builder/spi-builder-workspace/Sources/XMLParsing/Encoder/XMLEncoder.swift:33: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
17 | // MARK: Options
18 | /// The formatting of the output XML data.
19 | public struct OutputFormatting : OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
20 | /// The format's default value.
21 | public let rawValue: UInt
:
31 | /// Produce XML with dictionary keys sorted in lexicographic order.
32 | @available(OSX 10.13, iOS 11.0, watchOS 4.0, tvOS 11.0, *)
33 | 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
34 | }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/XMLParsing/ISO8601DateFormatter.swift:17:14: warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | // NOTE: This value is implicitly lazy and _must_ be lazy. We're compiled against the latest SDK (w/ ISO8601DateFormatter), but linked against whichever Foundation the user has. ISO8601DateFormatter might not exist, so we better not hit this code path on an older OS.
16 | @available(OSX 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | internal var _iso8601Formatter: ISO8601DateFormatter = {
| |- warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated 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/15] Compiling XMLParsing XMLStackParser.swift
Build complete! (15.18s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "XMLParsing",
"name" : "XMLParsing",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "XMLParsing",
"targets" : [
"XMLParsing"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "XMLParsingTests",
"module_type" : "SwiftTarget",
"name" : "XMLParsingTests",
"path" : "Tests/XMLParsingTests",
"sources" : [
"XMLParsingTests.swift"
],
"target_dependencies" : [
"XMLParsing"
],
"type" : "test"
},
{
"c99name" : "XMLParsing",
"module_type" : "SwiftTarget",
"name" : "XMLParsing",
"path" : "Sources/XMLParsing",
"product_memberships" : [
"XMLParsing"
],
"sources" : [
"Decoder/DecodingErrorExtension.swift",
"Decoder/XMLDecoder.swift",
"Decoder/XMLDecodingStorage.swift",
"Decoder/XMLKeyedDecodingContainer.swift",
"Decoder/XMLUnkeyedDecodingContainer.swift",
"Encoder/EncodingErrorExtension.swift",
"Encoder/XMLEncoder.swift",
"Encoder/XMLEncodingStorage.swift",
"Encoder/XMLReferencingEncoder.swift",
"ISO8601DateFormatter.swift",
"XMLKey.swift",
"XMLStackParser.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Done.