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 UserDefaultsSnapshotLib, reference 1.4.1 (26e906), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 08:17:35 UTC.

Swift 6 data race errors: 0

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/VergeGroup/UserDefaultsSnapshot.git
Reference: 1.4.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/VergeGroup/UserDefaultsSnapshot
 * tag               1.4.1      -> FETCH_HEAD
HEAD is now at 26e9064 Update ignore
Cloned https://github.com/VergeGroup/UserDefaultsSnapshot.git
Revision (git rev-parse @):
26e9064cf45e48ced6220073071eeaf3dd60c62c
SUCCESS checkout https://github.com/VergeGroup/UserDefaultsSnapshot.git at 1.4.1
========================================
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": "userdefaultssnapshot",
      "name": "UserDefaultsSnapshotLib",
      "url": "https://github.com/VergeGroup/UserDefaultsSnapshot.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/UserDefaultsSnapshot",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/VergeGroup/UserDefaultsSnapshot.git
[1/155] Fetching userdefaultssnapshot
Fetched https://github.com/VergeGroup/UserDefaultsSnapshot.git from cache (0.71s)
Creating working copy for https://github.com/VergeGroup/UserDefaultsSnapshot.git
Working copy of https://github.com/VergeGroup/UserDefaultsSnapshot.git resolved at 1.4.1 (26e9064)
warning: '.resolve-product-dependencies': dependency 'userdefaultssnapshot' 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/VergeGroup/UserDefaultsSnapshot.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/9] Compiling UserDefaultsSnapshotLib _UserDefaultsPrimitiveValueType.swift
[4/9] Compiling UserDefaultsSnapshotLib UserDefaultsSnapshot.swift
[5/9] Compiling UserDefaultsSnapshotLib UserDefaultsPersistentStoreBase.swift
[6/9] Compiling UserDefaultsSnapshotLib UserDefaultsPersistentStoreSinkCancellable.swift
[7/9] Compiling UserDefaultsSnapshotLib UserDefaultsObject.swift
[8/9] Emitting module UserDefaultsSnapshotLib
[9/9] Compiling UserDefaultsSnapshotLib UserDefaultsPersistentStore.swift
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsSnapshotLib/UserDefaultsPersistentStore.swift:89:11: warning: sending 'sink' risks causing data races; this is an error in the Swift 6 language mode
 87 |       if Thread.isMainThread {
 88 |         MainActor.assumeIsolated {
 89 |           sink(
    |           |- warning: sending 'sink' risks causing data races; this is an error in the Swift 6 language mode
    |           `- note: task-isolated 'sink' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 90 |             snapshot
 91 |           )
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsSnapshotLib/UserDefaultsPersistentStore.swift:96:13: warning: sending 'snapshot' risks causing data races; this is an error in the Swift 6 language mode
 94 |         Task { @MainActor in
 95 |           sink(
 96 |             snapshot
    |             |- warning: sending 'snapshot' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'snapshot' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 97 |           )
 98 |         }
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsSnapshotLib/UserDefaultsPersistentStore.swift:109:11: warning: sending 'snapshot' risks causing data races; this is an error in the Swift 6 language mode
107 |       Task { @MainActor in
108 |         sink(
109 |           snapshot
    |           |- warning: sending 'snapshot' risks causing data races; this is an error in the Swift 6 language mode
    |           `- note: task-isolated 'snapshot' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
110 |         )
111 |       }
Build complete! (8.90s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "UserDefaultsSnapshotLib",
  "name" : "UserDefaultsSnapshotLib",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "UserDefaultsSnapshotLib",
      "targets" : [
        "UserDefaultsSnapshotLib"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UserDefaultsSnapshotLibTests",
      "module_type" : "SwiftTarget",
      "name" : "UserDefaultsSnapshotLibTests",
      "path" : "Tests/UserDefaultsSnapshotLibTests",
      "sources" : [
        "UserDefaultsBackingTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "UserDefaultsSnapshotLib"
      ],
      "type" : "test"
    },
    {
      "c99name" : "UserDefaultsSnapshotLib",
      "module_type" : "SwiftTarget",
      "name" : "UserDefaultsSnapshotLib",
      "path" : "Sources/UserDefaultsSnapshotLib",
      "product_memberships" : [
        "UserDefaultsSnapshotLib"
      ],
      "sources" : [
        "UserDefaultsObject.swift",
        "UserDefaultsPersistentStore.swift",
        "UserDefaultsPersistentStoreBase.swift",
        "UserDefaultsPersistentStoreSinkCancellable.swift",
        "UserDefaultsSnapshot.swift",
        "_UserDefaultsPrimitiveValueType.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.