The Swift Package Index logo.Swift Package Index

Build Information

Successful build of UserStorage, reference 0.2.0 (81662e), with Swift 6.1 for macOS (SPM) on 20 Apr 2026 08:25:07 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/smart-byte/UserStorage.git
Reference: 0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/smart-byte/UserStorage
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at 81662e6 Improve Public API (#3)
Cloned https://github.com/smart-byte/UserStorage.git
Revision (git rev-parse @):
81662e693d34a03bd6c8b5f58b9c01e1eacb32f7
SUCCESS checkout https://github.com/smart-byte/UserStorage.git at 0.2.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/smart-byte/UserStorage.git
https://github.com/smart-byte/UserStorage.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "UserStorage",
  "name" : "UserStorage",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "UserStorage",
      "targets" : [
        "UserStorage"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UserStorageTests",
      "module_type" : "SwiftTarget",
      "name" : "UserStorageTests",
      "path" : "Tests/UserStorageTests",
      "sources" : [
        "CoreDataStackTests.swift",
        "UserStorageServiceTests.swift",
        "UserStorageTests.swift"
      ],
      "target_dependencies" : [
        "UserStorage"
      ],
      "type" : "test"
    },
    {
      "c99name" : "UserStorage",
      "module_type" : "SwiftTarget",
      "name" : "UserStorage",
      "path" : "Sources/UserStorage",
      "product_memberships" : [
        "UserStorage"
      ],
      "sources" : [
        "CoreDataStack.swift",
        "PublishedUserStorage.swift",
        "UserStorage.swift",
        "UserStorageService.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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 -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/7] Compiling UserStorage UserStorageService.swift
[4/7] Compiling UserStorage CoreDataStack.swift
/Users/admin/builder/spi-builder-workspace/Sources/UserStorage/CoreDataStack.swift:4:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CoreDataStack' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import CoreData
 2 |
 3 | public class CoreDataStack {
   |              `- note: class 'CoreDataStack' does not conform to the 'Sendable' protocol
 4 |     public static let shared = CoreDataStack()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CoreDataStack' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 |
 6 |     let persistentContainer: NSPersistentContainer
[5/7] Compiling UserStorage UserStorage.swift
/Users/admin/builder/spi-builder-workspace/Sources/UserStorage/UserStorage.swift:10:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UserStorage' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | }
 8 |
 9 | public class UserStorage {
   |              `- note: class 'UserStorage' does not conform to the 'Sendable' protocol
10 |     public static let shared = UserStorage()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UserStorage' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 |     private let service: UserStorageService
[6/7] Compiling UserStorage PublishedUserStorage.swift
[7/7] Emitting module UserStorage
/Users/admin/builder/spi-builder-workspace/Sources/UserStorage/CoreDataStack.swift:4:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CoreDataStack' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import CoreData
 2 |
 3 | public class CoreDataStack {
   |              `- note: class 'CoreDataStack' does not conform to the 'Sendable' protocol
 4 |     public static let shared = CoreDataStack()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CoreDataStack' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 |
 6 |     let persistentContainer: NSPersistentContainer
/Users/admin/builder/spi-builder-workspace/Sources/UserStorage/UserStorage.swift:10:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UserStorage' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | }
 8 |
 9 | public class UserStorage {
   |              `- note: class 'UserStorage' does not conform to the 'Sendable' protocol
10 |     public static let shared = UserStorage()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UserStorage' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 |     private let service: UserStorageService
Build complete! (8.09s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "UserStorage",
  "name" : "UserStorage",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "UserStorage",
      "targets" : [
        "UserStorage"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UserStorageTests",
      "module_type" : "SwiftTarget",
      "name" : "UserStorageTests",
      "path" : "Tests/UserStorageTests",
      "sources" : [
        "CoreDataStackTests.swift",
        "UserStorageServiceTests.swift",
        "UserStorageTests.swift"
      ],
      "target_dependencies" : [
        "UserStorage"
      ],
      "type" : "test"
    },
    {
      "c99name" : "UserStorage",
      "module_type" : "SwiftTarget",
      "name" : "UserStorage",
      "path" : "Sources/UserStorage",
      "product_memberships" : [
        "UserStorage"
      ],
      "sources" : [
        "CoreDataStack.swift",
        "PublishedUserStorage.swift",
        "UserStorage.swift",
        "UserStorageService.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.