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 master (82a2c8), with Swift 6.0 for macOS (SPM) on 7 Nov 2024 00:18:29 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: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/AndrewBennet/PersistedPropertyWrapper
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 82a2c8c Create buildAndTest.yml
Cloned https://github.com/AndrewBennet/PersistedPropertyWrapper.git
Revision (git rev-parse @):
82a2c8cdd38cab4ae439ce9acb2f639f44a58de8
SUCCESS checkout https://github.com/AndrewBennet/PersistedPropertyWrapper.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": "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
[1/373] Fetching persistedpropertywrapper
Fetched https://github.com/AndrewBennet/PersistedPropertyWrapper.git from cache (0.76s)
Creating working copy for https://github.com/AndrewBennet/PersistedPropertyWrapper.git
Working copy of https://github.com/AndrewBennet/PersistedPropertyWrapper.git resolved at master (82a2c8c)
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 PersistedStorageConvertor.swift
[4/8] Compiling PersistedPropertyWrapper UserDefaultsPrimitive.swift
[5/8] Compiling PersistedPropertyWrapper Persisted.swift
[6/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.
[7/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.
[8/8] Compiling PersistedPropertyWrapper Persisted+DynamicProperty.swift
Build complete! (13.22s)
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.