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 JSONUtilities, reference 6.0.1 (e35b51), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 00:42:07 UTC.

Swift 6 data race errors: 5

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/lucianomarisi/JSONUtilities.git
Reference: 6.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/lucianomarisi/JSONUtilities
 * tag               6.0.1      -> FETCH_HEAD
HEAD is now at e35b516 Updated CHANGELOG for 6.0.1 release (#35)
Cloned https://github.com/lucianomarisi/JSONUtilities.git
Revision (git rev-parse @):
e35b5168eabae41000f4671ac350d5106db3589f
SUCCESS checkout https://github.com/lucianomarisi/JSONUtilities.git at 6.0.1
========================================
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": "jsonutilities",
      "name": "JSONUtilities",
      "url": "https://github.com/lucianomarisi/JSONUtilities.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/JSONUtilities",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/lucianomarisi/JSONUtilities.git
[1/1541] Fetching jsonutilities
Fetched https://github.com/lucianomarisi/JSONUtilities.git from cache (0.86s)
Creating working copy for https://github.com/lucianomarisi/JSONUtilities.git
Working copy of https://github.com/lucianomarisi/JSONUtilities.git resolved at 6.0.1 (e35b516)
warning: '.resolve-product-dependencies': dependency 'jsonutilities' 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/lucianomarisi/JSONUtilities.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/11] Compiling JSONUtilities JSONObjectConvertible.swift
[4/11] Compiling JSONUtilities JSONFileLoading.swift
[5/11] Compiling JSONUtilities Dictionary+KeyPath.swift
[6/11] Compiling JSONUtilities InvalidItemBehaviour.swift
[7/11] Compiling JSONUtilities JSONPrimitiveConvertible.swift
[8/11] Compiling JSONUtilities URL+JSONPrimitiveConvertible.swift
[9/11] Compiling JSONUtilities DecodingError.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:17:14: warning: stored property 'reason' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'DecodingError.Reason'; this is an error in the Swift 6 language mode
15 |
16 |   /// The reason the error occurred
17 |   public var reason: Reason
   |              `- warning: stored property 'reason' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'DecodingError.Reason'; this is an error in the Swift 6 language mode
18 |
19 |   /// dictionary in which the error occured
   :
63 |
64 |   /// The reason the error occurred
65 |   public enum Reason: String, CustomStringConvertible {
   |               `- note: consider making enum 'Reason' conform to the 'Sendable' protocol
66 |
67 |     /// Key was not found in a JSONDictionary
/Users/admin/builder/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:20:14: warning: stored property 'dictionary' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
18 |
19 |   /// dictionary in which the error occured
20 |   public let dictionary: [AnyHashable: Any]
   |              `- warning: stored property 'dictionary' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
21 |
22 |   /// array in which the error occurred
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
  |                       `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 |     public typealias Element = (key: Key, value: Value)
3 |     @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:23:14: warning: stored property 'array' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'JSONArray?' (aka 'Optional<Array<Any>>'); this is an error in the Swift 6 language mode
21 |
22 |   /// array in which the error occurred
23 |   public let array: JSONArray?
   |              `- warning: stored property 'array' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'JSONArray?' (aka 'Optional<Array<Any>>'); this is an error in the Swift 6 language mode
24 |
25 |   /// the keypath at which the error occurred
/Users/admin/builder/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:29:14: warning: stored property 'expectedType' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
27 |
28 |   /// the expected type that was being decoded while the error happened
29 |   public let expectedType: Any
   |              `- warning: stored property 'expectedType' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
30 |
31 |   /// the value that caused the error
/Users/admin/builder/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:32:14: warning: stored property 'value' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
30 |
31 |   /// the value that caused the error
32 |   public let value: Any
   |              `- warning: stored property 'value' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
33 |
34 |   public init(dictionary: [AnyHashable: Any], keyPath: StringProtocol, expectedType: Any.Type, value: Any, array: JSONArray? = nil, reason: Reason) {
[10/11] Emitting module JSONUtilities
/Users/admin/builder/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:17:14: warning: stored property 'reason' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'DecodingError.Reason'; this is an error in the Swift 6 language mode
15 |
16 |   /// The reason the error occurred
17 |   public var reason: Reason
   |              `- warning: stored property 'reason' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'DecodingError.Reason'; this is an error in the Swift 6 language mode
