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 Cache, reference 2.1.0 (a535c6), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 22:22:31 UTC.

Swift 6 data race errors: 6

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/0xLeif/Cache.git
Reference: 2.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/0xLeif/Cache
 * tag               2.1.0      -> FETCH_HEAD
HEAD is now at a535c68 Update PersistableCache to use mapppings (#13)
Cloned https://github.com/0xLeif/Cache.git
Revision (git rev-parse @):
a535c68aab7bf0b42bda7a5de66b04f86e48c6e6
SUCCESS checkout https://github.com/0xLeif/Cache.git at 2.1.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": "cache",
      "name": "Cache",
      "url": "https://github.com/0xLeif/Cache.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Cache",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/0xLeif/Cache.git
[1/400] Fetching cache
Fetched https://github.com/0xLeif/Cache.git from cache (0.79s)
Creating working copy for https://github.com/0xLeif/Cache.git
Working copy of https://github.com/0xLeif/Cache.git resolved at 2.1.0 (a535c68)
warning: '.resolve-product-dependencies': dependency 'cache' 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/0xLeif/Cache.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/27] Emitting module Cache
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Cache/ExpiringCache.swift:16:20: warning: stored property 'key' of 'Sendable'-conforming struct 'ExpiriedValueError' has non-sendable type 'Key'; this is an error in the Swift 6 language mode
 10 |  Objects stored in the cache are automatically removed when their expiration duration has passed.
 11 |  */
 12 | public class ExpiringCache<Key: Hashable, Value>: Cacheable {
    |                            `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
 13 |     /// `Error` that reports expired values
 14 |     public struct ExpiriedValueError: LocalizedError {
 15 |         /// Expired key
 16 |         public let key: Key
    |                    `- warning: stored property 'key' of 'Sendable'-conforming struct 'ExpiriedValueError' has non-sendable type 'Key'; this is an error in the Swift 6 language mode
 17 |
 18 |         /// When the value expired
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Errors/MissingRequiredKeysError.swift:6:16: warning: stored property 'keys' of 'Sendable'-conforming generic struct 'MissingRequiredKeysError' has non-sendable type 'Set<Key>'; this is an error in the Swift 6 language mode
 2 |
 3 | /// `Error` that reports the required keys
 4 | public struct MissingRequiredKeysError<Key: Hashable>: LocalizedError {
   |                                        `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
 5 |     /// Required keys
 6 |     public let keys: Set<Key>
   |                `- warning: stored property 'keys' of 'Sendable'-conforming generic struct 'MissingRequiredKeysError' has non-sendable type 'Set<Key>'; this is an error in the Swift 6 language mode
 7 |
 8 |     /// init for `MissingRequiredKeysError<Key>`
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Global/Global+cache.swift:3:23: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | extension Global {
2 |     /// The global cache for storing values.
3 |     public static var cache: Cache<AnyHashable, Any> = Cache()
  |                       |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                       |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: annotate 'cache' 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
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Global/Global+dependencies.swift:3:23: warning: static property 'dependencies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | extension Global {
2 |     /// The global cache for storing required dependencies.
3 |     public static var dependencies: RequiredKeysCache<AnyHashable, Any> = RequiredKeysCache()
  |                       |- warning: static property 'dependencies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                       |- note: convert 'dependencies' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: annotate 'dependencies' 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
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Global/Global+images.swift:14:23: warning: static property 'images' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 |     /// The global cache for storing images.
14 |     public static var images: Cache<URL, CacheImage> = Cache()
   |                       |- warning: static property 'images' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'images' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'images' 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
15 | }
16 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Global/Global+loggers.swift:11:23: warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 | extension Global {
10 |     /// The global cache for Loggers
11 |     public static var loggers: RequiredKeysCache<AnyHashable, Logger> = RequiredKeysCache()
   |                       |- warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'loggers' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'loggers' 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
12 | }
13 | #endif
[4/29] Compiling Cache OptionallyCached.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Global/Global+cache.swift:3:23: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | extension Global {
2 |     /// The global cache for storing values.
3 |     public static var cache: Cache<AnyHashable, Any> = Cache()
  |                       |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                       |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: annotate 'cache' 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
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Global/Global+dependencies.swift:3:23: warning: static property 'dependencies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | extension Global {
2 |     /// The global cache for storing required dependencies.
3 |     public static var dependencies: RequiredKeysCache<AnyHashable, Any> = RequiredKeysCache()
  |                       |- warning: static property 'dependencies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                       |- note: convert 'dependencies' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: annotate 'dependencies' 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
4 | }
5 |
[5/29] Compiling Cache Resolved.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Global/Global+cache.swift:3:23: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | extension Global {
2 |     /// The global cache for storing values.
3 |     public static var cache: Cache<AnyHashable, Any> = Cache()
  |                       |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                       |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: annotate 'cache' 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
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Global/Global+dependencies.swift:3:23: warning: static property 'dependencies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | extension Global {
2 |     /// The global cache for storing required dependencies.
3 |     public static var dependencies: RequiredKeysCache<AnyHashable, Any> = RequiredKeysCache()
  |                       |- warning: static property 'dependencies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                       |- note: convert 'dependencies' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: annotate 'dependencies' 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
4 | }
5 |
[6/29] Compiling Cache Cached.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Global/Global+cache.swift:3:23: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | extension Global {
2 |     /// The global cache for storing values.
3 |     public static var cache: Cache<AnyHashable, Any> = Cache()
  |                       |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                       |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: annotate 'cache' 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
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Global/Global+loggers.swift:11:23: warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 | extension Global {
10 |     /// The global cache for Loggers
11 |     public static var loggers: RequiredKeysCache<AnyHashable, Logger> = RequiredKeysCache()
   |                       |- warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'loggers' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'loggers' 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
12 | }
13 | #endif
[7/29] Compiling Cache Logging.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Global/Global+cache.swift:3:23: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | extension Global {
2 |     /// The global cache for storing values.
3 |     public static var cache: Cache<AnyHashable, Any> = Cache()
  |                       |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                       |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: annotate 'cache' 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
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Global/Global+loggers.swift:11:23: warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 | extension Global {
10 |     /// The global cache for Loggers
11 |     public static var loggers: RequiredKeysCache<AnyHashable, Logger> = RequiredKeysCache()
   |                       |- warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'loggers' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'loggers' 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
12 | }
13 | #endif
[8/29] Compiling Cache Global+loggers.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Global/Global+loggers.swift:11:23: warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 | extension Global {
10 |     /// The global cache for Loggers
11 |     public static var loggers: RequiredKeysCache<AnyHashable, Logger> = RequiredKeysCache()
   |                       |- warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'loggers' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'loggers' 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
12 | }
13 | #endif
[9/29] Compiling Cache Global.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Global/Global+loggers.swift:11:23: warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 | extension Global {
10 |     /// The global cache for Loggers
11 |     public static var loggers: RequiredKeysCache<AnyHashable, Logger> = RequiredKeysCache()
   |                       |- warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'loggers' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'loggers' 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
12 | }
13 | #endif
[10/29] Compiling Cache LRUCache.swift
[11/29] Compiling Cache PersistableCache.swift
[12/29] Compiling Cache RequiredKeysCache+subscript.swift
[13/29] Compiling Cache AnyCacheable.swift
[14/29] Compiling Cache Cache+subscript.swift
[15/29] Compiling Cache Cache.swift
[16/29] Compiling Cache Dictionary+Cacheable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Errors/MissingRequiredKeysError.swift:6:16: warning: stored property 'keys' of 'Sendable'-conforming generic struct 'MissingRequiredKeysError' has non-sendable type 'Set<Key>'; this is an error in the Swift 6 language mode
 2 |
 3 | /// `Error` that reports the required keys
 4 | public struct MissingRequiredKeysError<Key: Hashable>: LocalizedError {
   |                                        `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
 5 |     /// Required keys
 6 |     public let keys: Set<Key>
   |                `- warning: stored property 'keys' of 'Sendable'-conforming generic struct 'MissingRequiredKeysError' has non-sendable type 'Set<Key>'; this is an error in the Swift 6 language mode
 7 |
 8 |     /// init for `MissingRequiredKeysError<Key>`
[17/29] Compiling Cache InvalidTypeError.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Errors/MissingRequiredKeysError.swift:6:16: warning: stored property 'keys' of 'Sendable'-conforming generic struct 'MissingRequiredKeysError' has non-sendable type 'Set<Key>'; this is an error in the Swift 6 language mode
 2 |
 3 | /// `Error` that reports the required keys
 4 | public struct MissingRequiredKeysError<Key: Hashable>: LocalizedError {
   |                                        `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
 5 |     /// Required keys
 6 |     public let keys: Set<Key>
   |                `- warning: stored property 'keys' of 'Sendable'-conforming generic struct 'MissingRequiredKeysError' has non-sendable type 'Set<Key>'; this is an error in the Swift 6 language mode
 7 |
 8 |     /// init for `MissingRequiredKeysError<Key>`
[18/29] Compiling Cache MissingRequiredKeysError.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Errors/MissingRequiredKeysError.swift:6:16: warning: stored property 'keys' of 'Sendable'-conforming generic struct 'MissingRequiredKeysError' has non-sendable type 'Set<Key>'; this is an error in the Swift 6 language mode
 2 |
 3 | /// `Error` that reports the required keys
 4 | public struct MissingRequiredKeysError<Key: Hashable>: LocalizedError {
   |                                        `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
 5 |     /// Required keys
 6 |     public let keys: Set<Key>
   |                `- warning: stored property 'keys' of 'Sendable'-conforming generic struct 'MissingRequiredKeysError' has non-sendable type 'Set<Key>'; this is an error in the Swift 6 language mode
 7 |
 8 |     /// init for `MissingRequiredKeysError<Key>`
[19/29] Compiling Cache RequiredKeysCache.swift
[20/29] Compiling Cache CacheInitializable.swift
[21/29] Compiling Cache Cacheable.swift
[22/29] Compiling Cache JSON+subscript.swift
[23/29] Compiling Cache JSON.swift
[24/29] Compiling Cache ComposableCache.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Cache/ExpiringCache.swift:16:20: warning: stored property 'key' of 'Sendable'-conforming struct 'ExpiriedValueError' has non-sendable type 'Key'; this is an error in the Swift 6 language mode
 10 |  Objects stored in the cache are automatically removed when their expiration duration has passed.
 11 |  */
 12 | public class ExpiringCache<Key: Hashable, Value>: Cacheable {
    |                            `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
 13 |     /// `Error` that reports expired values
 14 |     public struct ExpiriedValueError: LocalizedError {
 15 |         /// Expired key
 16 |         public let key: Key
    |                    `- warning: stored property 'key' of 'Sendable'-conforming struct 'ExpiriedValueError' has non-sendable type 'Key'; this is an error in the Swift 6 language mode
 17 |
 18 |         /// When the value expired
[25/29] Compiling Cache ExpiringCache+subscript.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Cache/ExpiringCache.swift:16:20: warning: stored property 'key' of 'Sendable'-conforming struct 'ExpiriedValueError' has non-sendable type 'Key'; this is an error in the Swift 6 language mode
 10 |  Objects stored in the cache are automatically removed when their expiration duration has passed.
 11 |  */
 12 | public class ExpiringCache<Key: Hashable, Value>: Cacheable {
    |                            `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
 13 |     /// `Error` that reports expired values
 14 |     public struct ExpiriedValueError: LocalizedError {
 15 |         /// Expired key
 16 |         public let key: Key
    |                    `- warning: stored property 'key' of 'Sendable'-conforming struct 'ExpiriedValueError' has non-sendable type 'Key'; this is an error in the Swift 6 language mode
 17 |
 18 |         /// When the value expired
[26/29] Compiling Cache ExpiringCache.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Cache/ExpiringCache.swift:16:20: warning: stored property 'key' of 'Sendable'-conforming struct 'ExpiriedValueError' has non-sendable type 'Key'; this is an error in the Swift 6 language mode
 10 |  Objects stored in the cache are automatically removed when their expiration duration has passed.
 11 |  */
 12 | public class ExpiringCache<Key: Hashable, Value>: Cacheable {
    |                            `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
 13 |     /// `Error` that reports expired values
 14 |     public struct ExpiriedValueError: LocalizedError {
 15 |         /// Expired key
 16 |         public let key: Key
    |                    `- warning: stored property 'key' of 'Sendable'-conforming struct 'ExpiriedValueError' has non-sendable type 'Key'; this is an error in the Swift 6 language mode
 17 |
 18 |         /// When the value expired
[27/29] Compiling Cache Global+cache.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Global/Global+cache.swift:3:23: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | extension Global {
2 |     /// The global cache for storing values.
3 |     public static var cache: Cache<AnyHashable, Any> = Cache()
  |                       |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                       |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: annotate 'cache' 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
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Global/Global+dependencies.swift:3:23: warning: static property 'dependencies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | extension Global {
2 |     /// The global cache for storing required dependencies.
3 |     public static var dependencies: RequiredKeysCache<AnyHashable, Any> = RequiredKeysCache()
  |                       |- warning: static property 'dependencies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                       |- note: convert 'dependencies' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: annotate 'dependencies' 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
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Global/Global+images.swift:14:23: warning: static property 'images' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 |     /// The global cache for storing images.
14 |     public static var images: Cache<URL, CacheImage> = Cache()
   |                       |- warning: static property 'images' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'images' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'images' 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
15 | }
16 | #endif
[28/29] Compiling Cache Global+dependencies.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Global/Global+cache.swift:3:23: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | extension Global {
2 |     /// The global cache for storing values.
3 |     public static var cache: Cache<AnyHashable, Any> = Cache()
  |                       |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                       |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: annotate 'cache' 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
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Global/Global+dependencies.swift:3:23: warning: static property 'dependencies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | extension Global {
2 |     /// The global cache for storing required dependencies.
3 |     public static var dependencies: RequiredKeysCache<AnyHashable, Any> = RequiredKeysCache()
  |                       |- warning: static property 'dependencies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                       |- note: convert 'dependencies' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: annotate 'dependencies' 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
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Global/Global+images.swift:14:23: warning: static property 'images' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 |     /// The global cache for storing images.
14 |     public static var images: Cache<URL, CacheImage> = Cache()
   |                       |- warning: static property 'images' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'images' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'images' 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
15 | }
16 | #endif
[29/29] Compiling Cache Global+images.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Global/Global+cache.swift:3:23: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | extension Global {
2 |     /// The global cache for storing values.
3 |     public static var cache: Cache<AnyHashable, Any> = Cache()
  |                       |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                       |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: annotate 'cache' 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
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Global/Global+dependencies.swift:3:23: warning: static property 'dependencies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | extension Global {
2 |     /// The global cache for storing required dependencies.
3 |     public static var dependencies: RequiredKeysCache<AnyHashable, Any> = RequiredKeysCache()
  |                       |- warning: static property 'dependencies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                       |- note: convert 'dependencies' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: annotate 'dependencies' 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
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Cache/Global/Global+images.swift:14:23: warning: static property 'images' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 |     /// The global cache for storing images.
14 |     public static var images: Cache<URL, CacheImage> = Cache()
   |                       |- warning: static property 'images' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'images' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'images' 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
15 | }
16 | #endif
Build complete! (20.94s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Cache",
  "name" : "Cache",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Cache",
      "targets" : [
        "Cache"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CacheTests",
      "module_type" : "SwiftTarget",
      "name" : "CacheTests",
      "path" : "Tests/CacheTests",
      "sources" : [
        "AnyCacheableTests.swift",
        "CacheInitializableTests.swift",
        "CacheTests.swift",
        "ComposableCacheTests.swift",
        "DictionaryTests.swift",
        "ExampleTests.swift",
        "ExpiringCacheTests.swift",
        "JSONTests.swift",
        "LRUCacheTests.swift",
        "LoggingTests.swift",
        "PersistableCacheTests.swift",
        "PropertyWrappersTests.swift",
        "RequiredKeysCacheTests.swift"
      ],
      "target_dependencies" : [
        "Cache"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Cache",
      "module_type" : "SwiftTarget",
      "name" : "Cache",
      "path" : "Sources/Cache",
      "product_memberships" : [
        "Cache"
      ],
      "sources" : [
        "Cache/AnyCacheable.swift",
        "Cache/Cache+subscript.swift",
        "Cache/Cache.swift",
        "Cache/ComposableCache.swift",
        "Cache/ExpiringCache+subscript.swift",
        "Cache/ExpiringCache.swift",
        "Cache/LRUCache.swift",
        "Cache/PersistableCache.swift",
        "Cache/RequiredKeysCache+subscript.swift",
        "Cache/RequiredKeysCache.swift",
        "CacheInitializable.swift",
        "Cacheable.swift",
        "Dictionary/Dictionary+Cacheable.swift",
        "Errors/InvalidTypeError.swift",
        "Errors/MissingRequiredKeysError.swift",
        "Global/Global+cache.swift",
        "Global/Global+dependencies.swift",
        "Global/Global+images.swift",
        "Global/Global+loggers.swift",
        "Global/Global.swift",
        "JSON/JSON+subscript.swift",
        "JSON/JSON.swift",
        "PropertyWrappers/Cached.swift",
        "PropertyWrappers/Logging.swift",
        "PropertyWrappers/OptionallyCached.swift",
        "PropertyWrappers/Resolved.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
Done.