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 Pigeon, reference master (237054), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 05:40:49 UTC.

Swift 6 data race errors: 5

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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fmo91/Pigeon.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fmo91/Pigeon
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 237054b Add version 0.1.17 to podspec
Cloned https://github.com/fmo91/Pigeon.git
Revision (git rev-parse @):
237054bc7d5521970594a38dfea6faa668953574
SUCCESS checkout https://github.com/fmo91/Pigeon.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": "pigeon",
      "name": "Pigeon",
      "url": "https://github.com/fmo91/Pigeon.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Pigeon",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/fmo91/Pigeon.git
[1/521] Fetching pigeon
Fetched https://github.com/fmo91/Pigeon.git from cache (1.09s)
Creating working copy for https://github.com/fmo91/Pigeon.git
Working copy of https://github.com/fmo91/Pigeon.git resolved at master (237054b)
warning: '.resolve-product-dependencies': dependency 'pigeon' 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/fmo91/Pigeon.git
https://github.com/fmo91/Pigeon.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Pigeon",
  "name" : "Pigeon",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "Pigeon",
      "targets" : [
        "Pigeon"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "Pigeon",
      "module_type" : "SwiftTarget",
      "name" : "Pigeon",
      "path" : "Pigeon/Classes",
      "product_memberships" : [
        "Pigeon"
      ],
      "sources" : [
        "AnyQuery.swift",
        "Cache/InMemoryQueryCache.swift",
        "Cache/QueryCacheType.swift",
        "Cache/UserDefaultsQueryCache.swift",
        "Mutation.swift",
        "PaginatedQuery.swift",
        "Query.swift",
        "QueryConsumer.swift",
        "QueryRenderer.swift",
        "QueryType.swift",
        "Utils/PaginatedQueryKey.swift",
        "Utils/QueryCacheConfig.swift",
        "Utils/QueryInvalidationListener.swift",
        "Utils/QueryInvalidator.swift",
        "Utils/QueryKey.swift",
        "Utils/QueryRegistry.swift",
        "Utils/QueryState.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
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/19] Compiling Pigeon QueryInvalidationListener.swift
[4/19] Compiling Pigeon QueryInvalidator.swift
[5/20] Compiling Pigeon QueryRegistry.swift
/Users/admin/builder/spi-builder-workspace/Pigeon/Classes/Utils/QueryRegistry.swift:13:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'QueryRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | final class QueryRegistry {
   |             `- note: class 'QueryRegistry' does not conform to the 'Sendable' protocol
11 |     private var queries: [QueryKey: Any] = [:]
12 |
13 |     static let shared: QueryRegistry = QueryRegistry()
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'QueryRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |     private init() {}
15 |
[6/20] Compiling Pigeon QueryKey.swift
[7/20] Compiling Pigeon Query.swift
[8/20] Compiling Pigeon QueryConsumer.swift
[9/20] Compiling Pigeon PaginatedQueryKey.swift
/Users/admin/builder/spi-builder-workspace/Pigeon/Classes/Utils/QueryCacheConfig.swift:32:36: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |     }
31 |
32 |     private(set) public static var global: QueryCacheConfig = .init()
   |                                    |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                                    |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
   |                                    |- note: add '@MainActor' to make static property 'global' part of global actor 'MainActor'
   |                                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |     public static func setGlobal(_ config: QueryCacheConfig) {
34 |         QueryCacheConfig.global = config
[10/20] Compiling Pigeon QueryCacheConfig.swift
/Users/admin/builder/spi-builder-workspace/Pigeon/Classes/Utils/QueryCacheConfig.swift:32:36: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |     }
31 |
32 |     private(set) public static var global: QueryCacheConfig = .init()
   |                                    |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                                    |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
   |                                    |- note: add '@MainActor' to make static property 'global' part of global actor 'MainActor'
   |                                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |     public static func setGlobal(_ config: QueryCacheConfig) {
34 |         QueryCacheConfig.global = config
[11/20] Compiling Pigeon QueryState.swift
[12/20] Compiling Pigeon Mutation.swift
[13/20] Compiling Pigeon PaginatedQuery.swift
[14/20] Emitting module Pigeon
/Users/admin/builder/spi-builder-workspace/Pigeon/Classes/Cache/InMemoryQueryCache.swift:14:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'InMemoryQueryCache' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public final class InMemoryQueryCache: QueryCacheType {
   |                    `- note: class 'InMemoryQueryCache' does not conform to the 'Sendable' protocol
12 |     private var cache: [QueryKey: (timestamp: Date, value: Any?)] = [:]
13 |
14 |     public static let shared = InMemoryQueryCache()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'InMemoryQueryCache' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |     private init() {}
16 |
/Users/admin/builder/spi-builder-workspace/Pigeon/Classes/Cache/QueryCacheType.swift:29:36: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 |     }
28 |
29 |     private(set) public static var global: QueryCacheType = inMemory.wrappedCache
   |                                    |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                                    |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
   |                                    |- note: add '@MainActor' to make static property 'global' part of global actor 'MainActor'
   |                                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |     public static func setGlobal(_ wrapper: QueryCache) {
31 |         QueryCache.global = wrapper.wrappedCache
/Users/admin/builder/spi-builder-workspace/Pigeon/Classes/Cache/UserDefaultsQueryCache.swift:12:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UserDefaultsQueryCache' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public final class UserDefaultsQueryCache: QueryCacheType {
   |                    `- note: class 'UserDefaultsQueryCache' does not conform to the 'Sendable' protocol
12 |     public static let shared = UserDefaultsQueryCache()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UserDefaultsQueryCache' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |     private init() {}
14 |
/Users/admin/builder/spi-builder-workspace/Pigeon/Classes/Utils/QueryCacheConfig.swift:32:36: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |     }
31 |
32 |     private(set) public static var global: QueryCacheConfig = .init()
   |                                    |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                                    |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
   |                                    |- note: add '@MainActor' to make static property 'global' part of global actor 'MainActor'
   |                                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |     public static func setGlobal(_ config: QueryCacheConfig) {
34 |         QueryCacheConfig.global = config
/Users/admin/builder/spi-builder-workspace/Pigeon/Classes/Utils/QueryRegistry.swift:13:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'QueryRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | final class QueryRegistry {
   |             `- note: class 'QueryRegistry' does not conform to the 'Sendable' protocol
11 |     private var queries: [QueryKey: Any] = [:]
12 |
13 |     static let shared: QueryRegistry = QueryRegistry()
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'QueryRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |     private init() {}
15 |
[15/20] Compiling Pigeon AnyQuery.swift
/Users/admin/builder/spi-builder-workspace/Pigeon/Classes/Cache/InMemoryQueryCache.swift:14:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'InMemoryQueryCache' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public final class InMemoryQueryCache: QueryCacheType {
   |                    `- note: class 'InMemoryQueryCache' does not conform to the 'Sendable' protocol
12 |     private var cache: [QueryKey: (timestamp: Date, value: Any?)] = [:]
13 |
14 |     public static let shared = InMemoryQueryCache()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'InMemoryQueryCache' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |     private init() {}
16 |
[16/20] Compiling Pigeon InMemoryQueryCache.swift
/Users/admin/builder/spi-builder-workspace/Pigeon/Classes/Cache/InMemoryQueryCache.swift:14:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'InMemoryQueryCache' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public final class InMemoryQueryCache: QueryCacheType {
   |                    `- note: class 'InMemoryQueryCache' does not conform to the 'Sendable' protocol
12 |     private var cache: [QueryKey: (timestamp: Date, value: Any?)] = [:]
13 |
14 |     public static let shared = InMemoryQueryCache()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'InMemoryQueryCache' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |     private init() {}
16 |
[17/20] Compiling Pigeon QueryRenderer.swift
[18/20] Compiling Pigeon QueryType.swift
[19/20] Compiling Pigeon QueryCacheType.swift
/Users/admin/builder/spi-builder-workspace/Pigeon/Classes/Cache/QueryCacheType.swift:29:36: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 |     }
28 |
29 |     private(set) public static var global: QueryCacheType = inMemory.wrappedCache
   |                                    |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                                    |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
   |                                    |- note: add '@MainActor' to make static property 'global' part of global actor 'MainActor'
   |                                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |     public static func setGlobal(_ wrapper: QueryCache) {
31 |         QueryCache.global = wrapper.wrappedCache
/Users/admin/builder/spi-builder-workspace/Pigeon/Classes/Cache/UserDefaultsQueryCache.swift:12:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UserDefaultsQueryCache' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public final class UserDefaultsQueryCache: QueryCacheType {
   |                    `- note: class 'UserDefaultsQueryCache' does not conform to the 'Sendable' protocol
12 |     public static let shared = UserDefaultsQueryCache()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UserDefaultsQueryCache' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |     private init() {}
14 |
[20/20] Compiling Pigeon UserDefaultsQueryCache.swift
/Users/admin/builder/spi-builder-workspace/Pigeon/Classes/Cache/QueryCacheType.swift:29:36: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 |     }
28 |
29 |     private(set) public static var global: QueryCacheType = inMemory.wrappedCache
   |                                    |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                                    |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
   |                                    |- note: add '@MainActor' to make static property 'global' part of global actor 'MainActor'
   |                                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |     public static func setGlobal(_ wrapper: QueryCache) {
31 |         QueryCache.global = wrapper.wrappedCache
/Users/admin/builder/spi-builder-workspace/Pigeon/Classes/Cache/UserDefaultsQueryCache.swift:12:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UserDefaultsQueryCache' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public final class UserDefaultsQueryCache: QueryCacheType {
   |                    `- note: class 'UserDefaultsQueryCache' does not conform to the 'Sendable' protocol
12 |     public static let shared = UserDefaultsQueryCache()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UserDefaultsQueryCache' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |     private init() {}
14 |
Build complete! (9.40s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Pigeon",
  "name" : "Pigeon",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "Pigeon",
      "targets" : [
        "Pigeon"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "Pigeon",
      "module_type" : "SwiftTarget",
      "name" : "Pigeon",
      "path" : "Pigeon/Classes",
      "product_memberships" : [
        "Pigeon"
      ],
      "sources" : [
        "AnyQuery.swift",
        "Cache/InMemoryQueryCache.swift",
        "Cache/QueryCacheType.swift",
        "Cache/UserDefaultsQueryCache.swift",
        "Mutation.swift",
        "PaginatedQuery.swift",
        "Query.swift",
        "QueryConsumer.swift",
        "QueryRenderer.swift",
        "QueryType.swift",
        "Utils/PaginatedQueryKey.swift",
        "Utils/QueryCacheConfig.swift",
        "Utils/QueryInvalidationListener.swift",
        "Utils/QueryInvalidator.swift",
        "Utils/QueryKey.swift",
        "Utils/QueryRegistry.swift",
        "Utils/QueryState.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.