Build Information
Successful build of MoreCodable, reference 1.3.2 (95e3cc
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 22:17:42 UTC.
Swift 6 data race errors: 4
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/tattn/MoreCodable.git
Reference: 1.3.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/tattn/MoreCodable
* tag 1.3.2 -> FETCH_HEAD
HEAD is now at 95e3cc7 Update build settings
Cloned https://github.com/tattn/MoreCodable.git
Revision (git rev-parse @):
95e3cc73810e1958a81a01d189a318828b14e44f
SUCCESS checkout https://github.com/tattn/MoreCodable.git at 1.3.2
========================================
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": "morecodable",
"name": "MoreCodable",
"url": "https://github.com/tattn/MoreCodable.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/MoreCodable",
"dependencies": [
]
}
]
}
Fetching https://github.com/tattn/MoreCodable.git
[1/345] Fetching morecodable
Fetched https://github.com/tattn/MoreCodable.git from cache (0.75s)
Creating working copy for https://github.com/tattn/MoreCodable.git
Working copy of https://github.com/tattn/MoreCodable.git resolved at 1.3.2 (95e3cc7)
warning: '.resolve-product-dependencies': dependency 'morecodable' 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/tattn/MoreCodable.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/20] Compiling MoreCodable StringTo.swift
[4/20] Compiling MoreCodable URLQueryItem+.swift
[5/21] Compiling MoreCodable URLQueryItemsDecoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/URLQueryItemsDecoder.swift:71:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
69 |
70 | extension URLQueryItemsDecoder {
71 | open func decode<T: Decodable>(_ type: T.Type, from container: [URLQueryItem]) throws -> T {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
72 | storage.push(container: container)
73 | return try T(from: self)
[6/21] Compiling MoreCodable MultiDateFormat.swift
[7/21] Compiling MoreCodable ObjectMerger.swift
[8/21] Compiling MoreCodable AnyCodingKey.swift
[9/21] Compiling MoreCodable CodableAny.swift
[10/21] Compiling MoreCodable DictionaryDecoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/DictionaryDecoder.swift:112:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
110 |
111 | extension DictionaryDecoder {
112 | open func decode<T : Decodable>(_ type: T.Type, from container: Any) throws -> T {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
113 | return try unbox(container, as: T.self)
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/DictionaryDecoder.swift:61:9: warning: switch covers known cases, but 'JSONDecoder.DateDecodingStrategy' may have additional unknown values, possibly added in future versions; this is an error in the Swift 6 language mode
59 |
60 | private func unwrapDate() throws -> Date {
61 | switch dateDecodingStrategy {
| |- warning: switch covers known cases, but 'JSONDecoder.DateDecodingStrategy' may have additional unknown values, possibly added in future versions; this is an error in the Swift 6 language mode
| `- note: handle unknown values using "@unknown default"
62 | case .deferredToDate:
63 | return try Date(from: self)
/Users/admin/builder/spi-builder-workspace/Sources/MoreJSONEncoder.swift:1020:5: 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
1018 |
1019 | // 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.
1020 | var _iso8601Formatter: DateFormatter = {
| |- 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
1021 | let formatter = DateFormatter()
1022 | formatter.locale = Locale(identifier: "en_US_POSIX")
/Users/admin/builder/spi-builder-workspace/Sources/DictionaryEncoder.swift:67:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
65 |
66 | extension DictionaryEncoder {
67 | open func encode<T: Encodable>(_ value: T) throws -> [String: Any] {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
68 | do {
69 | return try castOrThrow([String: Any].self, try box(value))
/Users/admin/builder/spi-builder-workspace/Sources/DictionaryEncoder.swift:42:9: warning: switch covers known cases, but 'JSONEncoder.DateEncodingStrategy' may have additional unknown values, possibly added in future versions; this is an error in the Swift 6 language mode
40 |
41 | func wrapDate(_ date: Date) throws -> Any {
42 | switch dateEncodingStrategy {
| |- warning: switch covers known cases, but 'JSONEncoder.DateEncodingStrategy' may have additional unknown values, possibly added in future versions; this is an error in the Swift 6 language mode
| `- note: handle unknown values using "@unknown default"
43 | case .deferredToDate:
44 | try date.encode(to: self)
[11/21] Compiling MoreCodable DictionaryEncoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/DictionaryDecoder.swift:112:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
110 |
111 | extension DictionaryDecoder {
112 | open func decode<T : Decodable>(_ type: T.Type, from container: Any) throws -> T {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
113 | return try unbox(container, as: T.self)
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/DictionaryDecoder.swift:61:9: warning: switch covers known cases, but 'JSONDecoder.DateDecodingStrategy' may have additional unknown values, possibly added in future versions; this is an error in the Swift 6 language mode
59 |
60 | private func unwrapDate() throws -> Date {
61 | switch dateDecodingStrategy {
| |- warning: switch covers known cases, but 'JSONDecoder.DateDecodingStrategy' may have additional unknown values, possibly added in future versions; this is an error in the Swift 6 language mode
| `- note: handle unknown values using "@unknown default"
62 | case .deferredToDate:
63 | return try Date(from: self)
/Users/admin/builder/spi-builder-workspace/Sources/MoreJSONEncoder.swift:1020:5: 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
1018 |
1019 | // 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.
1020 | var _iso8601Formatter: DateFormatter = {
| |- 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
1021 | let formatter = DateFormatter()
1022 | formatter.locale = Locale(identifier: "en_US_POSIX")
/Users/admin/builder/spi-builder-workspace/Sources/DictionaryEncoder.swift:67:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
65 |
66 | extension DictionaryEncoder {
67 | open func encode<T: Encodable>(_ value: T) throws -> [String: Any] {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
68 | do {
69 | return try castOrThrow([String: Any].self, try box(value))
/Users/admin/builder/spi-builder-workspace/Sources/DictionaryEncoder.swift:42:9: warning: switch covers known cases, but 'JSONEncoder.DateEncodingStrategy' may have additional unknown values, possibly added in future versions; this is an error in the Swift 6 language mode
40 |
41 | func wrapDate(_ date: Date) throws -> Any {
42 | switch dateEncodingStrategy {
| |- warning: switch covers known cases, but 'JSONEncoder.DateEncodingStrategy' may have additional unknown values, possibly added in future versions; this is an error in the Swift 6 language mode
| `- note: handle unknown values using "@unknown default"
43 | case .deferredToDate:
44 | try date.encode(to: self)
[12/21] Compiling MoreCodable Failable.swift
[13/21] Compiling MoreCodable InternalFunction.swift
[14/21] Compiling MoreCodable CodableDictionary.swift
/Users/admin/builder/spi-builder-workspace/Sources/DictionaryCachableEncoder.swift:39:27: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DictionaryCachableEncoder.DefaultCache' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension DictionaryCachableEncoder {
38 | open class DefaultCache: DictionaryCachableCacheProtocol {
| `- note: class 'DefaultCache' does not conform to the 'Sendable' protocol
39 | public static let shared = DefaultCache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DictionaryCachableEncoder.DefaultCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
40 |
41 | open var storage: [AnyHashable: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/DictionaryCachableEncoder.swift:33:50: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
31 | // MARK: cache related
32 |
33 | public protocol DictionaryCachableCacheProtocol: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
34 | var storage: [AnyHashable: Any] { get set }
35 | }
[15/21] Compiling MoreCodable DictionaryCachableEncoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/DictionaryCachableEncoder.swift:39:27: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DictionaryCachableEncoder.DefaultCache' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension DictionaryCachableEncoder {
38 | open class DefaultCache: DictionaryCachableCacheProtocol {
| `- note: class 'DefaultCache' does not conform to the 'Sendable' protocol
39 | public static let shared = DefaultCache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DictionaryCachableEncoder.DefaultCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
40 |
41 | open var storage: [AnyHashable: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/DictionaryCachableEncoder.swift:33:50: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
31 | // MARK: cache related
32 |
33 | public protocol DictionaryCachableCacheProtocol: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
34 | var storage: [AnyHashable: Any] { get set }
35 | }
[16/21] Compiling MoreCodable RuleBasedCodingKey.swift
[17/21] Compiling MoreCodable Storage.swift
[18/21] Emitting module MoreCodable
/Users/admin/builder/spi-builder-workspace/Sources/DictionaryCachableEncoder.swift:39:27: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DictionaryCachableEncoder.DefaultCache' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension DictionaryCachableEncoder {
38 | open class DefaultCache: DictionaryCachableCacheProtocol {
| `- note: class 'DefaultCache' does not conform to the 'Sendable' protocol
39 | public static let shared = DefaultCache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DictionaryCachableEncoder.DefaultCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
40 |
41 | open var storage: [AnyHashable: Any] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/DictionaryCachableEncoder.swift:33:50: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
31 | // MARK: cache related
32 |
33 | public protocol DictionaryCachableCacheProtocol: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
34 | var storage: [AnyHashable: Any] { get set }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/DictionaryDecoder.swift:112:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
110 |
111 | extension DictionaryDecoder {
112 | open func decode<T : Decodable>(_ type: T.Type, from container: Any) throws -> T {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
113 | return try unbox(container, as: T.self)
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/DictionaryEncoder.swift:67:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
65 |
66 | extension DictionaryEncoder {
67 | open func encode<T: Encodable>(_ value: T) throws -> [String: Any] {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
68 | do {
69 | return try castOrThrow([String: Any].self, try box(value))
/Users/admin/builder/spi-builder-workspace/Sources/MoreJSONEncoder.swift:41:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'MoreJSONEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The formatting of the output JSON data.
31 | public struct OutputFormatting : OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
32 | /// The format's default value.
33 | public let rawValue: UInt
:
39 |
40 | /// Produce human-readable JSON with indented output.
41 | public static let prettyPrinted = OutputFormatting(rawValue: 1 << 0)
| |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'MoreJSONEncoder.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
42 |
43 | /// Produce JSON with dictionary keys sorted in lexicographic order.
/Users/admin/builder/spi-builder-workspace/Sources/MoreJSONEncoder.swift:45:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'MoreJSONEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The formatting of the output JSON data.
31 | public struct OutputFormatting : OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
32 | /// The format's default value.
33 | public let rawValue: UInt
:
43 | /// Produce JSON with dictionary keys sorted in lexicographic order.
44 | @available(macOS 10.13, iOS 11.0, watchOS 4.0, tvOS 11.0, *)
45 | public static let sortedKeys = OutputFormatting(rawValue: 1 << 1)
| |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'MoreJSONEncoder.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
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/Sources/MoreJSONEncoder.swift:1020:5: 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
1018 |
1019 | // 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.
1020 | var _iso8601Formatter: DateFormatter = {
| |- 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
1021 | let formatter = DateFormatter()
1022 | formatter.locale = Locale(identifier: "en_US_POSIX")
/Users/admin/builder/spi-builder-workspace/Sources/URLQueryItemsDecoder.swift:71:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
69 |
70 | extension URLQueryItemsDecoder {
71 | open func decode<T: Decodable>(_ type: T.Type, from container: [URLQueryItem]) throws -> T {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
72 | storage.push(container: container)
73 | return try T(from: self)
/Users/admin/builder/spi-builder-workspace/Sources/URLQueryItemsEncoder.swift:37:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
35 |
36 | extension URLQueryItemsEncoder {
37 | open func encode<T: Encodable>(_ value: T) throws -> [URLQueryItem] {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
38 | do {
39 | return try castOrThrow([URLQueryItem].self, try box(value))
[19/21] Compiling MoreCodable MoreJSONDecoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/MoreJSONEncoder.swift:1020:5: 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
1018 |
1019 | // 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.
1020 | var _iso8601Formatter: DateFormatter = {
| |- 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
1021 | let formatter = DateFormatter()
1022 | formatter.locale = Locale(identifier: "en_US_POSIX")
/Users/admin/builder/spi-builder-workspace/Sources/MoreJSONEncoder.swift:41:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'MoreJSONEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The formatting of the output JSON data.
31 | public struct OutputFormatting : OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
32 | /// The format's default value.
33 | public let rawValue: UInt
:
39 |
40 | /// Produce human-readable JSON with indented output.
41 | public static let prettyPrinted = OutputFormatting(rawValue: 1 << 0)
| |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'MoreJSONEncoder.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
42 |
43 | /// Produce JSON with dictionary keys sorted in lexicographic order.
/Users/admin/builder/spi-builder-workspace/Sources/MoreJSONEncoder.swift:45:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'MoreJSONEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The formatting of the output JSON data.
31 | public struct OutputFormatting : OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
32 | /// The format's default value.
33 | public let rawValue: UInt
:
43 | /// Produce JSON with dictionary keys sorted in lexicographic order.
44 | @available(macOS 10.13, iOS 11.0, watchOS 4.0, tvOS 11.0, *)
45 | public static let sortedKeys = OutputFormatting(rawValue: 1 << 1)
| |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'MoreJSONEncoder.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
46 | }
47 |
[20/21] Compiling MoreCodable MoreJSONEncoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/MoreJSONEncoder.swift:1020:5: 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
1018 |
1019 | // 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.
1020 | var _iso8601Formatter: DateFormatter = {
| |- 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
1021 | let formatter = DateFormatter()
1022 | formatter.locale = Locale(identifier: "en_US_POSIX")
/Users/admin/builder/spi-builder-workspace/Sources/MoreJSONEncoder.swift:41:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'MoreJSONEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The formatting of the output JSON data.
31 | public struct OutputFormatting : OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
32 | /// The format's default value.
33 | public let rawValue: UInt
:
39 |
40 | /// Produce human-readable JSON with indented output.
41 | public static let prettyPrinted = OutputFormatting(rawValue: 1 << 0)
| |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'MoreJSONEncoder.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
42 |
43 | /// Produce JSON with dictionary keys sorted in lexicographic order.
/Users/admin/builder/spi-builder-workspace/Sources/MoreJSONEncoder.swift:45:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'MoreJSONEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The formatting of the output JSON data.
31 | public struct OutputFormatting : OptionSet {
| `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
32 | /// The format's default value.
33 | public let rawValue: UInt
:
43 | /// Produce JSON with dictionary keys sorted in lexicographic order.
44 | @available(macOS 10.13, iOS 11.0, watchOS 4.0, tvOS 11.0, *)
45 | public static let sortedKeys = OutputFormatting(rawValue: 1 << 1)
| |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'MoreJSONEncoder.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
46 | }
47 |
[21/21] Compiling MoreCodable URLQueryItemsEncoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/URLQueryItemsEncoder.swift:37:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
35 |
36 | extension URLQueryItemsEncoder {
37 | open func encode<T: Encodable>(_ value: T) throws -> [URLQueryItem] {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
38 | do {
39 | return try castOrThrow([URLQueryItem].self, try box(value))
Build complete! (13.51s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "MoreCodable",
"name" : "MoreCodable",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.12"
},
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "tvos",
"version" : "10.0"
},
{
"name" : "watchos",
"version" : "3.0"
}
],
"products" : [
{
"name" : "MoreCodable",
"targets" : [
"MoreCodable"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "MoreCodableTests",
"module_type" : "SwiftTarget",
"name" : "MoreCodableTests",
"path" : "Tests",
"sources" : [
"CodableAnyTests.swift",
"CodableDictionaryTests.swift",
"DictionaryCachableEncoderTests.swift",
"DictionaryDecoderTests.swift",
"DictionaryEncoderTests.swift",
"FailableTests.swift",
"MoreJSONDecoderTests.swift",
"MoreJSONEncoderTests.swift",
"ObjectMergerTests.swift",
"RuleBasedCodingKeyTests.swift",
"StringToTests.swift",
"URLQueryItemsDecoderTests.swift",
"URLQueryItemsEncoderTests.swift"
],
"target_dependencies" : [
"MoreCodable"
],
"type" : "test"
},
{
"c99name" : "MoreCodable",
"module_type" : "SwiftTarget",
"name" : "MoreCodable",
"path" : "Sources",
"product_memberships" : [
"MoreCodable"
],
"sources" : [
"AnyCodingKey.swift",
"CodableAny.swift",
"CodableDictionary.swift",
"DictionaryCachableEncoder.swift",
"DictionaryDecoder.swift",
"DictionaryEncoder.swift",
"Failable.swift",
"InternalFunction.swift",
"MoreJSONDecoder.swift",
"MoreJSONEncoder.swift",
"MultiDateFormat.swift",
"ObjectMerger.swift",
"RuleBasedCodingKey.swift",
"Storage.swift",
"StringTo.swift",
"URLQueryItem+.swift",
"URLQueryItemsDecoder.swift",
"URLQueryItemsEncoder.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.