Skip to content

CoreData macOS xcode9 beta1

Vincent Dondain edited this page Jun 5, 2017 · 2 revisions

#CoreData.framework

diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes	2017-05-25 04:14:38.000000000 -0400
@@ -0,0 +1,190 @@
+---
+Name: CoreData
+Classes:
+- Name: NSAtomicStore
+  Methods:
+  - Selector: 'objectIDForEntity:referenceObject:'
+    SwiftName: objectID(for:withReferenceObject:)
+    MethodKind: Instance
+- Name: NSEntityDescription
+  Methods:
+  - Selector: 'entityForName:inManagedObjectContext:'
+    SwiftName: entity(forEntityName:in:)
+    MethodKind: Class
+  - Selector: 'insertNewObjectForEntityForName:inManagedObjectContext:'
+    SwiftName: insertNewObject(forEntityName:into:)
+    MethodKind: Class
+  - Selector: 'relationshipsWithDestinationEntity:'
+    SwiftName: relationships(forDestination:)
+    MethodKind: Instance
+  - Selector: 'isKindOfEntity:'
+    SwiftName: isKindOf(entity:)
+    MethodKind: Instance
+- Name: NSEntityMigrationPolicy
+  Methods:
+  - Selector: 'beginEntityMapping:manager:error:'
+    SwiftName: begin(_:with:)
+    MethodKind: Instance
+  - Selector: 'createDestinationInstancesForSourceInstance:entityMapping:manager:error:'
+    SwiftName: createDestinationInstances(forSource:in:manager:)
+    MethodKind: Instance
+  - Selector: 'endInstanceCreationForEntityMapping:manager:error:'
+    SwiftName: endInstanceCreation(forMapping:manager:)
+    MethodKind: Instance
+  - Selector: 'createRelationshipsForDestinationInstance:entityMapping:manager:error:'
+    SwiftName: createRelationships(forDestination:in:manager:)
+    MethodKind: Instance
+  - Selector: 'endRelationshipCreationForEntityMapping:manager:error:'
+    SwiftName: endRelationshipCreation(forMapping:manager:)
+    MethodKind: Instance
+  - Selector: 'performCustomValidationForEntityMapping:manager:error:'
+    SwiftName: performCustomValidation(forMapping:manager:)
+    MethodKind: Instance
+- Name: NSIncrementalStore
+  Methods:
+  - Selector: 'newObjectIDForEntity:referenceObject:'
+    SwiftName: newObjectID(for:referenceObject:)
+    MethodKind: Instance
+- Name: NSManagedObjectContext
+  Methods:
+  - Selector: 'performBlockAndWait:'
+    SwiftName: performAndWait(_:)
+    MethodKind: Instance
+  - Selector: 'objectRegisteredForID:'
+    SwiftName: registeredObject(for:)
+    MethodKind: Instance
+  - Selector: 'executeFetchRequest:error:'
+    SwiftName: fetch(_:)
+    MethodKind: Instance
+  - Selector: 'refreshObject:mergeChanges:'
+    SwiftName: refresh(_:mergeChanges:)
+    MethodKind: Instance
+- Name: NSManagedObjectModel
+  Methods:
+  - Selector: 'entitiesForConfiguration:'
+    SwiftName: entities(forConfigurationName:)
+    MethodKind: Instance
+  - Selector: 'setEntities:forConfiguration:'
+    SwiftName: setEntities(_:forConfigurationName:)
+    MethodKind: Instance
+  - Selector: 'isConfiguration:compatibleWithStoreMetadata:'
+    SwiftName: isConfiguration(withName:compatibleWithStoreMetadata:)
+    MethodKind: Instance
+- Name: NSConstraintConflict
+  Methods:
+  - Selector: 'initWithConstraint:databaseObject:databaseSnapshot:conflictingObjects:conflictingSnapshots:'
+    SwiftName: 'init(constraint:database:databaseSnapshot:conflicting:conflictingSnapshots:)'
+    MethodKind: Instance
+- Name: NSMergePolicy
+  Methods:
+  - Selector: 'resolveConflicts:error:'
+    SwiftName: resolve(mergeConflicts:)
+    MethodKind: Instance
+  - Selector: 'resolveOptimisticLockingVersionConflicts:error:'
+    SwiftName: 'resolve(optimisticLockingConflicts:)'
+    MethodKind: Instance
+  - Selector: 'resolveConstraintConflicts:error:'
+    SwiftName: resolve(constraintConflicts:)
+    MethodKind: Instance
+- Name: NSMigrationManager
+  Methods:
+  - Selector: 'migrateStoreFromURL:type:options:withMappingModel:toDestinationURL:destinationType:destinationOptions:error:'
+    SwiftName: migrateStore(from:sourceType:options:with:toDestinationURL:destinationType:destinationOptions:)
+    MethodKind: Instance
+  - Selector: 'associateSourceInstance:withDestinationInstance:forEntityMapping:'
+    SwiftName: associate(sourceInstance:withDestinationInstance:for:)
+    MethodKind: Instance
+  - Selector: 'destinationInstancesForEntityMappingNamed:sourceInstances:'
+    SwiftName: destinationInstances(forEntityMappingName:sourceInstances:)
+    MethodKind: Instance
+  - Selector: 'sourceInstancesForEntityMappingNamed:destinationInstances:'
+    SwiftName: sourceInstances(forEntityMappingName:destinationInstances:)
+    MethodKind: Instance
+- Name: NSPersistentStore
+  Methods:
+  - Selector: 'setMetadata:forPersistentStoreWithURL:error:'
+    SwiftName: setMetadata(_:forPersistentStoreAt:)
+    MethodKind: Class
+  - Selector: 'initWithPersistentStoreCoordinator:configurationName:URL:options:'
+    SwiftName: init(persistentStoreCoordinator:configurationName:at:options:)
+    MethodKind: Instance
+- Name: NSPersistentStoreCoordinator
+  Methods:
+  - Selector: 'addPersistentStoreWithType:configuration:URL:options:error:'
+    SwiftName: addPersistentStore(ofType:configurationName:at:options:)
+    MethodKind: Instance
+  - Selector: 'removePersistentStore:error:'
+    SwiftName: remove(_:)
+    MethodKind: Instance
+  - Selector: 'metadataForPersistentStoreOfType:URL:options:error:'
+    SwiftName: metadataForPersistentStore(ofType:at:options:)
+    MethodKind: Class
+  - Selector: 'setMetadata:forPersistentStoreOfType:URL:options:error:'
+    SwiftName: setMetadata(_:forPersistentStoreOfType:at:options:)
+    MethodKind: Class
+  - Selector: 'metadataForPersistentStoreOfType:URL:error:'
+    SwiftName: 'metadataForPersistentStore(ofType:at:)'
+    MethodKind: Class
+  - Selector: 'setMetadata:forPersistentStoreOfType:URL:error:'
+    SwiftName: 'setMetadata(_:forPersistentStoreOfType:at:)'
+    MethodKind: Class
+  - Selector: 'elementsDerivedFromExternalRecordURL:'
+    SwiftName: elementsDerived(fromExternalRecordAt:)
+    MethodKind: Class
+  - Selector: 'importStoreWithIdentifier:fromExternalRecordsDirectory:toURL:options:withType:error:'
+    SwiftName: importStore(withIdentifier:fromExternalRecordsDirectoryAt:to:options:ofType:)
+    MethodKind: Instance
+  - Selector: 'destroyPersistentStoreAtURL:withType:options:error:'
+    SwiftName: 'destroyPersistentStore(at:ofType:options:)'
+    MethodKind: Instance
+  - Selector: 'replacePersistentStoreAtURL:destinationOptions:withPersistentStoreFromURL:sourceOptions:storeType:error:'
+    SwiftName: 'replacePersistentStore(at:destinationOptions:withPersistentStoreFrom:sourceOptions:ofType:)'
+    MethodKind: Instance
+  - Selector: 'performBlockAndWait:'
+    SwiftName: 'performAndWait(_:)'
+    MethodKind: Instance
+- Name: NSSaveChangesRequest
+  Methods:
+  - Selector: 'initWithInsertedObjects:updatedObjects:deletedObjects:lockedObjects:'
+    SwiftName: init(inserted:updated:deleted:locked:)
+    MethodKind: Instance
+Protocols:
+- Name: NSFetchedResultsControllerDelegate
+  Methods:
+  - Selector: 'controller:didChangeSection:atIndex:forChangeType:'
+    SwiftName: controller(_:didChange:atSectionIndex:for:)
+    MethodKind: Instance
+Enumerators:
+- Name: NSManagedObjectResultType
+  SwiftName: managedObjectResultType
+- Name: NSBinaryDataAttributeType
+  SwiftName: binaryDataAttributeType
+- Name: NSBooleanAttributeType
+  SwiftName: booleanAttributeType
+- Name: NSDateAttributeType
+  SwiftName: dateAttributeType
+- Name: NSDecimalAttributeType
+  SwiftName: decimalAttributeType
+- Name: NSDoubleAttributeType
+  SwiftName: doubleAttributeType
+- Name: NSFloatAttributeType
+  SwiftName: floatAttributeType
+- Name: NSInteger16AttributeType
+  SwiftName: integer16AttributeType
+- Name: NSInteger32AttributeType
+  SwiftName: integer32AttributeType
+- Name: NSInteger64AttributeType
+  SwiftName: integer64AttributeType
+- Name: NSObjectIDAttributeType
+  SwiftName: objectIDAttributeType
+- Name: NSStringAttributeType
+  SwiftName: stringAttributeType
+- Name: NSTransformableAttributeType
+  SwiftName: transformableAttributeType
+- Name: NSUndefinedAttributeType
+  SwiftName: undefinedAttributeType
+- Name: NSUUIDAttributeType
+  SwiftName: UUIDAttributeType
+- Name: NSURIAttributeType
+  SwiftName: URIAttributeType
+
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,8 +1,8 @@
 /*
-	CoreData.h
-	Core Data
-    Copyright (c) 2004-2016, Apple Inc.
-	All rights reserved.
+    CoreData.h
+    Core Data
+    Copyright (c) 2004-2017, Apple Inc.
+    All rights reserved.
 */
 
 #import <Foundation/Foundation.h>
