The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of KeyedCodable, reference 3.1.2 (7e24e2), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 03:13:04 UTC.

Swift 6 data race errors: 2

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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dgrzeszczak/KeyedCodable.git
Reference: 3.1.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dgrzeszczak/KeyedCodable
 * tag               3.1.2      -> FETCH_HEAD
HEAD is now at 7e24e26 Merge pull request #7 from dgrzeszczak/feature/targetNameChange_Xcode12
Cloned https://github.com/dgrzeszczak/KeyedCodable.git
Revision (git rev-parse @):
7e24e26cf3a844ee0dbcdbcc8c78ed45f9570e69
SUCCESS checkout https://github.com/dgrzeszczak/KeyedCodable.git at 3.1.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": "keyedcodable",
      "name": "KeyedCodable",
      "url": "https://github.com/dgrzeszczak/KeyedCodable.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/KeyedCodable",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/dgrzeszczak/KeyedCodable.git
[1/482] Fetching keyedcodable
Fetched https://github.com/dgrzeszczak/KeyedCodable.git from cache (1.03s)
Creating working copy for https://github.com/dgrzeszczak/KeyedCodable.git
Working copy of https://github.com/dgrzeszczak/KeyedCodable.git resolved at 3.1.2 (7e24e26)
warning: '.resolve-product-dependencies': dependency 'keyedcodable' 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/dgrzeszczak/KeyedCodable.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "KeyedCodable",
  "name" : "KeyedCodable",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "KeyedCodable",
      "targets" : [
        "KeyedCodable"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "KeyedCodable",
      "module_type" : "SwiftTarget",
      "name" : "KeyedCodable",
      "path" : "KeyedCodable/Sources",
      "product_memberships" : [
        "KeyedCodable"
      ],
      "sources" : [
        "AnyKey.swift",
        "Helpers.swift",
        "KeyedConfig.swift",
        "KeyedJSONDecoder.swift",
        "KeyedJSONEncoder.swift",
        "KeyedKey.swift",
        "Transformers.swift",
        "ZeroDecodable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/11] Compiling KeyedCodable KeyedKey.swift
/Users/admin/builder/spi-builder-workspace/KeyedCodable/Sources/KeyedConfig.swift:13:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct KeyedConfig {
12 |
13 |     public static var `default` = KeyedConfig()
   |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- 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
14 |
15 |     public var keyOptions: KeyOptions
[4/11] Compiling KeyedCodable KeyedConfig.swift
/Users/admin/builder/spi-builder-workspace/KeyedCodable/Sources/KeyedConfig.swift:13:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct KeyedConfig {
12 |
13 |     public static var `default` = KeyedConfig()
   |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- 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
14 |
15 |     public var keyOptions: KeyOptions
[5/11] Compiling KeyedCodable Helpers.swift
/Users/admin/builder/spi-builder-workspace/KeyedCodable/Sources/KeyedConfig.swift:13:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct KeyedConfig {
12 |
13 |     public static var `default` = KeyedConfig()
   |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- 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
14 |
15 |     public var keyOptions: KeyOptions
[6/11] Compiling KeyedCodable AnyKey.swift
/Users/admin/builder/spi-builder-workspace/KeyedCodable/Sources/AnyKey.swift:16:16: warning: stored property 'options' of 'Sendable'-conforming struct 'AnyKey' has non-sendable type 'KeyOptions?'; this is an error in the Swift 6 language mode
14 |     public let intValue: Int?
15 |
16 |     public let options: KeyOptions?
   |                `- warning: stored property 'options' of 'Sendable'-conforming struct 'AnyKey' has non-sendable type 'KeyOptions?'; this is an error in the Swift 6 language mode
17 |
18 |     public init(stringValue: String, options: KeyOptions) {
/Users/admin/builder/spi-builder-workspace/KeyedCodable/Sources/KeyedKey.swift:30:15: note: consider making struct 'KeyOptions' conform to the 'Sendable' protocol
 28 | }
 29 |
 30 | public struct KeyOptions: Hashable {
    |               `- note: consider making struct 'KeyOptions' conform to the 'Sendable' protocol
 31 |     public var flat: Flat
 32 |     public var delimiter: Delimiter
[7/11] Emitting module KeyedCodable
/Users/admin/builder/spi-builder-workspace/KeyedCodable/Sources/AnyKey.swift:16:16: warning: stored property 'options' of 'Sendable'-conforming struct 'AnyKey' has non-sendable type 'KeyOptions?'; this is an error in the Swift 6 language mode
14 |     public let intValue: Int?
15 |
16 |     public let options: KeyOptions?
   |                `- warning: stored property 'options' of 'Sendable'-conforming struct 'AnyKey' has non-sendable type 'KeyOptions?'; this is an error in the Swift 6 language mode
17 |
18 |     public init(stringValue: String, options: KeyOptions) {
/Users/admin/builder/spi-builder-workspace/KeyedCodable/Sources/KeyedKey.swift:30:15: note: consider making struct 'KeyOptions' conform to the 'Sendable' protocol
 28 | }
 29 |
 30 | public struct KeyOptions: Hashable {
    |               `- note: consider making struct 'KeyOptions' conform to the 'Sendable' protocol
 31 |     public var flat: Flat
 32 |     public var delimiter: Delimiter
/Users/admin/builder/spi-builder-workspace/KeyedCodable/Sources/KeyedConfig.swift:13:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct KeyedConfig {
12 |
13 |     public static var `default` = KeyedConfig()
   |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- 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
14 |
15 |     public var keyOptions: KeyOptions
/Users/admin/builder/spi-builder-workspace/KeyedCodable/Sources/KeyedJSONDecoder.swift:11:12: warning: class 'KeyedJSONDecoder' must restate inherited '@unchecked Sendable' conformance
  9 | import Foundation
 10 |
 11 | open class KeyedJSONDecoder: JSONDecoder {
    |            `- warning: class 'KeyedJSONDecoder' must restate inherited '@unchecked Sendable' conformance
 12 |
 13 |     open override func decode<T : Decodable>(_ type: T.Type, from data: Data) throws -> T {
/Users/admin/builder/spi-builder-workspace/KeyedCodable/Sources/KeyedJSONEncoder.swift:11:12: warning: class 'KeyedJSONEncoder' must restate inherited '@unchecked Sendable' conformance
  9 | import Foundation
 10 |
 11 | open class KeyedJSONEncoder: JSONEncoder {
    |            `- warning: class 'KeyedJSONEncoder' must restate inherited '@unchecked Sendable' conformance
 12 |
 13 |     open override func encode<T>(_ value: T) throws -> Data where T : Encodable {
[8/11] Compiling KeyedCodable KeyedJSONDecoder.swift
/Users/admin/builder/spi-builder-workspace/KeyedCodable/Sources/KeyedJSONDecoder.swift:11:12: warning: class 'KeyedJSONDecoder' must restate inherited '@unchecked Sendable' conformance
  9 | import Foundation
 10 |
 11 | open class KeyedJSONDecoder: JSONDecoder {
    |            `- warning: class 'KeyedJSONDecoder' must restate inherited '@unchecked Sendable' conformance
 12 |
 13 |     open override func decode<T : Decodable>(_ type: T.Type, from data: Data) throws -> T {
/Users/admin/builder/spi-builder-workspace/KeyedCodable/Sources/KeyedConfig.swift:13:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct KeyedConfig {
12 |
13 |     public static var `default` = KeyedConfig()
   |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- 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
14 |
15 |     public var keyOptions: KeyOptions
[9/11] Compiling KeyedCodable ZeroDecodable.swift
[10/11] Compiling KeyedCodable KeyedJSONEncoder.swift
/Users/admin/builder/spi-builder-workspace/KeyedCodable/Sources/KeyedJSONEncoder.swift:11:12: warning: class 'KeyedJSONEncoder' must restate inherited '@unchecked Sendable' conformance
  9 | import Foundation
 10 |
 11 | open class KeyedJSONEncoder: JSONEncoder {
    |            `- warning: class 'KeyedJSONEncoder' must restate inherited '@unchecked Sendable' conformance
 12 |
 13 |     open override func encode<T>(_ value: T) throws -> Data where T : Encodable {
/Users/admin/builder/spi-builder-workspace/KeyedCodable/Sources/KeyedConfig.swift:13:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct KeyedConfig {
12 |
13 |     public static var `default` = KeyedConfig()
   |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- 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
14 |
15 |     public var keyOptions: KeyOptions
[11/11] Compiling KeyedCodable Transformers.swift
Build complete! (11.73s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "KeyedCodable",
  "name" : "KeyedCodable",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "KeyedCodable",
      "targets" : [
        "KeyedCodable"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "KeyedCodable",
      "module_type" : "SwiftTarget",
      "name" : "KeyedCodable",
      "path" : "KeyedCodable/Sources",
      "product_memberships" : [
        "KeyedCodable"
      ],
      "sources" : [
        "AnyKey.swift",
        "Helpers.swift",
        "KeyedConfig.swift",
        "KeyedJSONDecoder.swift",
        "KeyedJSONEncoder.swift",
        "KeyedKey.swift",
        "Transformers.swift",
        "ZeroDecodable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.