<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSStoreModelVersionIdentifiersKey",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:@NSStoreModelVersionIdentifiersKey"
  },
  "title" : "NSStoreModelVersionIdentifiersKey"
}
-->

# NSStoreModelVersionIdentifiersKey

Key to represent the version identifiers for the model used to create the store.

```
let NSStoreModelVersionIdentifiersKey: String
```

## Discussion

If you add your own annotations to a model’s version identifier (see [`versionIdentifiers`](/documentation/CoreData/NSManagedObjectModel/versionIdentifiers)), they are stored in the persistent store’s metadata. You can use this key to retrieve the identifiers from the metadata dictionaries available from `NSPersistentStore` ([`metadata`](/documentation/CoreData/NSPersistentStore/metadata)) and `NSPersistentStoreCoordinator` ([`metadata(for:)`](/documentation/CoreData/NSPersistentStoreCoordinator/metadata(for:)) and related methods). The corresponding value is a Foundation collection (an `NSArray` or `NSSet` object).

---

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)