@@ -16,6 +16,8 @@
 #import <CoreData/NSPropertyDescription.h>
 #import <CoreData/NSExpressionDescription.h>
 #import <CoreData/NSRelationshipDescription.h>
+#import <CoreData/NSFetchIndexDescription.h>
+#import <CoreData/NSFetchIndexElementDescription.h>
 #import <CoreData/NSFetchRequest.h>
 #import <CoreData/NSFetchRequestExpression.h>
 #import <CoreData/NSManagedObjectModel.h>
@@ -50,3 +52,13 @@
 #import <CoreData/NSQueryGenerationToken.h>
 #import <CoreData/NSPersistentStoreDescription.h>
 #import <CoreData/NSPersistentContainer.h>
+
+#import <CoreData/NSFetchIndexDescription.h>
+#import <CoreData/NSFetchIndexElementDescription.h>
+#import <CoreData/NSPersistentHistoryChange.h>
+#import <CoreData/NSPersistentHistoryChangeRequest.h>
+#import <CoreData/NSPersistentHistoryToken.h>
+#import <CoreData/NSPersistentHistoryTransaction.h>
+
+#import <CoreData/NSCoreDataCoreSpotlightDelegate.h>
+
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreDataDefines.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreDataDefines.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreDataDefines.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreDataDefines.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,9 +1,10 @@
 /*
-	CoreDataDefines.h
+    CoreDataDefines.h
     Core Data
-    Copyright (c) 2004-2016, Apple Inc.
-	All rights reserved.
+    Copyright (c) 2004-2017, Apple Inc.
+    All rights reserved.
 */
+
 #ifndef _COREDATADEFINES_H
 #define _COREDATADEFINES_H
 
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreDataErrors.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreDataErrors.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreDataErrors.h	2016-09-23 20:28:30.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreDataErrors.h	2017-05-25 04:14:38.000000000 -0400
@@ -1,9 +1,9 @@
 /*
-	CoreDataErrors.h
-	Core Data
-    Copyright (c) 2004-2016, Apple Inc.
-	All rights reserved.
- */
+    CoreDataErrors.h
+    Core Data
+    Copyright (c) 2004-2017, Apple Inc.
+    All rights reserved.
+*/
 
 #import <Foundation/NSObject.h>
 
@@ -45,6 +45,7 @@
     NSValidationStringTooLongError                   = 1660,   // some string value is too long
     NSValidationStringTooShortError                  = 1670,   // some string value is too short
     NSValidationStringPatternMatchingError           = 1680,   // some string value fails to match some pattern
+    NSValidationInvalidURIError                      = 1690,   // some URI value cannot be represented as a string
     
     NSManagedObjectContextLockingError               = 132000, // can't acquire a lock in a managed object context
     NSPersistentStoreCoordinatorLockingError         = 132010, // can't acquire a lock in a persistent store coordinator
@@ -80,8 +81,9 @@
     NSSQLiteError                                    = 134180,  // general SQLite error 
 
     NSInferredMappingModelError                      = 134190, // inferred mapping model creation error
-    NSExternalRecordImportError                      = 134200 // general error encountered while importing external records
-
+    NSExternalRecordImportError                      = 134200, // general error encountered while importing external records
+    
+    NSPersistentHistoryTokenExpiredError             = 134301 // The history token passed to NSPersistentChangeRequest was invalid
 };
 
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSAtomicStore.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSAtomicStore.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSAtomicStore.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSAtomicStore.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,7 +1,7 @@
 /*
     NSAtomicStore.h
     Core Data
-    Copyright (c) 2004-2016, Apple Inc.
+    Copyright (c) 2004-2017, Apple Inc.
     All rights reserved.
 */
 
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSAtomicStoreCacheNode.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSAtomicStoreCacheNode.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSAtomicStoreCacheNode.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSAtomicStoreCacheNode.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,7 +1,7 @@
 /*
     NSAtomicStoreCacheNode.h
     Core Data
-    Copyright (c) 2004-2016, Apple Inc.
+    Copyright (c) 2004-2017, Apple Inc.
     All rights reserved.
 */
 
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSAttributeDescription.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSAttributeDescription.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSAttributeDescription.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSAttributeDescription.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,7 +1,7 @@
 /*
     NSAttributeDescription.h
     Core Data
-    Copyright (c) 2004-2016, Apple Inc.
+    Copyright (c) 2004-2017, Apple Inc.
     All rights reserved.
 */
 
