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 QuickServiceLocator, reference main (00c665), with Swift 6.1 for macOS (SPM) on 1 May 2025 06:46:37 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.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/frankois944/QuickServiceLocator.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/frankois944/QuickServiceLocator
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 00c6652 Merge pull request #1 from jordanekay/main
Cloned https://github.com/frankois944/QuickServiceLocator.git
Revision (git rev-parse @):
00c665230fe31f0e1b092e4c8bf05b026a70c2db
SUCCESS checkout https://github.com/frankois944/QuickServiceLocator.git at main
========================================
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": "quickservicelocator",
      "name": "QuickServiceLocator",
      "url": "https://github.com/frankois944/QuickServiceLocator.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/QuickServiceLocator",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/frankois944/QuickServiceLocator.git
[1/60] Fetching quickservicelocator
Fetched https://github.com/frankois944/QuickServiceLocator.git from cache (0.63s)
Creating working copy for https://github.com/frankois944/QuickServiceLocator.git
Working copy of https://github.com/frankois944/QuickServiceLocator.git resolved at main (00c6652)
warning: '.resolve-product-dependencies': dependency 'quickservicelocator' 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/frankois944/QuickServiceLocator.git
https://github.com/frankois944/QuickServiceLocator.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "QuickServiceLocator",
  "name" : "QuickServiceLocator",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "QuickServiceLocator",
      "targets" : [
        "QuickServiceLocator"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "QuickServiceLocatorTests",
      "module_type" : "SwiftTarget",
      "name" : "QuickServiceLocatorTests",
      "path" : "Tests/QuickServiceLocatorTests",
      "sources" : [
        "QuickSLTest.swift"
      ],
      "target_dependencies" : [
        "QuickServiceLocator"
      ],
      "type" : "test"
    },
    {
      "c99name" : "QuickServiceLocator",
      "module_type" : "SwiftTarget",
      "name" : "QuickServiceLocator",
      "path" : "Sources/QuickServiceLocator",
      "product_memberships" : [
        "QuickServiceLocator"
      ],
      "sources" : [
        "QuickSL.swift",
        "QuickServiceLocator.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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/5] Emitting module QuickServiceLocator
/Users/admin/builder/spi-builder-workspace/Sources/QuickServiceLocator/QuickServiceLocator.swift:23:24: warning: static property 'factories' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 21 |     // MARK: - Properties
 22 |
 23 |     private static var factories: [ObjectIdentifier: (LocatingMode, () -> Any)] = [:]
    |                        |- warning: static property 'factories' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'factories' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'factories' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 24 |     private static var sharedInstances: [ObjectIdentifier: Any] = [:]
 25 |
/Users/admin/builder/spi-builder-workspace/Sources/QuickServiceLocator/QuickServiceLocator.swift:24:24: warning: static property 'sharedInstances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 22 |
 23 |     private static var factories: [ObjectIdentifier: (LocatingMode, () -> Any)] = [:]
 24 |     private static var sharedInstances: [ObjectIdentifier: Any] = [:]
    |                        |- warning: static property 'sharedInstances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'sharedInstances' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'sharedInstances' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 25 |
 26 |     // MARK: - Register
[4/5] Compiling QuickServiceLocator QuickSL.swift
[5/5] Compiling QuickServiceLocator QuickServiceLocator.swift
/Users/admin/builder/spi-builder-workspace/Sources/QuickServiceLocator/QuickServiceLocator.swift:23:24: warning: static property 'factories' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 21 |     // MARK: - Properties
 22 |
 23 |     private static var factories: [ObjectIdentifier: (LocatingMode, () -> Any)] = [:]
    |                        |- warning: static property 'factories' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'factories' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'factories' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 24 |     private static var sharedInstances: [ObjectIdentifier: Any] = [:]
 25 |
/Users/admin/builder/spi-builder-workspace/Sources/QuickServiceLocator/QuickServiceLocator.swift:24:24: warning: static property 'sharedInstances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 22 |
 23 |     private static var factories: [ObjectIdentifier: (LocatingMode, () -> Any)] = [:]
 24 |     private static var sharedInstances: [ObjectIdentifier: Any] = [:]
    |                        |- warning: static property 'sharedInstances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'sharedInstances' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'sharedInstances' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 25 |
 26 |     // MARK: - Register
Build complete! (4.32s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "QuickServiceLocator",
  "name" : "QuickServiceLocator",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "QuickServiceLocator",
      "targets" : [
        "QuickServiceLocator"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "QuickServiceLocatorTests",
      "module_type" : "SwiftTarget",
      "name" : "QuickServiceLocatorTests",
      "path" : "Tests/QuickServiceLocatorTests",
      "sources" : [
        "QuickSLTest.swift"
      ],
      "target_dependencies" : [
        "QuickServiceLocator"
      ],
      "type" : "test"
    },
    {
      "c99name" : "QuickServiceLocator",
      "module_type" : "SwiftTarget",
      "name" : "QuickServiceLocator",
      "path" : "Sources/QuickServiceLocator",
      "product_memberships" : [
        "QuickServiceLocator"
      ],
      "sources" : [
        "QuickSL.swift",
        "QuickServiceLocator.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Done.