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 main (26e906), with Swift 5.8 for macOS (SPM) on 1 Jul 2024 05:48:35 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-14.3.1.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: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/VergeGroup/UserDefaultsSnapshot
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.8
Building package at path:  $workDir
https://github.com/VergeGroup/UserDefaultsSnapshot.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/7] Compiling UserDefaultsSnapshotLib _UserDefaultsPrimitiveValueType.swift
[2/7] Compiling UserDefaultsSnapshotLib UserDefaultsPersistentStoreSinkCancellable.swift
[3/7] Compiling UserDefaultsSnapshotLib UserDefaultsPersistentStoreBase.swift
[4/7] Compiling UserDefaultsSnapshotLib UserDefaultsSnapshot.swift
[5/7] Emitting module UserDefaultsSnapshotLib
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsSnapshotLib/UserDefaultsPersistentStore.swift:47:51: error: expected ':' following argument label and parameter name
  public final func write(write: (borrowing Schema) throws -> Void) rethrows {
                                                  ^
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsSnapshotLib/UserDefaultsPersistentStore.swift:47:51: error: expected type
  public final func write(write: (borrowing Schema) throws -> Void) rethrows {
                                                  ^
                                                   <#type#>
[6/7] Compiling UserDefaultsSnapshotLib UserDefaultsObject.swift
[7/7] Compiling UserDefaultsSnapshotLib UserDefaultsPersistentStore.swift
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsSnapshotLib/UserDefaultsPersistentStore.swift:47:51: error: expected ':' following argument label and parameter name
  public final func write(write: (borrowing Schema) throws -> Void) rethrows {
                                                  ^
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsSnapshotLib/UserDefaultsPersistentStore.swift:47:51: error: expected type
  public final func write(write: (borrowing Schema) throws -> Void) rethrows {
                                                  ^
                                                   <#type#>
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsSnapshotLib/UserDefaultsPersistentStore.swift:51:17: error: argument passed to call that takes no arguments
      try write(object)
               ~^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsSnapshotLib/UserDefaultsPersistentStore.swift:88:19: error: type 'MainActor' has no member 'assumeIsolated'
        MainActor.assumeIsolated {
        ~~~~~~~~~ ^~~~~~~~~~~~~~
BUILD FAILURE 5.8 macosSpm