@@ -27,6 +27,8 @@
     NSBooleanAttributeType = 800,
     NSDateAttributeType = 900,
     NSBinaryDataAttributeType = 1000,
+    NSUUIDAttributeType API_AVAILABLE(macosx(10.13), ios(11.0), tvos(11.0), watchos(4.0)) = 1100,
+    NSURIAttributeType API_AVAILABLE(macosx(10.13), ios(11.0), tvos(11.0), watchos(4.0)) = 1200,
     NSTransformableAttributeType API_AVAILABLE(macosx(10.5), ios(3.0)) = 1800, // If your attribute is of NSTransformableAttributeType, the attributeValueClassName must be set or attribute value class must implement NSCopying.
     NSObjectIDAttributeType API_AVAILABLE(macosx(10.6), ios(3.0)) = 2000
  };
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSBatchDeleteRequest.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSBatchDeleteRequest.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSBatchDeleteRequest.h	2017-02-17 21:47:31.000000000 -0500
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSBatchDeleteRequest.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,9 +1,9 @@
 /*
     NSBatchDeleteRequest.h
     Core Data
-    Copyright (c) 2015-2016, Apple Inc.
+    Copyright (c) 2015-2017, Apple Inc.
     All rights reserved.
- */
+*/
 
 
 #import <Foundation/NSArray.h>
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSBatchUpdateRequest.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSBatchUpdateRequest.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSBatchUpdateRequest.h	2017-02-17 21:47:31.000000000 -0500
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSBatchUpdateRequest.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,9 +1,9 @@
 /*
- NSBatchUpdateRequest.h
- Core Data
- Copyright (c) 2004-2016, Apple Inc.
- All rights reserved.
- */
+    NSBatchUpdateRequest.h
+    Core Data
+    Copyright (c) 2004-2017, Apple Inc.
+    All rights reserved.
+*/
 
 #import <Foundation/NSPredicate.h>
 #import <Foundation/NSDictionary.h>
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSCoreDataCoreSpotlightDelegate.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSCoreDataCoreSpotlightDelegate.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSCoreDataCoreSpotlightDelegate.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSCoreDataCoreSpotlightDelegate.h	2017-05-20 22:26:09.000000000 -0400
@@ -0,0 +1,55 @@
+/*
+    NSCoreDataCoreSpotlightDelegate.h
+    Core Data
+    Copyright (c) 2017, Apple Inc.
+    All rights reserved.
+*/
+
+
+#import <Foundation/NSArray.h>
+
+@class NSManagedObjectContext;
+@class NSPersistentStoreDescription;
+@class NSManagedObjectModel;
+@class NSManagedObject;
+@class CSSearchableIndex;
+@class CSSearchableItemAttributeSet;
+
+NS_ASSUME_NONNULL_BEGIN
+
+/* NSCoreDataSpotlightDelegate implements the CSSearchableIndexDelegate API, but can't
+ publicly declare it due to linkage requirements.
+ */
+API_AVAILABLE(macosx(10.13),ios(11.0)) API_UNAVAILABLE(tvos,watchos)
+@interface NSCoreDataCoreSpotlightDelegate : NSObject {
+#if !__OBJC2__
+@private
+    NSManagedObjectContext *_context;
+    NSString *_domainIdentifier;
+    NSString *_indexName;
+#endif
+}
+
+/* CoreSpotlight domain identifer; default nil */
+- (NSString *)domainIdentifier;
+/* CoreSpotlight index name; default is the store's identifier */
+- (nullable NSString *)indexName;
+
+
+- (instancetype)initForStoreWithDescription:(NSPersistentStoreDescription *)description  model:(NSManagedObjectModel *)model NS_DESIGNATED_INITIALIZER;
+
+/* Create the searchable attributes for the managed object. Override to return nil if you don't
+ want the object in the index for some reason.
+ */
+- (nullable CSSearchableItemAttributeSet *)attributeSetForObject:(NSManagedObject*)object;
+
+/* CSSearchableIndexDelegate conformance */
+- (void)searchableIndex:(CSSearchableIndex *)searchableIndex reindexAllSearchableItemsWithAcknowledgementHandler:(void (^)(void))acknowledgementHandler;
+
+- (void)searchableIndex:(CSSearchableIndex *)searchableIndex reindexSearchableItemsWithIdentifiers:(NSArray <NSString *> *)identifiers
+ acknowledgementHandler:(void (^)(void))acknowledgementHandler;
+
+@end
+
+NS_ASSUME_NONNULL_END
+
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSEntityDescription.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSEntityDescription.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSEntityDescription.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSEntityDescription.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,7 +1,7 @@
 /*
     NSEntityDescription.h
     Core Data
-    Copyright (c) 2004-2016, Apple Inc.
+    Copyright (c) 2004-2017, Apple Inc.
     All rights reserved.
 */
 
@@ -18,6 +18,8 @@
 @class NSPropertyDescription;
 @class NSRelationshipDescription;
 @class NSAttributeDescription;
+@class NSFetchIndexDescription;
+@class NSExpression;
 
 // Entities describe the "types" of objects available.
 API_AVAILABLE(macosx(10.4),ios(3.0))
@@ -51,7 +53,7 @@
         unsigned int _hasNonstandardPrimitiveProperties:2;
         unsigned int _hasUniqueProperties:1;
         unsigned int _validationUniqueProperties:1;
-        unsigned int _reservedEntityDescription:19;
+        unsigned int _reservedEntityDescription:20;
     } _entityDescriptionFlags;
     __strong void *_extraIvars;
     NSMutableDictionary *_userInfo;
@@ -98,20 +100,31 @@
 
 @property (nullable, copy) NSString *renamingIdentifier API_AVAILABLE(macosx(10.6),ios(3.0));
 
-/* Returns/sets the set of compound indices for the entity. Returns/takes an array of arrays, each of which contains one or more NSPropertyDescription or NSString instances (strings must be the names of properties of the entity on which the index is created).
-    This value does not form part of the entity's version hash, and may be ignored by stores which do not natively support compound
-    indexes.
+/* Returns/sets the set of indexes for the entity. Returns/takes an array of NSFetchIndexDescription instances. This value does not form part of the entity's version hash, and may be ignored by stores which do not natively support indexing.
+    IMPORTANT: Indexes should be the last things set in a model. Changing an entity hierarchy in any way that could affect the validity of indexes (adding or removing super/subentities, adding or removing properties anywhere in the hierarchy) will cause all exisiting indexes for entities in that hierarchy to be dropped.
  */
