The Swift Package Index logo.Swift Package Index

Build Information

Failed to build TinyStorage, reference 2.0.2 (500483), with Swift 6.0 for macOS (SPM) on 24 Nov 2025 20:06:58 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/christianselig/TinyStorage.git
Reference: 2.0.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/christianselig/TinyStorage
 * tag               2.0.2      -> FETCH_HEAD
HEAD is now at 5004831 Add writeIDs, check if change occurred, notification includes keys
Cloned https://github.com/christianselig/TinyStorage.git
Revision (git rev-parse @):
50048313489327e539f7c6227c51d6c63b363e69
SUCCESS checkout https://github.com/christianselig/TinyStorage.git at 2.0.2
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/christianselig/TinyStorage.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-5BDAB9E9C0126B9D.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module TinyStorage
/Users/admin/builder/spi-builder-workspace/Sources/TinyStorage/TinyStorage.swift:25:1: error: 'nonisolated' modifier cannot be applied to this declaration
  23 | /// Also note that we annotate TinyStorage as `nonisolated` as in Swift 6 MainActor is default for classes, which we do not want for TinyStorage, so we undo that (and make it not isolated) by using `nonisolated` so we can continue to handle all the threading/synchronization ourselves and allow TinyStorage to be called from any thread (except for the functions explicitly marked MainActor).
  24 | @Observable
  25 | nonisolated public final class TinyStorage: @unchecked Sendable {
     | `- error: 'nonisolated' modifier cannot be applied to this declaration
  26 |     private let directoryURL: URL
  27 |     public let fileURL: URL
/Users/admin/builder/spi-builder-workspace/Sources/TinyStorage/TinyStorage.swift:1291:1: error: 'nonisolated' modifier cannot be applied to this declaration
1289 | }
1290 |
1291 | nonisolated public protocol TinyStorageKey: Hashable, Sendable {
     | `- error: 'nonisolated' modifier cannot be applied to this declaration
1292 |     var rawValue: String { get }
1293 | }
/Users/admin/builder/spi-builder-workspace/Sources/TinyStorage/TinyStorage.swift:1335:1: error: 'nonisolated' modifier cannot be applied to this declaration
1333 | }
1334 |
1335 | nonisolated public enum TinyStorageLogLevel {
     | `- error: 'nonisolated' modifier cannot be applied to this declaration
1336 |     case debug, info, warning, error, fault, critical, trace, notice
1337 |
/Users/admin/builder/spi-builder-workspace/Sources/TinyStorage/TinyStorage.swift:1346:1: error: 'nonisolated' modifier cannot be applied to this declaration
1344 | }
1345 |
1346 | nonisolated public protocol TinyStorageLogging {
     | `- error: 'nonisolated' modifier cannot be applied to this declaration
1347 |     func log(_ level: TinyStorageLogLevel, _ message: String, file: String, function: String, line: Int)
1348 | }
/Users/admin/builder/spi-builder-workspace/Sources/TinyStorage/TinyStorage.swift:1350:1: error: 'nonisolated' modifier cannot be applied to this declaration
1348 | }
1349 |
1350 | nonisolated public struct OSLogTinyStorageLogger: TinyStorageLogging {
     | `- error: 'nonisolated' modifier cannot be applied to this declaration
1351 |     private let logger: os.Logger = .init(subsystem: "com.christianselig.TinyStorage", category: "general")
1352 |
[4/4] Compiling TinyStorage TinyStorage.swift
/Users/admin/builder/spi-builder-workspace/Sources/TinyStorage/TinyStorage.swift:25:1: error: 'nonisolated' modifier cannot be applied to this declaration
  23 | /// Also note that we annotate TinyStorage as `nonisolated` as in Swift 6 MainActor is default for classes, which we do not want for TinyStorage, so we undo that (and make it not isolated) by using `nonisolated` so we can continue to handle all the threading/synchronization ourselves and allow TinyStorage to be called from any thread (except for the functions explicitly marked MainActor).
  24 | @Observable
  25 | nonisolated public final class TinyStorage: @unchecked Sendable {
     | `- error: 'nonisolated' modifier cannot be applied to this declaration
  26 |     private let directoryURL: URL
  27 |     public let fileURL: URL
/Users/admin/builder/spi-builder-workspace/Sources/TinyStorage/TinyStorage.swift:1291:1: error: 'nonisolated' modifier cannot be applied to this declaration
1289 | }
1290 |
1291 | nonisolated public protocol TinyStorageKey: Hashable, Sendable {
     | `- error: 'nonisolated' modifier cannot be applied to this declaration
1292 |     var rawValue: String { get }
1293 | }
/Users/admin/builder/spi-builder-workspace/Sources/TinyStorage/TinyStorage.swift:1335:1: error: 'nonisolated' modifier cannot be applied to this declaration
1333 | }
1334 |
1335 | nonisolated public enum TinyStorageLogLevel {
     | `- error: 'nonisolated' modifier cannot be applied to this declaration
1336 |     case debug, info, warning, error, fault, critical, trace, notice
1337 |
/Users/admin/builder/spi-builder-workspace/Sources/TinyStorage/TinyStorage.swift:1346:1: error: 'nonisolated' modifier cannot be applied to this declaration
1344 | }
1345 |
1346 | nonisolated public protocol TinyStorageLogging {
     | `- error: 'nonisolated' modifier cannot be applied to this declaration
1347 |     func log(_ level: TinyStorageLogLevel, _ message: String, file: String, function: String, line: Int)
1348 | }
/Users/admin/builder/spi-builder-workspace/Sources/TinyStorage/TinyStorage.swift:1350:1: error: 'nonisolated' modifier cannot be applied to this declaration
1348 | }
1349 |
1350 | nonisolated public struct OSLogTinyStorageLogger: TinyStorageLogging {
     | `- error: 'nonisolated' modifier cannot be applied to this declaration
1351 |     private let logger: os.Logger = .init(subsystem: "com.christianselig.TinyStorage", category: "general")
1352 |
BUILD FAILURE 6.0 macosSpm