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 MemoryLeakTestKit, reference master (11a1ca), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 18:51:59 UTC.

Swift 6 data race errors: 1

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/Kuniwak/MemoryLeakTestKit.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Kuniwak/MemoryLeakTestKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 11a1ca0 Merge pull request #5 from Kuniwak/cocoapods
Cloned https://github.com/Kuniwak/MemoryLeakTestKit.git
Revision (git rev-parse @):
11a1ca08305f5da106327d6e42bce2de431bcf96
SUCCESS checkout https://github.com/Kuniwak/MemoryLeakTestKit.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": "memoryleaktestkit",
      "name": "MemoryLeakTestKit",
      "url": "https://github.com/Kuniwak/MemoryLeakTestKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/MemoryLeakTestKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Kuniwak/MemoryLeakTestKit.git
[1/133] Fetching memoryleaktestkit
Fetched https://github.com/Kuniwak/MemoryLeakTestKit.git from cache (0.70s)
Creating working copy for https://github.com/Kuniwak/MemoryLeakTestKit.git
Working copy of https://github.com/Kuniwak/MemoryLeakTestKit.git resolved at master (11a1ca0)
warning: '.resolve-product-dependencies': dependency 'memoryleaktestkit' 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/Kuniwak/MemoryLeakTestKit.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/21] Compiling MemoryLeakTestKit Types.swift
[4/21] Compiling MemoryLeakTestKit Weak.swift
[5/22] Compiling MemoryLeakTestKit WeakOrNotReference.swift
[6/22] Compiling MemoryLeakTestKit ReferencePathComponent.swift
[7/22] Compiling MemoryLeakTestKit ReferencePathNormalization.swift
[8/22] Compiling MemoryLeakTestKit ReferenceID.swift
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLeakTestKit/ReferenceID.swift:44:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ReferenceID' to 'Hashable' by implementing 'hash(into:)' instead
42 |
43 | extension ReferenceID: Hashable {
44 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ReferenceID' to 'Hashable' by implementing 'hash(into:)' instead
45 |         switch self {
46 |         case .anyReferenceType(name: _, objectIdentifier: let objectIdentifier):
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLeakTestKit/ReferencePath.swift:31:23: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'ReferencePath' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct ReferencePath: Hashable {
   |               `- note: consider making struct 'ReferencePath' conform to the 'Sendable' protocol
 2 |     public let components: [ReferencePathComponent]
 3 |
   :
29 |
30 |
31 |     public static let root = ReferencePath(components: [])
   |                       |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'ReferencePath' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'root' 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
32 | }
33 |
[9/22] Compiling MemoryLeakTestKit ReferencePath.swift
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLeakTestKit/ReferenceID.swift:44:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ReferenceID' to 'Hashable' by implementing 'hash(into:)' instead
42 |
43 | extension ReferenceID: Hashable {
44 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ReferenceID' to 'Hashable' by implementing 'hash(into:)' instead
45 |         switch self {
46 |         case .anyReferenceType(name: _, objectIdentifier: let objectIdentifier):
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLeakTestKit/ReferencePath.swift:31:23: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'ReferencePath' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct ReferencePath: Hashable {
   |               `- note: consider making struct 'ReferencePath' conform to the 'Sendable' protocol
 2 |     public let components: [ReferencePathComponent]
 3 |
   :
29 |
30 |
31 |     public static let root = ReferencePath(components: [])
   |                       |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'ReferencePath' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'root' 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
32 | }
33 |
[10/22] Compiling MemoryLeakTestKit PrettyPrint.swift
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLeakTestKit/Reference.swift:53:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Reference' to 'Hashable' by implementing 'hash(into:)' instead
51 |
52 | extension Reference: Hashable {
53 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Reference' to 'Hashable' by implementing 'hash(into:)' instead
54 |         return self.id.hashValue
55 |     }
[11/22] Compiling MemoryLeakTestKit Reference.swift
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLeakTestKit/Reference.swift:53:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Reference' to 'Hashable' by implementing 'hash(into:)' instead
51 |
52 | extension Reference: Hashable {
53 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Reference' to 'Hashable' by implementing 'hash(into:)' instead
54 |         return self.id.hashValue
55 |     }
[12/22] Compiling MemoryLeakTestKit MemoryLeakReport.swift
[13/22] Compiling MemoryLeakTestKit NotNormalizedPathComponent.swift
[14/22] Compiling MemoryLeakTestKit ObjectTraverser.swift
[15/22] Compiling MemoryLeakTestKit PrefixedArray.generated.swift
[16/22] Compiling MemoryLeakTestKit Arrays.swift
[17/22] Compiling MemoryLeakTestKit CircularReferencePath.swift
[18/22] Compiling MemoryLeakTestKit IdentifiableReferencePath.swift
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLeakTestKit/IdentifiableReferencePathComponent.swift:7:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IdentifiableReferencePathComponent' to 'Hashable' by implementing 'hash(into:)' instead
 5 |
 6 |
 7 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IdentifiableReferencePathComponent' to 'Hashable' by implementing 'hash(into:)' instead
 8 |         return self.id.hashValue
 9 |     }
[19/22] Compiling MemoryLeakTestKit IdentifiableReferencePathComponent.swift
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLeakTestKit/IdentifiableReferencePathComponent.swift:7:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IdentifiableReferencePathComponent' to 'Hashable' by implementing 'hash(into:)' instead
 5 |
 6 |
 7 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IdentifiableReferencePathComponent' to 'Hashable' by implementing 'hash(into:)' instead
 8 |         return self.id.hashValue
 9 |     }