-@property (strong) NSArray<NSArray<id> *> *compoundIndexes API_AVAILABLE(macosx(10.7),ios(5.0));
+@property (copy) NSArray <NSFetchIndexDescription *>*indexes API_AVAILABLE(macosx(10.13),ios(11.0),tvos(11.0),watchos(4.0));
+
 
 /* Returns/sets uniqueness constraints for the entity. A uniqueness constraint is a set of one or more attributes whose value must be unique over the set of instances of that entity.
-    Returns/sets an array of arrays, each of which contains one or more NSAttributeDescription or NSString instances (strings must be the names of attributes on the entity) on which the constraint is registered. 
-    This value forms part of the entity's version hash. Stores which do not support uniqueness constraints should refuse to initialize when given a model containing such constraints.
-    Discussion: uniqueness constraint violations can be computationally expensive to handle. It is highly suggested that there be only one uniqueness constraint per entity hierarchy,
-    although subentites may extend a sueprentity's constraint.
-*/
-                                                                                                                                                                      
+ Sets an array of arrays, each of which contains one or more NSAttributeDescription or NSString instances (strings must be the names of attributes on the entity) on which the constraint is registered.
+ Returns an array of arrays, each of which contains instances of NSString which identify the attributes on the entity that comprise the constraint.
+ This value forms part of the entity's version hash. Stores which do not support uniqueness constraints should refuse to initialize when given a model containing such constraints.
+ Discussion: uniqueness constraint violations can be computationally expensive to handle. It is highly suggested that there be only one uniqueness constraint per entity hierarchy,
+ although subentites may extend a sueprentity's constraint.
+ */
+
 @property (strong)NSArray<NSArray<id> *> *uniquenessConstraints API_AVAILABLE(macosx(10.11),ios(9.0));
+
+/*  Getter returns an array of arrays of NSPropertyDescription objects describing the components of the indexes.
+    Setter takes an array of arrays of NSPropertyDescription objects and/or strings that are the names of properties of the entity on which the index is created. The special strings @"self" and @"entity" can be used to indicate that an index should contain a reference to the object's primary or entity key.
+    This value does not form part of the entity's version hash, and may be ignored by stores which do not natively support compound indexes.
+ */
+@property (strong) NSArray<NSArray<id> *> *compoundIndexes API_DEPRECATED( "Use NSEntityDescription.indexes instead", macosx(10.5,10.13),ios(3.0,11.0),tvos(10.0, 11.0),watchos(3.0, 4.0));
+
+/* Expression used to compute the CoreSpotlight display name for instance of this entity. */
+@property (nonatomic, retain) NSExpression *coreSpotlightDisplayNameExpression API_AVAILABLE(macosx(10.13),ios(11.0),tvos(11.0),watchos(4.0));
+
 @end
 
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSEntityMapping.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSEntityMapping.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSEntityMapping.h	2016-08-05 01:20:16.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSEntityMapping.h	2017-05-25 04:14:38.000000000 -0400
@@ -1,7 +1,7 @@
 /*
     NSEntityMapping.h
     Core Data
-    Copyright (c) 2004-2016, Apple Inc.
+    Copyright (c) 2004-2017, Apple Inc.
     All rights reserved.
 */
 
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSEntityMigrationPolicy.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSEntityMigrationPolicy.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSEntityMigrationPolicy.h	2016-09-23 20:16:28.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSEntityMigrationPolicy.h	2017-05-25 04:14:38.000000000 -0400
@@ -1,7 +1,7 @@
 /*
     NSEntityMigrationPolicy.h
     Core Data
-    Copyright (c) 2004-2016, Apple Inc.
+    Copyright (c) 2004-2017, Apple Inc.
     All rights reserved.
 */
 
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSExpressionDescription.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSExpressionDescription.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSExpressionDescription.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSExpressionDescription.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,9 +1,9 @@
 /*
- NSExpressionDescription.h
- Core Data
- Copyright (c) 2004-2016, Apple Inc.
- All rights reserved.
- */
+    NSExpressionDescription.h
+    Core Data
+    Copyright (c) 2004-2017, Apple Inc.
+    All rights reserved.
+*/
 
 #import <Foundation/NSObject.h>
 #import <CoreData/NSPropertyDescription.h>
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchIndexDescription.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchIndexDescription.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchIndexDescription.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchIndexDescription.h	2017-05-20 22:26:09.000000000 -0400
@@ -0,0 +1,40 @@
+/*
+    NSFetchIndexDescription.h
+    Core Data
+    Copyright (c) 2017, Apple Inc.
+    All rights reserved.
+*/
+
+#import <Foundation/NSArray.h>
+#import <Foundation/NSPredicate.h>
+#import <Foundation/NSString.h>
+
+@class NSEntityDescription;
+@class NSFetchIndexElementDescription;
+
+NS_ASSUME_NONNULL_BEGIN
+
+API_AVAILABLE(macosx(10.13),ios(11.0),tvos(11.0),watchos(4.0))
+@interface NSFetchIndexDescription : NSObject <NSCoding> {
+#if (!__OBJC2__)
+@private
+    NSString *_name;
+    NSArray<NSFetchIndexElementDescription*> *_elements;
+    NSEntityDescription *_entity;
+    NSPredicate *_partialIndexPredicate;
+#endif
+}
+
+- (instancetype)initWithName:(NSString*)name elements:(nullable NSArray <NSFetchIndexElementDescription *>*)elements;
+
+@property (copy) NSString *name;
+/* Will throw if the new value is invalid (ie includes both rtree and non-rtree elements). */
+@property (copy) NSArray <NSFetchIndexElementDescription *>*elements;
+@property (readonly, nonatomic, nullable, assign) NSEntityDescription *entity;
+
+/* If the index should be a partial index, specifies the predicate selecting rows for indexing */
+@property (nullable, copy) NSPredicate *partialIndexPredicate;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchIndexElementDescription.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchIndexElementDescription.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchIndexElementDescription.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchIndexElementDescription.h	2017-05-20 22:26:09.000000000 -0400
@@ -0,0 +1,53 @@
+/*
+    NSFetchIndexElementDescription.h
+    Core Data
+    Copyright (c) 2017, Apple Inc.
+    All rights reserved.
+*/
+
+#import <Foundation/NSArray.h>
+#import <Foundation/NSString.h>
+
+@class NSPropertyDescription;
+@class NSFetchIndexDescription;
+
+
+NS_ASSUME_NONNULL_BEGIN
+
+typedef NS_ENUM(NSUInteger, NSFetchIndexElementType) {
+    NSFetchIndexElementTypeBinary,
+    NSFetchIndexElementTypeRTree,
+} API_AVAILABLE(macosx(10.13),ios(11.0),tvos(11.0),watchos(4.0));
+
+API_AVAILABLE(macosx(10.13),ios(11.0),tvos(11.0),watchos(4.0))
+@interface NSFetchIndexElementDescription : NSObject <NSCoding> {
+#if (!__OBJC2__)
+@private
+    NSPropertyDescription *_property;
+    NSString *_propertyName;
+    NSFetchIndexElementType _collationType;
+    NSFetchIndexDescription *_indexDescription;
+    struct __indexElementDescriptionFlags {
+        unsigned int _ascending:1;
+        unsigned int _propertyIsRetained:1;
+        unsigned int _reservedEntityDescription:30;
+    } _indexElementDescriptionFlags;
+#endif
+}
+
+- (instancetype)initWithProperty:(NSPropertyDescription*)property collationType:(NSFetchIndexElementType)collationType;
+
+/* This may be an NSExpressionDescription that expresses a function */
+@property (readonly, nullable, retain) NSPropertyDescription *property;
+@property (readonly, nullable, retain) NSString *propertyName;
+/* Default NSIndexTypeBinary */
+@property NSFetchIndexElementType collationType;
+/* Default YES. Control whether this is an ascending or descending index for indexes which support direction. */
+
+@property (getter=isAscending) BOOL ascending;
+
+@property (readonly, nonatomic, nullable, assign) NSFetchIndexDescription *indexDescription;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequest.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequest.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequest.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequest.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,7 +1,7 @@
 /*
     NSFetchRequest.h
     Core Data
-    Copyright (c) 2004-2016, Apple Inc.
+    Copyright (c) 2004-2017, Apple Inc.
     All rights reserved.
 */
 
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequestExpression.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequestExpression.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequestExpression.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequestExpression.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,7 +1,7 @@
 /*
     NSFetchRequestExpression.h
     Core Data
-    Copyright (c) 2004-2016, Apple Inc.
+    Copyright (c) 2004-2017, Apple Inc.
     All rights reserved.
 */
 
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchedPropertyDescription.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchedPropertyDescription.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchedPropertyDescription.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchedPropertyDescription.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,7 +1,7 @@
 /*
     NSFetchedPropertyDescription.h
     Core Data
-    Copyright (c) 2004-2016, Apple Inc.
+    Copyright (c) 2004-2017, Apple Inc.
     All rights reserved.
 */
 
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchedResultsController.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchedResultsController.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchedResultsController.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchedResultsController.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,9 +1,11 @@
 /*
     NSFetchedResultsController.h
     Core Data
-    Copyright (c) 2009-2016, Apple Inc.
+    Copyright (c) 2009-2017, Apple Inc.
     All rights reserved.
+*/
 
