This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.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 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 master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/AndrewBennet/PersistedPropertyWrapper.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[3/8] Compiling PersistedPropertyWrapper Persisted.swift
/Users/admin/builder/spi-builder-workspace/Sources/PersistedPropertyWrapper/OSLog.swift:8:16: warning: static property 'log' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
 6 |
 7 |     /// An OSLog for use in PersistedPropertyWrapper.
 8 |     static let log = OSLog(subsystem: subsystem, category: "PersistedPropertyWrapper")
   |                `- warning: static property 'log' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | }
10 |
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
  |            `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 |     @available(*, unavailable, message: "Unavailable in Swift")
3 |     public init!()
/Users/admin/builder/spi-builder-workspace/Sources/PersistedPropertyWrapper/OSLog.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
 1 | import Foundation
 2 | import os.log
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
 3 |
 4 | extension OSLog {
   :
 6 |
 7 |     /// An OSLog for use in PersistedPropertyWrapper.
 8 |     static let log = OSLog(subsystem: subsystem, category: "PersistedPropertyWrapper")
   |                |- note: annotate 'log' 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
 9 | }
10 |
[4/8] Compiling PersistedPropertyWrapper UserDefaultsPrimitive.swift
[5/8] Compiling PersistedPropertyWrapper PersistedStorageConvertor.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 non-isolated 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 non-isolated 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.
/Users/admin/builder/spi-builder-workspace/Sources/PersistedPropertyWrapper/OSLog.swift:8:16: warning: static property 'log' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
 6 |
 7 |     /// An OSLog for use in PersistedPropertyWrapper.
 8 |     static let log = OSLog(subsystem: subsystem, category: "PersistedPropertyWrapper")
   |                `- warning: static property 'log' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | }
10 |
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
  |            `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 |     @available(*, unavailable, message: "Unavailable in Swift")
3 |     public init!()
/Users/admin/builder/spi-builder-workspace/Sources/PersistedPropertyWrapper/OSLog.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
 1 | import Foundation
 2 | import os.log
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
 3 |
 4 | extension OSLog {
   :
 6 |
 7 |     /// An OSLog for use in PersistedPropertyWrapper.
 8 |     static let log = OSLog(subsystem: subsystem, category: "PersistedPropertyWrapper")
   |                |- note: annotate 'log' 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
 9 | }
10 |
[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 non-isolated 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 non-isolated 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.
/Users/admin/builder/spi-builder-workspace/Sources/PersistedPropertyWrapper/OSLog.swift:8:16: warning: static property 'log' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
 6 |
 7 |     /// An OSLog for use in PersistedPropertyWrapper.
 8 |     static let log = OSLog(subsystem: subsystem, category: "PersistedPropertyWrapper")
   |                `- warning: static property 'log' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | }
10 |
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
  |            `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 |     @available(*, unavailable, message: "Unavailable in Swift")
3 |     public init!()
/Users/admin/builder/spi-builder-workspace/Sources/PersistedPropertyWrapper/OSLog.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
 1 | import Foundation
 2 | import os.log
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
 3 |
 4 | extension OSLog {
   :
 6 |
 7 |     /// An OSLog for use in PersistedPropertyWrapper.
 8 |     static let log = OSLog(subsystem: subsystem, category: "PersistedPropertyWrapper")
   |                |- note: annotate 'log' 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
 9 | }
10 |
[8/8] Compiling PersistedPropertyWrapper Persisted+DynamicProperty.swift
Build complete! (32.24s)
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.