---
title: NSPersistentStoreOSCompatibility
framework: coredata
role: symbol
role_heading: Global Variable
path: coredata/nspersistentstoreoscompatibility
---

# NSPersistentStoreOSCompatibility

Key to represent the earliest version of the operation system that the persistent store supports.

## Declaration

```swift
let NSPersistentStoreOSCompatibility: String
```

## Discussion

Discussion The corresponding value is an NSNumber object that takes the form of the constants defined by the availability macros defined in /usr/include/AvailabilityMacros.h; for example 1040 represents OS X version 10.4.0. Backward compatibility may preclude some features.

## See Also

### Constants

- [NSStoreModelVersionHashesKey](coredata/nsstoremodelversionhasheskey.md)
- [NSStoreModelVersionIdentifiersKey](coredata/nsstoremodelversionidentifierskey.md)
