Build Information
Successful build of Stores with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 6
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/omaralbeik/Stores.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/omaralbeik/Stores
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 6382917 Keep a ref to store in AnyStore classes (#22)
Cloned https://github.com/omaralbeik/Stores.git
Revision (git rev-parse @):
638291752db347e40ea4932be424585d47447d32
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/omaralbeik/Stores.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/omaralbeik/Stores.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/8] Write sources
[7/8] Write swift-version-6F35C1178C84523A.txt
[9/14] Compiling Blueprints MultiObjectStore.swift
[10/14] Compiling Blueprints SingleObjectStore.swift
[11/14] Emitting module Blueprints
[12/14] Compiling Blueprints Logger.swift
[13/14] Compiling Blueprints AnySingleObjectStore.swift
[14/14] Compiling Blueprints AnyMultiObjectStore.swift
[15/35] Compiling UserDefaultsStore SingleUserDefaultsStore.swift
[16/35] Emitting module TestUtils
[17/35] Compiling TestUtils StoresError.swift
[18/35] Compiling TestUtils MultiObjectStoreFake.swift
[19/35] Compiling TestUtils User.swift
[20/35] Compiling TestUtils SingleObjectStoreFake.swift
[21/35] Compiling FileSystemStore SingleFileSystemStore.swift
[22/35] Compiling UserDefaultsStore MultiUserDefaultsStore.swift
[23/35] Emitting module UserDefaultsStore
[24/35] Compiling KeychainStore KeychainAccessibility.swift
/Users/admin/builder/spi-builder-workspace/Sources/Keychain/KeychainAccessibility.swift:11:21: warning: static property 'afterFirstUnlock' is not concurrency-safe because non-'Sendable' type 'KeychainAccessibility' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | /// An object representing keychain accessibility level.
6 | public struct KeychainAccessibility: Equatable {
| `- note: consider making struct 'KeychainAccessibility' conform to the 'Sendable' protocol
7 | let attribute: CFString
8 |
9 | /// The data in the keychain item cannot be accessed after a restart until the device has been unlocked
10 | /// once by the user.
11 | public static let afterFirstUnlock = Self(
| |- warning: static property 'afterFirstUnlock' is not concurrency-safe because non-'Sendable' type 'KeychainAccessibility' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'afterFirstUnlock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | attribute: kSecAttrAccessibleAfterFirstUnlock
13 | )
/Users/admin/builder/spi-builder-workspace/Sources/Keychain/KeychainAccessibility.swift:16:21: warning: static property 'whenUnlocked' is not concurrency-safe because non-'Sendable' type 'KeychainAccessibility' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | /// An object representing keychain accessibility level.
6 | public struct KeychainAccessibility: Equatable {
| `- note: consider making struct 'KeychainAccessibility' conform to the 'Sendable' protocol
7 | let attribute: CFString
8 |
:
14 |
15 | /// The data in the keychain item can be accessed only while the device is unlocked by the user.
16 | public static let whenUnlocked = Self(
| |- warning: static property 'whenUnlocked' is not concurrency-safe because non-'Sendable' type 'KeychainAccessibility' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'whenUnlocked' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | attribute: kSecAttrAccessibleWhenUnlocked
18 | )
/Users/admin/builder/spi-builder-workspace/Sources/Keychain/KeychainAccessibility.swift:21:21: warning: static property 'whenUnlockedThisDeviceOnly' is not concurrency-safe because non-'Sendable' type 'KeychainAccessibility' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | /// An object representing keychain accessibility level.
6 | public struct KeychainAccessibility: Equatable {
| `- note: consider making struct 'KeychainAccessibility' conform to the 'Sendable' protocol
7 | let attribute: CFString
8 |
:
19 |
20 | /// The data in the keychain item can be accessed only while the device is unlocked by the user.
21 | public static let whenUnlockedThisDeviceOnly = Self(
| |- warning: static property 'whenUnlockedThisDeviceOnly' is not concurrency-safe because non-'Sendable' type 'KeychainAccessibility' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'whenUnlockedThisDeviceOnly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | attribute: kSecAttrAccessibleWhenUnlockedThisDeviceOnly
23 | )
/Users/admin/builder/spi-builder-workspace/Sources/Keychain/KeychainAccessibility.swift:27:21: warning: static property 'whenPasscodeSetThisDeviceOnly' is not concurrency-safe because non-'Sendable' type 'KeychainAccessibility' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | /// An object representing keychain accessibility level.
6 | public struct KeychainAccessibility: Equatable {
| `- note: consider making struct 'KeychainAccessibility' conform to the 'Sendable' protocol
7 | let attribute: CFString
8 |
:
25 | /// The data in the keychain can only be accessed when the device is unlocked.
26 | /// Only available if a passcode is set on the device.
27 | public static let whenPasscodeSetThisDeviceOnly = Self(
| |- warning: static property 'whenPasscodeSetThisDeviceOnly' is not concurrency-safe because non-'Sendable' type 'KeychainAccessibility' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'whenPasscodeSetThisDeviceOnly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | attribute: kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly
29 | )
/Users/admin/builder/spi-builder-workspace/Sources/Keychain/KeychainAccessibility.swift:33:21: warning: static property 'afterFirstUnlockThisDeviceOnly' is not concurrency-safe because non-'Sendable' type 'KeychainAccessibility' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | /// An object representing keychain accessibility level.
6 | public struct KeychainAccessibility: Equatable {
| `- note: consider making struct 'KeychainAccessibility' conform to the 'Sendable' protocol
7 | let attribute: CFString
8 |
:
31 | /// The data in the keychain item cannot be accessed after a restart until the device has been
32 | /// unlocked once by the user.
33 | public static let afterFirstUnlockThisDeviceOnly = Self(
| |- warning: static property 'afterFirstUnlockThisDeviceOnly' is not concurrency-safe because non-'Sendable' type 'KeychainAccessibility' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'afterFirstUnlockThisDeviceOnly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | attribute: kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly
35 | )
[25/35] Emitting module KeychainStore
/Users/admin/builder/spi-builder-workspace/Sources/Keychain/KeychainAccessibility.swift:11:21: warning: static property 'afterFirstUnlock' is not concurrency-safe because non-'Sendable' type 'KeychainAccessibility' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | /// An object representing keychain accessibility level.
6 | public struct KeychainAccessibility: Equatable {
| `- note: consider making struct 'KeychainAccessibility' conform to the 'Sendable' protocol
7 | let attribute: CFString
8 |
9 | /// The data in the keychain item cannot be accessed after a restart until the device has been unlocked
10 | /// once by the user.
11 | public static let afterFirstUnlock = Self(
| |- warning: static property 'afterFirstUnlock' is not concurrency-safe because non-'Sendable' type 'KeychainAccessibility' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'afterFirstUnlock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | attribute: kSecAttrAccessibleAfterFirstUnlock
13 | )
/Users/admin/builder/spi-builder-workspace/Sources/Keychain/KeychainAccessibility.swift:16:21: warning: static property 'whenUnlocked' is not concurrency-safe because non-'Sendable' type 'KeychainAccessibility' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | /// An object representing keychain accessibility level.
6 | public struct KeychainAccessibility: Equatable {
| `- note: consider making struct 'KeychainAccessibility' conform to the 'Sendable' protocol
7 | let attribute: CFString
8 |
:
14 |
15 | /// The data in the keychain item can be accessed only while the device is unlocked by the user.
16 | public static let whenUnlocked = Self(
| |- warning: static property 'whenUnlocked' is not concurrency-safe because non-'Sendable' type 'KeychainAccessibility' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'whenUnlocked' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | attribute: kSecAttrAccessibleWhenUnlocked
18 | )
/Users/admin/builder/spi-builder-workspace/Sources/Keychain/KeychainAccessibility.swift:21:21: warning: static property 'whenUnlockedThisDeviceOnly' is not concurrency-safe because non-'Sendable' type 'KeychainAccessibility' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | /// An object representing keychain accessibility level.
6 | public struct KeychainAccessibility: Equatable {
| `- note: consider making struct 'KeychainAccessibility' conform to the 'Sendable' protocol
7 | let attribute: CFString
8 |
:
19 |
20 | /// The data in the keychain item can be accessed only while the device is unlocked by the user.
21 | public static let whenUnlockedThisDeviceOnly = Self(
| |- warning: static property 'whenUnlockedThisDeviceOnly' is not concurrency-safe because non-'Sendable' type 'KeychainAccessibility' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'whenUnlockedThisDeviceOnly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | attribute: kSecAttrAccessibleWhenUnlockedThisDeviceOnly
23 | )
/Users/admin/builder/spi-builder-workspace/Sources/Keychain/KeychainAccessibility.swift:27:21: warning: static property 'whenPasscodeSetThisDeviceOnly' is not concurrency-safe because non-'Sendable' type 'KeychainAccessibility' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | /// An object representing keychain accessibility level.
6 | public struct KeychainAccessibility: Equatable {
| `- note: consider making struct 'KeychainAccessibility' conform to the 'Sendable' protocol
7 | let attribute: CFString
8 |
:
25 | /// The data in the keychain can only be accessed when the device is unlocked.
26 | /// Only available if a passcode is set on the device.
27 | public static let whenPasscodeSetThisDeviceOnly = Self(
| |- warning: static property 'whenPasscodeSetThisDeviceOnly' is not concurrency-safe because non-'Sendable' type 'KeychainAccessibility' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'whenPasscodeSetThisDeviceOnly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | attribute: kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly
29 | )
/Users/admin/builder/spi-builder-workspace/Sources/Keychain/KeychainAccessibility.swift:33:21: warning: static property 'afterFirstUnlockThisDeviceOnly' is not concurrency-safe because non-'Sendable' type 'KeychainAccessibility' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | /// An object representing keychain accessibility level.
6 | public struct KeychainAccessibility: Equatable {
| `- note: consider making struct 'KeychainAccessibility' conform to the 'Sendable' protocol
7 | let attribute: CFString
8 |
:
31 | /// The data in the keychain item cannot be accessed after a restart until the device has been
32 | /// unlocked once by the user.
33 | public static let afterFirstUnlockThisDeviceOnly = Self(
| |- warning: static property 'afterFirstUnlockThisDeviceOnly' is not concurrency-safe because non-'Sendable' type 'KeychainAccessibility' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'afterFirstUnlockThisDeviceOnly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | attribute: kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly
35 | )
[26/35] Compiling KeychainStore MultiKeychainStore.swift
/Users/admin/builder/spi-builder-workspace/Sources/Keychain/KeychainAccessibility.swift:21:21: warning: static property 'whenUnlockedThisDeviceOnly' is not concurrency-safe because non-'Sendable' type 'KeychainAccessibility' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | /// An object representing keychain accessibility level.
6 | public struct KeychainAccessibility: Equatable {
| `- note: consider making struct 'KeychainAccessibility' conform to the 'Sendable' protocol
7 | let attribute: CFString
8 |
:
19 |
20 | /// The data in the keychain item can be accessed only while the device is unlocked by the user.
21 | public static let whenUnlockedThisDeviceOnly = Self(
| |- warning: static property 'whenUnlockedThisDeviceOnly' is not concurrency-safe because non-'Sendable' type 'KeychainAccessibility' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'whenUnlockedThisDeviceOnly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | attribute: kSecAttrAccessibleWhenUnlockedThisDeviceOnly
23 | )
[27/35] Compiling KeychainStore SingleKeychainStore.swift
/Users/admin/builder/spi-builder-workspace/Sources/Keychain/KeychainAccessibility.swift:21:21: warning: static property 'whenUnlockedThisDeviceOnly' is not concurrency-safe because non-'Sendable' type 'KeychainAccessibility' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | /// An object representing keychain accessibility level.
6 | public struct KeychainAccessibility: Equatable {
| `- note: consider making struct 'KeychainAccessibility' conform to the 'Sendable' protocol
7 | let attribute: CFString
8 |
:
19 |
20 | /// The data in the keychain item can be accessed only while the device is unlocked by the user.
21 | public static let whenUnlockedThisDeviceOnly = Self(
| |- warning: static property 'whenUnlockedThisDeviceOnly' is not concurrency-safe because non-'Sendable' type 'KeychainAccessibility' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'whenUnlockedThisDeviceOnly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | attribute: kSecAttrAccessibleWhenUnlockedThisDeviceOnly
23 | )
[28/35] Compiling KeychainStore KeychainError.swift
[29/35] Emitting module FileSystemStore
[30/35] Compiling FileSystemStore MultiFileSystemStore.swift
[31/35] Compiling CoreDataStore SingleCoreDataStore.swift
/Users/admin/builder/spi-builder-workspace/Sources/CoreData/Database.swift:32:14: warning: static property 'entityModel' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectModel' may have shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | static let entityModel: NSManagedObjectModel = {
| `- warning: static property 'entityModel' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectModel' may have shared mutable state; this is an error in the Swift 6 language mode
33 | let entity = NSEntityDescription()
34 | entity.name = "Entity"
CoreData.NSManagedObjectModel:2:12: note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSManagedObjectModel : NSObject, NSCoding, NSCopying, NSFastEnumeration {
| `- note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
3 | open class func mergedModel(from bundles: [Bundle]?) -> NSManagedObjectModel?
4 | @available(swift, obsoleted: 3, renamed: "mergedModel(from:)")
/Users/admin/builder/spi-builder-workspace/Sources/CoreData/Database.swift:3:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
1 | #if canImport(CoreData)
2 |
3 | import CoreData
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
4 | import Foundation
5 |
:
30 | }
31 |
32 | static let entityModel: NSManagedObjectModel = {
| |- note: annotate 'entityModel' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | let entity = NSEntityDescription()
34 | entity.name = "Entity"
[32/35] Emitting module CoreDataStore
/Users/admin/builder/spi-builder-workspace/Sources/CoreData/Database.swift:6:13: warning: class 'Container' must restate inherited '@unchecked Sendable' conformance
4 | import Foundation
5 |
6 | final class Container: NSPersistentContainer {
| `- warning: class 'Container' must restate inherited '@unchecked Sendable' conformance
7 | override class func defaultDirectoryURL() -> URL {
8 | super.defaultDirectoryURL().appendingPathComponent("CoreDataStore")
/Users/admin/builder/spi-builder-workspace/Sources/CoreData/Database.swift:32:14: warning: static property 'entityModel' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectModel' may have shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | static let entityModel: NSManagedObjectModel = {
| `- warning: static property 'entityModel' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectModel' may have shared mutable state; this is an error in the Swift 6 language mode
33 | let entity = NSEntityDescription()
34 | entity.name = "Entity"
CoreData.NSManagedObjectModel:2:12: note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSManagedObjectModel : NSObject, NSCoding, NSCopying, NSFastEnumeration {
| `- note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
3 | open class func mergedModel(from bundles: [Bundle]?) -> NSManagedObjectModel?
4 | @available(swift, obsoleted: 3, renamed: "mergedModel(from:)")
/Users/admin/builder/spi-builder-workspace/Sources/CoreData/Database.swift:3:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
1 | #if canImport(CoreData)
2 |
3 | import CoreData
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
4 | import Foundation
5 |
:
30 | }
31 |
32 | static let entityModel: NSManagedObjectModel = {
| |- note: annotate 'entityModel' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | let entity = NSEntityDescription()
34 | entity.name = "Entity"
[33/35] Compiling CoreDataStore Entity.swift
[34/35] Compiling CoreDataStore Database.swift
/Users/admin/builder/spi-builder-workspace/Sources/CoreData/Database.swift:6:13: warning: class 'Container' must restate inherited '@unchecked Sendable' conformance
4 | import Foundation
5 |
6 | final class Container: NSPersistentContainer {
| `- warning: class 'Container' must restate inherited '@unchecked Sendable' conformance
7 | override class func defaultDirectoryURL() -> URL {
8 | super.defaultDirectoryURL().appendingPathComponent("CoreDataStore")
/Users/admin/builder/spi-builder-workspace/Sources/CoreData/Database.swift:32:14: warning: static property 'entityModel' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectModel' may have shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | static let entityModel: NSManagedObjectModel = {
| `- warning: static property 'entityModel' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectModel' may have shared mutable state; this is an error in the Swift 6 language mode
33 | let entity = NSEntityDescription()
34 | entity.name = "Entity"
CoreData.NSManagedObjectModel:2:12: note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSManagedObjectModel : NSObject, NSCoding, NSCopying, NSFastEnumeration {
| `- note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
3 | open class func mergedModel(from bundles: [Bundle]?) -> NSManagedObjectModel?
4 | @available(swift, obsoleted: 3, renamed: "mergedModel(from:)")
/Users/admin/builder/spi-builder-workspace/Sources/CoreData/Database.swift:3:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
1 | #if canImport(CoreData)
2 |
3 | import CoreData
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
4 | import Foundation
5 |
:
30 | }
31 |
32 | static let entityModel: NSManagedObjectModel = {
| |- note: annotate 'entityModel' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | let entity = NSEntityDescription()
34 | entity.name = "Entity"
[35/35] Compiling CoreDataStore MultiCoreDataStore.swift
/Users/admin/builder/spi-builder-workspace/Sources/CoreData/Database.swift:32:14: warning: static property 'entityModel' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectModel' may have shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | static let entityModel: NSManagedObjectModel = {
| `- warning: static property 'entityModel' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectModel' may have shared mutable state; this is an error in the Swift 6 language mode
33 | let entity = NSEntityDescription()
34 | entity.name = "Entity"
CoreData.NSManagedObjectModel:2:12: note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSManagedObjectModel : NSObject, NSCoding, NSCopying, NSFastEnumeration {
| `- note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
3 | open class func mergedModel(from bundles: [Bundle]?) -> NSManagedObjectModel?
4 | @available(swift, obsoleted: 3, renamed: "mergedModel(from:)")
/Users/admin/builder/spi-builder-workspace/Sources/CoreData/Database.swift:3:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
1 | #if canImport(CoreData)
2 |
3 | import CoreData
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
4 | import Foundation
5 |
:
30 | }
31 |
32 | static let entityModel: NSManagedObjectModel = {
| |- note: annotate 'entityModel' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | let entity = NSEntityDescription()
34 | entity.name = "Entity"
[36/37] Emitting module Stores
[37/37] Compiling Stores Stores.swift
Build complete! (20.35s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Stores",
"name" : "Stores",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "Stores",
"targets" : [
"Stores"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Blueprints",
"targets" : [
"Blueprints"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "UserDefaultsStore",
"targets" : [
"UserDefaultsStore"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "FileSystemStore",
"targets" : [
"FileSystemStore"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "CoreDataStore",
"targets" : [
"CoreDataStore"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "KeychainStore",
"targets" : [
"KeychainStore"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "StoresTestUtils",
"targets" : [
"TestUtils"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "UserDefaultsStoreTests",
"module_type" : "SwiftTarget",
"name" : "UserDefaultsStoreTests",
"path" : "Tests/UserDefaults",
"sources" : [
"MultiUserDefaultsStoreTests.swift",
"SingleUserDefaultsStoreTests.swift"
],
"target_dependencies" : [
"UserDefaultsStore",
"TestUtils"
],
"type" : "test"
},
{
"c99name" : "UserDefaultsStore",
"module_type" : "SwiftTarget",
"name" : "UserDefaultsStore",
"path" : "Sources/UserDefaults",
"product_memberships" : [
"Stores",
"UserDefaultsStore"
],
"sources" : [
"MultiUserDefaultsStore.swift",
"SingleUserDefaultsStore.swift"
],
"target_dependencies" : [
"Blueprints"
],
"type" : "library"
},
{
"c99name" : "TestUtils",
"module_type" : "SwiftTarget",
"name" : "TestUtils",
"path" : "Tests/Utils",
"product_memberships" : [
"StoresTestUtils"
],
"sources" : [
"MultiObjectStoreFake.swift",
"SingleObjectStoreFake.swift",
"StoresError.swift",
"User.swift"
],
"target_dependencies" : [
"Blueprints"
],
"type" : "library"
},
{
"c99name" : "Stores",
"module_type" : "SwiftTarget",
"name" : "Stores",
"path" : "Sources/Stores",
"product_memberships" : [
"Stores"
],
"sources" : [
"Stores.swift"
],
"target_dependencies" : [
"Blueprints",
"UserDefaultsStore",
"FileSystemStore",
"CoreDataStore",
"KeychainStore"
],
"type" : "library"
},
{
"c99name" : "KeychainStoreTests",
"module_type" : "SwiftTarget",
"name" : "KeychainStoreTests",
"path" : "Tests/Keychain",
"sources" : [
"KeychainErrorTests.swift",
"MultiKeychainStoreTests.swift",
"SingleKeychainStoreTests.swift"
],
"target_dependencies" : [
"KeychainStore",
"TestUtils"
],
"type" : "test"
},
{
"c99name" : "KeychainStore",
"module_type" : "SwiftTarget",
"name" : "KeychainStore",
"path" : "Sources/Keychain",
"product_memberships" : [
"Stores",
"KeychainStore"
],
"sources" : [
"KeychainAccessibility.swift",
"KeychainError.swift",
"MultiKeychainStore.swift",
"SingleKeychainStore.swift"
],
"target_dependencies" : [
"Blueprints"
],
"type" : "library"
},
{
"c99name" : "FileSystemStoreTests",
"module_type" : "SwiftTarget",
"name" : "FileSystemStoreTests",
"path" : "Tests/FileSystem",
"sources" : [
"MultiFileSystemStoreTests.swift",
"SingleFileSystemStoreTests.swift"
],
"target_dependencies" : [
"FileSystemStore",
"TestUtils"
],
"type" : "test"
},
{
"c99name" : "FileSystemStore",
"module_type" : "SwiftTarget",
"name" : "FileSystemStore",
"path" : "Sources/FileSystem",
"product_memberships" : [
"Stores",
"FileSystemStore"
],
"sources" : [
"MultiFileSystemStore.swift",
"SingleFileSystemStore.swift"
],
"target_dependencies" : [
"Blueprints"
],
"type" : "library"
},
{
"c99name" : "CoreDataStoreTests",
"module_type" : "SwiftTarget",
"name" : "CoreDataStoreTests",
"path" : "Tests/CoreData",
"sources" : [
"DatabaseTests.swift",
"MultiCoreDataStoreTests.swift",
"SingleCoreDataStoreTests.swift"
],
"target_dependencies" : [
"CoreDataStore",
"TestUtils"
],
"type" : "test"
},
{
"c99name" : "CoreDataStore",
"module_type" : "SwiftTarget",
"name" : "CoreDataStore",
"path" : "Sources/CoreData",
"product_memberships" : [
"Stores",
"CoreDataStore"
],
"sources" : [
"Database.swift",
"Entity.swift",
"MultiCoreDataStore.swift",
"SingleCoreDataStore.swift"
],
"target_dependencies" : [
"Blueprints"
],
"type" : "library"
},
{
"c99name" : "BlueprintsTests",
"module_type" : "SwiftTarget",
"name" : "BlueprintsTests",
"path" : "Tests/Blueprints",
"sources" : [
"AnyMultiObjectStoreTests.swift",
"AnySingleObjectStoreTests.swift",
"MultiObjectStoreTests.swift",
"SingleObjectStoreTests.swift"
],
"target_dependencies" : [
"Blueprints",
"TestUtils"
],
"type" : "test"
},
{
"c99name" : "Blueprints",
"module_type" : "SwiftTarget",
"name" : "Blueprints",
"path" : "Sources/Blueprints",
"product_memberships" : [
"Stores",
"Blueprints",
"UserDefaultsStore",
"FileSystemStore",
"CoreDataStore",
"KeychainStore",
"StoresTestUtils"
],
"sources" : [
"AnyMultiObjectStore.swift",
"AnySingleObjectStore.swift",
"Logger.swift",
"MultiObjectStore.swift",
"SingleObjectStore.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.