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 Himotoki, reference master (58736b), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 13:10:19 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/ikesyo/Himotoki.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ikesyo/Himotoki
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 58736bd Release 4.0.0
Submodule path 'Carthage/Checkouts/xcconfigs': checked out '8ed0ba267f6fb0b53343e11aad067314438a781c'
Submodule 'Carthage/Checkouts/xcconfigs' (https://github.com/jspahrsummers/xcconfigs.git) registered for path 'Carthage/Checkouts/xcconfigs'
Cloning into '/Users/admin/builder/spi-builder-workspace/Carthage/Checkouts/xcconfigs'...
Cloned https://github.com/ikesyo/Himotoki.git
Revision (git rev-parse @):
58736bd328e218b4080b034d19211f0263e29b45
SUCCESS checkout https://github.com/ikesyo/Himotoki.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": "himotoki",
      "name": "Himotoki",
      "url": "https://github.com/ikesyo/Himotoki.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Himotoki",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/ikesyo/Himotoki.git
[1/2461] Fetching himotoki
Fetched https://github.com/ikesyo/Himotoki.git from cache (0.96s)
Creating working copy for https://github.com/ikesyo/Himotoki.git
Working copy of https://github.com/ikesyo/Himotoki.git resolved at master (58736bd)
warning: '.resolve-product-dependencies': dependency 'himotoki' 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/ikesyo/Himotoki.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/13] Compiling Himotoki Transformer.swift
[4/14] Compiling Himotoki RawRepresentable.swift
/Users/admin/builder/spi-builder-workspace/Sources/KeyPath.swift:20:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
   :
18 |     }
19 |
20 |     public static let empty: KeyPath = KeyPath([])
   |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'empty' 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
21 | }
22 |
[5/14] Compiling Himotoki KeyPath.swift
/Users/admin/builder/spi-builder-workspace/Sources/KeyPath.swift:20:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
   :
18 |     }
19 |
20 |     public static let empty: KeyPath = KeyPath([])
   |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'empty' 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
21 | }
22 |
[6/14] Compiling Himotoki decode.swift
[7/14] Compiling Himotoki NSNumber.swift
[8/14] Compiling Himotoki Operators.swift
[9/14] Compiling Himotoki StandardLib.swift
/Users/admin/builder/spi-builder-workspace/Sources/KeyPath.swift:20:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
   :
18 |     }
19 |
20 |     public static let empty: KeyPath = KeyPath([])
   |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'empty' 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
21 | }
22 |
[10/14] Compiling Himotoki Casting.swift
/Users/admin/builder/spi-builder-workspace/Sources/KeyPath.swift:20:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
   :
18 |     }
19 |
20 |     public static let empty: KeyPath = KeyPath([])
   |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'empty' 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
21 | }
22 |
[11/14] Compiling Himotoki Decodable.swift
/Users/admin/builder/spi-builder-workspace/Sources/KeyPath.swift:20:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
   :
18 |     }
19 |
20 |     public static let empty: KeyPath = KeyPath([])
   |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'empty' 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
21 | }
22 |
[12/14] Compiling Himotoki DecodeError.swift
/Users/admin/builder/spi-builder-workspace/Sources/DecodeError.swift:10:10: warning: associated value 'missingKeyPath' of 'Sendable'-conforming enum 'DecodeError' has non-sendable type 'KeyPath'; this is an error in the Swift 6 language mode
 8 |
 9 | public enum DecodeError: Error, Hashable {
10 |     case missingKeyPath(KeyPath)
   |          `- warning: associated value 'missingKeyPath' of 'Sendable'-conforming enum 'DecodeError' has non-sendable type 'KeyPath'; this is an error in the Swift 6 language mode
11 |     case typeMismatch(expected: String, actual: String, keyPath: KeyPath)
12 |     case custom(String)
/Users/admin/builder/spi-builder-workspace/Sources/KeyPath.swift:9:15: note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
/Users/admin/builder/spi-builder-workspace/Sources/DecodeError.swift:11:10: warning: associated value 'typeMismatch(expected:actual:keyPath:)' of 'Sendable'-conforming enum 'DecodeError' has non-sendable type 'KeyPath'; this is an error in the Swift 6 language mode
 9 | public enum DecodeError: Error, Hashable {
10 |     case missingKeyPath(KeyPath)
11 |     case typeMismatch(expected: String, actual: String, keyPath: KeyPath)
   |          `- warning: associated value 'typeMismatch(expected:actual:keyPath:)' of 'Sendable'-conforming enum 'DecodeError' has non-sendable type 'KeyPath'; this is an error in the Swift 6 language mode
12 |     case custom(String)
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/KeyPath.swift:9:15: note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
/Users/admin/builder/spi-builder-workspace/Sources/KeyPath.swift:20:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
   :
18 |     }
19 |
20 |     public static let empty: KeyPath = KeyPath([])
   |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'empty' 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