+/*
 Class Overview
 ==============
 
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSIncrementalStore.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSIncrementalStore.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSIncrementalStore.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSIncrementalStore.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,9 +1,9 @@
 /*
- NSIncrementalStore.h
- Core Data
- Copyright (c) 2004-2016, Apple Inc.
- All rights reserved.
- */
+    NSIncrementalStore.h
+    Core Data
+    Copyright (c) 2004-2017, Apple Inc.
+    All rights reserved.
+*/
 
 #import <Foundation/NSArray.h>
 #import <CoreData/NSPersistentStore.h>
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSIncrementalStoreNode.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSIncrementalStoreNode.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSIncrementalStoreNode.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSIncrementalStoreNode.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,9 +1,9 @@
 /*
- NSIncrementalStoreNode.h
- Core Data
- Copyright (c) 2004-2016, Apple Inc.
- All rights reserved.
- */
+    NSIncrementalStoreNode.h
+    Core Data
+    Copyright (c) 2004-2017, Apple Inc.
+    All rights reserved.
+*/
 
 #import <CoreData/NSManagedObjectID.h>
 #import <Foundation/NSDictionary.h>
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObject.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObject.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObject.h	2016-11-16 21:53:59.000000000 -0500
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObject.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,7 +1,7 @@
 /*
     NSManagedObject.h
     Core Data
-    Copyright (c) 2004-2016, Apple Inc.
+    Copyright (c) 2004-2017, Apple Inc.
     All rights reserved.
 */
 
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectContext.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectContext.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectContext.h	2017-02-17 21:47:31.000000000 -0500
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectContext.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,7 +1,7 @@
 /*
     NSManagedObjectContext.h
     Core Data
-    Copyright (c) 2004-2016, Apple Inc.
+    Copyright (c) 2004-2017, Apple Inc.
     All rights reserved.
 */
 
@@ -103,8 +103,9 @@
       unsigned int _deleteInaccessible:1;
       unsigned int _priority:2;
       unsigned int _autoMerge:1;
+      unsigned int _isXPCServerContext:1;
       unsigned int _pushSecureDelete:1;
-      unsigned int _reservedFlags:5;
+      unsigned int _reservedFlags:4;
   } _flags;
   NSMutableSet *_unprocessedChanges;
   NSMutableSet *_unprocessedDeletes;
@@ -281,6 +282,10 @@
  */
 @property (nonatomic) BOOL automaticallyMergesChangesFromParent API_AVAILABLE(macosx(10.12),ios(10.0),tvos(10.0),watchos(3.0));
 
