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

Failed to build UserDefaultsSnapshotLib, reference 1.4.1 (26e906), with Swift 5.9 for macOS (SPM) on 1 Jul 2024 05:45:51 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.44.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/VergeGroup/UserDefaultsSnapshot.git
Reference: 1.4.1
Initialized empty Git repository in /Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.9
Building package at path:  $workDir
https://github.com/VergeGroup/UserDefaultsSnapshot.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Building for debugging...
[1/7] Compiling UserDefaultsSnapshotLib _UserDefaultsPrimitiveValueType.swift
[2/7] Compiling UserDefaultsSnapshotLib UserDefaultsSnapshot.swift
[3/7] Compiling UserDefaultsSnapshotLib UserDefaultsPersistentStoreBase.swift
[4/7] Compiling UserDefaultsSnapshotLib UserDefaultsPersistentStoreSinkCancellable.swift
[5/7] Compiling UserDefaultsSnapshotLib UserDefaultsObject.swift
[6/7] Emitting module UserDefaultsSnapshotLib
[7/7] Compiling UserDefaultsSnapshotLib UserDefaultsPersistentStore.swift
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/UserDefaultsSnapshotLib/UserDefaultsPersistentStore.swift:88:19: error: 'assumeIsolated(_:file:line:)' is only available in macOS 14.0 or newer
        MainActor.assumeIsolated {
                  ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/UserDefaultsSnapshotLib/UserDefaultsPersistentStore.swift:88:19: note: add 'if #available' version check
        MainActor.assumeIsolated {
                  ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/UserDefaultsSnapshotLib/UserDefaultsPersistentStore.swift:81:21: note: add @available attribute to enclosing instance method
  public final func sinkSnapshotOnMain(_ sink: @escaping @MainActor (UserDefaultsSnapshot<Schema>) -> Void) -> UserDefaultsPersistentStoreSinkCancellable {
                    ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/UserDefaultsSnapshotLib/UserDefaultsPersistentStore.swift:13:12: note: add @available attribute to enclosing generic class
open class UserDefaultsPersistentStore<Schema: UserDefaultsObject>: UserDefaultsPersistentStoreBase, @unchecked Sendable {
           ^
error: fatalError
BUILD FAILURE 5.9 macosSpm