21 | }
22 |
[13/14] Emitting module Himotoki
/Users/admin/builder/spi-builder-workspace/Sources/DecodeError.swift:10:10: warning: associated value 'missingKeyPath' of 'Sendable'-conforming enum 'DecodeError' has non-sendable type 'KeyPath'; this is an error in the Swift 6 language mode
 8 |
 9 | public enum DecodeError: Error, Hashable {
10 |     case missingKeyPath(KeyPath)
   |          `- warning: associated value 'missingKeyPath' of 'Sendable'-conforming enum 'DecodeError' has non-sendable type 'KeyPath'; this is an error in the Swift 6 language mode
11 |     case typeMismatch(expected: String, actual: String, keyPath: KeyPath)
12 |     case custom(String)
/Users/admin/builder/spi-builder-workspace/Sources/KeyPath.swift:9:15: note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
/Users/admin/builder/spi-builder-workspace/Sources/DecodeError.swift:11:10: warning: associated value 'typeMismatch(expected:actual:keyPath:)' of 'Sendable'-conforming enum 'DecodeError' has non-sendable type 'KeyPath'; this is an error in the Swift 6 language mode
 9 | public enum DecodeError: Error, Hashable {
10 |     case missingKeyPath(KeyPath)
11 |     case typeMismatch(expected: String, actual: String, keyPath: KeyPath)
   |          `- warning: associated value 'typeMismatch(expected:actual:keyPath:)' of 'Sendable'-conforming enum 'DecodeError' has non-sendable type 'KeyPath'; this is an error in the Swift 6 language mode
12 |     case custom(String)
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/KeyPath.swift:9:15: note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
/Users/admin/builder/spi-builder-workspace/Sources/KeyPath.swift:20:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
   :
18 |     }
19 |
20 |     public static let empty: KeyPath = KeyPath([])
   |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'empty' 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
21 | }
22 |
[14/14] Compiling Himotoki Extractor.swift
Build complete! (11.51s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Himotoki",
  "name" : "Himotoki",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.10"
    },
    {
      "name" : "ios",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "9.0"
    },
    {
      "name" : "watchos",
      "version" : "2.0"
    }
  ],
  "products" : [
    {
      "name" : "Himotoki",
      "targets" : [
        "Himotoki"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "HimotokiTests",
      "module_type" : "SwiftTarget",
      "name" : "HimotokiTests",
      "path" : "Tests/HimotokiTests",
      "sources" : [
        "DecodableTest.swift",
        "DecodeErrorTest.swift",
        "DecodeWithRootKeyPathTest.swift",
        "KeyPathTest.swift",
        "NestedObjectParsingTest.swift",
        "RawRepresentableTest.swift",
        "TransformerTest.swift"
      ],
      "target_dependencies" : [
        "Himotoki"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Himotoki",
      "module_type" : "SwiftTarget",
      "name" : "Himotoki",
      "path" : "Sources",
      "product_memberships" : [
        "Himotoki"
      ],
      "sources" : [
        "Casting.swift",
        "Decodable.swift",
        "DecodeError.swift",
        "Extractor.swift",
        "KeyPath.swift",
        "NSNumber.swift",
        "Operators.swift",
        "RawRepresentable.swift",
        "StandardLib.swift",
        "Transformer.swift",
        "decode.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.