Build Information
Successful build of UserStorage, reference main (2298ed), with Swift 6.1 for macOS (SPM) on 23 Oct 2026 09:10:13 UTC.
Swift 6 data race errors: 3
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 InferSendableFromCapturesBuild Log
========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/smart-byte/UserStorage.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/smart-byte/UserStorage
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2298ed7 chore: release UserStorage 0.3.0 (#5)
Cloned https://github.com/smart-byte/UserStorage.git
Revision (git rev-parse @):
2298ed7d71a10b9886c58652e45d51239a87be6e
SUCCESS checkout https://github.com/smart-byte/UserStorage.git at main
========================================
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",
"StoreStartupTests.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",
"StoreLoadFailure.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/8] 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
[4/8] Compiling UserStorage UserStorageService.swift
[5/8] Compiling UserStorage StoreLoadFailure.swift
[6/8] 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/CoreDataStack.swift:26:24: warning: static property 'model' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectModel' may have shared mutable state; this is an error in the Swift 6 language mode
24 | /// `UserStorageEntity` claims its class, so a second model (say an in-memory stack in tests next
25 | /// to `shared`) makes `+entity` ambiguous and Core Data warns about it.
26 | private static let model: NSManagedObjectModel = {
| `- warning: static property 'model' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectModel' may have shared mutable state; this is an error in the Swift 6 language mode
27 | let entity = NSEntityDescription()
28 | entity.name = "UserStorageEntity"
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectModel.h:23:12: note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
21 | // Models describe object graphs to be managed. Models (and their entities/properties/fetch request templates) are editable until they are used by a persistent store coordinator, allowing developers to create/modify them dynamically. However, once a model is being used, it MUST NOT be changed. When the persistent store coordinator first fetches data using a model, it will become uneditable. Any attempt to mutate a model or any of its subobjects after that point will cause an exception to be thrown. If you need to modify a model that is in use, create a copy, modify the copy, and then discard the objects with the old model.
22 | API_AVAILABLE(macosx(10.4),ios(3.0))
23 | @interface NSManagedObjectModel : NSObject <NSCoding, NSCopying, NSFastEnumeration> {
| `- note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
24 | }
25 |
/Users/admin/builder/spi-builder-workspace/Sources/UserStorage/CoreDataStack.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
1 | import CoreData
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
2 |
3 | public class CoreDataStack {
:
24 | /// `UserStorageEntity` claims its class, so a second model (say an in-memory stack in tests next
25 | /// to `shared`) makes `+entity` ambiguous and Core Data warns about it.
26 | private static let model: NSManagedObjectModel = {
| |- note: add '@MainActor' to make static property 'model' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | let entity = NSEntityDescription()
28 | entity.name = "UserStorageEntity"
/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
[7/8] Compiling UserStorage PublishedUserStorage.swift
[8/8] 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
/Users/admin/builder/spi-builder-workspace/Sources/UserStorage/CoreDataStack.swift:26:24: warning: static property 'model' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectModel' may have shared mutable state; this is an error in the Swift 6 language mode
24 | /// `UserStorageEntity` claims its class, so a second model (say an in-memory stack in tests next
25 | /// to `shared`) makes `+entity` ambiguous and Core Data warns about it.
26 | private static let model: NSManagedObjectModel = {
| `- warning: static property 'model' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectModel' may have shared mutable state; this is an error in the Swift 6 language mode
27 | let entity = NSEntityDescription()
28 | entity.name = "UserStorageEntity"
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectModel.h:23:12: note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
21 | // Models describe object graphs to be managed. Models (and their entities/properties/fetch request templates) are editable until they are used by a persistent store coordinator, allowing developers to create/modify them dynamically. However, once a model is being used, it MUST NOT be changed. When the persistent store coordinator first fetches data using a model, it will become uneditable. Any attempt to mutate a model or any of its subobjects after that point will cause an exception to be thrown. If you need to modify a model that is in use, create a copy, modify the copy, and then discard the objects with the old model.
22 | API_AVAILABLE(macosx(10.4),ios(3.0))
23 | @interface NSManagedObjectModel : NSObject <NSCoding, NSCopying, NSFastEnumeration> {
| `- note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
24 | }
25 |
/Users/admin/builder/spi-builder-workspace/Sources/UserStorage/CoreDataStack.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
1 | import CoreData
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
2 |
3 | public class CoreDataStack {
:
24 | /// `UserStorageEntity` claims its class, so a second model (say an in-memory stack in tests next
25 | /// to `shared`) makes `+entity` ambiguous and Core Data warns about it.
26 | private static let model: NSManagedObjectModel = {
| |- note: add '@MainActor' to make static property 'model' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | let entity = NSEntityDescription()
28 | entity.name = "UserStorageEntity"
Build complete! (8.66s)
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",
"StoreStartupTests.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",
"StoreLoadFailure.swift",
"UserStorage.swift",
"UserStorageService.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.