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 SemiSingleton, reference 2.0.5 (9459d4), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 21:48:15 UTC.

Swift 6 data race errors: 3

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/Frizlab/SemiSingleton.git
Reference: 2.0.5
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Frizlab/SemiSingleton
 * tag               2.0.5      -> FETCH_HEAD
HEAD is now at 9459d45 Update dependencies paths
Cloned https://github.com/Frizlab/SemiSingleton.git
Revision (git rev-parse @):
9459d45f4d4719c306b5e0534438eeaa18fad27e
SUCCESS checkout https://github.com/Frizlab/SemiSingleton.git at 2.0.5
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/happn-app/RecursiveSyncDispatch.git
[1/178] Fetching recursivesyncdispatch
[179/3838] Fetching recursivesyncdispatch, swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.23s)
Fetched https://github.com/happn-app/RecursiveSyncDispatch.git from cache (1.23s)
Computing version for https://github.com/happn-app/RecursiveSyncDispatch.git
Computed https://github.com/happn-app/RecursiveSyncDispatch.git at 1.0.1 (0.61s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.4.0 (0.64s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.4.0
Creating working copy for https://github.com/happn-app/RecursiveSyncDispatch.git
Working copy of https://github.com/happn-app/RecursiveSyncDispatch.git resolved at 1.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": "semisingleton",
      "name": "SemiSingleton",
      "url": "https://github.com/Frizlab/SemiSingleton.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SemiSingleton",
      "dependencies": [
        {
          "identity": "swift-log",
          "name": "swift-log",
          "url": "https://github.com/apple/swift-log.git",
          "version": "1.6.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
          "dependencies": [
          ]
        },
        {
          "identity": "recursivesyncdispatch",
          "name": "RecursiveSyncDispatch",
          "url": "https://github.com/happn-app/RecursiveSyncDispatch.git",
          "version": "1.0.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/RecursiveSyncDispatch",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/Frizlab/SemiSingleton.git
[1/429] Fetching semisingleton
Fetched https://github.com/Frizlab/SemiSingleton.git from cache (0.80s)
Fetching https://github.com/happn-app/RecursiveSyncDispatch.git from cache
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.53s)
Fetched https://github.com/happn-app/RecursiveSyncDispatch.git from cache (0.53s)
Computing version for https://github.com/happn-app/RecursiveSyncDispatch.git
Computed https://github.com/happn-app/RecursiveSyncDispatch.git at 1.0.1 (0.02s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.1 (0.44s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.1
Creating working copy for https://github.com/Frizlab/SemiSingleton.git
Working copy of https://github.com/Frizlab/SemiSingleton.git resolved at 2.0.5 (9459d45)
Creating working copy for https://github.com/happn-app/RecursiveSyncDispatch.git
Working copy of https://github.com/happn-app/RecursiveSyncDispatch.git resolved at 1.0.1
warning: '.resolve-product-dependencies': dependency 'semisingleton' is not used by any target
Found 2 product dependencies
  - swift-log
  - RecursiveSyncDispatch
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Frizlab/SemiSingleton.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/4] Write sources
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/10] Emitting module Logging
[6/10] Compiling Logging Locks.swift
[7/10] Compiling Logging Logging.swift
[8/10] Compiling Logging LogHandler.swift
[9/10] Emitting module RecursiveSyncDispatch
[10/10] Compiling RecursiveSyncDispatch RecursiveSyncDispatch.swift
[11/14] Compiling SemiSingleton SemiSingletonConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/SemiSingleton/SemiSingletonConfig.swift:45:20: warning: static property 'oslog' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
43 | #if canImport(os)
44 | 	@available(macOS 10.12, tvOS 10.0, iOS 10.0, watchOS 3.0, *)
45 | 	public static var oslog: OSLog? = .default
   |                    |- warning: static property 'oslog' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'oslog' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'oslog' 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
