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 PersistedPropertyWrapper, reference v2.3.0 (87f1b7), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 18:12:01 UTC.

Swift 6 data race errors: 1

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/AndrewBennet/PersistedPropertyWrapper.git
Reference: v2.3.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/AndrewBennet/PersistedPropertyWrapper
 * tag               v2.3.0     -> FETCH_HEAD
HEAD is now at 87f1b71 Prevent crash if persisted data does not match annotated type
Cloned https://github.com/AndrewBennet/PersistedPropertyWrapper.git
Revision (git rev-parse @):
87f1b712aca5c5da3190470190afe9c4312c393e
SUCCESS checkout https://github.com/AndrewBennet/PersistedPropertyWrapper.git at v2.3.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": "persistedpropertywrapper",
      "name": "PersistedPropertyWrapper",
      "url": "https://github.com/AndrewBennet/PersistedPropertyWrapper.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/PersistedPropertyWrapper",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/AndrewBennet/PersistedPropertyWrapper.git
[6/274] Fetching persistedpropertywrapper
Fetched https://github.com/AndrewBennet/PersistedPropertyWrapper.git from cache (0.78s)
Creating working copy for https://github.com/AndrewBennet/PersistedPropertyWrapper.git
Working copy of https://github.com/AndrewBennet/PersistedPropertyWrapper.git resolved at v2.3.0 (87f1b71)
warning: '.resolve-product-dependencies': dependency 'persistedpropertywrapper' 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/AndrewBennet/PersistedPropertyWrapper.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/8] Compiling PersistedPropertyWrapper UserDefaultsPrimitive.swift
[4/8] Compiling PersistedPropertyWrapper OSLog.swift
/Users/admin/builder/spi-builder-workspace/Sources/PersistedPropertyWrapper/OSLog.swift:5:24: warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 | extension OSLog {
 5 |     private static var subsystem = Bundle.main.bundleIdentifier ?? "PersistedPropertyWrapper"
   |                        |- warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'subsystem' 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
 6 |
 7 |     /// An OSLog for use in PersistedPropertyWrapper.
[5/8] Compiling PersistedPropertyWrapper PersistedStorageConvertor.swift
[6/8] Compiling PersistedPropertyWrapper Persisted.swift
[7/8] Compiling PersistedPropertyWrapper Persisted+DynamicProperty.swift
[8/8] Emitting module PersistedPropertyWrapper
/Users/admin/builder/spi-builder-workspace/Sources/PersistedPropertyWrapper/OSLog.swift:5:24: warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 | extension OSLog {
 5 |     private static var subsystem = Bundle.main.bundleIdentifier ?? "PersistedPropertyWrapper"
   |                        |- warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'subsystem' 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
 6 |
 7 |     /// An OSLog for use in PersistedPropertyWrapper.
Build complete! (12.91s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PersistedPropertyWrapper",
  "name" : "PersistedPropertyWrapper",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "2.0"
    }
  ],
  "products" : [
    {
      "name" : "PersistedPropertyWrapper",
      "targets" : [
        "PersistedPropertyWrapper"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PersistedPropertyWrapperTests",
      "module_type" : "SwiftTarget",
      "name" : "PersistedPropertyWrapperTests",
      "path" : "Tests/PersistedPropertyWrapperTests",
      "sources" : [
        "ArchivedPropertyWrapperTests.swift",
        "CodablePropertyTests.swift",
        "EnumPropertyTests.swift",
        "PrimitivePropertyTests.swift",
        "UserDefaultsKey.swift"
      ],
      "target_dependencies" : [
        "PersistedPropertyWrapper"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PersistedPropertyWrapper",
      "module_type" : "SwiftTarget",
      "name" : "PersistedPropertyWrapper",
      "path" : "Sources/PersistedPropertyWrapper",
      "product_memberships" : [
        "PersistedPropertyWrapper"
      ],
      "sources" : [
        "OSLog.swift",
        "Persisted+DynamicProperty.swift",
        "Persisted.swift",
        "PersistedStorageConvertor.swift",
        "UserDefaultsPrimitive.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.