Merge pull request #341 from dmatushkin/develop

Fix for build on iOS with Swift Package Manager
This commit is contained in:
John Estropia
2019-10-23 19:27:01 +09:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -452,7 +452,7 @@ public final class CoreStoreSchema: DynamicSchema {
}
for (entity, entityDescription) in entityDescriptionsByEntity {
if #available(macOS 10.11, *) {
if #available(macOS 10.11, iOS 9.0, *) {
let uniqueConstraints = entity.uniqueConstraints.filter({ !$0.isEmpty })
if !uniqueConstraints.isEmpty {