18 |
19 |   /// dictionary in which the error occured
   :
63 |
64 |   /// The reason the error occurred
65 |   public enum Reason: String, CustomStringConvertible {
   |               `- note: consider making enum 'Reason' conform to the 'Sendable' protocol
66 |
67 |     /// Key was not found in a JSONDictionary
/Users/admin/builder/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:20:14: warning: stored property 'dictionary' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
18 |
19 |   /// dictionary in which the error occured
20 |   public let dictionary: [AnyHashable: Any]
   |              `- warning: stored property 'dictionary' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
21 |
22 |   /// array in which the error occurred
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
  |                       `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 |     public typealias Element = (key: Key, value: Value)
3 |     @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:23:14: warning: stored property 'array' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'JSONArray?' (aka 'Optional<Array<Any>>'); this is an error in the Swift 6 language mode
21 |
22 |   /// array in which the error occurred
23 |   public let array: JSONArray?
   |              `- warning: stored property 'array' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'JSONArray?' (aka 'Optional<Array<Any>>'); this is an error in the Swift 6 language mode
24 |
25 |   /// the keypath at which the error occurred
/Users/admin/builder/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:29:14: warning: stored property 'expectedType' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
27 |
28 |   /// the expected type that was being decoded while the error happened
29 |   public let expectedType: Any
   |              `- warning: stored property 'expectedType' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
30 |
31 |   /// the value that caused the error
/Users/admin/builder/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:32:14: warning: stored property 'value' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
30 |
31 |   /// the value that caused the error
32 |   public let value: Any
   |              `- warning: stored property 'value' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
33 |
34 |   public init(dictionary: [AnyHashable: Any], keyPath: StringProtocol, expectedType: Any.Type, value: Any, array: JSONArray? = nil, reason: Reason) {
[11/11] Compiling JSONUtilities Dictionary+JSONKey.swift
Build complete! (12.00s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "JSONUtilities",
  "name" : "JSONUtilities",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "JSONUtilities",
      "targets" : [
        "JSONUtilities"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "JSONUtilitiesTests",
      "module_type" : "SwiftTarget",
      "name" : "JSONUtilitiesTests",
      "path" : "Tests/JSONUtilitiesTests",
      "sources" : [
        "Dictionary+KeyPathTests.swift",
        "FileLoadingTests.swift",
        "Helpers/Dictionary+Equatable.swift",
        "Helpers/XCTestCase+Additions.swift",
        "InlineDecodingTests.swift",
        "InvalidItemBehaviourTests.swift",
        "JSONDecodingTests.swift",
        "JSONPrimitiveConvertibleTests.swift",
        "Mocks/MockChild.swift",
        "Mocks/MockParent.swift",
        "Mocks/MockSimpleChild.swift",
        "Mocks/MockSimpleParent.swift",
        "TestFiles/JSONFiles.swift"
      ],
      "target_dependencies" : [
        "JSONUtilities"
      ],
      "type" : "test"
    },
    {
      "c99name" : "JSONUtilities",
      "module_type" : "SwiftTarget",
      "name" : "JSONUtilities",
      "path" : "Sources/JSONUtilities",
      "product_memberships" : [
        "JSONUtilities"
      ],
      "sources" : [
        "DecodingError.swift",
        "Dictionary+JSONKey.swift",
        "Dictionary+KeyPath.swift",
        "InvalidItemBehaviour.swift",
        "JSONFileLoading.swift",
        "JSONObjectConvertible.swift",
        "JSONPrimitiveConvertible.swift",
        "URL+JSONPrimitiveConvertible.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.