[20/22] Compiling MemoryLeakTestKit LeakedObject.swift
[21/22] Compiling MemoryLeakTestKit MemoryLeakDetector.swift
[22/22] Emitting module MemoryLeakTestKit
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLeakTestKit/IdentifiableReferencePathComponent.swift:7:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IdentifiableReferencePathComponent' to 'Hashable' by implementing 'hash(into:)' instead
 5 |
 6 |
 7 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IdentifiableReferencePathComponent' to 'Hashable' by implementing 'hash(into:)' instead
 8 |         return self.id.hashValue
 9 |     }
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLeakTestKit/Reference.swift:53:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Reference' to 'Hashable' by implementing 'hash(into:)' instead
51 |
52 | extension Reference: Hashable {
53 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Reference' to 'Hashable' by implementing 'hash(into:)' instead
54 |         return self.id.hashValue
55 |     }
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLeakTestKit/ReferenceID.swift:44:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ReferenceID' to 'Hashable' by implementing 'hash(into:)' instead
42 |
43 | extension ReferenceID: Hashable {
44 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ReferenceID' to 'Hashable' by implementing 'hash(into:)' instead
45 |         switch self {
46 |         case .anyReferenceType(name: _, objectIdentifier: let objectIdentifier):
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLeakTestKit/ReferencePath.swift:31:23: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'ReferencePath' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct ReferencePath: Hashable {
   |               `- note: consider making struct 'ReferencePath' conform to the 'Sendable' protocol
 2 |     public let components: [ReferencePathComponent]
 3 |
   :
29 |
30 |
31 |     public static let root = ReferencePath(components: [])
   |                       |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'ReferencePath' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'root' 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
32 | }
33 |
Build complete! (10.79s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "MemoryLeakTestKit",
  "name" : "MemoryLeakTestKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "MemoryLeakTestKit",
      "targets" : [
        "MemoryLeakTestKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MemoryLeakTestKitTests",
      "module_type" : "SwiftTarget",
      "name" : "MemoryLeakTestKitTests",
      "path" : "Tests/MemoryLeakTestKitTests",
      "sources" : [
        "MemoryLeakDetectorTests.swift",
        "ReferenceIDTests.swift",
        "ReferencePathNormalizationTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "MemoryLeakTestKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MemoryLeakTestKit",
      "module_type" : "SwiftTarget",
      "name" : "MemoryLeakTestKit",
      "path" : "Sources/MemoryLeakTestKit",
      "product_memberships" : [
        "MemoryLeakTestKit"
      ],
      "sources" : [
        "Arrays.swift",
        "CircularReferencePath.swift",
        "IdentifiableReferencePath.swift",
        "IdentifiableReferencePathComponent.swift",
        "LeakedObject.swift",
        "MemoryLeakDetector.swift",
        "MemoryLeakReport.swift",
        "NotNormalizedPathComponent.swift",
        "ObjectTraverser.swift",
        "PrefixedArray.generated.swift",
        "PrettyPrint.swift",
        "Reference.swift",
        "ReferenceID.swift",
        "ReferencePath.swift",
        "ReferencePathComponent.swift",
        "ReferencePathNormalization.swift",
        "Types.swift",
        "Weak.swift",
        "WeakOrNotReference.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Done.