The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftDataCounter, reference main (c61cbf), with Swift 6.1 for macOS (SPM) on 6 Sep 2026 10:20:25 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/markbattistella/SwiftDataCounter.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/markbattistella/SwiftDataCounter
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c61cbf0 2026-09-05
Cloned https://github.com/markbattistella/SwiftDataCounter.git
Revision (git rev-parse @):
c61cbf049c2066c81f34f6b4a0c3b4e5cd2da56a
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/markbattistella/SwiftDataCounter.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/markbattistella/SwiftDataCounter.git
https://github.com/markbattistella/SwiftDataCounter.git
{
  "dependencies" : [
    {
      "identity" : "simplelogger",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "26.0.0",
            "upper_bound" : "27.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/markbattistella/SimpleLogger"
    }
  ],
  "manifest_display_name" : "SwiftDataCounter",
  "name" : "SwiftDataCounter",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "17.0"
    },
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "tvos",
      "version" : "17.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    },
    {
      "name" : "watchos",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftDataCounter",
      "targets" : [
        "SwiftDataCounter"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "6"
  ],
  "targets" : [
    {
      "c99name" : "SwiftDataCounterTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftDataCounterTests",
      "path" : "Tests/SwiftDataCounterTests",
      "sources" : [
        "EntityCounterTests.swift"
      ],
      "target_dependencies" : [
        "SwiftDataCounter"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftDataCounter",
      "module_type" : "SwiftTarget",
      "name" : "SwiftDataCounter",
      "path" : "Sources/SwiftDataCounter",
      "product_dependencies" : [
        "SimpleLogger"
      ],
      "product_memberships" : [
        "SwiftDataCounter"
      ],
      "sources" : [
        "EntityCounter.swift",
        "FetchablePersistentModel.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/26] Emitting module SimpleLogger
[5/28] Compiling SimpleLogger Data+Ext.swift
[6/28] Compiling SimpleLogger gzip+Error.swift
[7/28] Compiling SimpleLogger Category+Security.swift
[8/28] Compiling SimpleLogger Category+System.swift
[9/28] Compiling SimpleLogger Category+Testing.swift
[10/28] Compiling SimpleLogger Logger+Filter.swift
[11/28] Compiling SimpleLogger Logger+Init.swift
[12/28] Compiling SimpleLogger LoggerReader.swift
[13/28] Compiling SimpleLogger CompressionLevel.swift
[14/28] Compiling SimpleLogger Duration+Ext.swift
[15/28] Compiling SimpleLogger LoggerExporter.swift
[16/28] Compiling SimpleLogger Category+UI.swift
[17/28] Compiling SimpleLogger Category+Utilities.swift
[18/28] Compiling SimpleLogger Logger+Export.swift
[19/28] Compiling SimpleLogger Category+Network.swift
[20/28] Compiling SimpleLogger Category+Performance.swift
[21/28] Compiling SimpleLogger Category+Persistence.swift
[22/28] Compiling SimpleLogger Category+Architecture.swift
[23/28] Compiling SimpleLogger Category+Commerce.swift
[24/28] Compiling SimpleLogger Category+Miscellaneous.swift
[25/28] Compiling SimpleLogger LoggerManager.swift
[26/28] Compiling SimpleLogger LoggerQuery.swift
[27/28] Compiling SimpleLogger LoggerCategory.swift
[28/28] Compiling SimpleLogger LoggerRepresentation.swift
[29/31] Compiling SwiftDataCounter FetchablePersistentModel.swift
[30/31] Emitting module SwiftDataCounter
[31/31] Compiling SwiftDataCounter EntityCounter.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDataCounter/EntityCounter.swift:246:13: error: non-sendable result type 'Notification?' cannot be sent from nonisolated context in call to instance method 'next()'
244 |             counter?.logger.info("EntityCounter initial refresh complete. isLoaded = true")
245 |
246 |             for await note in NotificationCenter.default.notifications(named: ModelContext.didSave)
    |             `- error: non-sendable result type 'Notification?' cannot be sent from nonisolated context in call to instance method 'next()'
247 |             {
248 |                 if Task.isCancelled { break }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
Fetching https://github.com/markbattistella/SimpleLogger
[1/229] Fetching simplelogger
Fetched https://github.com/markbattistella/SimpleLogger from cache (0.86s)
Computing version for https://github.com/markbattistella/SimpleLogger
Computed https://github.com/markbattistella/SimpleLogger at 26.5.26 (1.37s)
Creating working copy for https://github.com/markbattistella/SimpleLogger
Working copy of https://github.com/markbattistella/SimpleLogger resolved at 26.5.26
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/24] Compiling SimpleLogger Category+UI.swift
[3/24] Compiling SimpleLogger Category+Utilities.swift
[4/24] Compiling SimpleLogger Logger+Export.swift
[5/26] Compiling SimpleLogger Category+Architecture.swift
[6/26] Compiling SimpleLogger Category+Commerce.swift
[7/26] Compiling SimpleLogger Category+Miscellaneous.swift
[8/26] Compiling SimpleLogger LoggerCategory.swift
[9/26] Compiling SimpleLogger LoggerRepresentation.swift
[10/26] Compiling SimpleLogger Category+Security.swift
[11/26] Compiling SimpleLogger Category+System.swift
[12/26] Compiling SimpleLogger Category+Testing.swift
[13/26] Emitting module SimpleLogger
[14/26] Compiling SimpleLogger Logger+Filter.swift
[15/26] Compiling SimpleLogger Logger+Init.swift
[16/26] Compiling SimpleLogger LoggerReader.swift
[17/26] Compiling SimpleLogger CompressionLevel.swift
[18/26] Compiling SimpleLogger Category+Network.swift
[19/26] Compiling SimpleLogger Category+Performance.swift
[20/26] Compiling SimpleLogger Category+Persistence.swift
[21/26] Compiling SimpleLogger Duration+Ext.swift
[22/26] Compiling SimpleLogger LoggerExporter.swift
[23/26] Compiling SimpleLogger LoggerManager.swift
[24/26] Compiling SimpleLogger LoggerQuery.swift
[25/26] Compiling SimpleLogger Data+Ext.swift
[26/26] Compiling SimpleLogger gzip+Error.swift
[27/29] Compiling SwiftDataCounter FetchablePersistentModel.swift
[28/29] Emitting module SwiftDataCounter
[29/29] Compiling SwiftDataCounter EntityCounter.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDataCounter/EntityCounter.swift:246:13: error: non-sendable result type 'Notification?' cannot be sent from nonisolated context in call to instance method 'next()'
244 |             counter?.logger.info("EntityCounter initial refresh complete. isLoaded = true")
245 |
246 |             for await note in NotificationCenter.default.notifications(named: ModelContext.didSave)
    |             `- error: non-sendable result type 'Notification?' cannot be sent from nonisolated context in call to instance method 'next()'
247 |             {
248 |                 if Task.isCancelled { break }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
BUILD FAILURE 6.1 macosSpm