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 ObjectAssociation, reference 0.5.0 (93806c), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 14:08:43 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 -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/p-x9/swift-object-association.git
Reference: 0.5.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/p-x9/swift-object-association
 * tag               0.5.0      -> FETCH_HEAD
HEAD is now at 93806cf Merge pull request #10 from p-x9/version/0.5.0
Cloned https://github.com/p-x9/swift-object-association.git
Revision (git rev-parse @):
93806cfecae1f198c894ed5585b93aff0e2d1f5a
SUCCESS checkout https://github.com/p-x9/swift-object-association.git at 0.5.0
========================================
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": "swift-object-association",
      "name": "ObjectAssociation",
      "url": "https://github.com/p-x9/swift-object-association.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-object-association",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/p-x9/swift-object-association.git
[3/207] Fetching swift-object-association
Fetched https://github.com/p-x9/swift-object-association.git from cache (0.69s)
Creating working copy for https://github.com/p-x9/swift-object-association.git
Working copy of https://github.com/p-x9/swift-object-association.git resolved at 0.5.0 (93806cf)
warning: '.resolve-product-dependencies': dependency 'swift-object-association' 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/p-x9/swift-object-association.git
{
  "c_language_standard" : "c17",
  "cxx_language_standard" : "c++17",
  "dependencies" : [
  ],
  "manifest_display_name" : "ObjectAssociation",
  "name" : "ObjectAssociation",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ObjectAssociation",
      "targets" : [
        "ObjectAssociation"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftRetain",
      "module_type" : "SwiftTarget",
      "name" : "SwiftRetain",
      "path" : "Sources/SwiftRetain",
      "product_memberships" : [
        "ObjectAssociation"
      ],
      "sources" : [
        "Retain.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ObjectAssociationTests",
      "module_type" : "SwiftTarget",
      "name" : "ObjectAssociationTests",
      "path" : "Tests/ObjectAssociationTests",
      "sources" : [
        "Model/ClassItem.swift",
        "ObjectAssociationTests.swift"
      ],
      "target_dependencies" : [
        "ObjectAssociation",
        "ObjectAssociationRuntime"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ObjectAssociationRuntimeC",
      "module_type" : "ClangTarget",
      "name" : "ObjectAssociationRuntimeC",
      "path" : "Sources/ObjectAssociationRuntimeC",
      "product_memberships" : [
        "ObjectAssociation"
      ],
      "sources" : [
        "associated.cpp",
        "reference/reference.cpp"
      ],
      "target_dependencies" : [
        "SwiftRetain"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ObjectAssociationRuntime",
      "module_type" : "SwiftTarget",
      "name" : "ObjectAssociationRuntime",
      "path" : "Sources/ObjectAssociationRuntime",
      "product_memberships" : [
        "ObjectAssociation"
      ],
      "sources" : [
        "ObjectAssociationRuntime.swift"
      ],
      "target_dependencies" : [
        "ObjectAssociationRuntimeC"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ObjectAssociation",
      "module_type" : "SwiftTarget",
      "name" : "ObjectAssociation",
      "path" : "Sources/ObjectAssociation",
      "product_memberships" : [
        "ObjectAssociation"
      ],
      "sources" : [
        "Model/Policy.swift",
        "Model/Ref.swift",
        "ObjectAssociation.swift",
        "Util.swift"
      ],
      "target_dependencies" : [
        "ObjectAssociationRuntime"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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/6] Write sources
[3/6] Write swift-version--7754E27361AE5C74.txt
[5/8] Emitting module SwiftRetain
[6/8] Compiling SwiftRetain Retain.swift
[6/8] Compiling ObjectAssociationRuntimeC associated.cpp
[7/8] Compiling reference.cpp
[9/10] Emitting module ObjectAssociationRuntime
[10/10] Compiling ObjectAssociationRuntime ObjectAssociationRuntime.swift
[11/15] Compiling ObjectAssociation Util.swift
[12/15] Compiling ObjectAssociation Ref.swift
[13/15] Emitting module ObjectAssociation
/Users/admin/builder/spi-builder-workspace/Sources/ObjectAssociation/ObjectAssociation.swift:59:13: warning: var '_initAssociations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
57 | }
58 |
59 | private var _initAssociations: Bool = {
   |             |- warning: var '_initAssociations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert '_initAssociations' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate '_initAssociations' 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
60 |     swift_initAssociations()
61 |     return true
[14/15] Compiling ObjectAssociation Policy.swift
[15/15] Compiling ObjectAssociation ObjectAssociation.swift
/Users/admin/builder/spi-builder-workspace/Sources/ObjectAssociation/ObjectAssociation.swift:59:13: warning: var '_initAssociations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
57 | }
58 |
59 | private var _initAssociations: Bool = {
   |             |- warning: var '_initAssociations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert '_initAssociations' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate '_initAssociations' 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
60 |     swift_initAssociations()
61 |     return true
Build complete! (7.51s)
Build complete.
{
  "c_language_standard" : "c17",
  "cxx_language_standard" : "c++17",
  "dependencies" : [
  ],
  "manifest_display_name" : "ObjectAssociation",
  "name" : "ObjectAssociation",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ObjectAssociation",
      "targets" : [
        "ObjectAssociation"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftRetain",
      "module_type" : "SwiftTarget",
      "name" : "SwiftRetain",
      "path" : "Sources/SwiftRetain",
      "product_memberships" : [
        "ObjectAssociation"
      ],
      "sources" : [
        "Retain.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ObjectAssociationTests",
      "module_type" : "SwiftTarget",
      "name" : "ObjectAssociationTests",
      "path" : "Tests/ObjectAssociationTests",
      "sources" : [
        "Model/ClassItem.swift",
        "ObjectAssociationTests.swift"
      ],
      "target_dependencies" : [
        "ObjectAssociation",
        "ObjectAssociationRuntime"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ObjectAssociationRuntimeC",
      "module_type" : "ClangTarget",
      "name" : "ObjectAssociationRuntimeC",
      "path" : "Sources/ObjectAssociationRuntimeC",
      "product_memberships" : [
        "ObjectAssociation"
      ],
      "sources" : [
        "associated.cpp",
        "reference/reference.cpp"
      ],
      "target_dependencies" : [
        "SwiftRetain"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ObjectAssociationRuntime",
      "module_type" : "SwiftTarget",
      "name" : "ObjectAssociationRuntime",
      "path" : "Sources/ObjectAssociationRuntime",
      "product_memberships" : [
        "ObjectAssociation"
      ],
      "sources" : [
        "ObjectAssociationRuntime.swift"
      ],
      "target_dependencies" : [
        "ObjectAssociationRuntimeC"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ObjectAssociation",
      "module_type" : "SwiftTarget",
      "name" : "ObjectAssociation",
      "path" : "Sources/ObjectAssociation",
      "product_memberships" : [
        "ObjectAssociation"
      ],
      "sources" : [
        "Model/Policy.swift",
        "Model/Ref.swift",
        "ObjectAssociation.swift",
        "Util.swift"
      ],
      "target_dependencies" : [
        "ObjectAssociationRuntime"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.