+/* Set the author for the context, this will be used as an identifier in the Persistent History Transactions (NSPersistentHistoryTransaction)
+ */
+@property (nullable, copy) NSString *transactionAuthor API_AVAILABLE(macosx(10.13),ios(11.0),tvos(11.0),watchos(4.0));
+
 @end
 
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectID.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectID.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectID.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectID.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,7 +1,7 @@
 /*
     NSManagedObjectID.h
     Core Data
-    Copyright (c) 2004-2016, Apple Inc.
+    Copyright (c) 2004-2017, Apple Inc.
     All rights reserved.
 */
 
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectModel.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectModel.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectModel.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectModel.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,7 +1,7 @@
 /*
     NSManagedObjectModel.h
     Core Data
-    Copyright (c) 2004-2016, Apple Inc.
+    Copyright (c) 2004-2017, Apple Inc.
     All rights reserved.
 */
 
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSMappingModel.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSMappingModel.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSMappingModel.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSMappingModel.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,7 +1,7 @@
 /*
     NSMappingModel.h
     Core Data
-    Copyright (c) 2004-2016, Apple Inc.
+    Copyright (c) 2004-2017, Apple Inc.
     All rights reserved.
 */
 
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSMergePolicy.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSMergePolicy.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSMergePolicy.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSMergePolicy.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,8 +1,9 @@
-//
-//  NSMergePolicy.h
-//  Core Data
-//  Copyright (c) 2004-2016, Apple Inc. All rights reserved.
-//
+/*
+    NSMergePolicy.h
+    Core Data
+    Copyright (c) 2004-2017, Apple Inc.
+    All rights reserved.
+*/
 
 #import <Foundation/NSArray.h>
 #import <Foundation/NSDictionary.h>
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSMigrationManager.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSMigrationManager.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSMigrationManager.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSMigrationManager.h	2017-05-20 22:26:10.000000000 -0400
@@ -1,7 +1,7 @@
 /*
     NSMigrationManager.h
     Core Data
-    Copyright (c) 2004-2016, Apple Inc.
+    Copyright (c) 2004-2017, Apple Inc.
     All rights reserved.
 */
 
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentContainer.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentContainer.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentContainer.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentContainer.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,9 +1,9 @@
 /*
- NSPersistentContainer.h
- Core Data
- Copyright (c) 2016, Apple Inc.
- All rights reserved.
- */
+    NSPersistentContainer.h
+    Core Data
+    Copyright (c) 2016-2017, Apple Inc.
+    All rights reserved.
+*/
 
 #import <Foundation/NSArray.h>
 #import <Foundation/NSURL.h>
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentHistoryChange.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentHistoryChange.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentHistoryChange.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentHistoryChange.h	2017-05-20 22:26:09.000000000 -0400
@@ -0,0 +1,37 @@
+/*
+    NSPersistentHistoryChange.h
+    Core Data
+    Copyright (c) 2016-2017, Apple Inc.
+    All rights reserved.
+*/
+
+#import <Foundation/NSDictionary.h>
+#import <Foundation/NSData.h>
+#import <Foundation/NSSet.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@class NSPersistentHistoryTransaction;
+@class NSManagedObjectID;
+@class NSPropertyDescription;
+
+
+typedef NS_ENUM (NSInteger, NSPersistentHistoryChangeType) {
+    NSPersistentHistoryChangeTypeInsert,
+    NSPersistentHistoryChangeTypeUpdate,
+    NSPersistentHistoryChangeTypeDelete,
+} API_AVAILABLE(macosx(10.13),ios(11.0),tvos(11.0),watchos(4.0));
+
+API_AVAILABLE(macosx(10.13),ios(11.0),tvos(11.0),watchos(4.0))
+@interface NSPersistentHistoryChange : NSObject <NSCopying>
+
+@property (readonly) int64_t changeID;
+@property (readonly,copy) NSManagedObjectID *changedObjectID;
+@property (readonly) NSPersistentHistoryChangeType changeType;
+@property (nullable,readonly,copy) NSDictionary *tombstone;
+@property (nullable,readonly,strong) NSPersistentHistoryTransaction *transaction;
+@property (nullable,readonly,copy) NSSet<NSPropertyDescription *> *updatedProperties;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentHistoryChangeRequest.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentHistoryChangeRequest.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentHistoryChangeRequest.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentHistoryChangeRequest.h	2017-05-20 22:26:09.000000000 -0400
@@ -0,0 +1,45 @@
+/*
+    NSPersistentHistoryChangeRequest.h
+    Core Data
+    Copyright (c) 2014-2017, Apple Inc.
+    All rights reserved.
+*/
+
+#import <Foundation/NSArray.h>
+#import <Foundation/NSDate.h>
+#import <CoreData/NSPersistentStoreRequest.h>
+#import <CoreData/NSPersistentStoreResult.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@class NSPersistentHistoryTransaction;
+@class NSPersistentHistoryToken;
+
+API_AVAILABLE(macosx(10.13),ios(11.0),tvos(11.0),watchos(4.0))
+@interface NSPersistentHistoryChangeRequest : NSPersistentStoreRequest {
+#if (!__OBJC2__)
+@private
+    NSPersistentHistoryToken *_token;
+    NSDate *_date;
+    NSPersistentHistoryResultType _resultType;
+    NSArray *_transactionIDs;
+    NSNumber *_transactionNumber;
+    BOOL _delete;
+#endif
+}
+
++ (nonnull instancetype)fetchHistoryAfterDate:(NSDate *)date;
++ (nonnull instancetype)fetchHistoryAfterToken:(nullable NSPersistentHistoryToken *)token;
++ (nonnull instancetype)fetchHistoryAfterTransaction:(nullable NSPersistentHistoryTransaction *)transaction;
+
++ (nonnull instancetype)deleteHistoryBeforeDate:(NSDate *)date;
++ (nonnull instancetype)deleteHistoryBeforeToken:(nullable NSPersistentHistoryToken *)token;
++ (nonnull instancetype)deleteHistoryBeforeTransaction:(nullable NSPersistentHistoryTransaction *)transaction;
+
+// The type of result that should be returned from this request. Defaults to NSPersistentHistoryResultTypeTransactionsAndChanges
+@property NSPersistentHistoryResultType resultType;
+@property (nullable,readonly,strong) NSPersistentHistoryToken *token;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentHistoryToken.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentHistoryToken.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentHistoryToken.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentHistoryToken.h	2017-05-20 22:26:09.000000000 -0400
@@ -0,0 +1,17 @@
+/*
+    NSPersistentHistoryToken.h
+    Core Data
+    Copyright (c) 2017, Apple Inc.
+    All rights reserved.
+*/
+
+#import <Foundation/NSArray.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+API_AVAILABLE(macosx(10.13),ios(11.0),tvos(11.0),watchos(4.0))
+@interface NSPersistentHistoryToken : NSObject <NSCopying, NSSecureCoding>
+@end
+
+NS_ASSUME_NONNULL_END
+
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentHistoryTransaction.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentHistoryTransaction.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentHistoryTransaction.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentHistoryTransaction.h	2017-05-20 22:26:09.000000000 -0400
@@ -0,0 +1,35 @@
+/*
+    NSPersistentHistoryTransaction.h
+    Core Data
+    Copyright (c) 2016-2017, Apple Inc.
+    All rights reserved.
+*/
+
+#import <Foundation/NSArray.h>
+#import <Foundation/NSDate.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@class NSNotification;
+@class NSPersistentHistoryToken;
+@class NSPersistentHistoryChange;
+
+API_AVAILABLE(macosx(10.13),ios(11.0),tvos(11.0),watchos(4.0))
+@interface NSPersistentHistoryTransaction : NSObject <NSCopying>
+
+@property (readonly,copy) NSDate *timestamp;
+@property (nullable,readonly,copy) NSArray<NSPersistentHistoryChange *>*changes;
+@property (readonly) int64_t transactionNumber;
+@property (readonly,copy) NSString *storeID;
+@property (readonly,copy) NSString *bundleID;
+@property (readonly,copy) NSString *processID;
+@property (nullable,readonly,copy) NSString *contextName;
+@property (nullable,readonly,copy) NSString *author;
+@property (readonly,strong) NSPersistentHistoryToken *token;
+
+// Get a notification that can be consumed by a NSManagedObjectContext
+- (NSNotification *) objectIDNotification;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStore.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStore.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStore.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStore.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,7 +1,7 @@
 /*
     NSPersistentStore.h
     Core Data
-    Copyright (c) 2004-2016, Apple Inc.
+    Copyright (c) 2004-2017, Apple Inc.
     All rights reserved.
 */
 
@@ -20,6 +20,7 @@
 @class NSPersistentStore;
 @class NSPersistentStoreRequest;
 @class NSPersistentStoreCoordinator;
+@class NSCoreDataCoreSpotlightDelegate;
 
 API_AVAILABLE(macosx(10.5),ios(3.0))
 @interface NSPersistentStore : NSObject {
@@ -38,7 +39,7 @@
         unsigned int _RESERVED:29;
     } _flags;
 	void *_temporaryIDClass;
-	id _externalRecordsMonitor;
+	id _coreSpotlightDelegate;
 	int32_t _activeRequests;
 #if __LP64__
     int32_t _reserved32;
@@ -90,6 +91,10 @@
 // before removal.
 - (void)willRemoveFromPersistentStoreCoordinator:(nullable NSPersistentStoreCoordinator *)coordinator;
 
+/* Return the Core Spotlight exporter if one exists for this store. The exporter
+    can be set as part of the store options when it is added to the coordinator. */
+@property (nonatomic, readonly) NSCoreDataCoreSpotlightDelegate *coreSpotlightExporter API_AVAILABLE(macosx(10.13),ios(11.0)) API_UNAVAILABLE(tvos,watchos);
+
 @end
 
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreCoordinator.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreCoordinator.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreCoordinator.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreCoordinator.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,7 +1,7 @@
 /*
     NSPersistentStoreCoordinator.h
     Core Data
-    Copyright (c) 2004-2016, Apple Inc.
+    Copyright (c) 2004-2017, Apple Inc.
     All rights reserved.
 */
 
@@ -109,46 +109,51 @@
 */
 COREDATA_EXTERN NSString * const NSPersistentStoreConnectionPoolMaxSizeKey API_AVAILABLE(macosx(10.12),ios(10.0),tvos(10.0),watchos(3.0));
 
-// Spotlight indexing and external record support keys
+/* Spotlight indexing and external record support keys */
+
+COREDATA_EXTERN NSString * const NSCoreDataCoreSpotlightExporter API_AVAILABLE(macosx(10.13),ios(11.0)) API_UNAVAILABLE(tvos,watchos);
 
 /* Values to be passed with NSExternalRecordsFileFormatOption indicating the format used when writing external records. 
    The files are serialized dictionaries. 
 */
