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 NeedleFoundation, reference master (2a7981), with Swift 6.1 for macOS (SPM) on 10 May 2025 01:14:39 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.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.61.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/uber/needle.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/uber/needle
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 2a79817 Fix spelling in fatal error
Cloned https://github.com/uber/needle.git
Revision (git rev-parse @):
2a79817bc25d162eef2362f82f0fe2b005cbd3b0
SUCCESS checkout https://github.com/uber/needle.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": "needle",
      "name": "NeedleFoundation",
      "url": "https://github.com/uber/needle.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/needle",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/uber/needle.git
[1/7425] Fetching needle
Fetched https://github.com/uber/needle.git from cache (6.80s)
Creating working copy for https://github.com/uber/needle.git
Working copy of https://github.com/uber/needle.git resolved at master (2a79817)
warning: '.resolve-product-dependencies': dependency 'needle' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/uber/needle.git
https://github.com/uber/needle.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "NeedleFoundation",
  "name" : "NeedleFoundation",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "NeedleFoundation",
      "targets" : [
        "NeedleFoundation"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "NeedleFoundationTest",
      "targets" : [
        "NeedleFoundationTest"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "NeedleFoundationTests",
      "module_type" : "SwiftTarget",
      "name" : "NeedleFoundationTests",
      "path" : "Tests/NeedleFoundationTests",
      "sources" : [
        "ComponentTests.swift",
        "DependencyProviderRegistryTests.swift",
        "Pluginized/PluginizedComponentTests.swift"
      ],
      "target_dependencies" : [
        "NeedleFoundation"
      ],
      "type" : "test"
    },
    {
      "c99name" : "NeedleFoundationTestTests",
      "module_type" : "SwiftTarget",
      "name" : "NeedleFoundationTestTests",
      "path" : "Tests/NeedleFoundationTestTests",
      "sources" : [
        "MockComponentPathBuilderTests.swift"
      ],
      "target_dependencies" : [
        "NeedleFoundationTest"
      ],
      "type" : "test"
    },
    {
      "c99name" : "NeedleFoundationTest",
      "module_type" : "SwiftTarget",
      "name" : "NeedleFoundationTest",
      "path" : "Sources/NeedleFoundationTest",
      "product_memberships" : [
        "NeedleFoundationTest"
      ],
      "sources" : [
        "MockComponentPathBuilder.swift"
      ],
      "target_dependencies" : [
        "NeedleFoundation"
      ],
      "type" : "library"
    },
    {
      "c99name" : "NeedleFoundation",
      "module_type" : "SwiftTarget",
      "name" : "NeedleFoundation",
      "path" : "Sources/NeedleFoundation",
      "product_memberships" : [
        "NeedleFoundation",
        "NeedleFoundationTest"
      ],
      "sources" : [
        "Bootstrap.swift",
        "Component.swift",
        "Internal/DependencyProviderRegistry.swift",
        "Pluginized/Internal/PluginExtensionProviderRegistry.swift",
        "Pluginized/NonCoreComponent.swift",
        "Pluginized/PluginizedComponent.swift",
        "Pluginized/PluginizedScopeLifecycle.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/11] Compiling NeedleFoundation PluginExtensionProviderRegistry.swift
/Users/admin/builder/spi-builder-workspace/Sources/NeedleFoundation/Pluginized/Internal/PluginExtensionProviderRegistry.swift:31:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type '__PluginExtensionProviderRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
26 | // all the pluginized component subclasses that override the method to
27 | // instantiate the dependency providers.
28 | public class __PluginExtensionProviderRegistry {
   |              `- note: class '__PluginExtensionProviderRegistry' does not conform to the 'Sendable' protocol
29 |
30 |     /// The singleton instance.
31 |     public static let instance = __PluginExtensionProviderRegistry()
   |                       |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type '__PluginExtensionProviderRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 |     /// Register the given factory closure with given key.
[5/11] Compiling NeedleFoundation PluginizedComponent.swift
[6/11] Compiling NeedleFoundation NonCoreComponent.swift
[7/11] Compiling NeedleFoundation Bootstrap.swift
[8/11] Emitting module NeedleFoundation
/Users/admin/builder/spi-builder-workspace/Sources/NeedleFoundation/Internal/DependencyProviderRegistry.swift:32:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type '__DependencyProviderRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
 27 | // component subclasses that override the method to instantiate the
 28 | // dependency providers.
 29 | public class __DependencyProviderRegistry {
    |              `- note: class '__DependencyProviderRegistry' does not conform to the 'Sendable' protocol
 30 |
 31 |     /// The singleton instance.
 32 |     public static let instance = __DependencyProviderRegistry()
    |                       |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type '__DependencyProviderRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 |
 34 |     /// Register the given factory closure with given key.
/Users/admin/builder/spi-builder-workspace/Sources/NeedleFoundation/Pluginized/Internal/PluginExtensionProviderRegistry.swift:31:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type '__PluginExtensionProviderRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
26 | // all the pluginized component subclasses that override the method to
27 | // instantiate the dependency providers.
28 | public class __PluginExtensionProviderRegistry {
   |              `- note: class '__PluginExtensionProviderRegistry' does not conform to the 'Sendable' protocol
29 |
30 |     /// The singleton instance.
31 |     public static let instance = __PluginExtensionProviderRegistry()
   |                       |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type '__PluginExtensionProviderRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 |     /// Register the given factory closure with given key.
[9/11] Compiling NeedleFoundation DependencyProviderRegistry.swift
/Users/admin/builder/spi-builder-workspace/Sources/NeedleFoundation/Internal/DependencyProviderRegistry.swift:32:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type '__DependencyProviderRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
 27 | // component subclasses that override the method to instantiate the
 28 | // dependency providers.
 29 | public class __DependencyProviderRegistry {
    |              `- note: class '__DependencyProviderRegistry' does not conform to the 'Sendable' protocol
 30 |
 31 |     /// The singleton instance.
 32 |     public static let instance = __DependencyProviderRegistry()
    |                       |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type '__DependencyProviderRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 |
 34 |     /// Register the given factory closure with given key.
[10/11] Compiling NeedleFoundation PluginizedScopeLifecycle.swift
[11/11] Compiling NeedleFoundation Component.swift
[12/13] Compiling NeedleFoundationTest MockComponentPathBuilder.swift
[13/13] Emitting module NeedleFoundationTest
Build complete! (5.74s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "NeedleFoundation",
  "name" : "NeedleFoundation",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "NeedleFoundation",
      "targets" : [
        "NeedleFoundation"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "NeedleFoundationTest",
      "targets" : [
        "NeedleFoundationTest"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "NeedleFoundationTests",
      "module_type" : "SwiftTarget",
      "name" : "NeedleFoundationTests",
      "path" : "Tests/NeedleFoundationTests",
      "sources" : [
        "ComponentTests.swift",
        "DependencyProviderRegistryTests.swift",
        "Pluginized/PluginizedComponentTests.swift"
      ],
      "target_dependencies" : [
        "NeedleFoundation"
      ],
      "type" : "test"
    },
    {
      "c99name" : "NeedleFoundationTestTests",
      "module_type" : "SwiftTarget",
      "name" : "NeedleFoundationTestTests",
      "path" : "Tests/NeedleFoundationTestTests",
      "sources" : [
        "MockComponentPathBuilderTests.swift"
      ],
      "target_dependencies" : [
        "NeedleFoundationTest"
      ],
      "type" : "test"
    },
    {
      "c99name" : "NeedleFoundationTest",
      "module_type" : "SwiftTarget",
      "name" : "NeedleFoundationTest",
      "path" : "Sources/NeedleFoundationTest",
      "product_memberships" : [
        "NeedleFoundationTest"
      ],
      "sources" : [
        "MockComponentPathBuilder.swift"
      ],
      "target_dependencies" : [
        "NeedleFoundation"
      ],
      "type" : "library"
    },
    {
      "c99name" : "NeedleFoundation",
      "module_type" : "SwiftTarget",
      "name" : "NeedleFoundation",
      "path" : "Sources/NeedleFoundation",
      "product_memberships" : [
        "NeedleFoundation",
        "NeedleFoundationTest"
      ],
      "sources" : [
        "Bootstrap.swift",
        "Component.swift",
        "Internal/DependencyProviderRegistry.swift",
        "Pluginized/Internal/PluginExtensionProviderRegistry.swift",
        "Pluginized/NonCoreComponent.swift",
        "Pluginized/PluginizedComponent.swift",
        "Pluginized/PluginizedScopeLifecycle.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Done.