This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of MoreCodable with Swift 6.0 for Linux.

Swift 6 data race errors: 4

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tattn/MoreCodable.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/tattn/MoreCodable
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
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 master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/tattn/MoreCodable.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/19] Emitting module MoreCodable
/host/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] = [:]
/host/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 | }
/host/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 |     }
/host/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))
/host/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.
/host/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 |
/host/spi-builder-workspace/Sources/MoreJSONEncoder.swift:1020: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
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 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
1021 |     let formatter = DateFormatter()
1022 |     formatter.locale = Locale(identifier: "en_US_POSIX")
/host/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)
/host/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))
[4/21] Compiling MoreCodable URLQueryItemsDecoder.swift
/host/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)
/host/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))
[5/21] Compiling MoreCodable URLQueryItemsEncoder.swift
/host/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)
/host/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))
[6/21] Compiling MoreCodable MultiDateFormat.swift
[7/21] Compiling MoreCodable ObjectMerger.swift
[8/21] Compiling MoreCodable StringTo.swift
[9/21] Compiling MoreCodable URLQueryItem+.swift
[10/21] Compiling MoreCodable Failable.swift
[11/21] Compiling MoreCodable InternalFunction.swift
[12/21] Compiling MoreCodable DictionaryCachableEncoder.swift
/host/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] = [:]
/host/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 | }
/host/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 |     }
/host/spi-builder-workspace/Sources/MoreJSONEncoder.swift:1020: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
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 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
1021 |     let formatter = DateFormatter()
1022 |     formatter.locale = Locale(identifier: "en_US_POSIX")
/host/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))
[13/21] Compiling MoreCodable DictionaryDecoder.swift
/host/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] = [:]
/host/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 | }
/host/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 |     }
/host/spi-builder-workspace/Sources/MoreJSONEncoder.swift:1020: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
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 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
1021 |     let formatter = DateFormatter()
1022 |     formatter.locale = Locale(identifier: "en_US_POSIX")
/host/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))
[14/21] Compiling MoreCodable DictionaryEncoder.swift
/host/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] = [:]
/host/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 | }
/host/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 |     }
/host/spi-builder-workspace/Sources/MoreJSONEncoder.swift:1020: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
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 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
1021 |     let formatter = DateFormatter()
1022 |     formatter.locale = Locale(identifier: "en_US_POSIX")
/host/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))
[15/21] Compiling MoreCodable RuleBasedCodingKey.swift
[16/21] Compiling MoreCodable Storage.swift
[17/21] Compiling MoreCodable MoreJSONDecoder.swift
/host/spi-builder-workspace/Sources/MoreJSONEncoder.swift:1020: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
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 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
1021 |     let formatter = DateFormatter()
1022 |     formatter.locale = Locale(identifier: "en_US_POSIX")
/host/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.
/host/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 |
[18/21] Compiling MoreCodable MoreJSONEncoder.swift
/host/spi-builder-workspace/Sources/MoreJSONEncoder.swift:1020: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
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 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
1021 |     let formatter = DateFormatter()
1022 |     formatter.locale = Locale(identifier: "en_US_POSIX")
/host/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.
/host/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 |
[19/21] Compiling MoreCodable AnyCodingKey.swift
[20/21] Compiling MoreCodable CodableAny.swift
[21/21] Compiling MoreCodable CodableDictionary.swift
Build complete! (10.34s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "MoreCodable",
  "name" : "MoreCodable",
  "path" : "/host/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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.