-COREDATA_EXTERN NSString * const NSXMLExternalRecordType API_AVAILABLE(macosx(10.6)) API_UNAVAILABLE(ios);
-COREDATA_EXTERN NSString * const NSBinaryExternalRecordType API_AVAILABLE(macosx(10.6)) API_UNAVAILABLE(ios);
+COREDATA_EXTERN NSString * const NSXMLExternalRecordType API_DEPRECATED("Spotlight integration is deprecated. Use CoreSpotlight integration instead.", macosx(10.6,10.13)) API_UNAVAILABLE(ios);
+COREDATA_EXTERN NSString * const NSBinaryExternalRecordType API_DEPRECATED("Spotlight integration is deprecated. Use CoreSpotlight integration instead.", macosx(10.6,10.13)) API_UNAVAILABLE(ios);
 
 /* option indicating the file format used when writing external records.The default is NSXMLExternalRecordType if this options isn't specified. */
-COREDATA_EXTERN NSString * const NSExternalRecordsFileFormatOption API_AVAILABLE(macosx(10.6)) API_UNAVAILABLE(ios);
+COREDATA_EXTERN NSString * const NSExternalRecordsFileFormatOption API_DEPRECATED("Spotlight integration is deprecated. Use CoreSpotlight integration instead.", macosx(10.6,10.13)) API_UNAVAILABLE(ios);
 
 /* option indicating the directory URL where external records are stored. External records are files that can be used by 
    Spotlight to index the contents of the store. They can also contain a serialized dictionary representation of the instances.
    The location specified with this option must be somewhere under the path ~/Library/Caches/Metadata/CoreData or ~/Library/CoreData
    This option must be set together with NSExternalRecordExtensionOption
 */
-COREDATA_EXTERN NSString * const NSExternalRecordsDirectoryOption API_AVAILABLE(macosx(10.6)) API_UNAVAILABLE(ios);
+COREDATA_EXTERN NSString * const NSExternalRecordsDirectoryOption API_DEPRECATED("Spotlight integration is deprecated. Use CoreSpotlight integration instead.", macosx(10.6,10.13)) API_UNAVAILABLE(ios);
 
 /* option indicating the extension used in the external record files. This option must be set together with NSExternalRecordsDirectoryOption */
-COREDATA_EXTERN NSString * const NSExternalRecordExtensionOption API_AVAILABLE(macosx(10.6)) API_UNAVAILABLE(ios);    
+COREDATA_EXTERN NSString * const NSExternalRecordExtensionOption API_DEPRECATED("Spotlight integration is deprecated. Use CoreSpotlight integration instead.", macosx(10.6,10.13)) API_UNAVAILABLE(ios);
 
 /* Dictionary key for the entity name extracted from an external record file URL */
-COREDATA_EXTERN NSString * const NSEntityNameInPathKey API_AVAILABLE(macosx(10.6)) API_UNAVAILABLE(ios);    
+COREDATA_EXTERN NSString * const NSEntityNameInPathKey API_DEPRECATED("Spotlight integration is deprecated. Use CoreSpotlight integration instead.", macosx(10.6,10.13)) API_UNAVAILABLE(ios);
 
 /* Dictionary key for the store UUID extracted from an external record file URL */
-COREDATA_EXTERN NSString * const NSStoreUUIDInPathKey API_AVAILABLE(macosx(10.6)) API_UNAVAILABLE(ios);    
+COREDATA_EXTERN NSString * const NSStoreUUIDInPathKey API_DEPRECATED("Spotlight integration is deprecated. Use CoreSpotlight integration instead.", macosx(10.6,10.13)) API_UNAVAILABLE(ios);
 
 /* Dictionary key for the store URL extracted from an external record file URL */
-COREDATA_EXTERN NSString * const NSStorePathKey API_AVAILABLE(macosx(10.6)) API_UNAVAILABLE(ios);    
+COREDATA_EXTERN NSString * const NSStorePathKey API_DEPRECATED("Spotlight integration is deprecated. Use CoreSpotlight integration instead.", macosx(10.6,10.13)) API_UNAVAILABLE(ios);
 
 /* Dictionary key for the managed object model URL extracted from an external record file URL */
-COREDATA_EXTERN NSString * const NSModelPathKey API_AVAILABLE(macosx(10.6)) API_UNAVAILABLE(ios);    
+COREDATA_EXTERN NSString * const NSModelPathKey API_DEPRECATED("Spotlight integration is deprecated. Use CoreSpotlight integration instead.", macosx(10.6,10.13)) API_UNAVAILABLE(ios);
 
 /* Dictionary key for the object URI extracted from an external record file URL */
-COREDATA_EXTERN NSString * const NSObjectURIKey API_AVAILABLE(macosx(10.6)) API_UNAVAILABLE(ios);
+COREDATA_EXTERN NSString * const NSObjectURIKey API_DEPRECATED("Spotlight integration is deprecated. Use CoreSpotlight integration instead.", macosx(10.6,10.13)) API_UNAVAILABLE(ios);
 
 /* store option for the destroy... and replace... to indicate that the store file should be destroyed even if the operation might be unsafe (overriding locks
  */
 COREDATA_EXTERN NSString * const NSPersistentStoreForceDestroyOption API_AVAILABLE(macosx(10.8),ios(6.0));
 
+/* Dictionary key for enabling persistent history - default is NO */
+COREDATA_EXTERN NSString * const NSPersistentHistoryTrackingKey API_AVAILABLE(macosx(10.13),ios(11.0),tvos(11.0),watchos(4.0));
+
 API_AVAILABLE(macosx(10.4),ios(3.0))
 @interface NSPersistentStoreCoordinator : NSObject <NSLocking> {
 #if (!__OBJC2__)
@@ -219,7 +224,7 @@
 
 /* Registers the specified NSPersistentStore subclass for the specified store type string.  This method must be invoked before a custom subclass of NSPersistentStore can be loaded into a persistent store coordinator.  Passing nil for the store class argument will unregister the specified store type.
 */
-+ (void)registerStoreClass:(Class)storeClass forStoreType:(NSString *)storeType API_AVAILABLE(macosx(10.5),ios(3.0));
++ (void)registerStoreClass:(Class _Nullable)storeClass forStoreType:(NSString *)storeType API_AVAILABLE(macosx(10.5),ios(3.0));
 
 /* Allows to access the metadata stored in a persistent store without warming up a CoreData stack; the guaranteed keys in this dictionary are NSStoreTypeKey and NSStoreUUIDKey. If storeType is nil, Core Data will guess which store class should be used to get/set the store file's metadata. 
  */
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreDescription.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreDescription.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreDescription.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreDescription.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,9 +1,9 @@
 /*
- NSPersistentStoreDescription.h
- Core Data
- Copyright (c) 2016, Apple Inc.
- All rights reserved.
- */
+    NSPersistentStoreDescription.h
+    Core Data
+    Copyright (c) 2016-2017, Apple Inc.
+    All rights reserved.
+*/
 
 #import <Foundation/NSArray.h>
 #import <Foundation/NSDictionary.h>
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,9 +1,9 @@
 /*
- NSPersistentStoreRequest.h
- Core Data
- Copyright (c) 2004-2016, Apple Inc.
- All rights reserved.
- */
+    NSPersistentStoreRequest.h
+    Core Data
+    Copyright (c) 2004-2017, Apple Inc.
+    All rights reserved.
+*/
 
 #import <Foundation/NSArray.h>
 
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreResult.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreResult.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreResult.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreResult.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,9 +1,10 @@
 /*
- NSPersistentStoreResult.h
- Core Data
- Copyright (c) 2004-2016, Apple Inc.
- All rights reserved.
- */
+    NSPersistentStoreResult.h
+    Core Data
+    Copyright (c) 2004-2017, Apple Inc.
+    All rights reserved.
+*/
+
 #import <Foundation/NSArray.h>
 #import <CoreData/NSFetchRequest.h>
 
@@ -29,6 +30,16 @@
     NSBatchDeleteResultTypeCount = 0x2,      // Return the number of rows that were deleted
 } API_AVAILABLE(macosx(10.11), ios(9.0));
 
