Skip to content

Commit a43c9d4

Browse files
committed
Fixed macOS support
1 parent b3f764c commit a43c9d4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Sources/CoreDataModel/NSPersistentContainer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ extension NSPersistentContainer: ModelStorage {
5252
}
5353
}
5454

55+
@available(macOS 12, iOS 15, watchOS 8, tvOS 15, *)
5556
public extension NSPersistentContainer {
5657

5758
func loadPersistentStores() -> AsyncThrowingStream<NSPersistentStoreDescription, Error> {

Tests/CoreModelTests/CoreDataTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import Predicate
1414
@testable import CoreModel
1515
@testable import CoreDataModel
1616

17+
@available(macOS 12, iOS 15, watchOS 8, tvOS 15, *)
1718
final class CoreDataTests: XCTestCase {
1819

1920
func testCoreData() async throws {

0 commit comments

Comments
 (0)