46 | #endif
47 | 	public static var logger: Logging.Logger? = {
/Users/admin/builder/spi-builder-workspace/Sources/SemiSingleton/SemiSingletonConfig.swift:47:20: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 | 	public static var oslog: OSLog? = .default
46 | #endif
47 | 	public static var logger: Logging.Logger? = {
   |                    |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'logger' 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
48 | #if canImport(os)
49 | 		if #available(macOS 10.12, tvOS 10.0, iOS 10.0, watchOS 3.0, *) {
[12/14] Compiling SemiSingleton LinuxStrongToWeakMapTable.swift
[13/14] Emitting module SemiSingleton
/Users/admin/builder/spi-builder-workspace/Sources/SemiSingleton/SemiSingletonConfig.swift:45:20: warning: static property 'oslog' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
43 | #if canImport(os)
44 | 	@available(macOS 10.12, tvOS 10.0, iOS 10.0, watchOS 3.0, *)
45 | 	public static var oslog: OSLog? = .default
   |                    |- warning: static property 'oslog' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'oslog' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'oslog' 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
46 | #endif
47 | 	public static var logger: Logging.Logger? = {
/Users/admin/builder/spi-builder-workspace/Sources/SemiSingleton/SemiSingletonConfig.swift:47:20: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 | 	public static var oslog: OSLog? = .default
46 | #endif
47 | 	public static var logger: Logging.Logger? = {
   |                    |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'logger' 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
48 | #if canImport(os)
49 | 		if #available(macOS 10.12, tvOS 10.0, iOS 10.0, watchOS 3.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/SemiSingleton/SemiSingletonStore.swift:69:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SemiSingletonStore' may have shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |
 61 | public class SemiSingletonStore {
    |              `- note: class 'SemiSingletonStore' does not conform to the 'Sendable' protocol
 62 |
 63 | 	public enum Error : Swift.Error {
    :
 67 | 	}
 68 |
 69 | 	public static let shared = SemiSingletonStore(forceClassInKeys: true)
    |                    |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SemiSingletonStore' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: annotate 'shared' 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
 70 |
 71 | 	public let forceClassInKeys: Bool
[14/14] Compiling SemiSingleton SemiSingletonStore.swift
/Users/admin/builder/spi-builder-workspace/Sources/SemiSingleton/SemiSingletonStore.swift:69:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SemiSingletonStore' may have shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |
 61 | public class SemiSingletonStore {
    |              `- note: class 'SemiSingletonStore' does not conform to the 'Sendable' protocol
 62 |
 63 | 	public enum Error : Swift.Error {
    :
 67 | 	}
 68 |
 69 | 	public static let shared = SemiSingletonStore(forceClassInKeys: true)
    |                    |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SemiSingletonStore' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: annotate 'shared' 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
 70 |
 71 | 	public let forceClassInKeys: Bool
/Users/admin/builder/spi-builder-workspace/Sources/SemiSingleton/SemiSingletonConfig.swift:45:20: warning: static property 'oslog' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
43 | #if canImport(os)
44 | 	@available(macOS 10.12, tvOS 10.0, iOS 10.0, watchOS 3.0, *)
45 | 	public static var oslog: OSLog? = .default
   |                    |- warning: static property 'oslog' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'oslog' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'oslog' 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
46 | #endif
47 | 	public static var logger: Logging.Logger? = {
/Users/admin/builder/spi-builder-workspace/Sources/SemiSingleton/SemiSingletonConfig.swift:47:20: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 | 	public static var oslog: OSLog? = .default
46 | #endif
47 | 	public static var logger: Logging.Logger? = {
   |                    |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'logger' 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
48 | #if canImport(os)
49 | 		if #available(macOS 10.12, tvOS 10.0, iOS 10.0, watchOS 3.0, *) {
Build complete! (6.14s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    },
    {
      "identity" : "recursivesyncdispatch",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/happn-app/RecursiveSyncDispatch.git"
    }
  ],
  "manifest_display_name" : "SemiSingleton",
  "name" : "SemiSingleton",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SemiSingleton",
      "targets" : [
        "SemiSingleton"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SemiSingletonTests",
      "module_type" : "SwiftTarget",
      "name" : "SemiSingletonTests",
      "path" : "Tests/SemiSingletonTests",
      "sources" : [
        "Helpers/ReentrantSemiSingletonInit.swift",
        "Helpers/SimpleSemiSingleton.swift",
        "SemiSingletonTests.swift"
      ],
      "target_dependencies" : [
        "SemiSingleton"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SemiSingleton",
      "module_type" : "SwiftTarget",
      "name" : "SemiSingleton",
      "path" : "Sources/SemiSingleton",
      "product_dependencies" : [
        "Logging",
        "RecursiveSyncDispatch"
      ],
      "product_memberships" : [
        "SemiSingleton"
      ],
      "sources" : [
        "LinuxStrongToWeakMapTable.swift",
        "SemiSingletonConfig.swift",
        "SemiSingletonStore.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.