+
+typedef NS_ENUM(NSInteger, NSPersistentHistoryResultType) {
+    NSPersistentHistoryResultTypeStatusOnly = 0x0,
+    NSPersistentHistoryResultTypeObjectIDs = 0x1,   // Return the object IDs of the changes objects
+    NSPersistentHistoryResultTypeCount = 0x2,       // Return the number of changes
+    NSPersistentHistoryResultTypeTransactionsOnly = 0x3,// Return the transactions since
+    NSPersistentHistoryResultTypeChangesOnly = 0x4,     // Return the changes since
+    NSPersistentHistoryResultTypeTransactionsAndChanges = 0x5,// Return the transactions and changes since
+} API_AVAILABLE(macosx(10.13),ios(11.0),tvos(11.0),watchos(4.0));
+
 // Used to wrap the result of whatever is returned by the persistent store coordinator when
 // -[NSManagedObjectContext executeRequest:error:] is called
 API_AVAILABLE(macosx(10.10),ios(8.0))
@@ -104,4 +115,25 @@
 
 @end
 
+
+// The result returned when executing an NSPersistentHistoryChangeRequest
+API_AVAILABLE(macosx(10.13),ios(11.0),tvos(11.0),watchos(4.0))
+@interface NSPersistentHistoryResult : NSPersistentStoreResult {
+#if (!__OBJC2__)
+@private
+    id _aggregatedResult;
+    NSPersistentHistoryResultType _resultType;
+#endif
+}
+
+// Return the result. See NSPersistentHistoryResultType for options
+@property (strong, readonly) id result; //make nullable
+@property (readonly) NSPersistentHistoryResultType resultType;
+
+//to remain private
+- (instancetype)initWithResultType:(NSPersistentHistoryResultType)type andResult:(id)result;
+- (instancetype)initWithSubresults:(NSArray*)subresults;
+
+@end
+
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPropertyDescription.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPropertyDescription.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPropertyDescription.h	2016-11-16 21:53:59.000000000 -0500
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPropertyDescription.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,7 +1,7 @@
 /*
     NSPropertyDescription.h
     Core Data
-    Copyright (c) 2004-2016, Apple Inc.
+    Copyright (c) 2004-2017, Apple Inc.
     All rights reserved.
 */
 
@@ -69,7 +69,7 @@
 
 /* Returns a boolean value indicating if the property is important for searching.  NSPersistentStores can optionally utilize this information upon store creation for operations like defining indexes.
 */
-@property (getter=isIndexed) BOOL indexed API_AVAILABLE(macosx(10.5),ios(3.0));
+@property (getter=isIndexed) BOOL indexed API_DEPRECATED( "Use NSEntityDescription.indexes instead", macosx(10.5,10.13),ios(3.0,11.0),tvos(10.0, 11.0),watchos(3.0, 4.0));
 
 /* Returns the version hash for the property.  The version hash is used to uniquely identify a property based on its configuration.  The version hash uses only values which affect the persistence of data and the user-defined versionHashModifier value.  (The values which affect persistence are the name of the property, the flags for isOptional, isTransient, and isReadOnly).  This value is stored as part of the version information in the metadata for stores, as well as a definition of a property involved in an NSPropertyMapping.
 */
@@ -85,7 +85,7 @@
 
 /* Returns a boolean value indicating if the property data should be written out to the external record file.
 */
-@property (getter=isStoredInExternalRecord) BOOL storedInExternalRecord API_AVAILABLE(macosx(10.6),ios(3.0));
+@property (getter=isStoredInExternalRecord) BOOL storedInExternalRecord API_DEPRECATED("Spotlight integration is deprecated. Use CoreSpotlight integration instead.", macosx(10.6,10.13),ios(3.0,11.0));
 
 @property (nullable, copy) NSString *renamingIdentifier API_AVAILABLE(macosx(10.6),ios(3.0));
 
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPropertyMapping.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPropertyMapping.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPropertyMapping.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPropertyMapping.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,7 +1,7 @@
 /*
     NSPropertyMapping.h
     Core Data
-    Copyright (c) 2004-2016, Apple Inc.
+    Copyright (c) 2004-2017, Apple Inc.
     All rights reserved.
 */
 
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSQueryGenerationToken.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSQueryGenerationToken.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSQueryGenerationToken.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSQueryGenerationToken.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,9 +1,9 @@
-//
-//  NSQueryGenerationToken.h
-//  Core Data
-//  Copyright (c) 2016, Apple Inc. All rights reserved.
-//
-
+/*
+    NSQueryGenerationToken.h
+    Core Data
+    Copyright (c) 2016-2017, Apple Inc.
+    All rights reserved.
+*/
 #import <Foundation/NSArray.h>
 
 NS_ASSUME_NONNULL_BEGIN
@@ -11,7 +11,7 @@
 API_AVAILABLE(macosx(10.12),ios(10.0),tvos(10.0),watchos(3.0))
 // Class used to track database generations for generational querying.
 // See NSManagedObjectContext for details on how it is used.
-@interface NSQueryGenerationToken : NSObject <NSCopying> 
+@interface NSQueryGenerationToken : NSObject <NSCopying, NSSecureCoding>
 
 @property (class, readonly, strong) NSQueryGenerationToken *currentQueryGenerationToken; // Used to inform a context that it should use the current generation
 
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSRelationshipDescription.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSRelationshipDescription.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSRelationshipDescription.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSRelationshipDescription.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,7 +1,7 @@
 /*
     NSRelationshipDescription.h
     Core Data
-    Copyright (c) 2004-2016, Apple Inc.
+    Copyright (c) 2004-2017, Apple Inc.
     All rights reserved.
 */
 
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSSaveChangesRequest.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSSaveChangesRequest.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSSaveChangesRequest.h	2016-08-17 21:39:53.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSSaveChangesRequest.h	2017-05-20 22:26:09.000000000 -0400
@@ -1,9 +1,9 @@
 /*
- NSSaveChangesRequest.h
- Core Data
- Copyright (c) 2004-2016, Apple Inc.
- All rights reserved.
- */
+    NSSaveChangesRequest.h
+    Core Data
+    Copyright (c) 2004-2017, Apple Inc.
+    All rights reserved.
+*/
 
 #import <Foundation/NSArray.h>
 #import <Foundation/NSSet.h>
Clone this wiki locally