<!--
{
  "documentType" : "article",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/nspersistentstorecoordinator-deprecated-symbols",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Deprecated Symbols"
}
-->

# Deprecated Symbols

Review unsupported symbols and their replacements.

## Topics

### Deprecated constants

[`let NSXMLExternalRecordType: String`](/documentation/CoreData/NSXMLExternalRecordType)

Specifies an XML file format.

[`let NSBinaryExternalRecordType: String`](/documentation/CoreData/NSBinaryExternalRecordType)

Specifies a binary file format

### Deprecated enumerations

[`enum NSPersistentStoreUbiquitousTransitionType`](/documentation/CoreData/NSPersistentStoreUbiquitousTransitionType)

These constants are used as the value corresponding to the [`NSPersistentStoreUbiquitousTransitionTypeKey`](/documentation/CoreData/NSPersistentStoreUbiquitousTransitionTypeKey) in the user info dictionary of [`NSPersistentStoreCoordinatorStoresWillChangeNotification`](/documentation/CoreData/NSPersistentStoreCoordinatorStoresWillChangeNotification) and [`NSPersistentStoreCoordinatorStoresDidChangeNotification`](/documentation/CoreData/NSPersistentStoreCoordinatorStoresDidChangeNotification) notifications to identify the type of event leading to a change.

### Deprecated type properties

  <doc://com.apple.documentation/documentation/Foundation/NSNotification/Name-swift.struct/NSPersistentStoreDidImportUbiquitousContentChanges>

[`extern NSString * const NSPersistentStoreDidImportUbiquitousContentChangesNotification;`](/documentation/CoreData/NSPersistentStoreDidImportUbiquitousContentChangesNotification)

Posted after records are imported from the ubiquitous content store.

### Deprecated type methods

[`class func elementsDerived(fromExternalRecordAt: URL) -> [AnyHashable : Any]`](/documentation/CoreData/NSPersistentStoreCoordinator/elementsDerived(fromExternalRecordAt:))

Returns a dictionary containing the parsed elements derived from the Spotlight external record file that is specified by the given URL.

[`class func metadataForPersistentStore(with: URL) throws -> [AnyHashable : Any]`](/documentation/CoreData/NSPersistentStoreCoordinator/metadataForPersistentStore(with:))

Returns a dictionary that contains the metadata stored in the persistent store at the specified location.

[`class func metadataForPersistentStore(ofType: String?, at: URL) throws -> [String : Any]`](/documentation/CoreData/NSPersistentStoreCoordinator/metadataForPersistentStore(ofType:at:))

Returns a dictionary containing the metadata stored in the persistent store at a given URL.

[`class func metadataForPersistentStore(ofType: String, at: URL, options: [AnyHashable : Any]?) throws -> [String : Any]`](/documentation/CoreData/NSPersistentStoreCoordinator/metadataForPersistentStore(ofType:at:options:))

Returns the metadata of a specific type of persistent store at the provided location.

[`class func registerStoreClass(AnyClass?, forStoreType: String)`](/documentation/CoreData/NSPersistentStoreCoordinator/registerStoreClass(_:forStoreType:))

Registers a persistent store subclass using the specified store type identifier.

[`class func removeUbiquitousContentAndPersistentStore(at: URL, options: [AnyHashable : Any]?) throws`](/documentation/CoreData/NSPersistentStoreCoordinator/removeUbiquitousContentAndPersistentStore(at:options:))

Deletes all ubiquitous content for all peers for the persistent store at a given URL and also delete the local store file.

[`class func setMetadata([String : Any]?, forPersistentStoreOfType: String?, at: URL) throws`](/documentation/CoreData/NSPersistentStoreCoordinator/setMetadata(_:forPersistentStoreOfType:at:))

Sets the metadata for a given store.

[`class func setMetadata([String : Any]?, forPersistentStoreOfType: String, at: URL, options: [AnyHashable : Any]?) throws`](/documentation/CoreData/NSPersistentStoreCoordinator/setMetadata(_:forPersistentStoreOfType:at:options:))

Updates the metadata of a specific type of persistent store at the provided location.

### Deprecated instance methods

[`func addPersistentStore(ofType: String, configurationName: String?, at: URL?, options: [AnyHashable : Any]?) throws -> NSPersistentStore`](/documentation/CoreData/NSPersistentStoreCoordinator/addPersistentStore(ofType:configurationName:at:options:))

Adds a specific type of persistent store at the provided location.

[`func destroyPersistentStore(at: URL, ofType: String, options: [AnyHashable : Any]?) throws`](/documentation/CoreData/NSPersistentStoreCoordinator/destroyPersistentStore(at:ofType:options:))

Deletes a specific type of persistent store at the provided location.

[`func importStore(withIdentifier: String?, fromExternalRecordsDirectoryAt: URL, to: URL, options: [AnyHashable : Any]?, ofType: String) throws -> NSPersistentStore`](/documentation/CoreData/NSPersistentStoreCoordinator/importStore(withIdentifier:fromExternalRecordsDirectoryAt:to:options:ofType:))

Creates and populates a store with the external records found at a given URL.

[`func lock()`](/documentation/CoreData/NSPersistentStoreCoordinator/lock())

Attempts to acquire a lock.

[`func migratePersistentStore(NSPersistentStore, to: URL, options: [AnyHashable : Any]?, withType: String) throws -> NSPersistentStore`](/documentation/CoreData/NSPersistentStoreCoordinator/migratePersistentStore(_:to:options:withType:))

Changes the location and, if necessary, the store type of the specified persistent store.

[`func replacePersistentStore(at: URL, destinationOptions: [AnyHashable : Any]?, withPersistentStoreFrom: URL, sourceOptions: [AnyHashable : Any]?, ofType: String) throws`](/documentation/CoreData/NSPersistentStoreCoordinator/replacePersistentStore(at:destinationOptions:withPersistentStoreFrom:sourceOptions:ofType:))

Replaces one persistent store with another.

[`func tryLock() -> Bool`](/documentation/CoreData/NSPersistentStoreCoordinator/tryLock())

Attempts to acquire a lock.

[`func unlock()`](/documentation/CoreData/NSPersistentStoreCoordinator/unlock())

Relinquishes a previously acquired lock.

[`func perform(() -> Void)`](/documentation/CoreData/NSPersistentStoreCoordinator/perform(_:)-7jqb)

Executes the provided closure asynchronously on the coordinator’s queue.

[`func performAndWait(() -> Void)`](/documentation/CoreData/NSPersistentStoreCoordinator/performAndWait(_:)-d3kq)

Executes the provided closure on the coordinator’s queue and waits for it to finish.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)